page1
POST /1.1/users
U
S
E
R
R
E
S
T
A
P
I
{
"firstname" : "John",
"lastname" : "Doe",
"userfield" : " "
}
{
"id" : 944, "firstname" : "John",
"lastname" : "Doe", "timezone" : "en_US",
"caller_id" : "\"John Doe\"",
"outgoing_caller_id" : "default"
}
Create user
POST /1.1/lines_sip
{
"context" : "default",
"device_slot" : "1",
}
{
"id" : 104, "context" : "default",
"username" : "abcdef",
"secret" : "secret_password",
"provisioning_extension" : "123456"
}
Create line
Example request
Example response
Example request
Example response
POST /1.1/extensions
{
"exten" : "1234",
"context" : "default",
"commented" : "false"
}
{
"id" : 123
}
Create extension
Example request
Example response
{
"extension_id" : 123
}
Associate an extension to a line
Example request
{
"line_id" : 104
}
Associate a line to a user
Example request
{
"user_id" : 944, "line_id" : 104,
"main_user" : true, "main_line" : true
}
Example response
POST /1.1/lines/104/extensions
POST /1.1/users/944/lines