Thrust Carbon

Store and report on emissions

Create a project, add segments, and generate an impact report using the Thrust Calculator API.

Need help?

This documentation is new, so if you need any help please reach out and we will get back to you as a priority. Email hello@thrustcarbon.com or your Thrust Carbon account manager.

Obtain an API Token

  • Visit the API Credentials page and copy your API token. You can find this in Account > Organisation settings > Api Keys.
  • You will need to include your API Token in all requests in the Authentication header as a Bearer token.

Create a project

A project is what you will use to hold your carbon emissions calculations.

  • Open Project: Add instructions, and use Postman to create a new request.
    • Add your API Token from the previous step after the word Bearer on the authorization header. For example, if your token is A1B2C3, your Authorisation header's value should be Bearer A1B2C3.
    • Add application/json to the Content-Type header.
    • In the body properties, add your project name, an optional description, and enter USD for your currency. For example:
    {
      "name": "My test project",
      "currency_code": "USD"
    }
    • Press 'Send'
  • Make a note of the ID returned by your project.

Add a segment to your project

A segment is something that creates a CO₂e emission.

  • Open the Segment: Add instructions, and use Postman to create a new request.
    • Add your API Token from the first step after the word Bearer on the authorization header. For example, if your token is A1B2C3, your Authorisation header's value should be Bearer A1B2C3.
    • Add application/json to the Content-Type header.
    • In the path, add the project ID from step 2.
    • Use the default payload, or use a payload outlined in the Segment Request section of the documentation.
    • Press 'Send'
  • This will return the segment ID, as well as the tonnes of CO₂e generated by the segment.

Location fields use country_code, not country

Segment types that accept a location object (hotel, car rental, rail, and others) expect the field country_code, not country. Unknown fields are silently ignored rather than rejected, so sending country will still succeed — it just falls back to a generic factor and quietly returns a different figure.

Visit the Thrust dashboard and generate a report

In the Thrust dashboard, open up the project you have created and click on Impact Report. See Projects and reporting for what an impact report gives you.

On this page