API referencePlan

Get the plan

GET
/plan

Returns the company's plan, its limits, what it includes, and the usage counted against the limits: minutes this UTC month for the whole company, custom moments, webhook endpoints and API keys for the key's organization. Any key of the organization can read it.

Authorization

apiKey
X-API-Key<token>

API key (prefix spk_test_ or spk_live_) or personal access token (prefix pat_)

In: header

Response Body

application/json

application/json

curl -X GET "https://example.com/plan"
{  "bonuses": [    {      "ends_at": "2019-08-24T14:15:22Z",      "live_minutes": 0,      "name": "Launch week",      "source": "campaign"    }  ],  "capabilities": {    "custom_data_terms": true,    "dedicated_throughput": true,    "metered_overage": true,    "private_deployment": true,    "shadow_mode": true,    "sla": true  },  "limits": {    "api_keys": 0,    "audio_session_minutes": 0,    "concurrent_conversations": 0,    "custom_moments": 0,    "import_turns": 0,    "included_live_minutes": 0,    "live_minutes": 0,    "members": 0,    "organizations": 0,    "requests_per_minute": 0,    "retention_days": 0,    "sse_connections": 0,    "test_minutes": 0,    "test_transcription_minutes": 0,    "transcription_minutes": 0,    "webhook_endpoints": 0  },  "plan": {    "id": "free",    "name": "Free",    "version": 0  },  "upgrade_requested": true,  "usage": {    "api_keys": 0,    "concurrent_conversations": 0,    "custom_moments": 0,    "live_minutes": 0,    "members": 0,    "organizations": 0,    "overage_minutes": 0,    "period_end": "2019-08-24T14:15:22Z",    "period_start": "2019-08-24T14:15:22Z",    "test_minutes": 0,    "test_transcription_minutes": 0,    "transcription_minutes": 0,    "webhook_endpoints": 0  }}