Numbers and Users
Area codes, customer numbers, users, settings, and activities
After a customer exists, use these endpoints to configure telephony and users.
adminUser.numberE164 on POST /customers is optional. If you omitted it at signup, add numbers with POST /customers/{customerID}/numbers below.
Typical sequence
- Discover area codes (optional)
- Add numbers to the customer
- Create users
- Configure per-user settings
- Read call activities
Area codes
GET /v2/numbers/area-codes
Authorization: Bearer <token>Returns available geographic area codes with region labels — useful when choosing a new number.
Customer numbers
List
GET /v2/customers/{customerID}/numbers?limit=10&offset=0Add
numberE164 must be in E.164 format without a leading + (for example 441234567890 for a UK number).
POST /v2/customers/{customerID}/numbers
Content-Type: application/json
{
"numberE164": "441234567890"
}Number records include status, type, allocation to a user, and porting fields — see API Reference → Customer Numbers.
Remove
- Delete a single number:
DELETE /customers/{customerID}/numbers/{numberID} - Bulk delete:
DELETE /customers/{customerID}/numberswith a body listing number IDs
Refer to Reference for exact request bodies.
Customer users
List and create
GET /v2/customers/{customerID}/users
POST /v2/customers/{customerID}/usersBulk user creation is available — see API Reference for the bulk endpoint and payload.
Single user
GET /v2/customers/{customerID}/users/USERID
PATCH /v2/customers/{customerID}/users/USERID
DELETE /v2/customers/{customerID}/users/USERIDPATCH accepts name and type only. It cannot add or change a login email. Set emails for an existing Hardware Only customer when changing plan — see Plans and contracts.
User settings
Per-user call divert and other call settings:
GET /v2/customers/{customerID}/users/USERID/settings
PATCH /v2/customers/{customerID}/users/USERID/settingsnotAnswered applies when the user does not answer. busy applies when the user is busy. redirectNumber is the external destination (E.164, no leading +) and is applied only when main is redirect_external. redirectUserID is applied only when main is redirect_internal. message is stored as voicemail. There is no always-on divert: the user is rung first.
notAnswered
notAnswered| Field | Description |
|---|---|
main | keep_ringing, voicemail, message, redirect_internal, or redirect_external |
timeout | Seconds to ring before that action. Integer from 10 to 50. Required on GET. |
redirectUserID | User on this customer to divert to. Applied only when main is redirect_internal. |
redirectNumber | External number, E.164 without a leading + (for example 447700900123). Applied only when main is redirect_external. |
keep_ringing keeps ringing. voicemail sends the call to voicemail. message is stored as voicemail, and a later GET returns voicemail.
busy
busy| Field | Description |
|---|---|
main | tone, voicemail, message, redirect_internal, or redirect_external |
redirectUserID | User on this customer to divert to. Applied only when main is redirect_internal. |
redirectNumber | External number, E.164 without a leading +. Applied only when main is redirect_external. |
tone plays a busy tone. voicemail and message behave as they do for notAnswered. busy has no timeout.
Divert to a mobile
Send main: "redirect_external" and the mobile as redirectNumber. Sending redirectNumber without that main does not change the divert.
PATCH /v2/customers/{customerID}/users/USERID/settings
Content-Type: application/json
{
"notAnswered": {
"main": "redirect_external",
"timeout": 20,
"redirectNumber": "447700900123"
},
"busy": {
"main": "redirect_external",
"redirectNumber": "447700900123"
}
}To divert to another user on the same customer, set main to redirect_internal and send redirectUserID.
User devices
Manage devices registered to a user:
GET /v2/customers/{customerID}/users/USERID/devices
POST /v2/customers/{customerID}/users/USERID/devices
DELETE /v2/customers/{customerID}/users/USERID/devices/{deviceID}POST requires macAddress, label, brand, and model.
Device response fields
List and create responses return a device object with SIP provisioning details:
| Field | Description |
|---|---|
deviceID | Device identifier |
customerID | Owning customer |
userID | Owning user |
label | Custom label |
sipID | SIP username / endpoint ID |
sipPassword | SIP password |
registrationServer | SIP registration server |
macAddress | Device MAC address |
registrationStatus | Registration status (when available) |
sbcAddress | SBC hostname for provisioning (when configured for the brand) |
transport | Currently enabled transport — type, port, and media |
Example:
{
"deviceID": "550e8400-e29b-41d4-a716-446655440000",
"customerID": "660e8400-e29b-41d4-a716-446655440001",
"userID": "770e8400-e29b-41d4-a716-446655440002",
"label": "Reception desk",
"sipID": "example-sip-id",
"sipPassword": "example-password",
"registrationServer": "sip.example.com",
"macAddress": "00:11:22:33:44:55",
"registrationStatus": "registered",
"sbcAddress": "p01-s01-gb-plcl.gammaapi.net",
"transport": {
"type": "UDP",
"port": "5060",
"media": "SRTP"
}
}sbcAddress and transport are omitted when not applicable. The enabled transport reflects the device's configured transport type, defaulting to UDP when none is set.
See API Reference → Customer User Devices for the full schema.
Activities (call history)
GET /v2/customers/{customerID}/users/USERID/activities?datefrom=2025-01-01&limit=50Filter by datefrom, dateto, type, and direction — see Reference.
Webhooks
Subscribe to user_created and user_deleted for automation — Webhooks.
Updated 7 days ago
