How Authentication Works
The Tented API uses bearer API keys. Each key belongs to exactly one Tented workspace, and every request runs in that workspace’s context. Send your key in theAuthorization header:
Creating an API Key
Tented API keys are created inside Tented by a workspace admin.- Ask an admin to create an API key for your workspace.
- Copy the raw key when it is shown.
- Store it in your secrets manager or environment variables.
Request Example
Common Authentication Failures
Security Notes
- Treat the key like a password.
- Never expose it in browser-side code.
- Rotate or revoke it if you suspect leakage.
- Use separate keys for separate systems when you want cleaner auditability.
Workspace Scope
An API key cannot cross workspace boundaries. For example:- A tent created with Workspace A’s key cannot be fetched with Workspace B’s key.
- An asset uploaded with one workspace’s key cannot be attached from another workspace.
Required Headers
Next: Upload Assets
Learn how to attach files to a new or existing tent before generation.