Skip to main content
Create a key in Settings > Developer > API keys (see account settings). Keys start with pxxl_ and are shown once. Send the key from a trusted server.
string
Bearer followed by your Pxxl API key.
string
The raw API key. Use it instead of Authorization if your client already uses that header.
string
Team to work in, on endpoints that support teams. team is accepted as an alias.

Check the active identity

Identity and usage endpoints

/cli/usage and /cli/stats accept keys scoped to all, deploy, project, or database.

Scopes

Each key has one scope. A route accepts the key only if its scope is in that route’s list. MCP keys are separate. They only work at the MCP endpoint.

Permissions

Team-scoped keys

A key created for a team works only inside that team. If you pass a different teamId, the API returns 403 with API key is scoped to a different spaceship. Plan checks use the team owner’s plan.

Authentication errors

Do not expose API keys in browser code, public repositories, screenshots, logs, or client-side environment variables.