cURL
curl --request POST \ --url https://carbon-engine.onrender.com/v1/quotes \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "amount_kg": 123, "portfolioId": "<string>" } '
{ "amount_kg": 123, "price_sar_halalas": 123 }
Get a price quote for offsetting the given amount of carbon emissions.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The amount in kg of CO2 emissions. Must be a positive integer.
The portfolio ID
Fetched quote successfully
Amount of carbon credits the quote is for, in kilograms
Price charged for the credits, in halalas (integer)