GET
/
v1
/
contacts
curl --request GET \
  --url https://api.openphone.com/v1/contacts
{
  "data": [
    {
      "id": "664d0db69fcac7cf2e6ec",
      "externalId": "664d0db69fcac7cf2e6ec",
      "source": "public-api",
      "sourceUrl": "https://openphone.co/contacts/664d0db69fcac7cf2e6ec",
      "defaultFields": {
        "company": "OpenPhone",
        "emails": [
          {
            "name": "company email",
            "value": "[email protected]",
            "id": "acb123"
          }
        ],
        "firstName": "John",
        "lastName": "Doe",
        "phoneNumbers": [
          {
            "name": "company phone",
            "value": "+12345678901",
            "id": "acb123"
          }
        ],
        "role": "Sales"
      },
      "customFields": [
        {
          "name": "Inbound Lead",
          "key": "inbound-lead",
          "id": "66d0d87d534de8fd1c433cec3",
          "type": "multi-select",
          "value": [
            "<string>"
          ]
        }
      ],
      "createdAt": "2022-01-01T00:00:00Z",
      "updatedAt": "2022-01-01T00:00:00Z",
      "createdByUserId": "US123abc"
    }
  ],
  "totalItems": 123,
  "nextPageToken": "<string>"
}

Query Parameters

externalIds
string[]
required

A list of unique identifiers from an external system used to retrieve specific contacts. This parameter is required and ensures the result set is limited to the contacts associated with the provided externalIds. These IDs must match the ones supplied during contact creation via the "Create Contacts" endpoint. Use this parameter to cross-reference and fetch contacts linked to external systems.

A unique identifier from an external system that can optionally be supplied when creating a contact. This ID is used to associate the contact with records in other systems and is required for retrieving the contact later via the "List Contacts" endpoint. Ensure the externalId is unique and consistent across systems for accurate cross-referencing.

sources
string[]

Indicates how the contact was created or where it originated from.

maxResults
integer
default:10
required

Maximum number of results to return per page.

Required range: 1 <= x <= 50
pageToken
string

Response

200
application/json
Success
data
object[]
required
totalItems
integer
required

Total number of items available. ⚠️ Note: totalItems is not accurately returning the total number of items that can be paginated. We are working on fixing this issue.

nextPageToken
string | null
required