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": 4792, "cli_hide": true, "cli_prefix": 1968, "created_at": "2019-10-16 04:39:26", "e164": "value", "esc_enabled": true, "fax_email": "value", "fax_enabled": true, "flag": 3, "has_fax_password": true, "info": "value", "name": "value", "rate": 8.33, "sms_email": "value", "sms_enabled": true, "status": 4, "target_id": 6469, "target_type": 2, "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": 702 }, { "e164": "abcd", "campaign_id": 702, "id": 1556 } ]
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": 2188, "cli_hide": true, "cli_prefix": 3621, "created_at": "2018-11-30 12:07:31", "e164": "value", "esc_enabled": true, "fax_email": "value", "fax_enabled": true, "flag": 1, "has_fax_password": true, "info": "value", "name": "value", "rate": 4.1, "sms_email": "value", "sms_enabled": true, "status": 1, "target_id": 7114, "target_type": 8, "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": 7559, "cli_hide": true, "cli_prefix": 8090, "created_at": "2022-08-25 11:43:55", "e164": "value", "esc_enabled": true, "fax_email": "value", "fax_enabled": true, "flag": 3, "has_fax_password": true, "info": "value", "name": "value", "rate": 3.2, "sms_email": "value", "sms_enabled": true, "status": 1, "target_id": 9982, "target_type": 0, "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": 929, "call_me_back_setting_id": 473, "call_tracking_setting_id": 531, "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": 6508, "cli_hide": true, "cli_prefix": 5684, "created_at": "2020-11-28 19:55:23", "e164": "value", "esc_enabled": true, "fax_email": "value", "fax_enabled": true, "flag": 3, "has_fax_password": true, "info": "value", "name": "value", "rate": 9.13, "sms_email": "value", "sms_enabled": true, "status": 5, "target_id": 8732, "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": 1203, "company": "value", "created_at": "2023-06-07 13:15:45", "dialler_source_id": 8390, "email": "value", "ext": "value", "first_name": "value", "global": true, "group_name": "value", "internal": true, "last_call_at": "2023-06-07 13:22:05", "last_name": "value", "mobile": "value", "mobile_1": "value", "mobile_2": "value", "nb_call_attempts": 6934, "next_call_at": "2023-06-07 13:20:53", "notes": "value", "outcome_id": 1546, "rel_user_id": 3619, "tel": "value", "tel_1": "value", "tel_2": "value", "type": 1, "user_id": 5246 } ], "total": 59 }
POST
/contacts Creates new Contact resource
Parameters
JSON body attributes:
type string
dialler_source_id integer
outcome_id integer
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
transfer_list boolean
user_id integer
Example Request
POST /v1.1/voipstudio/contacts HTTP/1.1 Host: l7api.com { "type": "abcd", "dialler_source_id": 172, "outcome_id": 822, "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", "transfer_list": true, "user_id": 124 }
Responses
201 Created
400 Validation error
400 Validation error
Example Response
HTTP/1.1 201 OK Content-Type: application/json { "data": { "id": 6901, "company": "value", "created_at": "2019-10-07 08:47:35", "dialler_source_id": 6711, "email": "value", "ext": "value", "first_name": "value", "global": true, "group_name": "value", "internal": true, "last_call_at": "2019-10-07 09:03:25", "last_name": "value", "mobile": "value", "mobile_1": "value", "mobile_2": "value", "nb_call_attempts": 1557, "next_call_at": "2019-10-07 09:04:30", "notes": "value", "outcome_id": 4102, "rel_user_id": 4549, "tel": "value", "tel_1": "value", "tel_2": "value", "type": 3, "user_id": 5437 }, "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": 608, "group_name": "abcd", "labels": "abcd" }, { "id": 6992, "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": 8625, "company": "value", "created_at": "2024-05-20 08:19:20", "dialler_source_id": 4546, "email": "value", "ext": "value", "first_name": "value", "global": true, "group_name": "value", "internal": true, "last_call_at": "2024-05-20 08:20:20", "last_name": "value", "mobile": "value", "mobile_1": "value", "mobile_2": "value", "nb_call_attempts": 5493, "next_call_at": "2024-05-20 08:26:15", "notes": "value", "outcome_id": 8443, "rel_user_id": 8493, "tel": "value", "tel_1": "value", "tel_2": "value", "type": 0, "user_id": 2059 }, "links": {} }
GET
/contacts/{id} Returns Contact resource for given Id
Parameters
Endpoint URL:
{id} integerContact identifier
Example Request
GET /v1.1/voipstudio/contacts/43 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": 1445, "company": "value", "created_at": "2024-03-29 23:34:43", "dialler_source_id": 4884, "email": "value", "ext": "value", "first_name": "value", "global": true, "group_name": "value", "internal": true, "last_call_at": "2024-03-29 23:25:21", "last_name": "value", "mobile": "value", "mobile_1": "value", "mobile_2": "value", "nb_call_attempts": 7903, "next_call_at": "2024-03-29 23:27:27", "notes": "value", "outcome_id": 2681, "rel_user_id": 8224, "tel": "value", "tel_1": "value", "tel_2": "value", "type": 3, "user_id": 3408 }, "links": {} }
PATCH
/contacts/{id} Updates existing Contact resource
Parameters
Endpoint URL:
{id} integerContact identifier
JSON body attributes:
type string
dialler_source_id integer
outcome_id integer
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
transfer_list boolean
user_id integer
Example Request
PATCH /v1.1/voipstudio/contacts/37 HTTP/1.1 Host: l7api.com { "type": "abcd", "dialler_source_id": 355, "outcome_id": 812, "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", "transfer_list": true, "user_id": 530 }
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": 6116, "company": "value", "created_at": "2017-05-18 14:50:21", "dialler_source_id": 3211, "email": "value", "ext": "value", "first_name": "value", "global": true, "group_name": "value", "internal": true, "last_call_at": "2017-05-18 14:50:15", "last_name": "value", "mobile": "value", "mobile_1": "value", "mobile_2": "value", "nb_call_attempts": 6022, "next_call_at": "2017-05-18 14:57:17", "notes": "value", "outcome_id": 4886, "rel_user_id": 2905, "tel": "value", "tel_1": "value", "tel_2": "value", "type": 3, "user_id": 2688 }, "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/97,198,491 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": 1993, "ann_join_leave": true, "confno": 1327, "confno_pstn": 5210, "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": 8647, "ann_join_leave": true, "confno": 455, "confno_pstn": 6380, "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/95 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": 796, "ann_join_leave": true, "confno": 4331, "confno_pstn": 7888, "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/25 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": 3446, "ann_join_leave": true, "confno": 2634, "confno_pstn": 5923, "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/13 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": 3228, "cli_hide": true, "cli_prefix": 4688, "created_at": "2019-05-13 00:15:42", "e164": "value", "esc_enabled": true, "fax_email": "value", "fax_enabled": true, "flag": 0, "has_fax_password": true, "info": "value", "name": "value", "rate": 6.14, "sms_email": "value", "sms_enabled": true, "status": 2, "target_id": 1649, "target_type": 4, "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": 3509, "cli_hide": true, "cli_prefix": 8740, "created_at": "2021-09-03 08:46:08", "e164": "value", "esc_enabled": true, "fax_email": "value", "fax_enabled": true, "flag": 4, "has_fax_password": true, "info": "value", "name": "value", "rate": 7.5, "sms_email": "value", "sms_enabled": true, "status": 4, "target_id": 4826, "target_type": 4, "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": 4023, "cli_hide": true, "cli_prefix": 9851, "created_at": "2018-05-05 13:04:34", "e164": "value", "esc_enabled": true, "fax_email": "value", "fax_enabled": true, "flag": 0, "has_fax_password": true, "info": "value", "name": "value", "rate": 8.17, "sms_email": "value", "sms_enabled": true, "status": 3, "target_id": 6984, "target_type": 2, "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": 4998, "cli_hide": true, "cli_prefix": 3767, "created_at": "2018-12-19 07:05:52", "e164": "value", "esc_enabled": true, "fax_email": "value", "fax_enabled": true, "flag": 6, "has_fax_password": true, "info": "value", "name": "value", "rate": 5.11, "sms_email": "value", "sms_enabled": true, "status": 6, "target_id": 1588, "target_type": 5, "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": 3592, "ann_freq": 7383, "caller_sounds": "value", "cli_prefix": true, "final_dst_id": 4973, "final_dst_type": 0, "hash_to_exit": true, "hold_ann": true, "ivr": 8394, "join_empty": true, "language": "value", "liaf": true, "max_callers": 5369, "max_wait_time": 2941, "moh": 9829, "monitor": 2, "name": "value", "number": 3487, "pos_ann": true, "post_call_ivr_id": 2080, "retry": 2936, "ring_strategy": 2, "ring_time": 3916, "skip_busy": true, "wait_time_prefix": true, "wrap_up_panel": true, "wrap_up_panel_timeout": 7954, "wrap_up_time": 3422 } ], "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
wrap_up_panel boolean
wrap_up_panel_timeout 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": 903, "ivr_id": 431, "ddis": "abcd", "users": [ { "id": "User ID", "status": "Bool that indicates that user is logged in by default." } ], "name": "abcd", "number": 787, "cli_prefix": true, "wait_time_prefix": true, "agent_sounds": "abcd", "caller_sounds": "abcd", "max_wait_time": 757, "max_callers": 438, "join_empty": true, "ring_strategy": "abcd", "ring_time": 680, "retry": 367, "wrap_up_time": 396, "wrap_up_panel": true, "wrap_up_panel_timeout": 499, "skip_busy": true, "language": "abcd", "pos_ann": true, "hold_ann": true, "ann_freq": 209, "final_dst_type": "abcd", "final_dst_id": 201, "post_call_ivr_id": 600, "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": 4775, "ann_freq": 9898, "caller_sounds": "value", "cli_prefix": true, "final_dst_id": 7115, "final_dst_type": 4, "hash_to_exit": true, "hold_ann": true, "ivr": 1838, "join_empty": true, "language": "value", "liaf": true, "max_callers": 7797, "max_wait_time": 6920, "moh": 4421, "monitor": 0, "name": "value", "number": 3436, "pos_ann": true, "post_call_ivr_id": 9327, "retry": 3892, "ring_strategy": 1, "ring_time": 4861, "skip_busy": true, "wait_time_prefix": true, "wrap_up_panel": true, "wrap_up_panel_timeout": 3956, "wrap_up_time": 1375 }, "links": {} }
GET
/queues/{id} Returns Queue resource for given Id
Parameters
Endpoint URL:
{id} integerQueue identifier
Example Request
GET /v1.1/voipstudio/queues/37 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": 9953, "ann_freq": 4938, "caller_sounds": "value", "cli_prefix": true, "final_dst_id": 8903, "final_dst_type": 5, "hash_to_exit": true, "hold_ann": true, "ivr": 9431, "join_empty": true, "language": "value", "liaf": true, "max_callers": 3746, "max_wait_time": 5179, "moh": 1902, "monitor": 1, "name": "value", "number": 2825, "pos_ann": true, "post_call_ivr_id": 9288, "retry": 2621, "ring_strategy": 1, "ring_time": 4884, "skip_busy": true, "wait_time_prefix": true, "wrap_up_panel": true, "wrap_up_panel_timeout": 8168, "wrap_up_time": 6272 }, "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": 4955, "cli_prefix": true, "final_dst_id": 5009, "final_dst_type": 4, "moh_id": 3054, "name": "value", "number": 7325, "ring_time": 7598, "strategy": 1 } ], "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": 375, "ring_time": 307, "cli_prefix": true, "moh_id": 278, "number": 483 }
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": 8358, "cli_prefix": true, "final_dst_id": 6875, "final_dst_type": 5, "moh_id": 6464, "name": "value", "number": 3273, "ring_time": 9237, "strategy": 2 }, "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": 6091, "cli_prefix": true, "final_dst_id": 4505, "final_dst_type": 2, "moh_id": 8629, "name": "value", "number": 9301, "ring_time": 9987, "strategy": 1 } ], "total": 59 }
GET
/ringgroups/{id} Returns RingGroup resource for given Id
Parameters
Endpoint URL:
{id} integerRingGroup identifier
Example Request
GET /v1.1/voipstudio/ringgroups/40 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": 7726, "cli_prefix": true, "final_dst_id": 7054, "final_dst_type": 3, "moh_id": 7299, "name": "value", "number": 8560, "ring_time": 6685, "strategy": 1 }, "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/15 HTTP/1.1 Host: l7api.com { "name": "abcd", "users": [ 12345, 56789 ], "ddis": [ 44206123456, 48500123445 ], "strategy": "abcd", "final_dst_type": "abcd", "final_dst_id": 99, "ring_time": 856, "cli_prefix": true, "moh_id": 375, "number": 997 }
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": 4209, "cli_prefix": true, "final_dst_id": 4720, "final_dst_type": 4, "moh_id": 7606, "name": "value", "number": 6227, "ring_time": 437, "strategy": 0 }, "links": {} }
DELETE
/ringgroups/{id} Deletes existing RingGroup resource
Parameters
Endpoint URL:
{id} integerRingGroup identifier
Example Request
DELETE /v1.1/voipstudio/ringgroups/61 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": 9144, "name": "value", "users": 7655 } ], "total": 59 }
GET
/pickupgroups/{id} Returns PickupGroup resource for given Id
Parameters
Endpoint URL:
{id} integerPickupGroup identifier
Example Request
GET /v1.1/voipstudio/pickupgroups/51 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": 8673, "name": "value", "users": 5462 }, "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": 2273, "action": "value", "customer": 9193, "destination": "value", "direction": 0, "final_dst": true, "pos": 8027, "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": 737, "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": 6072, "action": "value", "customer": 7526, "destination": "value", "direction": 1, "final_dst": true, "pos": 6144, "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/65 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": 3908, "action": "value", "customer": 9398, "destination": "value", "direction": 1, "final_dst": true, "pos": 4183, "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/56 HTTP/1.1 Host: l7api.com { "pos": 743, "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": 9302, "action": "value", "customer": 8376, "destination": "value", "direction": 0, "final_dst": true, "pos": 8645, "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": 5090, "eight": "value", "eight_sounds": "value", "ext_dialing": true, "final_dst_id": 4591, "final_dst_type": 0, "five": "value", "five_sounds": "value", "four": "value", "four_sounds": "value", "hash": "value", "language": "value", "name": "value", "nine": "value", "nine_sounds": "value", "number": 7059, "one": "value", "one_sounds": "value", "post_sounds": "value", "random_choice": true, "random_dst": "value", "repeats": 8860, "ring_time": 7488, "seven": "value", "seven_sounds": "value", "six": "value", "six_sounds": "value", "sounds": "value", "star": "value", "three": "value", "three_sounds": "value", "timeout": 5088, "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": 964, "post_sounds": "abcd", "ddis": "abcd", "timeout": 841, "repeats": 689, "ext_dialing": true, "language": "abcd", "final_dst_type": "abcd", "final_dst_id": 965, "number": 247, "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": 9728, "eight": "value", "eight_sounds": "value", "ext_dialing": true, "final_dst_id": 2040, "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": 8089, "one": "value", "one_sounds": "value", "post_sounds": "value", "random_choice": true, "random_dst": "value", "repeats": 8456, "ring_time": 9091, "seven": "value", "seven_sounds": "value", "six": "value", "six_sounds": "value", "sounds": "value", "star": "value", "three": "value", "three_sounds": "value", "timeout": 9373, "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/13 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": 778, "eight": "value", "eight_sounds": "value", "ext_dialing": true, "final_dst_id": 1562, "final_dst_type": 0, "five": "value", "five_sounds": "value", "four": "value", "four_sounds": "value", "hash": "value", "language": "value", "name": "value", "nine": "value", "nine_sounds": "value", "number": 7263, "one": "value", "one_sounds": "value", "post_sounds": "value", "random_choice": true, "random_dst": "value", "repeats": 6381, "ring_time": 8131, "seven": "value", "seven_sounds": "value", "six": "value", "six_sounds": "value", "sounds": "value", "star": "value", "three": "value", "three_sounds": "value", "timeout": 227, "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/33 HTTP/1.1 Host: l7api.com { "name": "abcd", "ring_time": 680, "post_sounds": "abcd", "ddis": "abcd", "timeout": 778, "repeats": 499, "ext_dialing": true, "language": "abcd", "final_dst_type": "abcd", "final_dst_id": 732, "number": 690, "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": 3196, "eight": "value", "eight_sounds": "value", "ext_dialing": true, "final_dst_id": 7574, "final_dst_type": 1, "five": "value", "five_sounds": "value", "four": "value", "four_sounds": "value", "hash": "value", "language": "value", "name": "value", "nine": "value", "nine_sounds": "value", "number": 1241, "one": "value", "one_sounds": "value", "post_sounds": "value", "random_choice": true, "random_dst": "value", "repeats": 3020, "ring_time": 4774, "seven": "value", "seven_sounds": "value", "six": "value", "six_sounds": "value", "sounds": "value", "star": "value", "three": "value", "three_sounds": "value", "timeout": 6163, "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/12 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/65 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": 7510, "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": 3737, "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": 9642, "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/45 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": 1623, "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/18 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": 3036, "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/19 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
/contactgroups Returns collection of Contact group resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/contactgroups HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
GET
/contactoutcomes Returns collection of ContactOutcome resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/contactoutcomes 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": 9021, "_name": "value", "created_at": "2020-07-17 07:55:03", "description": "value", "name": "value" } ], "total": 59 }
POST
/contactoutcomes Creates new ContactOutcome resource
Parameters
JSON body attributes:
name string
description string
Example Request
POST /v1.1/voipstudio/contactoutcomes HTTP/1.1 Host: l7api.com { "name": "abcd", "description": "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": 3337, "_name": "value", "created_at": "2024-06-30 10:34:18", "description": "value", "name": "value" }, "links": {} }
GET
/users Returns collection of User resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/users 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": 3468, "active": true, "created_at": "2018-04-04 18:51:49", "customer": 8374, "email": "value", "first_name": "value", "is_initial": true, "is_root": true, "last_name": "value", "roles": "value", "two_factor_auth": 0, "visited_apps": "value" } ], "total": 59 }
PATCH
/users [BULK] Updates location and/or teams of existing User resources
Parameters
JSON body attributes:
id integer
location_id integer
groups array
Example Request
PATCH /v1.1/voipstudio/users HTTP/1.1 Host: l7api.com [ { "id": 626, "location_id": 382, "groups": "abcd" }, { "id": 3418, "location_id": 382, "groups": "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": 7437, "active": true, "created_at": "2020-12-31 03:30:52", "customer": 4088, "email": "value", "first_name": "value", "is_initial": true, "is_root": true, "last_name": "value", "roles": "value", "two_factor_auth": 1, "visited_apps": "value" }, "links": {} }
GET
/callmeback/buttons/{id} Returns CallMeBackButton resource for given Id
Parameters
Endpoint URL:
{id} integerCallMeBackButton identifier
Example Request
GET /v1.1/voipstudio/callmeback/buttons/23 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/71 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/94 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