Skip to main content
POST
/
api
/
v1
/
organizations
/
telephony-configs
Create Telephony Configuration
curl --request POST \
  --url https://app.dograh.com/api/v1/organizations/telephony-configs \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "config": {
    "ari_endpoint": "<string>",
    "app_name": "<string>",
    "app_password": "<string>",
    "provider": "ari",
    "ws_client_name": "",
    "from_numbers": [
      "<string>"
    ]
  },
  "is_default_outbound": false
}
'
{
  "id": 123,
  "name": "<string>",
  "provider": "<string>",
  "is_default_outbound": true,
  "credentials": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.dograh.com/llms.txt

Use this file to discover all available pages before exploring further.

Call List Supported Providers first to discover the credential fields for the provider you want to configure โ€” they vary per provider. Configuration name must be unique within your organization. Set is_default_outbound: true to mark this configuration as the org-wide default for outbound calls (any existing default is unset). New configurations have no phone numbers; add them via Add a phone number.

Headers

authorization
string | null
X-API-Key
string | null

Body

application/json

Body for POST /telephony-configs.

config carries the provider-specific credential fields (the same discriminated union used by the legacy single-config endpoint). Any from_numbers on the inner config are ignored โ€” phone numbers are managed via the dedicated phone-numbers endpoints.

name
string
required
Required string length: 1 - 64
config
ARIConfigurationRequest ยท object
required

Request schema for Asterisk ARI configuration.

is_default_outbound
boolean
default:false

Response

Successful Response

Body of GET /telephony-configs/{id} โ€” credentials are masked.

id
integer
required
name
string
required
provider
string
required
is_default_outbound
boolean
required
credentials
Credentials ยท object
required
created_at
string<date-time>
required
updated_at
string<date-time>
required