Skip to content

End-users

End-users are the identities behind softphones; each gets its own extension. Mint a phone token for one to let it place or receive calls.

GET /users/

Returns array<EndUser>.

POST /users/create

Field Type Required Default Description
email string Required - Unique per account.
display_name string Optional "" Shown on the softphone.

Returns an EndUser. Errors: 409 duplicate email.

Terminal window
curl https://api.sautipbx.com/api/users/create \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{ "email": "agent1@yourapp.com", "display_name": "Agent One" }'
# → 201 Created
# { "uuid": "...", "extension_number": "2001", … }

POST /users/update

Field Type Required Description
uuid string Required The end-user.
display_name string, nullable Optional New name.
is_active boolean, nullable Optional Enable or disable.

Returns an EndUser.

POST /users/delete

Body { uuid: string }. Returns { message: string }.