Authorization header — there are no session cookies, no OAuth flows, and no intermediate login steps. Keep your API key secret and treat it with the same care as a password.
Add the Authorization header
To authenticate, include the following header in every API request, replacing$apikey with your actual API key:
Authorization: Bearer $apikey header pattern to every endpoint you call — POST, GET, or otherwise.
Authenticate follow-up links
API responses frequently include URLs that point to further resources. The rules for authenticating those URLs differ depending on where they live:- Links under
api.eyequant.com— These are first-party API resources. Send the sameAuthorization: Bearer $apikeyheader when requesting them, exactly as you would for any other API call. - Off-domain links (e.g. AWS S3) — Analysis outputs such as attention heatmap images are served directly from external storage. These URLs already contain time-limited authorization tokens embedded in the query string. Do not attach any additional
Authorizationheader when downloading them; doing so may cause the request to fail.
Obtain your API credentials
API credentials are not self-serve. To get your API key, reach out to the EyeQuant team at sales@eyequant.com. Once you have your key, store it securely — for example, in an environment variable or a secrets manager — and avoid committing it to source control.
