TrimCarbon Account API

Balance and totals.

GitHub OpenAPI

Operations 2

GET /balance Get the balance #
GET /impact Get your API impact #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/trimcarbon-com:trimcarbon-com-account-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

trimcarbon-com-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TrimCarbon Offset Account API
  version: '1'
  description: 'Buy carbon offsets from your own systems. Your account has a prepaid USD balance; each purchase takes its cost from the balance, and we buy and retire the carbon credits for it.


    Every request needs an API key, sent as `Authorization: Bearer tc_live_…`. Test keys (`tc_test_…`) spend a simulated balance: they charge nothing and retire nothing, and their offsets show as placed after a few seconds. Top-ups start at $250, on the developer page.'
  contact:
    email: contact@trimcarbon.com
  termsOfService: https://trimcarbon.com/legal/terms-and-conditions#api
servers:
- url: https://trimcarbon.com/api/v1
security:
- apiKey: []
tags:
- name: Account
  description: Balance and totals.
paths:
  /balance:
    get:
      operationId: getBalance
      tags:
      - Account
      summary: Get the balance
      description: The balance this key spends, and your rate. Test keys see a simulated balance.
      responses:
        '200':
          description: The balance.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Balance'
        '401':
          description: Missing, unknown or revoked API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: '`api_access_inactive` (the account is suspended or not approved) or `insufficient_permissions` (a read-only key).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: '`rate_limited`: wait for the `Retry-After` seconds.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /impact:
    get:
      operationId: getImpact
      tags:
      - Account
      summary: Get your API impact
      description: kg of CO₂ offset through the API, for this key’s mode.
      responses:
        '200':
          description: The totals.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Impact'
        '401':
          description: Missing, unknown or revoked API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: '`api_access_inactive` (the account is suspended or not approved) or `insufficient_permissions` (a read-only key).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: '`rate_limited`: wait for the `Retry-After` seconds.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
              - authentication_error
              - permission_error
              - invalid_request_error
              - rate_limit_error
              - api_error
            code:
              type: string
              example: insufficient_balance
            message:
              type: string
            param:
              description: The request field that is wrong.
              type: string
            balance_cents:
              description: 'With `insufficient_balance`: your balance now.'
              type: integer
            required_cents:
              description: 'With `insufficient_balance`: what the purchase costs.'
              type: integer
          required:
          - type
          - code
          - message
          additionalProperties: false
      required:
      - error
      additionalProperties: false
    Balance:
      type: object
      properties:
        object:
          type: string
          const: balance
        livemode:
          type: boolean
          description: 'False for test keys: nothing was charged or retired.'
        available_cents:
          type: integer
          description: What purchases can spend now. Test keys see a simulated balance.
        currency:
          type: string
          const: usd
        rate_millicents_per_kg:
          type: integer
          description: 'Your rate in thousandths of a cent per kg: 4000 is $0.04/kg ($40 per tonne).'
          example: 4000
      required:
      - object
      - livemode
      - available_cents
      - currency
      - rate_millicents_per_kg
      additionalProperties: false
    Impact:
      type: object
      properties:
        object:
          type: string
          const: impact
        livemode:
          type: boolean
          description: 'False for test keys: nothing was charged or retired.'
        placed_kg:
          type: integer
          description: kg of CO₂ offset through the API, retired.
        processing_kg:
          type: integer
          description: kg paid for and not yet placed.
        offsets:
          type: integer
          description: Purchases, not refunded.
      required:
      - object
      - livemode
      - placed_kg
      - processing_kg
      - offsets
      additionalProperties: false
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'An API key from the developer page: `tc_live_…` for real purchases, `tc_test_…` for tests. Keep it on your server.'