Settings module
Endpoints for managing PBX settings such us Telephone Numbers configuration, Contacts, Ring Group, IVRs etc.
GET
/calltracking/ddis Returns collection of Call Tracking Ddi resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/calltracking/ddis HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": "value", "channels": 1925, "cli_hide": true, "cli_prefix": 3799, "created_at": "2017-01-06 18:43:36", "e164": "value", "esc_enabled": true, "fax_email": "value", "fax_enabled": true, "flag": 3, "has_fax_password": true, "info": "value", "name": "value", "rate": 3.11, "sms_email": "value", "sms_enabled": true, "status": 4, "target_id": 6132, "target_type": 4, "tel_verified": true, "uri": "value" } ], "total": 59 }
PATCH
/calltracking/ddis [BULK] Updates folder of existing Ddi resources
Parameters
JSON body attributes:
e164 string
campaign_id integer
Example Request
PATCH /v1.1/voipstudio/calltracking/ddis HTTP/1.1 Host: l7api.com [ { "e164": "abcd", "campaign_id": 439 }, { "e164": "abcd", "campaign_id": 439, "id": 1561 } ]
Responses
200 Success
400 Validation error
401 Unauthorized
403 Access denied
404 Resource not found
400 Validation error
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": "value", "channels": 5833, "cli_hide": true, "cli_prefix": 949, "created_at": "2020-08-21 05:03:04", "e164": "value", "esc_enabled": true, "fax_email": "value", "fax_enabled": true, "flag": 6, "has_fax_password": true, "info": "value", "name": "value", "rate": 5.1, "sms_email": "value", "sms_enabled": true, "status": 1, "target_id": 9584, "target_type": 1, "tel_verified": true, "uri": "value" }, "links": {} }
GET
/calltracking/campaigns Returns collection of Campaign resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/calltracking/campaigns HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": "value", "channels": 5100, "cli_hide": true, "cli_prefix": 9204, "created_at": "2020-01-26 13:15:57", "e164": "value", "esc_enabled": true, "fax_email": "value", "fax_enabled": true, "flag": 3, "has_fax_password": true, "info": "value", "name": "value", "rate": 2.11, "sms_email": "value", "sms_enabled": true, "status": 2, "target_id": 6746, "target_type": 5, "tel_verified": true, "uri": "value" } ], "total": 59 }
POST
/calltracking/campaigns Creates new Website resource
Parameters
JSON body attributes:
chat_setting_id integer
call_me_back_setting_id integer
call_tracking_setting_id integer
name string
url string
rules array
Example Request
POST /v1.1/voipstudio/calltracking/campaigns HTTP/1.1 Host: l7api.com { "chat_setting_id": 471, "call_me_back_setting_id": 949, "call_tracking_setting_id": 476, "name": "abcd", "url": "abcd", "rules": "[{Level7\\ChatBundle\\Form\\WebsiteRuleType}]" }
Responses
201 Created
400 Validation error
401 Unauthorized
400 Validation error
401 Unauthorized
Example Response
HTTP/1.1 201 OK Content-Type: application/json { "data": { "id": "value", "channels": 8531, "cli_hide": true, "cli_prefix": 1595, "created_at": "2021-10-06 01:30:24", "e164": "value", "esc_enabled": true, "fax_email": "value", "fax_enabled": true, "flag": 4, "has_fax_password": true, "info": "value", "name": "value", "rate": 2.14, "sms_email": "value", "sms_enabled": true, "status": 0, "target_id": 7937, "target_type": 1, "tel_verified": true, "uri": "value" }, "links": {} }
GET
/contacts Returns collection of Contact resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/contacts HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 6175, "company": "value", "created_at": "2021-01-13 15:06:45", "first_name": "value", "global": true, "group_name": "value", "internal": true, "last_name": "value", "rel_user_id": 8186, "type": 0, "user_id": 5651 } ], "total": 59 }
POST
/contacts Creates new Contact resource
Parameters
JSON body attributes:
group_name string
first_name string
last_name string
email string
company string
tel string
tel_1 string
tel_2 string
speed_dial_phone string
speed_dial_phone_1 string
speed_dial_phone_2 string
mobile string
mobile_1 string
mobile_2 string
speed_dial_mobile string
speed_dial_mobile_1 string
speed_dial_mobile_2 string
notes string
labels array
groups array
global boolean
user_id integer
Example Request
POST /v1.1/voipstudio/contacts HTTP/1.1 Host: l7api.com { "group_name": "abcd", "first_name": "abcd", "last_name": "abcd", "email": "email@example.com", "company": "abcd", "tel": "abcd", "tel_1": "abcd", "tel_2": "abcd", "speed_dial_phone": "abcd", "speed_dial_phone_1": "abcd", "speed_dial_phone_2": "abcd", "mobile": "abcd", "mobile_1": "abcd", "mobile_2": "abcd", "speed_dial_mobile": "abcd", "speed_dial_mobile_1": "abcd", "speed_dial_mobile_2": "abcd", "notes": "abcd", "labels": "abcd", "groups": "abcd", "global": true, "user_id": 522 }
Responses
201 Created
400 Validation error
400 Validation error
Example Response
HTTP/1.1 201 OK Content-Type: application/json { "data": { "id": 444, "company": "value", "created_at": "2018-09-16 01:26:07", "first_name": "value", "global": true, "group_name": "value", "internal": true, "last_name": "value", "rel_user_id": 7100, "type": 2, "user_id": 9982 }, "links": {} }
PATCH
/contacts [BULK] Updates folder of existing Contact resources
Parameters
JSON body attributes:
id integer
group_name string
labels array
Example Request
PATCH /v1.1/voipstudio/contacts HTTP/1.1 Host: l7api.com [ { "id": 654, "group_name": "abcd", "labels": "abcd" }, { "id": 2066, "group_name": "abcd", "labels": "abcd" } ]
Responses
200 Success
400 Validation error
401 Unauthorized
403 Access denied
404 Resource not found
400 Validation error
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 9469, "company": "value", "created_at": "2019-07-01 17:56:59", "first_name": "value", "global": true, "group_name": "value", "internal": true, "last_name": "value", "rel_user_id": 3866, "type": 0, "user_id": 162 }, "links": {} }
GET
/contacts/{id} Returns Contact resource for given Id
Parameters
Endpoint URL:
{id} integerContact identifier
Example Request
GET /v1.1/voipstudio/contacts/8 HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 6364, "company": "value", "created_at": "2016-07-21 17:47:55", "first_name": "value", "global": true, "group_name": "value", "internal": true, "last_name": "value", "rel_user_id": 8077, "type": 2, "user_id": 2482 }, "links": {} }
PATCH
/contacts/{id} Updates existing Contact resource
Parameters
Endpoint URL:
{id} integerContact identifier
JSON body attributes:
group_name string
first_name string
last_name string
email string
company string
tel string
tel_1 string
tel_2 string
speed_dial_phone string
speed_dial_phone_1 string
speed_dial_phone_2 string
mobile string
mobile_1 string
mobile_2 string
speed_dial_mobile string
speed_dial_mobile_1 string
speed_dial_mobile_2 string
notes string
labels array
groups array
global boolean
user_id integer
Example Request
PATCH /v1.1/voipstudio/contacts/62 HTTP/1.1 Host: l7api.com { "group_name": "abcd", "first_name": "abcd", "last_name": "abcd", "email": "email@example.com", "company": "abcd", "tel": "abcd", "tel_1": "abcd", "tel_2": "abcd", "speed_dial_phone": "abcd", "speed_dial_phone_1": "abcd", "speed_dial_phone_2": "abcd", "mobile": "abcd", "mobile_1": "abcd", "mobile_2": "abcd", "speed_dial_mobile": "abcd", "speed_dial_mobile_1": "abcd", "speed_dial_mobile_2": "abcd", "notes": "abcd", "labels": "abcd", "groups": "abcd", "global": true, "user_id": 330 }
Responses
200 Success
400 Validation error
404 Resource not found
400 Validation error
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 7907, "company": "value", "created_at": "2018-01-06 00:46:31", "first_name": "value", "global": true, "group_name": "value", "internal": true, "last_name": "value", "rel_user_id": 5021, "type": 1, "user_id": 8368 }, "links": {} }
DELETE
/contacts/{ids} Deletes existing Contact resources
Parameters
Endpoint URL:
{ids} comma separated list of integersContact identifiers
Example Request
DELETE /v1.1/voipstudio/contacts/12,111,420 HTTP/1.1 Host: l7api.com
Responses
204 Success
202 Accepted for further procesing.
401 Unauthorized
403 Access denied
404 Resource not found
202 Accepted for further procesing.
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 202 OK
GET
/conferences Returns collection of Conference resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/conferences HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 1266, "ann_join_leave": true, "confno": 4272, "confno_pstn": 7566, "monitor": true, "name": "value", "pin": "value", "pin_pstn": "value" } ], "total": 59 }
POST
/conferences Creates new Conference resource
Parameters
JSON body attributes:
name string
pin string
pin_pstn string
ann_join_leave boolean
monitor boolean
ddis array
Example Request
POST /v1.1/voipstudio/conferences HTTP/1.1 Host: l7api.com { "name": "abcd", "pin": "abcd", "pin_pstn": "abcd", "ann_join_leave": true, "monitor": true, "ddis": "abcd" }
Responses
201 Created
400 Validation error
401 Unauthorized
400 Validation error
401 Unauthorized
Example Response
HTTP/1.1 201 OK Content-Type: application/json { "data": { "id": 358, "ann_join_leave": true, "confno": 6768, "confno_pstn": 7652, "monitor": true, "name": "value", "pin": "value", "pin_pstn": "value" }, "links": {} }
GET
/conferences/{id} Returns Conference resource for given Id
Parameters
Endpoint URL:
{id} integerConference identifier
Example Request
GET /v1.1/voipstudio/conferences/81 HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 2417, "ann_join_leave": true, "confno": 3069, "confno_pstn": 7749, "monitor": true, "name": "value", "pin": "value", "pin_pstn": "value" }, "links": {} }
PATCH
/conferences/{id} Updates existing Conference resource
Parameters
Endpoint URL:
{id} integerConference identifier
JSON body attributes:
name string
pin string
pin_pstn string
ann_join_leave boolean
monitor boolean
ddis array
Example Request
PATCH /v1.1/voipstudio/conferences/64 HTTP/1.1 Host: l7api.com { "name": "abcd", "pin": "abcd", "pin_pstn": "abcd", "ann_join_leave": true, "monitor": true, "ddis": "abcd" }
Responses
200 Success
400 Validation error
401 Unauthorized
403 Access denied
404 Resource not found
400 Validation error
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 2172, "ann_join_leave": true, "confno": 4395, "confno_pstn": 5681, "monitor": true, "name": "value", "pin": "value", "pin_pstn": "value" }, "links": {} }
DELETE
/conferences/{id} Deletes existing Conference resource
Parameters
Endpoint URL:
{id} integerConference identifier
Example Request
DELETE /v1.1/voipstudio/conferences/31 HTTP/1.1 Host: l7api.com
Responses
204 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 204 OK
GET
/ddis Returns collection of Ddi resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/ddis HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": "value", "channels": 8871, "cli_hide": true, "cli_prefix": 6969, "created_at": "2020-10-14 15:46:57", "e164": "value", "esc_enabled": true, "fax_email": "value", "fax_enabled": true, "flag": 4, "has_fax_password": true, "info": "value", "name": "value", "rate": 7.25, "sms_email": "value", "sms_enabled": true, "status": 6, "target_id": 5438, "target_type": 2, "tel_verified": true, "uri": "value" } ], "total": 59 }
GET
/ddis/calltracking Returns collection of Call Tracking Ddi resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/ddis/calltracking HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": "value", "channels": 1748, "cli_hide": true, "cli_prefix": 6906, "created_at": "2017-05-06 14:00:35", "e164": "value", "esc_enabled": true, "fax_email": "value", "fax_enabled": true, "flag": 3, "has_fax_password": true, "info": "value", "name": "value", "rate": 7.17, "sms_email": "value", "sms_enabled": true, "status": 4, "target_id": 4298, "target_type": 0, "tel_verified": true, "uri": "value" } ], "total": 59 }
GET
/ddis/dictionaries Returns Dictionary for Ddi resource
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/ddis/dictionaries HTTP/1.1 Host: l7api.com
Responses
200 Unknown
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": "value", "channels": 9553, "cli_hide": true, "cli_prefix": 4300, "created_at": "2017-01-25 07:01:59", "e164": "value", "esc_enabled": true, "fax_email": "value", "fax_enabled": true, "flag": 5, "has_fax_password": true, "info": "value", "name": "value", "rate": 5.25, "sms_email": "value", "sms_enabled": true, "status": 6, "target_id": 3768, "target_type": 4, "tel_verified": true, "uri": "value" } ], "total": 59 }
GET
/ddis/{e164} Returns Ddi resource for given e164
Parameters
Example Request
GET /v1.1/voipstudio/ddis/{e164} HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": "value", "channels": 4251, "cli_hide": true, "cli_prefix": 6524, "created_at": "2017-04-13 01:47:37", "e164": "value", "esc_enabled": true, "fax_email": "value", "fax_enabled": true, "flag": 3, "has_fax_password": true, "info": "value", "name": "value", "rate": 7.14, "sms_email": "value", "sms_enabled": true, "status": 6, "target_id": 3002, "target_type": 2, "tel_verified": true, "uri": "value" } ], "total": 59 }
GET
/queues Returns collection of Queue resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/queues HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 9112, "ann_freq": 4897, "caller_sounds": "value", "cli_prefix": true, "final_dst_id": 252, "final_dst_type": 0, "hash_to_exit": true, "hold_ann": true, "ivr": 7850, "join_empty": true, "language": "value", "liaf": true, "max_callers": 6674, "max_wait_time": 4775, "moh": 546, "monitor": 1, "name": "value", "number": 1515, "pos_ann": true, "post_call_ivr_id": 6256, "retry": 9686, "ring_strategy": 2, "ring_time": 2817, "skip_busy": true, "users": 7134, "wait_time_prefix": true, "wrap_up_time": 5768 } ], "total": 59 }
POST
/queues Creates new Queue resource
Parameters
JSON body attributes:
moh_id integer
ivr_id integer
ddis array
users array
Users that should be logged in to the queue
Users that should be logged in to the queue
name string
number integer
cli_prefix boolean
wait_time_prefix boolean
agent_sounds undefined
caller_sounds undefined
max_wait_time integer
max_callers integer
join_empty boolean
ring_strategy string
ring_time integer
retry integer
wrap_up_time integer
skip_busy boolean
language string
pos_ann boolean
hold_ann boolean
ann_freq integer
final_dst_type string
final_dst_id integer
post_call_ivr_id integer
hash_to_exit boolean
liaf boolean
groups array
monitor string
Example Request
POST /v1.1/voipstudio/queues HTTP/1.1 Host: l7api.com { "moh_id": 129, "ivr_id": 868, "ddis": "abcd", "users": [ { "id": "User ID", "status": "Bool that indicates that user is logged in by default." } ], "name": "abcd", "number": 791, "cli_prefix": true, "wait_time_prefix": true, "agent_sounds": "abcd", "caller_sounds": "abcd", "max_wait_time": 689, "max_callers": 448, "join_empty": true, "ring_strategy": "abcd", "ring_time": 911, "retry": 827, "wrap_up_time": 851, "skip_busy": true, "language": "abcd", "pos_ann": true, "hold_ann": true, "ann_freq": 780, "final_dst_type": "abcd", "final_dst_id": 235, "post_call_ivr_id": 802, "hash_to_exit": true, "liaf": true, "groups": "abcd", "monitor": "abcd" }
Responses
201 Created
400 Validation error
401 Unauthorized
400 Validation error
401 Unauthorized
Example Response
HTTP/1.1 201 OK Content-Type: application/json { "data": { "id": 4576, "ann_freq": 1516, "caller_sounds": "value", "cli_prefix": true, "final_dst_id": 310, "final_dst_type": 2, "hash_to_exit": true, "hold_ann": true, "ivr": 6099, "join_empty": true, "language": "value", "liaf": true, "max_callers": 8261, "max_wait_time": 2301, "moh": 9766, "monitor": 2, "name": "value", "number": 3627, "pos_ann": true, "post_call_ivr_id": 4118, "retry": 3114, "ring_strategy": 2, "ring_time": 7976, "skip_busy": true, "users": 8661, "wait_time_prefix": true, "wrap_up_time": 171 }, "links": {} }
GET
/queues/{id} Returns Queue resource for given Id
Parameters
Endpoint URL:
{id} integerQueue identifier
Example Request
GET /v1.1/voipstudio/queues/71 HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 9756, "ann_freq": 5409, "caller_sounds": "value", "cli_prefix": true, "final_dst_id": 5936, "final_dst_type": 1, "hash_to_exit": true, "hold_ann": true, "ivr": 4541, "join_empty": true, "language": "value", "liaf": true, "max_callers": 5052, "max_wait_time": 7250, "moh": 5359, "monitor": 2, "name": "value", "number": 2770, "pos_ann": true, "post_call_ivr_id": 5468, "retry": 1920, "ring_strategy": 1, "ring_time": 9359, "skip_busy": true, "users": 134, "wait_time_prefix": true, "wrap_up_time": 3029 }, "links": {} }
GET
/ringgroups Returns collection of RingGroup resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/ringgroups HTTP/1.1 Host: l7api.com
Responses
200 This endpoint return Ring Group resource data.
Each record can also contain data of assigned users and numbers.
To return additional data 'include' query parameter should be added to GET request:
```
GET /ringgroups?include=ddis,users
```
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 5590, "cli_prefix": true, "final_dst_id": 394, "final_dst_type": 6, "moh_id": 4712, "name": "value", "number": 6490, "ring_time": 9811, "strategy": 0 } ], "total": 59 }
POST
/ringgroups Creates new RingGroup resource
Parameters
JSON body attributes:
name string
users array
Users that should be assigned to the ring group
Users that should be assigned to the ring group
ddis array
Numbers that should be assigned to the ring group in E164 format
Numbers that should be assigned to the ring group in E164 format
strategy string
final_dst_type string
final_dst_id integer
ring_time integer
cli_prefix boolean
moh_id integer
number integer
Example Request
POST /v1.1/voipstudio/ringgroups HTTP/1.1 Host: l7api.com { "name": "abcd", "users": [ 12345, 56789 ], "ddis": [ 44206123456, 48500123445 ], "strategy": "abcd", "final_dst_type": "abcd", "final_dst_id": 311, "ring_time": 780, "cli_prefix": true, "moh_id": 606, "number": 550 }
Responses
201 Created
400 Validation error
401 Unauthorized
400 Validation error
401 Unauthorized
Example Response
HTTP/1.1 201 OK Content-Type: application/json { "data": { "id": 5535, "cli_prefix": true, "final_dst_id": 7234, "final_dst_type": 1, "moh_id": 1202, "name": "value", "number": 4569, "ring_time": 8346, "strategy": 0 }, "links": {} }
GET
/ringgroups/dictionaries Returns Dictionary for RingGroup resource
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/ringgroups/dictionaries HTTP/1.1 Host: l7api.com
Responses
200 Success
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 6016, "cli_prefix": true, "final_dst_id": 7371, "final_dst_type": 6, "moh_id": 789, "name": "value", "number": 7472, "ring_time": 7762, "strategy": 2 } ], "total": 59 }
GET
/ringgroups/{id} Returns RingGroup resource for given Id
Parameters
Endpoint URL:
{id} integerRingGroup identifier
Example Request
GET /v1.1/voipstudio/ringgroups/75 HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 9895, "cli_prefix": true, "final_dst_id": 1682, "final_dst_type": 5, "moh_id": 9576, "name": "value", "number": 2533, "ring_time": 2410, "strategy": 2 }, "links": {} }
PATCH
/ringgroups/{id} Updates existing RingGroup resource
Parameters
Endpoint URL:
{id} integerRingGroup identifier
JSON body attributes:
name string
users array
Users that should be assigned to the ring group
Users that should be assigned to the ring group
ddis array
Numbers that should be assigned to the ring group in E164 format
Numbers that should be assigned to the ring group in E164 format
strategy string
final_dst_type string
final_dst_id integer
ring_time integer
cli_prefix boolean
moh_id integer
number integer
Example Request
PATCH /v1.1/voipstudio/ringgroups/77 HTTP/1.1 Host: l7api.com { "name": "abcd", "users": [ 12345, 56789 ], "ddis": [ 44206123456, 48500123445 ], "strategy": "abcd", "final_dst_type": "abcd", "final_dst_id": 213, "ring_time": 663, "cli_prefix": true, "moh_id": 637, "number": 786 }
Responses
200 Success
400 Validation error
401 Unauthorized
403 Access denied
404 Resource not found
400 Validation error
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 1083, "cli_prefix": true, "final_dst_id": 2175, "final_dst_type": 3, "moh_id": 9964, "name": "value", "number": 4426, "ring_time": 2040, "strategy": 0 }, "links": {} }
DELETE
/ringgroups/{id} Deletes existing RingGroup resource
Parameters
Endpoint URL:
{id} integerRingGroup identifier
Example Request
DELETE /v1.1/voipstudio/ringgroups/18 HTTP/1.1 Host: l7api.com
Responses
204 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 204 OK
GET
/pickupgroups Returns collection of PickupGroup resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/pickupgroups HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 1723, "name": "value", "users": 5454 } ], "total": 59 }
GET
/pickupgroups/{id} Returns PickupGroup resource for given Id
Parameters
Endpoint URL:
{id} integerPickupGroup identifier
Example Request
GET /v1.1/voipstudio/pickupgroups/80 HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 7040, "name": "value", "users": 1235 }, "links": {} }
GET
/routingrules Returns collection of RoutingRule resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/routingrules HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 8578, "action": "value", "customer": 6756, "destination": "value", "direction": 0, "final_dst": true, "pos": 1308, "source": "value", "time_interval": "value" } ], "total": 59 }
POST
/routingrules Creates new routing rule resource
Parameters
JSON body attributes:
pos integer
source array
Array of sources depending on routing rule direction. E.g user ID, number in E164 format.
Array of sources depending on routing rule direction. E.g user ID, number in E164 format.
destination array
Array of destinations depending on routing rule direction. E.g number pattern ID, group.
Array of destinations depending on routing rule direction. E.g number pattern ID, group.
time_interval array
Array of time interval resources IDs
Array of time interval resources IDs
action string
Action that should be performed while matching rule, e.g. Block, redirect to IVR or user
Action that should be performed while matching rule, e.g. Block, redirect to IVR or user
direction string
Routing rule direction. Cannot be change with PATCH
Routing rule direction. Cannot be change with PATCH
Example Request
POST /v1.1/voipstudio/routingrules HTTP/1.1 Host: l7api.com { "pos": 917, "source": [ "any", 56789 ], "destination": [ "48X", 56789 ], "time_interval": [ 1234, 56789 ], "action": [ "U:XXX", "B" ], "direction": [ "in", "out" ] }
Responses
201 Created
400 Validation error
400 Validation error
Example Response
HTTP/1.1 201 OK Content-Type: application/json { "data": { "id": 307, "action": "value", "customer": 8881, "destination": "value", "direction": 0, "final_dst": true, "pos": 6503, "source": "value", "time_interval": "value" }, "links": {} }
GET
/routingrules/{id} Returns routing rule resource for given ID
Parameters
Endpoint URL:
{id} integerRoutingRule2 identifier
Example Request
GET /v1.1/voipstudio/routingrules/11 HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 4201, "action": "value", "customer": 9934, "destination": "value", "direction": 0, "final_dst": true, "pos": 5957, "source": "value", "time_interval": "value" }, "links": {} }
PATCH
/routingrules/{id} Updates existing routing rule resource
Parameters
Endpoint URL:
{id} integerRoutingRule2 identifier
JSON body attributes:
pos integer
source array
Array of sources depending on routing rule direction. E.g user ID, number in E164 format.
Array of sources depending on routing rule direction. E.g user ID, number in E164 format.
destination array
Array of destinations depending on routing rule direction. E.g number pattern ID, group.
Array of destinations depending on routing rule direction. E.g number pattern ID, group.
time_interval array
Array of time interval resources IDs
Array of time interval resources IDs
action string
Action that should be performed while matching rule, e.g. Block, redirect to IVR or user
Action that should be performed while matching rule, e.g. Block, redirect to IVR or user
direction string
Routing rule direction. Cannot be change with PATCH
Routing rule direction. Cannot be change with PATCH
Example Request
PATCH /v1.1/voipstudio/routingrules/21 HTTP/1.1 Host: l7api.com { "pos": 835, "source": [ "any", 56789 ], "destination": [ "48X", 56789 ], "time_interval": [ 1234, 56789 ], "action": [ "U:XXX", "B" ], "direction": [ "in", "out" ] }
Responses
200 Success
400 Validation error
404 Resource not found
400 Validation error
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 9351, "action": "value", "customer": 9660, "destination": "value", "direction": 1, "final_dst": true, "pos": 9981, "source": "value", "time_interval": "value" }, "links": {} }
GET
/ivrs Returns collection of Ivr resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/ivrs HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 6954, "eight": "value", "eight_sounds": "value", "ext_dialing": true, "final_dst_id": 2921, "final_dst_type": 3, "five": "value", "five_sounds": "value", "four": "value", "four_sounds": "value", "hash": "value", "language": "value", "name": "value", "nine": "value", "nine_sounds": "value", "number": 7247, "one": "value", "one_sounds": "value", "post_sounds": "value", "random_choice": true, "random_dst": "value", "repeats": 3250, "ring_time": 9645, "seven": "value", "seven_sounds": "value", "six": "value", "six_sounds": "value", "sounds": "value", "star": "value", "three": "value", "three_sounds": "value", "timeout": 2847, "two": "value", "two_sounds": "value", "zero": "value" } ], "total": 59 }
POST
/ivrs Creates new Ivr resource
Parameters
JSON body attributes:
name string
ring_time integer
post_sounds array
ddis array
timeout integer
repeats integer
ext_dialing boolean
language string
final_dst_type string
final_dst_id integer
number integer
random_choice boolean
Example Request
POST /v1.1/voipstudio/ivrs HTTP/1.1 Host: l7api.com { "name": "abcd", "ring_time": 768, "post_sounds": "abcd", "ddis": "abcd", "timeout": 527, "repeats": 683, "ext_dialing": true, "language": "abcd", "final_dst_type": "abcd", "final_dst_id": 918, "number": 968, "random_choice": true }
Responses
201 Created
400 Validation error
401 Unauthorized
400 Validation error
401 Unauthorized
Example Response
HTTP/1.1 201 OK Content-Type: application/json { "data": { "id": 5517, "eight": "value", "eight_sounds": "value", "ext_dialing": true, "final_dst_id": 260, "final_dst_type": 4, "five": "value", "five_sounds": "value", "four": "value", "four_sounds": "value", "hash": "value", "language": "value", "name": "value", "nine": "value", "nine_sounds": "value", "number": 9831, "one": "value", "one_sounds": "value", "post_sounds": "value", "random_choice": true, "random_dst": "value", "repeats": 4558, "ring_time": 5595, "seven": "value", "seven_sounds": "value", "six": "value", "six_sounds": "value", "sounds": "value", "star": "value", "three": "value", "three_sounds": "value", "timeout": 4583, "two": "value", "two_sounds": "value", "zero": "value" }, "links": {} }
GET
/ivrs/{id} Returns Ivr resource for given Id
Parameters
Endpoint URL:
{id} integerIvr identifier
Example Request
GET /v1.1/voipstudio/ivrs/36 HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 283, "eight": "value", "eight_sounds": "value", "ext_dialing": true, "final_dst_id": 9193, "final_dst_type": 2, "five": "value", "five_sounds": "value", "four": "value", "four_sounds": "value", "hash": "value", "language": "value", "name": "value", "nine": "value", "nine_sounds": "value", "number": 8153, "one": "value", "one_sounds": "value", "post_sounds": "value", "random_choice": true, "random_dst": "value", "repeats": 8771, "ring_time": 9180, "seven": "value", "seven_sounds": "value", "six": "value", "six_sounds": "value", "sounds": "value", "star": "value", "three": "value", "three_sounds": "value", "timeout": 4382, "two": "value", "two_sounds": "value", "zero": "value" }, "links": {} }
PATCH
/ivrs/{id} Updates existing Ivr resource
Parameters
Endpoint URL:
{id} integerIvr identifier
JSON body attributes:
name string
ring_time integer
post_sounds array
ddis array
timeout integer
repeats integer
ext_dialing boolean
language string
final_dst_type string
final_dst_id integer
number integer
random_choice boolean
Example Request
PATCH /v1.1/voipstudio/ivrs/97 HTTP/1.1 Host: l7api.com { "name": "abcd", "ring_time": 220, "post_sounds": "abcd", "ddis": "abcd", "timeout": 473, "repeats": 846, "ext_dialing": true, "language": "abcd", "final_dst_type": "abcd", "final_dst_id": 749, "number": 791, "random_choice": true }
Responses
200 Success
400 Validation error
401 Unauthorized
403 Access denied
404 Resource not found
400 Validation error
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 6368, "eight": "value", "eight_sounds": "value", "ext_dialing": true, "final_dst_id": 2315, "final_dst_type": 3, "five": "value", "five_sounds": "value", "four": "value", "four_sounds": "value", "hash": "value", "language": "value", "name": "value", "nine": "value", "nine_sounds": "value", "number": 364, "one": "value", "one_sounds": "value", "post_sounds": "value", "random_choice": true, "random_dst": "value", "repeats": 650, "ring_time": 9277, "seven": "value", "seven_sounds": "value", "six": "value", "six_sounds": "value", "sounds": "value", "star": "value", "three": "value", "three_sounds": "value", "timeout": 499, "two": "value", "two_sounds": "value", "zero": "value" }, "links": {} }
DELETE
/ivrs/{id} Deletes existing Ivr resource
Parameters
Endpoint URL:
{id} integerIvr identifier
Example Request
DELETE /v1.1/voipstudio/ivrs/9 HTTP/1.1 Host: l7api.com
Responses
204 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 204 OK
GET
/mohs/{id} Returns Moh resource for given Id
Parameters
Endpoint URL:
{id} integerMoh identifier
Example Request
GET /v1.1/voipstudio/mohs/68 HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 1628, "locked": true, "name": "value" }, "links": {} }
GET
/contactlabels Returns collection of ContactLabel resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/contactlabels HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 4758, "color": "value", "name": "value" } ], "total": 59 }
POST
/contactlabels Creates new ContactLabel resource
Parameters
JSON body attributes:
name string
color string
Example Request
POST /v1.1/voipstudio/contactlabels HTTP/1.1 Host: l7api.com { "name": "abcd", "color": "abcd" }
Responses
201 Created
400 Validation error
400 Validation error
Example Response
HTTP/1.1 201 OK Content-Type: application/json { "data": { "id": 149, "color": "value", "name": "value" }, "links": {} }
GET
/contactlabels/{id} Returns ContactLabel resource for given Id
Parameters
Endpoint URL:
{id} integerContactLabel identifier
Example Request
GET /v1.1/voipstudio/contactlabels/54 HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 184, "color": "value", "name": "value" }, "links": {} }
PATCH
/contactlabels/{id} Updates existing ContactLabel resource
Parameters
Endpoint URL:
{id} integerContactLabel identifier
JSON body attributes:
name string
color string
Example Request
PATCH /v1.1/voipstudio/contactlabels/19 HTTP/1.1 Host: l7api.com { "name": "abcd", "color": "abcd" }
Responses
200 Success
400 Validation error
404 Resource not found
400 Validation error
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 388, "color": "value", "name": "value" }, "links": {} }
DELETE
/contactlabels/{id} Deletes existing ContactLabels resources
Parameters
Endpoint URL:
{id} integerContactLabel identifier
Example Request
DELETE /v1.1/voipstudio/contactlabels/4 HTTP/1.1 Host: l7api.com
Responses
204 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 204 OK
GET
/callmeback/buttons/{id} Returns CallMeBackButton resource for given Id
Parameters
Endpoint URL:
{id} integerCallMeBackButton identifier
Example Request
GET /v1.1/voipstudio/callmeback/buttons/31 HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
PATCH
/callmeback/buttons/{id} Updates existing CallMeBackButton resource
Parameters
Endpoint URL:
{id} integerCallMeBackButton identifier
Example Request
PATCH /v1.1/voipstudio/callmeback/buttons/69 HTTP/1.1 Host: l7api.com
Responses
200 Success
400 Validation error
401 Unauthorized
403 Access denied
404 Resource not found
400 Validation error
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
DELETE
/callmeback/buttons/{id} Deletes existing resource
Parameters
Endpoint URL:
{id} integerCallMeBackButton identifier
Example Request
DELETE /v1.1/voipstudio/callmeback/buttons/25 HTTP/1.1 Host: l7api.com
Responses
204 Success
401 Unauthorized
403 Access denied
401 Unauthorized
403 Access denied
Example Response
HTTP/1.1 204 OK
POST
/callmeback/buttons Creates new CallMeBackButton resource
Parameters
Example Request
POST /v1.1/voipstudio/callmeback/buttons HTTP/1.1 Host: l7api.com
Responses
201 Created
400 Validation error
401 Unauthorized
400 Validation error
401 Unauthorized