OpenAI Responses API, governed and recorded (non-streaming only)
Same base URL as chat-completions.
stream: true is rejected with a clear error. Non-streaming only.
OpenAI models only. Built-in tools such as web_search work and their cost is included in recorded spend.
Request
- Base URL: https://www.spendline.ai
- URL: https://www.spendline.ai/v1/responses
- Auth: API key in header x-spendline-key
Headers
The application's OWN OpenAI key, as Bearer <key>.
Stable name of the bot/agent/feature making the call, e.g. support-bot. One per agent. Not per request. Required when attribution enforcement is enabled.
The end customer this request is billable to. PER REQUEST. A hardcoded value makes per-customer cost attribution useless, thread it from request context. Required when attribution enforcement is enabled.
JSON object that must include a cost-centre key: one of cost_center, costCenter, department, or team. Example: {"team":"support","env":"prod"} Per call site or per request. Required when attribution enforcement is enabled.
Groups a multi-step run.
Labels a step within a workflow.
The application route that triggered the call.
Request body
Response
OpenAI Responses payload, passed through unchanged.
Changes
No recorded changes to this operation across all 1 revision of this API.