API Reference
v1.0Access models, channels, and budget optimization from your own code. Everything returns JSON. All requests need a Bearer token.
Base URL
https://api.spendmix.ioRate limit
1,000 requests/minFormat
JSONInclude 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/tokenSwap 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.