Docs
Open dashboard

Get batch concurrency

GET/concurrency

Returns how many calls batch campaigns are running right now and how many more can start, per voice provider and per active campaign. Use it to see why a campaign is dialling slowly or to decide a new campaign's batch_concurrency. Never paywalled.

Requires Authorization: Bearer <api_key>. Create a key in the Inspra dashboard under Workspace Settings → API Keys.

Response 200 OK

Concurrency for the workspace the API key belongs to.

  • total_active_callsintegeroptional
  • providersobject[]optional
    4 fields
    • providerstringoptional
      vapiretellinspra
    • max_concurrent_callsintegernullableoptional
      Cap shared by every campaign on this provider in the workspace. Null for inspra, which paces each batch at the campaign's own batch_concurrency.
    • active_callsintegeroptional
    • available_slotsintegernullableoptional
      Never negative. Null when there is no cap.
  • campaignsobject[]optional
    Active calling campaigns, newest first, up to 100.
    6 fields
    • idstringuuidoptional
    • namestringoptional
    • providerstringnullableoptional
    • batch_concurrencyintegeroptional
      The campaign's own cap.
    • active_callsintegeroptional
    • available_slotsintegernullableoptional
      min(campaign free

Errors

  • 401Unauthorized
    Missing, malformed, or invalid API key.
  • 403Forbidden
    Workspace unavailable, suspended, or paywalled.
  • 429Too Many Requests
    Workspace request limit exceeded; shared across all its API keys.