Skip to main content
Every request to the Heymarket API must be authenticated. Heymarket supports three authentication methods: a Bearer token, HTTP Basic Auth, and a signed JWT. All three rely on credentials you generate in the Heymarket app.

Get your API key

Log in to Heymarket and navigate to Settings → Integrations. Your team API key is listed there. Copy it — you’ll use it in every request.
Never expose your API key in client-side code, browser JavaScript, or public repositories. Anyone with your key can make API calls on behalf of your team.

Authentication methods

Pass your API key as a Bearer token in the Authorization header. This is the simplest and most common method.
curl https://api.heymarket.com/v1/contacts \
  -H "Authorization: Bearer YOUR_API_KEY"
Replace YOUR_API_KEY with the key you copied from Settings → Integrations.

Request IDs

Every API response includes an X-Request-Id header. Record this value when you encounter an error — the Heymarket support team uses it to look up the specific request in our logs.
X-Request-Id: a1b2c3d4-e5f6-7890-abcd-ef1234567890

Rotating your API key

To roll (rotate) your team API key, visit the Heymarket integrations page. Rotating the key immediately invalidates the previous key, so update all integrations before rotating in a production environment.