Obtaining a PAT
- Sign in to the Qoder console.
- Open Settings → API Tokens.
- Click Create token and configure the name and scopes.
- Copy the generated token. The full value is shown only once—store it securely.
PATs are prefixed with
pt-, e.g. pt-your-token-here. Never commit tokens to source control or share them.Bearer header format
Pass the PAT in theAuthorization header of every request as a bearer token:
Full request example
Environment variable (recommended)
Store the PAT as an environment variable to avoid hard-coding:Security recommendations
- Use separate PATs for development, staging, and production.
- Rotate tokens regularly.
- Apply least-privilege scopes when issuing tokens.
- Revoke any leaked token immediately from the console.
Related
Overview
How Qoder Cloud Agents fits together.