SMS Routing
Routes
Routes are the functions that are executed each time that an inbound SMS message is received by an Accent DID. Currently, there are three (3) types of routes:
EMAIL
Routes: These routes will send inbound SMS messages to an e-mail address, which also allows for users to respond to the SMS message with a simple reply to the e-mail.HTTP-POST
Routes: This route is also known as an "incoming webhook" and allows for users to receive inbound SMS messages at an HTTP endpoint of their choosing.HTTP-GET
Routes: Similar toHTTP-POST
routes, this type of route allows for users to receive inbound SMS messages at an HTTP endpoint of their choosing.
Get All Routes
Retrieve all routes for a given DID.
This request returns a JSON payload of this structure:
This endpoint retrieves all routes for a given DID.
HTTP Request
GET https://sms.accentvoice.com/api/v2/<DID Number>/routes?key=<API Key>
Query Parameters
None
Remember: For API GET
requests, your API Key must be provided as a URL parameter!
Get a Specific Route
This request returns a JSON payload of this structure:
This endpoint retrieves a specific route for a given DID.
HTTP Request
GET https://sms.accentvoice.com/api/v2/<DID Number>/routes/<Route ID>/?key=<API Key>
URL Parameters
None
Delete a Specific Route
This request returns a JSON payload of this structure:
This request deletes a route, and has this response:
HTTP Request
DELETE https://sms.accentvoice.com/api/v2/<DID Number>/routes/44/
URL Parameters
Parameter
Description
Required
ID
The ID of the route to delete
Yes
Create a New Route
This request creates a new
HTTP-POST
Route
This request creates a new
HTTP-POST
route, and has this response:
HTTP-GET
Route
This request creates a new
HTTP-GET
route, and has this response:
This endpoint creates a new route for a DID. You must choose a route type before creating a route.
HTTP Request
POST https://sms.accentvoice.com/api/v2/<DID Number>/routes/
Request Body Parameters
Parameter
Description
Required
type
EMAIL
, HTTP-POST
, or HTTP-GET
Yes
payload
Route-specific payload
Yes
Last updated