Skip to main content
All requests to the Conversion API must include a valid API key. API keys are scoped to a single business and grant full access to that business’s data.

API key format

API keys follow this format:
You can generate and manage API keys from the Settings > API Keys page in the Conversion dashboard.
Treat your API key like a password. Do not expose it in client-side code, public repositories, or browser requests. Always make API calls from a secure server environment.

Authenticating requests

Include your API key in the X-API-Key header of every request. You can also pass it as a query parameter.

Pass the key as a query parameter

If your tool can’t set request headers, pass the key in the api_key query parameter instead. Every endpoint accepts it. If a request sends both, the X-API-Key header is used.
cURL
Use the header when you can. URLs, including their query parameters, can be recorded in server logs, proxy logs, and browser history.

Error responses

If the API key is missing or invalid, the API returns a 401 Unauthorized response.