List routes
GET /v1/routes
Returns the routes your account may send through (the route value of POST /v1/messages) and whether their links are up.
Response 200
json
{
"routes": [
{
"route": "SANDBOX",
"operator": "SANDBOX",
"transport": "HTTP",
"priority": 1,
"active": true,
"linkState": "UP",
"bindState": "NONE"
},
{
"route": "SANDBOX_GROUP",
"providerGroup": "SANDBOX Group",
"operator": "SANDBOX",
"transport": "GROUP",
"priority": 1,
"active": true,
"linkState": "UP",
"bindState": ""
}
]
}| Field | Meaning |
|---|---|
route | value to send as route |
providerGroup | only on routes that point at a provider group: the group name. The Gateway picks the provider for each message by time of day and weight, and fails over to another member when one cannot take the message |
operator | operator the message goes out through; for a group, every member's operator, comma-separated |
transport | HTTP / SMPP for a single provider link, GROUP for a provider group |
active | route and its link (or group) are enabled |
linkState | UP / DOWN; a group is UP while at least one member link is up |
bindState | SMPP bind state of a single link (NONE BINDING BOUND UNBOUND ERROR); empty for a group |
A group route may answer 503 PROVIDER_UNAVAILABLE when, at the current time, your account has no TPS share in the group, and 429 RATE_LIMITED when you exceed your share of the group's TPS (plus the share of any client that lends its share and has not sent for 5 seconds, which you may borrow) for longer than the gateway waits (sends over the TPS wait for their turn first). Both are retryable.