Docs menu

List calls

GET/v1/profiles/{profile_id}/calls

  • Scope calls:read
  • Pages with before

The line's call log, newest first.

Parameters

Path

  • profile_idstringrequired

    The line (prf_…).

Query

  • limitinteger

    Items per page, 1–200 (default 50).

  • beforestring

    The next_before of the previous page.

  • direction"inbound" | "outbound"

    inbound or outbound.

  • withstring

    Only calls with this number.

  • chat_idstring

    Only calls with this chat's person.

  • statusstring

    Only calls with this status.

Response

200 OKA page of calls.

  • dataarray of Callrequired

    Fields of data
    • idstringrequired

      cal_…

    • object"call"required

    • profile_idstringrequired

      prf_…

    • direction"inbound" | "outbound"required

    • originstringrequired

      pstn (an outside caller), browser, api, sip (your voice agent dialed out) or test.

    • fromstring or nullrequired

    • tostring or nullrequired

    • remote_numberstring or nullrequired

      The other party's number.

    • chat_idstring or nullrequired

      The chat with the same person, if there is one.

    • statusstringrequired

      queued, ringing, in_progress, completed, busy, no_answer, failed or canceled.

    • handled_bystring or nullrequired

      user:usr_…, voice_ai:vep_…, number:+1…, voicemail or team.

    • endpoint_idstring or nullrequired

    • started_attimestamp or nullrequired

    • answered_attimestamp or nullrequired

    • ended_attimestamp or nullrequired

    • duration_secinteger or nullrequired

    • billable_minutesinteger or nullrequired

      Rounded up per call.

    • voicemailobject or nullrequired

      A voicemail left on the call: GET its url with your key for the audio.

      Fields of voicemail
      • urlstringrequired

      • duration_secinteger or nullrequired

      • transcriptionstring or nullrequired

      • storedbooleanrequired

    • transfersarray of objectrequired

      Fields of transfers
      • tostringrequired

      • bystringrequired

      • atstringrequired

    • errorobject or nullrequired

      Fields of error
      • codestringrequired

      • messagestring or nullrequired

    • created_attimestamprequired

  • has_morebooleanrequired

    More items exist after this page.

  • next_beforestring or nullrequired

    Pass as before for the next page; null on the last one.

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