Authentication
Choose the right credential for the REST API, email previews, or MCP.
REST API keys
Generate a key in Manage Account → API Key. Send it as an HTTP header.
x-api-key: YOUR_API_KEY
Keep your key server-side. Store it in an environment variable or secret manager and redact it from logs, including profile responses. Rotating a key invalidates the old one. Update any connected services when you rotate.
| Response | What to check |
|---|---|
401 |
The x-api-key header is missing on a key-only request. |
403 |
The key is unknown or its API access is disabled. Check the key and your plan. |
Email preview and sign-in
Use x-email on POST /v1/upload to publish a preview for an email address without an account. Send one upload credential header per request. Use the email preview guide to get a key through email verification.
MCP authentication
MCP supports email sign-in, API keys, and an OAuth endpoint for the ChatGPT connector. See MCP connection modes.