Skip to main content

Get Call Limits

Read your organisation's call limits. These limits are a pool. All your SF Trunks and SFVoPI apps share them.

Org-limits release

Organisation call limits ship with the org-limits release.

Authentication Required

Requires an API key in the X-API-Key header, or the session of the account owner or a manager. See Authentication.

How the limits work​

Your organisation has three limits:

LimitWhat it controls
Concurrent callsHow many calls can be in progress at the same time, across all your trunks and apps
CPSHow many new calls per second you can start, across all your trunks and apps
Peak CPSThe most new calls you can start in one burst, across all your trunks and apps

Superfone sets these limits for your account. You cannot change them yourself. To raise a limit, email hello@superfone.in.

Inbound and outbound calls count against the same limits.

Each trunk and each app can also have its own lower limits. By default it has none, and only the organisation pool applies. A trunk's or app's own limit can never be higher than the organisation's. To set them, see Update a trunk and Update App.

A call must fit within its own trunk's or app's limits, and within the organisation's. If it does not, we refuse it straight away. We never queue it.

HTTP Request​

GET /call-limits

Base URL: https://prod-api.superfone.co.in/superfone

Code Examples​

curl https://prod-api.superfone.co.in/superfone/call-limits \
-H "X-API-Key: your_api_key_here"

Success Response​

Status Code: 200 OK

{
"data": {
"concurrent_limit": 30,
"cps_limit": 10,
"cps_burst": 20
},
"message": "success"
}

Response Fields​

FieldTypeDescription
concurrent_limitnumberCalls in progress at once, across your organisation
cps_limitnumberNew calls per second, across your organisation
cps_burstnumberPeak CPS: the most new calls you can start in one burst. At least cps_limit

Error Responses​

Status CodeMessageWhen It Occurs
401UnAuthorized, Please Provide Valid API KeyThe API key is not valid
401UnAuthorized, Please LoginNo valid key and no valid session
403Only owners and managers can perform this actionYou are signed in with a session, but not as the owner or a manager of the account

When a call is over a limit​

ProductOutboundInbound
SFVoPIInitiate Call returns 429. See Call LimitsSIP 503 before answer. Your answer_url is not called
SF TrunkYour PBX gets SIP 503The call is not delivered to your server

See Limits and billing for SF Trunk.