Skip to content
TriedDocs
Account

Get calling policy

Read whether outbound and international calling are turned on for your account.

GEThttps://api.tried.com.au/get-calling-policy

Returns whether your account can place outbound calls and whether it can call numbers outside Australia. Both are off for new accounts. Only Tried can change them: to ask, email sales@tried.com.au. See Australian numbers.

Request#

This endpoint takes no path, query or body parameters.

Example request#

curl https://api.tried.com.au/get-calling-policy \
  -H "Authorization: Bearer $TRIED_API_KEY"
const res = await fetch("https://api.tried.com.au/get-calling-policy", {
  headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
const policy = await res.json();
import os, requests

res = requests.get(
    "https://api.tried.com.au/get-calling-policy",
    headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)
policy = res.json()

Response#

200 OK

{
  "outbound_calls_enabled": false,
  "international_calls_enabled": false,
  "contact_email": "sales@tried.com.au"
}
Field Type Description
outbound_calls_enabled boolean true when the account can place outbound calls and batch calls. When false, those requests return 403.
international_calls_enabled boolean true when outbound calls, batch tasks and transfers can go to numbers outside Australia.
contact_email string Where to ask for either to be turned on.

Errors#

Status When
401 Missing or invalid API key.
403 The key's IP allowlist or scopes reject the request. This route needs the admin scope.
429 Rate limit exceeded. See Rate limits.

See Errors for the body format.