Endpoint shape, keys, budgets and the request log.
How it works
The endpoint
Meterwell serves an HTTPS API from the agents. subdomain of this site. Chat requests use the common chat completions format, so most SDKs work after you change two settings: the base URL and the API key.
curl -s -X POST "https://agents.<this site's domain>/v1/chat/completions" \
-H "Authorization: Bearer mw_test_..." \
-H "Content-Type: application/json" \
-d '{"model": "provider-a/fast-small", "messages": [{"role": "user", "content": "Summarise this ticket in one line."}]}'
model and messages are required. The part of model before the slash names the provider connection you set up in the dashboard; the rest is the provider's own model name.
Keys
Meterwell keys start with mw_live_, or mw_test_ on test workspaces. Each key belongs to a project, so every request is attributed without extra headers. Your provider keys are stored encrypted and never leave the gateway.
Budgets
A budget has a name, a limit in euro and a period (monthly or weekly), and applies to a project or a single key. You can create one in the dashboard or through the API:
POST /v1/budgets
{"name": "support-bot", "limit_eur": 500, "period": "monthly"}
Cost is estimated from each provider's published token prices at the time of the request.
Spend and logs
GET /v1/spend?period=2026-11 returns spend by project and model for a month. The full request log, with tokens, latency and cost per call, is in the dashboard and can be exported as CSV.
Other endpoints
GET /v1/models: the models available through your provider connections.- OpenAPI spec with every endpoint and field.