Authentication
Project API keys and CLI tokens: where they come from, how to send them, and how to keep them safe.
Every request sends one credential in the Authorization header:
Authorization: Bearer <credential>Project API keys
Create one under API keys in the dashboard, with Sandbox selected. There is one current key per person per project, and it works for every agent in the project. The secret is shown once.
- The key selects the organization and environment. No request field can change them.
- It can authorize, read approvals, and create, list and revoke delegations. It can't change policies, agents or keys, and it can never approve a request, so an agent holding it can't approve itself.
- Roll it to replace it with a grace period (up to 72 hours); Revoke it to stop it immediately.
- Keep it on your servers. Never put it in browser or mobile code, prompts, logs or repositories. The TypeScript SDK refuses to run in a browser.
Check which environment a key belongs to with GET /key-context.
CLI tokens
reqlo login opens your browser, you approve the login in the dashboard, and the CLI stores a personal access token
(rqat_…) in ~/.config/reqlo/credentials.json, readable only by you. It acts as you, with your role:
- List your organizations, projects and environments.
- Manage agents and the catalog (developers and up), list and revoke API keys.
- Approve and reject requests you're allowed to resolve.
- Save policy drafts (developers and up), publish and roll back (owners and admins).
Creating and rolling API keys stays in the dashboard, which asks you to confirm your password first.
For CI, store a token as REQLO_ACCESS_TOKEN. Revoke tokens under Account → CLI tokens in the dashboard, or with
reqlo logout. CLI tokens can't use project-key routes, and project keys can't use token routes.
Failures
| Response | Meaning |
|---|---|
401 authentication_required | No Authorization: Bearer header |
401 api_key_invalid | The key is wrong, revoked or past its grace period |
401 access_token_invalid | The CLI token is wrong, expired or revoked. Run reqlo login. |
403 user_session_required | A project key was used to approve or reject |
403 access_token_not_allowed | A CLI token was used on a route it can't call |
403 access_denied | Your role can't do this in that environment |
An authentication failure is never a decision: don't run the action.
Something wrong or unclear? Report an issue with this page.