Authorization header, and Pxxl validates the key’s scopes before processing the request. Because the key grants real access to your workspace, you must keep it exclusively on your backend — never ship it inside browser bundles, client-side code, or mobile applications.
Get an API Key
Navigate to Dashboard > API Keys to manage your platform tokens. Click Create API Key or New API Key to open the key creation form, then fill in:- Key name — a readable label such as
Production deploy bot,CDN uploader, orInternal monitor - Description — optional context explaining where the key is used
- Scopes / permissions — restrict the token to the minimum capabilities your integration needs
- Expiration — set a rotation date and avoid permanent tokens wherever possible
Authorization Header
Include the key on every request using theAuthorization header:
Node.js Helper (TypeScript)
The example below shows a backend-safe API helper. StorePXXL_API_KEY in your server environment variables and call Pxxl from there — never from the browser.
lib/pxxl.ts
API Key Scopes
Create a separate key for each workflow and limit each key to the smallest set of permissions it actually needs.| Workflow | Recommended Scope Pattern |
|---|---|
| Backend deployment checks | Read deployment and project status only. |
| CDN uploader | CDN asset upload and read permissions. |
| Internal automation | Narrow project, domain, or billing scopes for that specific automation. |
| Monitoring service | Read-only status and usage permissions. |
Rate Limiting
Pxxl enforces rate limits on all API endpoints. When your integration exceeds the allowed request rate, the API returns HTTP429 Too Many Requests. Handle this response with exponential backoff — wait a short initial delay, then double the wait time on each subsequent retry — rather than immediately retrying in a tight loop.