Docs menu

List lines

GET/v1/profiles

  • Any API key

The lines this key can use, oldest first. A key limited to some lines sees only those.

Response

200 OKThe lines.

  • dataarray of Profilerequired

    Fields of data
    • 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

  • has_morebooleanrequired

    More items exist after this page.

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