Skip to main content
All Phota API endpoints require authentication via the X-API-Key header.

Obtaining an API key

Sign up or log in to the Developer Portal to generate an API key.

Using your API key

Include the X-API-Key header in every request:

Error responses

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

Best practices

Never commit API keys to version control or expose them in client-side code. Use environment variables or a secrets manager to store them.
Store your key in an environment variable and reference it in your code:
Generate a new key from the Developer Portal and update your applications. Revoke old keys once the new key is deployed.