Get started →
API reference

Carrier accounts

Manage the customer accounts on your carrier — create them, set defaults, suspend or restore, and read their metadata.

Account resource

Accountjson
{
  "data": {
    "id": "AC…",
    "type": "account",
    "attributes": {
      "name": "Clover Logistics",
      "status": "active",
      "default_tts_voice": "alice",
      "metadata": { "onboarded": true },
      "created_at": "…"
    }
  }
}

Create an account

POST/carrier/v1/accounts
ParameterTypeDescription
data.type requiredstringaccount
data.attributes.name requiredstringAccount name.
data.attributes.default_tts_voice optionalstringDefault TTS voice.
data.attributes.metadata optionalobjectArbitrary key/value metadata.

Example

curlbash
curl -X POST "https://voice.ruut.chat/carrier/v1/accounts" \
  -H "Authorization: Bearer $CARRIER_API_KEY" -H "Content-Type: application/json" \
  -d '{
    "data": {
      "type": "account",
      "attributes": { "name": "Clover Logistics", "metadata": { "onboarded": true } }
    }
  }'

List accounts

GET/carrier/v1/accounts

Return all accounts on the carrier.

Fetch an account

GET/carrier/v1/accounts/{id}

Return a single account.

Update an account

PATCH/carrier/v1/accounts/{id}
ParameterTypeDescription
data.type requiredstringaccount
data.id requiredstringThe account ID.
data.attributes.name optionalstringAccount name.
data.attributes.status optionalstringactive or suspended.
data.attributes.default_tts_voice optionalstringDefault TTS voice.
data.attributes.metadata optionalobjectArbitrary key/value metadata.

Delete an account

DELETE/carrier/v1/accounts/{id}

Permanently delete the account and its resources. This cannot be undone.

Response — 200 OK (JSON:API).

Deleting an account removes its numbers, credentials, and call history. Consider suspending instead to preserve records.