Skip to main content
GET
This endpoint allows you to retrieve a specific contact using different types of identifiers such as ID, phone number, or email address. This flexibility makes it easier to find contacts when you don’t have their unique ID.

Use Cases

  • Find a contact using their phone number when you don’t have their ID
  • Look up a contact by their email address
  • Verify if a contact already exists in your system
  • Retrieve contact details before making a call or sending a message

Path Parameters

string
requerido
The contact identifier, which can be an ID, phone number, or email address. For phone numbers, use international format (e.g., +12124567890).

Query Parameters

string
Specifies what type of identifier is being used. Possible values:
  • id (default): Use when the identifier is the contact’s unique ID
  • phone_number: Use when the identifier is a phone number
  • email: Use when the identifier is an email address

Headers

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

Response

number
200 on success
string
The unique identifier of the contact (UUID format)
string
The timestamp when the contact was created (ISO 8601 format)
string
The phone number of the contact in international format (e.g., +12124567890)
string
The full name of the contact
string
The country of the contact
string
The email of the contact
string
Description or notes about the contact
array
Additional data associated with the contact
string
The ID of the organization the contact belongs to

Error Codes

  • 400 Bad Request - Invalid identifier 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

  • When using phone numbers as identifiers, always use the international format (e.g., +12124567890)
  • Remember to URL-encode identifiers, especially email addresses and phone numbers with special characters
  • The ID lookup is generally faster than lookups by email or phone number
  • If you’re unsure whether a contact exists, use this endpoint to check before creating a new contact
  • Consider implementing caching mechanisms for frequently accessed contacts