Get runs' costs
Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.
GET
Read what each listed run (id, repeated) charged: credits charged, work value, API value and share. A run that is not yours is simply absent. Requires the coding:runs:read scope.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
id*array<>Items
items <= 200customer_id?|nullRequest fulfilled, document follows
application/json- response
costs*curl -X GET 'https://api.syndai.ai/api/v1/external/coding/runs/costs?id=497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "costs": { "property1": { "api_value_usd": 0, "charged_usd": 0, "subscription_share": { "account_label": "string", "final": true, "overage": true, "pct": 0, "provider": "string", "window": "string" }, "work_usd": 0 }, "property2": { "api_value_usd": 0, "charged_usd": 0, "subscription_share": { "account_label": "string", "final": true, "overage": true, "pct": 0, "provider": "string", "window": "string" }, "work_usd": 0 } }}