Add an Inbound Route
Add and configure an inbound route.
Endpoint
POST /api/v1.1.0/inroute/add?token={token}
Request Parameters
Name | Importance | Type | Description |
---|---|---|---|
name |
Required | String | Inbound route name. |
did |
Optional | String | DID pattern. |
caller_id |
Optional | String | Caller ID pattern. |
trunks |
Required | String | Trunk name. Separate multiple trunks with , .
Example:
|
desttype |
Required | String | Destination type:
|
dest |
Required | String | The specific destination. |
Examples
Request Example
POST /api/v1.1.0/inroute/add?token=277ac400357b509b4a587ff2157f7ad5 HTTP/1.1 Content-Type:application/json; charset=utf-8 Host: api.yeastarcloud.com { "name": "sipin", "did": "", "caller_id": "", "trunks": "siptrunk", "desttype": "extension", "dest": "1000" }
Response Example
HTTP/1.1 200 OK Access-control-allow-origin: * Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE { "status": "Success" }