Authentication

How you authenticate depends on whether you're accessing your own Apollo workspace or building an integration for other Apollo users.

When you use Apollo API, any records you create are attributed to the user your request acts as. That user depends on how you authenticated.

To see how Apollo API, MCP, and CLI compare, check out Build with Apollo.

Authenticate with an API key

Apollo users accessing their own data authenticate with an API key passed in the x-api-key header.

To get started, create an API key and test your key to ensure it works. Apollo recommends that you use a scoped key limited to the endpoints your workflow requires. Use a master API key only when an endpoint needs it.

When you create an API key, it identifies your Apollo workspace, not the user who created it. Every API key request acts as your workspace's longest-standing active admin: the earliest-created user who hasn't been deleted and has admin access. By default, that user owns the records you create.

To confirm which user your key acts as, call get current user profile with it. The id returned is the acting user, and the same value can appear in owner fields such as object_owner_id.

curl --request GET \
  --url 'https://api.apollo.io/api/v1/users/api_profile' \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: YOUR_API_KEY'

Some endpoints accept an owner field so you can set ownership explicitly instead of taking the acting user. For example owner_id on create an account or user_id on update a sequence allow you to manage ownership explicitly. Use get a list of users to look up user IDs for your workspace.

Authenticate with OAuth 2.0

Apollo partners accessing data on behalf of other Apollo users authenticate with an OAuth 2.0 access token passed in the Authorization: Bearer header.

To get started, set up the OAuth 2.0 authorization flow. If you want to promote your integration, apply to feature it on Apollo Marketplace.

With OAuth 2.0, tokens are issued to a specific person, so requests act as the user who granted the token. However, some endpoints like update a sequence allow you to manage ownership explicitly.