---
title: "Carbon offset API for companies | TrimCarbon"
description: "Buy carbon offsets from your own systems: a prepaid balance, purchases by kg or by amount, test keys, and a public certificate for every purchase."
url: https://trimcarbon.com/developers
language: en
---

Offset API

# Offset your emissions from your own systems

Top up a prepaid balance, then buy carbon credits by kg or by amount with one API call. Every purchase gets a public certificate.

[Request API access](https://trimcarbon.com/developers/access) [Read the docs](https://trimcarbon.com/docs)

For businesses that offset their own emissions. We review each request.

Buy 1 tonne

```
curl   https://trimcarbon.com/api/v1/offsets   \
    -H   "Authorization: Bearer tc_live_…"   \
    -H   "Idempotency-Key: 7f8d0c6e-2b1a-4e9f"   \
    -H   "Content-Type: application/json"   \
    -d   '{"kg": 1000}'
```

Response

```
{
    "object" :   "offset" ,
    "id" :   "off_8Hq2kP0aZr4mXc1vB7nT3yLw" ,
    "status" :   "processing" ,
    "kg" :   1000 ,
    "amount_cents" :   4000 ,
    "currency" :   "usd"
 }
```

## How it works

1. 01

   Request access

   Tell us about your company and what you will offset. We approve business accounts.

2. 02

   Top up

   Add a prepaid balance through Stripe, from $250, with an invoice for each top-up.

3. 03

   Buy by API

   Send kg, or an amount to spend. The cost comes out of your balance at your rate.

4. 04

   Get a certificate

   We buy the credits right away. A public certificate follows once they are retired.

## Built for automation

- By volume or by price

  Ask for 1,000 kg, or for what $50 buys. A quote gives you the cost before you buy.

- Safe retries

  Each purchase carries an Idempotency-Key, so a retry never buys twice.

- Test keys

  Build against a simulated balance. Nothing is charged or retired.

- Read-only keys

  Give dashboards and reports a key that can read but not buy.

- Public certificates

  Each purchase links to its certificate in our registry, with the projects behind it.

- Balance alerts

  Set a threshold and get an email before the balance runs out.

[Guide: A carbon offset API for flight schools, clubs and fleets](https://trimcarbon.com/expertise/carbon-offset-api)

## Pricing

$0.04

per kg of CO₂

$40 a tonne, paid from a prepaid balance. Top-ups from $250, and no subscription.

The balance does not expire and is not refundable. [API terms](https://trimcarbon.com/legal/terms-and-conditions#api)

Offsetting more than 15 tonnes a year? Ask us for a volume rate. [Contact us](https://trimcarbon.com/contact/high-volume)

## Start with an access request

Request access and set up two-factor authentication or a passkey. Once we approve the request, build with a test key, then top up and go live.

[Request API access](https://trimcarbon.com/developers/access) [Read the docs](https://trimcarbon.com/docs)
