Authentication
E3D uses API keys for authenticated access. Key management lives on e3d.ai; this docs site links there rather than reimplementing auth.
API key flow
- Create an account on e3d.ai/signup
- Open the API Keys dashboard on e3d.ai
- Create a key and copy it immediately
- Send it on each request
Header format
Use the standard bearer-style auth header shown below.
Authorization: Bearer <your-api-key>The SDKs default to the E3D API key header used by the live deployment.
Key management
- Create keys on e3d.ai
- Revoke keys on e3d.ai
- Rotate keys regularly
- Store keys in environment variables, never in source control
Error responses
Common auth failures include:
401— missing or invalid key403— revoked or unauthorized key429— rate limited
Example shape:
{
"code": "AUTH_INVALID",
"message": "Invalid API key",
"status": 401,
"endpoint": "/stories"
}Best practices
- Keep keys in
.envfiles or deployment secrets - Treat the raw key as sensitive from the moment it is created
- Rotate keys on staff changes or suspected exposure
- Use separate keys for development and production