Get Contacts
This API allows you to retrieve a list of contacts associated with a specific user domain, based on the provided API key.
Endpoint
Authentication
You must provide an API key as a query parameter to authenticate the request. The key is used to identify and authorize the user making the request.
Query Parameters
api_key
(required): The API key for authenticating the request. You can obtain this from the Panda IDX dashboard.
Request Examples
Response
The API returns a JSON array of contact objects. Each contact contains the following fields:
Response Fields
Field | Type | Description |
---|---|---|
id | String | The unique identifier of the contact. |
name | String | The full name of the contact. |
email | String | The email address of the contact. |
phones | Array | An array of phone numbers associated with the contact. |
createdAt | String | The date and time when the contact was created (ISO 8601 format). |
stage | String | The current stage of the contact, indicating their status (e.g., lead, client). |
source | String | The source of the contact (e.g., referral, signup form). |
image | String | The URL to the contact's profile image, if available. |
spokenLanguages | Array | A list of languages spoken by the contact. |
address | String | The full address of the contact. |
streetAddress | String | The street address of the contact. |
notes | String | Notes about the contact (e.g., follow-up details). |
links | Object | An object containing social media and other links related to the contact. |
registration | Object | An object containing the registration details of the contact. |
Example Response
Errors
In the case of an error, the API will return an appropriate HTTP status code and an error message.
Error Codes
HTTP Code | Error Type | Description |
---|---|---|
404 | NotFoundError | No contacts found for the given domain or API key. |
500 | ServerError | An internal server error occurred. |
Example Error Response
Notes
- Ensure that the API key provided is valid and belongs to an authenticated user.
- The returned contacts are filtered based on the user domain associated with the API key.