cURL
curl --request POST \ --url https://carbon-engine.onrender.com/v1/quotes/flight \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "distance_km": 123, "portfolio_id": "<string>" } '
{ "amount_kg": 123, "price_sar_halalas": 123 }
Get a price quote for offsetting flight carbon emissions. Will return the amount of CO2e to offset and total price.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Distance of flight, in km
Optional ID of the portfolio to use for the quote. The quote will be for an order fulfilled from this portfolio. If not specified, the account's default portfolio will be used.
Fetched flight emissions quote successfully
Amount of carbon credits the quote is for, in kilograms
Price charged for the credits, in halalas (integer)