List routing automations
const url = 'https://api.caller9.app/v1/numbers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/automations';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.caller9.app/v1/numbers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/automations \ --header 'Authorization: Bearer <token>'Lists the number’s scheduled routing automations, ordered by trigger time. Each automation changes the number’s routing at a recurring time of day. Readable on every plan.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Phone number ID (UUID), not the phone number itself.
Responses
Section titled “Responses”The number’s automations.
object
A recurring routing automation for a number. Exactly one destination is set, matching action: dest_studio_guid (route_studio), dest_trunk_guid (route_trunk), or the forward_* fields (route_forward).
object
Bitmask of days (bit 0 = Sunday … bit 6 = Saturday).
When the automation last fired. Included on create/update responses only.
Always null for number automations. Included on create/update responses only.
Always null for number automations. Included on create/update responses only.
Example
{ "automations": [ { "action": "route_studio", "forward_dest_type": "sip", "enabled": 0 } ]}Missing, invalid, expired or revoked API key.
object
Human-readable error message.
Machine-readable code (authentication failures only, e.g. KEY_EXPIRED, RATE_LIMITED).
Example generated
{ "error": "example", "code": "example"}Not found, or belongs to another organization.
object
Human-readable error message.
Machine-readable code (authentication failures only, e.g. KEY_EXPIRED, RATE_LIMITED).
Example generated
{ "error": "example", "code": "example"}Too many requests for this API key. Retry after Retry-After seconds.
object
Human-readable error message.
Machine-readable code (authentication failures only, e.g. KEY_EXPIRED, RATE_LIMITED).
Example generated
{ "error": "example", "code": "example"}Headers
Section titled “Headers”Seconds until the rate-limit window resets.