Skip to main content

Accounts API

The Accounts API allows you to manage and interact with Audian accounts. Accounts represent the top-level organization entity in the Audian platform and contain users, devices, and communication services.

Base URL​

https://api.audian.com:8443/v2/accounts/{ACCOUNT_ID}

Authentication​

All requests require the X-Auth-Token header:

curl -X GET "https://api.audian.com:8443/v2/accounts/{ACCOUNT_ID}" \
-H "X-Auth-Token: {AUTH_TOKEN}" \
-H "Accept: application/json"

Get Account​

Retrieve your account details:

curl -X GET "https://api.audian.com:8443/v2/accounts/{ACCOUNT_ID}" \
-H "X-Auth-Token: {AUTH_TOKEN}" \
-H "Accept: application/json"

Response​

{
"auth_token": "eyJhbGciOiJSUzI1...",
"data": {
"id": "account_abc123",
"name": "Acme Corporation",
"realm": "acme.sip.audian.com",
"timezone": "America/New_York",
"enabled": true,
"created": "2024-01-15T10:30:00Z"
},
"request_id": "req_xyz789",
"status": "success"
}

Update Account​

curl -X POST "https://api.audian.com:8443/v2/accounts/{ACCOUNT_ID}" \
-H "X-Auth-Token: {AUTH_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"data": {
"name": "Acme Corporation Inc",
"timezone": "America/Los_Angeles"
}
}'

Create Sub-Account​

curl -X PUT "https://api.audian.com:8443/v2/accounts/{ACCOUNT_ID}/accounts" \
-H "X-Auth-Token: {AUTH_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"data": {
"name": "West Coast Office",
"timezone": "America/Los_Angeles"
}
}'

List Sub-Accounts​

curl -X GET "https://api.audian.com:8443/v2/accounts/{ACCOUNT_ID}/accounts?paginate=false" \
-H "X-Auth-Token: {AUTH_TOKEN}" \
-H "Accept: application/json"

Account Fields​

FieldTypeDescription
idstringUnique account identifier
namestringAccount/organization name
realmstringSIP realm for this account
timezonestringDefault timezone
enabledbooleanWhether account is enabled
createdstringCreation timestamp
languagestringDefault language
caller_idobjectDefault caller ID settings

Account Status​

StatusDescription
enabled: trueAccount is active and operational
enabled: falseAccount is disabled

Account Hierarchy​

Audian supports hierarchical account structures:

Parent Account
├── Sub-Account A
│ └── Sub-Account A1
└── Sub-Account B

List Descendants​

curl -X GET "https://api.audian.com:8443/v2/accounts/{ACCOUNT_ID}/descendants" \
-H "X-Auth-Token: {AUTH_TOKEN}" \
-H "Accept: application/json"

Get Parent Account​

curl -X GET "https://api.audian.com:8443/v2/accounts/{ACCOUNT_ID}/parent" \
-H "X-Auth-Token: {AUTH_TOKEN}" \
-H "Accept: application/json"

Topics​