Skip to main content
GET
This endpoint allows you to retrieve the complete call history for a contact using their phone number. This is useful when you don’t have the contact’s ID but need to quickly access their call history.

Use Cases

  • Review call history with a contact using just their phone number
  • Track communication history for incoming calls from unknown numbers
  • Quick lookup of call records during customer service interactions
  • Verify previous interactions with a phone number

Path Parameters

string
requerido
The phone number of the contact in international format (e.g., +12124567890)

Headers

string
requerido
Your API key for authentication. You can find this in your dashboard under API settings.

Query Parameters

string
Filter calls that occurred on or after this date (ISO 8601 format, e.g., 2023-01-01). If not specified, returns all calls from the beginning.
string
Filter calls that occurred on or before this date (ISO 8601 format, e.g., 2023-12-31). If not specified, returns all calls up to the current date.
string
Filter calls by direction. Possible values: inbound, outbound. If not specified, returns both inbound and outbound calls.
string
Filter calls by status. Possible values: answered, missed, rejected, busy, failed. If not specified, returns calls with any status.

Response

number
200 on success
object
Information about the contact
object
The call history for the contact

Error Codes

  • 400 Bad Request - Invalid phone number format
  • 401 Unauthorized - Invalid or missing API key
  • 404 Not Found - Contact not found
  • 500 Internal Server Error - Server-side error

Code Examples

Notes and Best Practices

  • Always use international format for phone numbers (e.g., +12124567890)
  • URL encode the phone number in the request URL to handle special characters
  • Use date filtering to narrow down results for contacts with extensive call histories
  • Consider implementing caching for frequently accessed call histories
  • Monitor call durations and frequencies to optimize customer engagement strategies