1 minute readAPIAgent-ready
Handle API access errors and select pricing functions explicitly
API responses distinguish missing credentials from an unsupported credential type and reject ambiguous function fields.
Use the response code and hint to correct a refused request.
- Missing credentials return an authentication error. A valid credential sent to a route that requires a different sign-in method can return
wrong_auth_modality. - On
POST /api/compute/price, select a function withfunction_id. The price-router endpoint also acceptsfunction_name; an unreadfunctionfield is rejected. - Price verification accepts
priceas an alias whenproposed_priceis absent. - Fetch the specification as JSON from
/api/openapi.json;/openapi.jsonand/openapi.yamlredirect to the published specification.
Request options.include_explanation: true when you need an explanation from the authenticated compute endpoint.