POST
/
v1
/
quotes
curl --request POST \
  --url https://carbon-engine.onrender.com/v1/quotes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "portfolioId": "<string>",
  "amount_kg": 123
}'
{
  "amount_kg": 123,
  "price_sar_halalas": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
amount_kg
number
required

The amount in kg of CO2 emissions. Must be a positive integer.

portfolioId
string

The portfolio ID

Response

200
application/json
Fetched quote successfully
amount_kg
number

Amount of carbon credits the quote is for, in kilograms

price_sar_halalas
number

Price charged for the credits, in halalas (integer)