Skip to main content
All Doofinder APIs require authentication via the Authorization HTTP header. The exact format and key type vary by API.

API Keys

Generate an API key in the Doofinder Admin Panel under Account → API Keys. One key covers all APIs — Search, Management, and Stats.
Only the API key of the account owner is valid for API operations. Keys generated by team members will not work.

Key format

The same key works across all APIs. You may see it written with a zone prefix (e.g. eu1-ab46030x...) — this prefix is optional and ignored by the API. Both formats are valid:
The zone that serves your request is determined by the hostname you call, not by the key.

Token Authentication

Pass the API key in the Authorization header as a Token:

JWT Authentication

The Management API and Stats API also support JSON Web Tokens (JWT) as an alternative to static API keys. JWTs are useful when you need short-lived credentials or want to avoid embedding long-lived secrets in client code.

Required JWT claims

Signing

Sign the JWT with your API management key using the HS256 algorithm.

Usage

Send the JWT in the Authorization header as a Bearer token:

Recommendations API

The Recommendations API does not use the Authorization header. The widget ID (a UUID) serves as the credential and is passed directly in the URL path:
CORS is enforced on the Recommendations API. The Origin and Referer headers must match a domain configured in your store settings, or requests will be rejected with 403 Forbidden Origin.

Service zones

Your Doofinder account is assigned to a specific zone. All API calls must go to the correct zone hostname:
Your zone is visible in the Doofinder Admin Panel and is also encoded in your API key prefix.