Developers — API & MCP
Programmatic access to the True Credit Calculator. Computation runs on our servers — integrations receive results, never the engine. Keys are issued manually: request access and mention API use, or write to calc@skyharvest.com.
Authentication
Every request needs an API key (sk_tcc_…), sent as a bearer token or x-api-key header. Default limit: 120 requests per minute per key.
curl -H "Authorization: Bearer sk_tcc_YOUR_KEY" \ "https://calc.truecredits.com/api/v1/calculate?v=1&d=40&s=0&g=CO2&r=3&h=INFINITE"
GET /api/v1/calculate
The core calculation. Parameters are identical to the calculator's share-URLs — a URL copied from the app is a valid API call.
| Param | Meaning | Values / default |
|---|---|---|
v | Volume, tonnes of gas | 0–1,000,000 · 1 |
d | Storage duration, years | 0–1,000,000 · 0 |
s | Delay before storage, years | 0–200 · 0 |
g | Gas | CO2 · CH4_NON_FOSSIL · CH4_FOSSIL · CH4_METHANE_ONLY · N2O · HFC134A · HFC23 · CF4 · SF6 · NF3 |
r | Time-value of carbon, %/yr | 0–20 · 0 |
h | Credit definition | GWP20 … GWP1000 · INFINITE |
th | Time horizon modelled | same values; omit to match h |
m | CO₂ decay curve | JOOS_2012 (default) · FEARNSIDE_2000 |
b | Accounting basis | t = temperature (iGTP); omit = radiative forcing |
cc | AR6 climate–carbon feedback | 0 = off (source-workbook convention); omit = on |
series | Include chart trajectories | co2e · gmst · mass; omit = none |
format | Response shape | text = one bare number (for spreadsheets); omit = JSON |
field | Which number, with format=text | er (default) · credits · we · bfgas · bfco2 |
Response: results.credits (tCO₂e), results.equivalenceRatio (tonnes stored per credit), results.warmingEquivalence (tCO₂e per tonne — the derived GWP at 0%), plus benefit fractions and echoed inputs. POST with a JSON object of the same parameter names is also accepted.
GET /api/v1/gwp
Derived warming equivalence for a gas at any horizon, discount rate, basis and feedback setting. Calibrated so GWP-100 reproduces AR6 exactly.
curl -H "x-api-key: sk_tcc_YOUR_KEY" \ "https://calc.truecredits.com/api/v1/gwp?g=CH4_NON_FOSSIL&h=GWP20&r=0"
GET /api/v1/matrix
The Temporal Weighting Matrix as data — the value of one issued credit under each temporal treatment. Add ?duration=<years> for a custom storage duration.
Excel add-in
Native TRUECREDIT.* worksheet functions on Windows, Mac and Excel on the web. Needs an API key; computation stays on our servers.
=TRUECREDIT.ER(duration, rate_pct, [horizon], [gas], [delay], [basis], [ccf])
=TRUECREDIT.CREDITS(volume, duration, rate_pct, [horizon], [gas], ...)
=TRUECREDIT.WE(gas, [horizon], [rate_pct], [basis], [ccf])
=TRUECREDIT.ER(50, 3) → 1.2872
=TRUECREDIT.WE("CH4_FOSSIL", "GWP100") → 29.8Install: download the manifest. In Excel on the web: Insert → Add-ins → Upload My Add-in. On desktop, ask your Microsoft 365 admin to upload it under Integrated apps (central deployment), or write to calc@skyharvest.com and we'll help. Then set your API key once via Home → True Credit Setup. Omitted arguments use the web calculator's defaults; identical calls are cached, so large sheets stay within the rate limit.
MCP connector
AI assistants can use the calculator conversationally over the Model Context Protocol (streamable HTTP). Endpoint:
https://calc.truecredits.com/api/mcp
Authenticate with the same API key — as a header, or append ?key=sk_tcc_YOUR_KEY for clients without custom headers. Tools: calculate_credits, compare_scenarios, gwp_lookup, temporal_matrix. In Claude: Settings → Connectors → Add custom connector → paste the URL (with ?key=…).
Conventions & versioning
- Lashof construction over full atmospheric lifetimes; Joos et al. 2012 CO₂ response; AR6 constants; effective radiative efficiencies calibrated so GWP-100 reproduces AR6 exactly. See the methodology (login required).
- The AR6 climate–carbon feedback is ON by default (
cc=0opts out, reproducing the source workbook bit-for-bit). /v1parameter names and output fields are stable; any change of convention arrives as a new version, never silently.
