Environments
How sandbox and production are separated, and how the API key selects the environment.
Every project has its own environments. Agents, actions, resource types, policies, delegations, approvals, webhooks, keys and decisions in one environment are invisible to the others.
| Environment | Key prefix | Use it for |
|---|---|---|
| Sandbox | rq_test_ | Development, tests, CI and the beta |
| Production | rq_live_ | Real agents and users. Not open during the beta. |
During the beta, every project gets a Sandbox environment and keys are issued for sandbox only. The header selector in the dashboard shows Production as not available yet.
The key decides the environment
There is no environment field in an authorization request. The project API key you send selects the environment,
so a request can't switch environments by editing JSON. A decision tells you where it was made:
{ "decision": "allow", "environment": "sandbox", "livemode": false }Getting your key
Open API keys in the dashboard with Sandbox selected and select Create API key. There is exactly one current key per person per project, and every agent in the project uses it. Keys are never tied to one agent.
- The secret is shown once. Store it in your server's secret store, never in browser code or a repository.
- Roll replaces the key. The old key keeps working for a grace period you choose (up to 72 hours, 24 by default) so you can deploy the new one.
- Revoke stops the key immediately.
Working in the sandbox
- Register the actions and resource types your agents use (Actions & resources).
- Write and test policies, in the dashboard or as files with the CLI.
- Publish them. Only published policies affect decisions in that environment.
- Prove that denied, approval-required and failed checks never run the action. See Testing.
The CLI reads the environment from reqlo.config.yaml (or --environment <id>), so CI always targets the
environment you name. Copy the Environment ID from the API keys page:
environment: <SANDBOX_ENVIRONMENT_ID>Rules
- Never put real customer data in the sandbox.
- Keep the key on servers that call ReQlo. Never log it.
- Configure your application with one key per deployment, and fail at startup if it is missing, rather than running without authorization.
Something wrong or unclear? Report an issue with this page.