Docs menu

Get call routing

GET/v1/profiles/{profile_id}/call-routing

  • Scope calls:read

Who answers the line's calls, and in what order.

Parameters

Path

  • profile_idstringrequired

    The line (prf_…).

Response

200 OKThe routing.

  • strategy"team" | "team_first" | "ai_first" | "ai_after_hours" | "forward"required

  • forward_tostring or nullrequired

  • forward_secondsinteger or nullrequired

  • endpoint_idstring or nullrequired

  • ring_secondsinteger or nullrequired

  • ai_timeout_secondsinteger or nullrequired

  • hoursobject or nullrequired

    Fields of hours
    • timezonestringrequired

    • daysarray of integerrequired

    • startstringrequired

    • endstringrequired

  • voicemailobjectrequired

    Fields of voicemail
    • greetingstring or nullrequired

    • transcribebooleanrequired

  • object"call_routing"required

  • profile_idstringrequired

    prf_…

Errors

StatusCodeMeans
409calling_not_set_upThe line has no calling.
400validation_failedA field is missing or invalid.
401unauthorizedThe API key is missing, unknown or revoked.
403insufficient_scopeThe API key lacks the scope this needs.
404not_foundNo such object, or the key can't see it.

Every error is { "error": { "code", "message" } }. All error codes.

Keys come with your first line.

Request an invite and we'll set up a line for your team. API access is part of every plan.

Request an invite