Users
Create User
Creates a new user and returns the created record.
When to use. Add a user to your account. If a user with the same username already exists, that existing user is returned and no new user is created.
Required fields. username, email and sip_option.
Notes. If you omit password, a temporary password is generated for the user. When sip_option is set to Custom URI, sip_uri is required. You can also assign roles and desks by passing their IDs. See the request schema for the full list of accepted fields.
Returns. 201 Created with { "users": [ { ... } ] }.
Example.
{
"username": "demo",
"email": "test@example.com",
"sip_option": 0
}
post/{sub_domain}/api/users
Request
- Base URLhttps://api.commpeak.com/dialer
- URLhttps://api.commpeak.com/dialer/{sub_domain}/api/users
- AuthAPI key in header Authorization
Path parameters
sub_domainstring required
Dialer Name (subdomain)
Request body
Response
Successful Response
Example response
{
"users": [
{
"email": "test@example.com",
"first_name": "John",
"id": 2,
"last_name": "Doe",
"username": "demo",
"virtual_extension": 1001
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.