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": 5499, "created_at": "2019-01-21 22:27:36", "from": "12124537768", "message": "value", "result": "value", "to": "32179243705", "type": "value", "user_id": 7705 } ], "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": 6689, "created_at": "2020-01-23 05:49:57", "from": "12124537768", "message": "value", "result": "value", "to": "44203844711", "type": "value", "user_id": 4490 }, "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/30 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": 2500, "created_at": "2018-08-22 17:08:24", "from": "44203846719", "message": "value", "result": "value", "to": "32179243705", "type": "value", "user_id": 8585 }, "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": 5343, "charge": 7.17, "created_at": "2022-11-04 00:30:07", "filename": "value", "from": "12124537768", "pages": 5764, "status": 4, "to": "44203844711", "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": 2420, "created_at": "2018-07-08 16:46:12", "description": "value", "extension": 3283 } ], "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": 644, "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": 628, "created_at": "2017-08-02 04:53:46", "description": "value", "extension": 7095 }, "links": {} }
GET
/vmannouncements/{id} Returns voicemail announcement resource for given Id
Parameters
Endpoint URL:
{id} integerVmAnnouncement identifier
Example Request
GET /v1.1/voipstudio/vmannouncements/28 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": 7437, "created_at": "2020-09-21 03:42:14", "description": "value", "extension": 8496 }, "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/89 HTTP/1.1 Host: l7api.com { "extension_id": 508, "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": 9321, "created_at": "2018-12-10 12:06:12", "description": "value", "extension": 6305 }, "links": {} }
DELETE
/vmannouncements/{id} Deletes existing Announcement resources
Parameters
Endpoint URL:
{id} integerVmAnnouncement identifier
Example Request
DELETE /v1.1/voipstudio/vmannouncements/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
/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": 2773, "created_at": "2023-03-14 13:42:33", "from": "44203846719", "message": "value", "result": "value", "to": "44203846719", "type": "value", "user_id": 8792 } ], "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": 4293, "created_at": "2021-07-16 08:36:48", "from": "12124537768", "message": "value", "result": "value", "to": "44779243705", "type": "value", "user_id": 5588 }, "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/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": 5375, "created_at": "2018-03-26 13:28:38", "from": "44779243705", "message": "value", "result": "value", "to": "44203846719", "type": "value", "user_id": 1667 }, "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/30 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": 3870, "created_at": "2019-04-19 11:19:24", "from": "13103345244", "message": "value", "result": "value", "to": "44779243705", "type": "value", "user_id": 174 }, "links": {} }
DELETE
/sms/cannedresponses/{id} Deletes existing /CannedResponse resource
Parameters
Endpoint URL:
{id} integerSms identifier
Example Request
DELETE /v1.1/voipstudio/sms/cannedresponses/97 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