Docs menu

List a contact's calls

GET/v1/contacts/{address}/calls

  • Scope calls:read

Recent calls with the person on any line, voicemails included, newest first.

Parameters

Path

  • addressstringrequired

    The person's phone number or email, URL-encoded (%2B14155550142). Any common phone format works.

Query

  • limitinteger

    How many, 1–100 (default 20).

Response

200 OKCalls.

  • object"list"required

  • 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

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