Docs/API Reference

API Reference

v1.0

Access models, channels, and budget optimization from your own code. Everything returns JSON. All requests need a Bearer token.

Base URLhttps://api.spendmix.io
Rate limit1,000 requests/min
FormatJSON

Include this header with every request

Authorization: Bearer eyJhbGciOiJSUzI1NiIs...

Authentication

Every request needs a Bearer token in the Authorization header. You can generate API keys in Settings > API Keys.

POST/api/v1/auth/token

Swap your API key for a short-lived access token.

Request Body
{
  "api_key": "sk_live_abc123...",
  "grant_type": "api_key"
}
Response
{
  "access_token": "eyJhbGciOiJSUzI1NiIs...",
  "token_type": "Bearer",
  "expires_in": 3600
}

Want to start building?

API access comes with the Pro plan and up. You can create your first API key right from the dashboard.