Callflow¶
Default route¶
Getting default route list¶
- GET /api/v2/routes/default?domain=(domain_name)¶
Example request:
GET /api/v2/routes/default?domain=my.domain.com HTTP/1.1 X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NDIwMDIxNzkzNTh9.pKXWfzXqbp8FMbOKocNaSlT1bYq4Xqzol-0kEXOY0_s X-Key: 8fd26a17-eb28-4c74-aa6f-a3794f4f466c
Example response:
HTTP/1.1 200 OK [ { "_id": "56e2e32c93aa980c00564670", "destination_number": "^1000$", "name": "My new route", "order": 0, "disabled": false, "domain": "my.domain.com", "fs_timezone": null, "callflow": [ { "answer": "200 Ok" }, { "queue": { "name": "main" }, "break": true } ], "version": 2 } ]
- Request Headers
X-Key and X-Access-Token – Auth Token
- Parameters
domain_name (string) – Domain name is required
- Status Codes
200 OK – No error
400 Bad Request – Bad request
CURL example:
curl -XGET -H 'X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NjQ1ODcxNzY5MTAsImFjbCI6eyJjZHIiOlsiKiJdLCJjZHIvZmlsZXMiOlsiKiJdLCJjZHIvbWVkaWEiOlsiKiJdfX0.VuQ4Ql7Yq8112E63l3vAnS_ZRzPGMdH_GWiJYh8-p_Y' -H 'X-Key: 7db2665d-1e59-4f80-b65c-2372f32d678d' "https://app.webitel.com/engine/api/v2/routes/default?domain=my.domain.com"