Spendline API
API by Spendline · rest
Spendline is a financial control layer for production AI spend. It routes supported AI requests, records attributed costs and applies configured controls, and covers only traffic actually routed through it. Your application supplies the customer, agent, workflow and team labels; configured budgets and policies are checked before a supported request is forwarded. Mechanism. Request-path proxy. Applications change their provider base URL to Spendline and keep their own provider API keys. Attribution travels as HTTP headers. Differentiator. Financial control, not engineering observability. Strict budgets refuse a supported request whose estimated cost would exceed a limit (HTTP 402) before it reaches the provider; actual response cost can differ from the estimate. Costs are kept in an append-only ledger with an owner-run month close. Base URL rules (the most common integration mistake) - OpenAI SDK and every OpenAI-compatible client: https://www.spendline.ai/v1:…
Endpoint: https://www.spendline.ai/
Verification: observed. Source: crawl.
Capabilities (25)
- Providers request shapes attribution headers and the response contract
- Intent → capability map plus when to choose a different tool
- Poll for approval and collect the scoped key exactly once
- Start agent-initiated human-authorized provisioning
- List hierarchical budgets
- Create a hierarchical budget (owner or admin only)
- List budget override requests
- Request an override for a blocked call
- Agents customers and teams with traffic this month
- Every budget scope with current spend against its limit
- List recorded calls use this to prove attribution is correct
- Current plan and the human's decision
- Propose how AI spend should be attributed for the human to confirm in the…
- Report install progress so the Connect page can narrate it
- Ranked cheaper-model suggestions from real recorded traffic
- List policies
- Create a policy (owner or admin only)
- Calls a policy has blocked
- List reroute rules
- Create a reroute rule (owner or admin only)
- Realized savings from reroute rules
- Spend summary for the last 30 days
- OpenAI-compatible chat completions governed and recorded
- Anthropic messages governed and recorded
- OpenAI Responses API governed and recorded (non-streaming only)