Authentication
API key authentication, key rotation, and request hardening.
Authentication Header
Use only this header:
x-api-key: <API_KEY>
Request Security Baseline
- Always use HTTPS.
- Keep keys only on trusted servers.
- Never expose project-level API keys in browser clients.
- Rotate leaked keys immediately.
Key Rotation Workflow
- Create a new key in your control plane.
- Deploy backend with dual-key support during transition.
- Shift traffic to the new key.
- Revoke the old key.
Backend Proxy Recommendation
Do not call Open API directly from untrusted clients.
Recommended flow:
- Your client calls your backend.
- Your backend injects API key and forwards the request.
- Your backend handles retry, rate-limit backoff, and audit logging.
Common Authentication Failures
401 Unauthorized
Typical causes:
- Missing API key header.
- Invalid or revoked key.
- Malformed
x-api-keyvalue.
403 Forbidden
Typical causes:
- The API key is not authorized for Open API access.
- The account is not eligible for the requested Open API route.
For project, upload, asset, and export routes, 403 OPEN_API_RUNTIME_ACCESS_FORBIDDEN means the current account cannot use that route right now.
Quick Checks
- Ensure no leading or trailing spaces in keys.
- Ensure the request points to the Open API base URL.
- Confirm server clock and outbound network are healthy.
Last updated on