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": 2488, "created_at": "2019-07-10 13:47:10", "from": "44779243705", "message": "value", "result": "value", "to": "44779243705", "type": "value", "user_id": 8555 } ], "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": 2407, "created_at": "2021-06-16 12:36:45", "from": "44203844711", "message": "value", "result": "value", "to": "44203844711", "type": "value", "user_id": 3203 }, "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/88 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": 8939, "created_at": "2019-01-06 04:05:38", "from": "44779243705", "message": "value", "result": "value", "to": "44203844711", "type": "value", "user_id": 4541 }, "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": 8765, "charge": 5.17, "created_at": "2019-06-08 08:02:42", "filename": "value", "from": "32179243705", "pages": 5485, "status": 0, "to": "32179243705", "type": 1 } ], "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": 8266, "created_at": "2019-07-30 20:32:22", "description": "value", "extension": 3927 } ], "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": 296, "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": 6377, "created_at": "2020-12-02 16:51:24", "description": "value", "extension": 6113 }, "links": {} }
GET
/vmannouncements/{id} Returns voicemail announcement resource for given Id
Parameters
Endpoint URL:
{id} integerVmAnnouncement identifier
Example Request
GET /v1.1/voipstudio/vmannouncements/85 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": 6933, "created_at": "2024-11-02 07:55:30", "description": "value", "extension": 8692 }, "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/79 HTTP/1.1 Host: l7api.com { "extension_id": 369, "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": 7861, "created_at": "2017-04-29 05:13:17", "description": "value", "extension": 1368 }, "links": {} }
DELETE
/vmannouncements/{id} Deletes existing Announcement resources
Parameters
Endpoint URL:
{id} integerVmAnnouncement identifier
Example Request
DELETE /v1.1/voipstudio/vmannouncements/51 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": 7618, "created_at": "2022-10-31 05:47:39", "from": "44779243705", "message": "value", "result": "value", "to": "44779243705", "type": "value", "user_id": 3197 } ], "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": 7972, "created_at": "2016-10-27 05:04:57", "from": "32179243705", "message": "value", "result": "value", "to": "44203844711", "type": "value", "user_id": 1084 }, "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/66 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": 9153, "created_at": "2023-03-07 21:04:32", "from": "44203844711", "message": "value", "result": "value", "to": "44779243705", "type": "value", "user_id": 9203 }, "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/51 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": 75, "created_at": "2017-06-18 13:52:19", "from": "44203846719", "message": "value", "result": "value", "to": "32179243705", "type": "value", "user_id": 1509 }, "links": {} }
DELETE
/sms/cannedresponses/{id} Deletes existing /CannedResponse resource
Parameters
Endpoint URL:
{id} integerSms identifier
Example Request
DELETE /v1.1/voipstudio/sms/cannedresponses/42 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