Storage module
Endpoints for managing Voicemails, SMS and FAXes
GET
/sms Returns collection of inbound and outbound SMS resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/sms 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": 4567, "created_at": "2022-07-23 01:30:19", "from": "44203844711", "message": "value", "result": "value", "to": "32179243705", "type": "value", "user_id": 2564 } ], "total": 59 }
POST
/sms Send new SMS resource
Parameters
JSON body attributes:
to string
Destination number in e164 format
Destination number in e164 format
from string
From number in e164 format (optional)
From number in e164 format (optional)
message string
Message to send
Message to send
Example Request
POST /v1.1/voipstudio/sms HTTP/1.1 Host: l7api.com { "to": "12123455483", "from": "12123455483", "message": "Hello World!" }
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": 3046, "created_at": "2023-01-17 19:41:25", "from": "12124537768", "message": "value", "result": "value", "to": "44203846719", "type": "value", "user_id": 750 }, "links": {} }
DELETE
/sms Deletes collection of SMS resources
Parameters
No parameters
Example Request
DELETE /v1.1/voipstudio/sms HTTP/1.1 Host: l7api.com
Responses
202 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 202 OK
GET
/sms/{id} Returns SMS resource for given Id
Parameters
Endpoint URL:
{id} integerSms identifier
Example Request
GET /v1.1/voipstudio/sms/56 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": 8706, "created_at": "2016-11-17 08:21:21", "from": "13103345244", "message": "value", "result": "value", "to": "13103345244", "type": "value", "user_id": 1004 }, "links": {} }
GET
/faxes Returns collection of Fax resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/faxes 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": 6741, "charge": 5.25, "created_at": "2018-02-13 20:55:13", "filename": "value", "from": "44203844711", "pages": 6568, "status": 4, "to": "44203846719", "type": 0 } ], "total": 59 }
GET
/vmannouncements Returns collection of sent voicemail announcements
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/vmannouncements 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": 2555, "created_at": "2016-08-14 00:24:25", "description": "value", "extension": 708 } ], "total": 59 }
POST
/vmannouncements Creates new voicemail announcement resource
Parameters
JSON body attributes:
extension_id integer
description string
data string
Base64 encoded file. Allowed data types for upload: MP3, MP4, WAV and AAC (Android).
Base64 encoded file. Allowed data types for upload: MP3, MP4, WAV and AAC (Android).
Example Request
POST /v1.1/voipstudio/vmannouncements HTTP/1.1 Host: l7api.com { "extension_id": 147, "description": "abcd", "data": "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": 2207, "created_at": "2016-07-02 13:00:20", "description": "value", "extension": 7153 }, "links": {} }
GET
/vmannouncements/{id} Returns voicemail announcement resource for given Id
Parameters
Endpoint URL:
{id} integerVmAnnouncement identifier
Example Request
GET /v1.1/voipstudio/vmannouncements/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": 4356, "created_at": "2024-01-27 23:01:12", "description": "value", "extension": 5463 }, "links": {} }
PATCH
/vmannouncements/{id} Updates existing voicemail announcement resource
Parameters
Endpoint URL:
{id} integerVmAnnouncement identifier
JSON body attributes:
extension_id integer
description string
data string
Base64 encoded file. Allowed data types for upload: MP3, MP4, WAV and AAC (Android).
Base64 encoded file. Allowed data types for upload: MP3, MP4, WAV and AAC (Android).
Example Request
PATCH /v1.1/voipstudio/vmannouncements/99 HTTP/1.1 Host: l7api.com { "extension_id": 304, "description": "abcd", "data": "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": 2453, "created_at": "2017-11-25 17:41:57", "description": "value", "extension": 1604 }, "links": {} }
DELETE
/vmannouncements/{id} Deletes existing Announcement resources
Parameters
Endpoint URL:
{id} integerVmAnnouncement identifier
Example Request
DELETE /v1.1/voipstudio/vmannouncements/35 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
/sms/cannedresponses Returns collection of Canned response resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/sms/cannedresponses 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": 4267, "created_at": "2017-04-13 16:46:33", "from": "12124537768", "message": "value", "result": "value", "to": "44203846719", "type": "value", "user_id": 7987 } ], "total": 59 }
POST
/sms/cannedresponses Creates new CannedResponse resource
Parameters
JSON body attributes:
name string
text string
Example Request
POST /v1.1/voipstudio/sms/cannedresponses HTTP/1.1 Host: l7api.com { "name": "abcd", "text": "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": 7975, "created_at": "2019-07-29 10:03:17", "from": "13103345244", "message": "value", "result": "value", "to": "12124537768", "type": "value", "user_id": 6700 }, "links": {} }
GET
/sms/cannedresponses/{id} Returns CannedResponse resource for given Id
Parameters
Endpoint URL:
{id} integerSms identifier
Example Request
GET /v1.1/voipstudio/sms/cannedresponses/46 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": 4598, "created_at": "2019-06-08 13:36:59", "from": "44203844711", "message": "value", "result": "value", "to": "32179243705", "type": "value", "user_id": 1595 }, "links": {} }
PATCH
/sms/cannedresponses/{id} Updates existing CannedResponse resource
Parameters
Endpoint URL:
{id} integerSms identifier
JSON body attributes:
name string
text string
Example Request
PATCH /v1.1/voipstudio/sms/cannedresponses/20 HTTP/1.1 Host: l7api.com { "name": "abcd", "text": "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": 4702, "created_at": "2017-08-12 07:17:30", "from": "44203844711", "message": "value", "result": "value", "to": "32179243705", "type": "value", "user_id": 5333 }, "links": {} }
DELETE
/sms/cannedresponses/{id} Deletes existing /CannedResponse resource
Parameters
Endpoint URL:
{id} integerSms identifier
Example Request
DELETE /v1.1/voipstudio/sms/cannedresponses/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