Thrust Carbon

Segment: Get

GET
/projects/{projectId}/segments/{segmentId}

Gets a list of all segments belonging to a project.

Want access to emissions data without a Thrust Calculator subscription? You should use our emissions API instead, which is a cheaper, non-persistent way to access emissions.

AuthorizationBearer <token>

Your API Key must be provided as a bearer token. To do this, create an 'Authorization' header with a value of 'Bearer {your-api-key}' (e.g. "Authorization: Bearer xcvboy23idvh").

In: header

Path Parameters

projectId*string
Formatuuid
segmentId*string
Formatuuid

Header Parameters

Accept*"application/json"

Value in

  • "application/json"

Response Body

application/json

curl -X GET "https://example.com/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/segments/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Accept: application/json"
{  "id": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "tonnes_of_emissions": 0,  "type": "air",  "grouping": {    "{grouping-type-slug}": [      "string"    ]  },  "emitted_at": "2021-01-09",  "traveller_ref": "string",  "metadata": {    "key": "string"  },  "price": 0,  "price_currency": "USD,GBP",  "origin": {    "iata": "LHR"  },  "destination": {    "iata": "JFK"  },  "passengers": 1,  "travel_class": "economy",  "carrier": "BA",  "aircraft_type": "788",  "flight_number": "BA 112"}