canonical: https://jentic.com/apis/carbonmark.com/carbonmark

# Carbonmark x402 Carbon Retirement API

The x402 Carbon Retirement API lets a client find tokenized carbon credits on Base, price a retirement, and retire credits through Klima Protocol and the Carbonmark marketplace, then resolve the public Carbonmark certificate. Discovery returns pooled protocol supply as carbonClasses and fixed seller asks as marketplaceListings, each with USDC-per-tonne prices, liquidity, and project metadata, filterable by vintage, country, methodology, and price ceiling. A retirement can be sent from the caller's own wallet as an approve-then-retire call batch, or funded by a signed USDC or kVCM authorization that the service relays non-custodially. Discovery, quotes, and certificates are free; retiring costs the credit price plus a fee, and the top-supply snapshot is a paid x402 call.

## For AI agents

Find retirable carbon credits on Base with live USDC prices, quote a retirement, retire credits from a wallet or a signed x402 authorization, and fetch the Carbonmark certificate.

## Scope

Does not handle emissions calculation, fiat payments, wallet custody, or registry issuance of new credits. Use for discovering, quoting, retiring, and certifying tokenized carbon credits on Base only.

## Capabilities

- Browse retirable carbon supply on Base, filtered by vintage, country, methodology, project, or maxUsdcPricePerTonne
- Quote the price, fee, and total for retiring a given amount of tonnes from one carbonClass, listingId, or credit
- Build an unsigned approve-then-retire call batch for a caller's own wallet to submit
- Generate EIP-712 typed data for a signed USDC or kVCM authorization and relay the retirement non-custodially
- Resolve the public Carbonmark certificate for a confirmed retirement transaction by txHash
- Read the machine-readable error-code registry with retryability and remedies for each error

## Use cases

### AI agent offsetting a measured footprint

An AI agent that has calculated an emissions figure can act on it by retiring matching credits. Through Jentic the agent searches for 'retire carbon credits', reads supply from GET `/api/discover`, prices the chosen class with GET `/api/quote`, and then either builds a wallet batch or prepares a signed authorization for the user to approve. The retirement settles on Base and the agent returns the Carbonmark certificate link.

Example prompt: Call GET `/api/discover` with vintage 2020 and maxUsdcPricePerTonne '20', quote 2 tonnes of the cheapest carbonClass with GET `/api/quote` on chainId 8453 with the USDC inputToken, and present the total for approval

### Wallet-submitted retirement

Teams that already operate a wallet on Base can keep custody and submit the transaction themselves. GET `/api/prepare/retire` returns an ordered approve and retire batch of unsigned calls plus the authoritative quote, built for a given chainId, inputToken, and amount. The call only builds the batch; nothing is broadcast until the wallet sends it.

Example prompt: Call GET `/api/prepare/retire` with chainId 8453, the USDC inputToken address, amount '1', and a carbonClass, then hand the returned unsigned batch to the user's wallet for signing

### Relayed retirement from a signed authorization

When the payer should not send a transaction, GET `/api/prepare-auth` returns EIP-712 typedData and a ready-to-send actionsRetireRequest. After the payer signs the typed data, POST `/api/actions/retire` relays it, settles the retirement, and returns the certificate in one call. The request requires chainId, inputToken, amount, and from, and either a beneficiary address in details or beneficiaryIsPayer set to true.

Example prompt: Call GET `/api/prepare-auth` with chainId 8453, inputToken, amount '0.5', from set to the payer address, and beneficiaryIsPayer true, have the payer sign typedData, then POST the actionsRetireRequest to `/api/actions/retire`

### Proof of retirement for sustainability reporting

Sustainability reports need verifiable proof that credits were retired. GET `/api/certificate` takes a txHash and returns one entry per retirement in that transaction, each with its public certificateUrl. The spec notes that a 404 immediately after confirmation means the subgraph has not indexed it yet, so a reporting job should retry.

Example prompt: Call GET `/api/certificate` with the retirement txHash, retry on 404 until indexed, and attach each certificateUrl to the quarterly report

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/api/discover` | List retirable carbon credits with live prices |
| GET | `/api/quote` | Price a retirement |
| GET | `/api/prepare/retire` | Build a wallet-submitted retirement batch |
| GET | `/api/prepare-auth` | Build the authorization to sign |
| POST | `/api/actions/retire` | Retire credits with a signed x402 authorization |
| GET | `/api/certificate` | Resolve the Carbonmark certificate |

## Key resources

- **Supply** — Carbon classes and marketplace listings with USDC prices, liquidity, and project metadata
- **Quotes** — Price, fee, total, and suggested maximum input for a retirement amount
- **Retirements** — Wallet call batches, signed authorizations, and relayed retirement execution
- **Certificates** — Public Carbonmark certificate entries for a retirement transaction
- **Service metadata** — Action index, catalog snapshot, changelog, health, and error-code registry

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 54 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 83 / 100
  - Developer Experience & Jentic Compatibility: 65 / 100
  - AI-Readiness & Agent Experience: 28 / 100
  - Agent Usability: 94 / 100
  - Security: 100 / 100
  - AI Discoverability: 52 / 100
- **View full report:** https://jentic.com/apis/carbonmark.com/carbonmark/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring this API by hand means sequencing discover, quote, and prepare calls, then handling an x402 402 challenge and an EIP-712 signature round-trip before POST `/api/actions/retire` settles. Through Jentic you install once, import it from the API Directory, and your agent calls each step with its input schema in hand.
- **Permission scoping:** The API carries the carbon class, listing, and amount in query parameters or the request body, so rules bound which operations your agent may call, not which credits it touches. You choose the operations it may call, so paid ones like GET `/api/prepare-auth` and POST `/api/actions/retire` are not included unless you add them.
- **Credential handling:** This API needs no account or API key: paid actions are funded by a payer-signed authorization or a wallet transaction, and the signature happens outside the API call. For any API you add that does use a key, your own Jentic One instance keeps it encrypted and injects it at execution time so it never reaches the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'find carbon credits to retire' or 'get a carbon retirement certificate', and Jentic returns the matching operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Cloverly Carbon Offset API** — Fiat carbon offset purchasing with account-based billing instead of onchain retirement.
- **Climatiq API** — Emission factor database and footprint calculations.
- **Moralis EVM API** — Wallet balances and transaction data across EVM chains including Base.

## FAQ

### Does the x402 Carbon Retirement API require authentication?

The OpenAPI spec declares no API key or account scheme. Discovery, quotes, certificates, and the metadata routes are open, while paid actions are funded per call: GET `/api/catalog` is a $0.001 x402 payment, and a retirement is paid either by the caller's wallet sending the prepared batch or by a payer-signed USDC (EIP-3009) or kVCM (EIP-2612) authorization relayed through POST `/api/actions/retire.`

### Can I see prices before retiring credits?

Yes. GET `/api/discover` lists carbonClasses and marketplaceListings with USDC-per-tonne prices and liquidity, and GET `/api/quote` returns the retirement price, fee, total, and a suggested maximum input for a specific amount of one carbonClass, listingId, or credit. Both are free per the spec.

### What are the rate limits for the x402 Carbon Retirement API?

The OpenAPI spec does not specify rate limits. GET `/api/errors` returns every error code with its status and retryability, which is the best source for handling throttling or transient failures; see https://x402.klimalabs.com for service details.

### Is there a Carbonmark MCP server?

You don't need an MCP server to give your agent the x402 Carbon Retirement API. Jentic connects it directly from the API Directory: import it and your agent calls the discover, quote, and certificate operations on demand, with paid actions settling per call and no key to manage.

### Can I limit what my agent is allowed to do with this API?

Yes. For example, write a rule that allows only GET `/api/discover`, GET `/api/quote`, and GET `/api/certificate`, so the agent can research supply, price retirements, and fetch certificates, but cannot call GET `/api/prepare-auth` or POST `/api/actions/retire` to start a paid retirement. Every call it makes is logged.

### How do I quote a carbon retirement through Jentic?

Add the x402 Carbon Retirement API to your Jentic One instance from the directory. Your agent searches for 'quote a carbon credit retirement', loads the quote operation, and calls GET `/api/quote` with chainId 8453, an inputToken address, an amount in tonnes, and one of carbonClass, listingId, or credit. To run it on your own infrastructure, install Jentic One from its GitHub repo.
