Quote request cost
curl --request POST \
--url https://api.turos.app/v1/billing/quote \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"path": "/v1/facts",
"method": "GET",
"units": 1
}
'import requests
url = "https://api.turos.app/v1/billing/quote"
payload = {
"path": "/v1/facts",
"method": "GET",
"units": 1
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: '/v1/facts', method: 'GET', units: 1})
};
fetch('https://api.turos.app/v1/billing/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "billing_quote",
"planKey": "personal",
"meterClass": "fact_lookup",
"meterFamily": "standard_reads",
"units": 1,
"unitAmountUsd": 0,
"amountUsd": 0,
"amountCents": 0,
"currency": "usd",
"requestId": "req_example_123",
"budget": {},
"budgetGate": null
}Billing
Quote request cost
Quote a billable workflow or meter class against the current billing plan and budget gates.
POST
/
v1
/
billing
/
quote
Quote request cost
curl --request POST \
--url https://api.turos.app/v1/billing/quote \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"path": "/v1/facts",
"method": "GET",
"units": 1
}
'import requests
url = "https://api.turos.app/v1/billing/quote"
payload = {
"path": "/v1/facts",
"method": "GET",
"units": 1
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: '/v1/facts', method: 'GET', units: 1})
};
fetch('https://api.turos.app/v1/billing/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "billing_quote",
"planKey": "personal",
"meterClass": "fact_lookup",
"meterFamily": "standard_reads",
"units": 1,
"unitAmountUsd": 0,
"amountUsd": 0,
"amountCents": 0,
"currency": "usd",
"requestId": "req_example_123",
"budget": {},
"budgetGate": null
}Body
application/json
Provide meterClass or path. planKey and units are optional.
Response
Successful response