Contacts

Learn how to get email contacts using the Unipile API.

List all contacts

On Google and Outlook accounts, use List all Contacts with the connected account ID. The account must have the appropriate OAuth contacts permission.

Set limit to control the page size. If the response contains next_cursor, pass it as cursor on the next request. Google and Outlook do not support offset for this operation.

curl --request GET \
  --url "https://api.unipile.com/v2/acc_123456789/contacts?limit=20" \
  --header 'X-API-KEY: YOUR_API_KEY'
const { data } = await emailsApi.getContactsList({
  path: { account_id: "acc_123456789" },
  query: { limit: 20 },
});
contacts = emails_api.get_email_contacts_list(
    account_id="acc_123456789",
    limit=20,
)

Did this page help you?