Docs menu

Get a line

GET/v1/profiles/{profile_id}

  • Any API key

One line: its name, number and state. A line the key can't use answers 404.

Parameters

Path

  • profile_idstringrequired

    The line (prf_…).

Response

200 OKThe line.

  • idstringrequired

    prf_…

  • object"profile"required

  • slugstringrequired

  • labelstring or nullrequired

  • statusstringrequired

    provisioning, active, offline, suspended or retired. Prefer state.

  • state"working" | "having_trouble" | "setting_up" | "suspended" | "retired"required

    Whether the line works right now. having_trouble: sends wait in the queue until it's back.

  • phone_numberstring or nullrequired

    The line's number, E.164.

  • calling_on_planbooleanrequired

    Calling is on the plan for this line.

  • call_forwardingobjectrequired

    Forwarding of the line's calls to another number (lines without Calling).

    Fields of call_forwarding
    • forward_tostring or nullrequired

    • status"off" | "requested" | "on"required

  • sending_pausedbooleanrequired

    We paused sending on this line or your whole account while we review recent activity. Incoming messages still arrive; sends answer 403 sending_paused.

  • created_attimestamprequired

Errors

StatusCodeMeans
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