Skip to main content
Create an API key in account settings, then store it as PXXL_API_KEY. Every SDK sends it as a bearer token to https://server.pxxl.app/api/v3.

Client options

string
required
Secret API key. Go, Python, and Rust refuse to create a client without one.
string
Default team for calls that accept a team. A method’s own teamId argument overrides it. Go has no client-level team, so pass the team ID to each call.
Each SDK has a few extra options: In Node.js and Python, set the PXXL_API_URL environment variable to test against a staging or local Gateway (the Node.js baseUrl option is ignored). The pxxl CLI reads it too. It accepts only an https:// host under pxxl.app or localhost, so your key is never sent anywhere else.

Create a client

Identity operations

stats() and usage() return the same usage overview: project and deployment totals, build usage, plan limits, and recent activity.
API keys can be read-only or read-write. A key’s scope can limit it to one area, such as deployments, domains, storage, or tools.
Use SDK keys only in trusted servers, workers, and CI. Do not expose them in browser bundles.