Sandbox
Try policies, agents and purchasing workflows in Sandbox without making real purchases. How to get in, cmp_test_ API keys, the Sandbox base URL, webhooks and resetting.
What Sandbox is#
Sandbox is a separate Veriticity environment at https://sandbox.veriticity.com, with its own agents, policies, budgets, API keys, webhooks and purchase history. Use it to try policies, agents and purchasing workflows without making real purchases.
Purchases in Sandbox are decided exactly as they are in Production: the same rules produce the same outcome, approvals escalate to a person in the same way, and every decision is explained in the same terms. Nothing you do in Sandbox affects Production.
| Production | Sandbox | |
|---|---|---|
| Dashboard and API | https://app.veriticity.com | https://sandbox.veriticity.com |
| API key prefix | cmp_live_ | cmp_test_ |
| Email from Veriticity | Veriticity | Veriticity Sandbox, with [Sandbox] at the start of the subject |
| Dashboard session | A week, renewed while you use it | 12 hours, then switch again from Production |
Getting in#
There is no separate Sandbox account and no Sandbox password.
- Sign in at
https://app.veriticity.com. - Open the environment switcher in the sidebar and choose Sandbox.
- You arrive in the Sandbox dashboard, already signed in, with a banner that reads “Real purchases cannot be made here.”
Your email address must be confirmed first. To go back, choose Production in the same switcher; you stay signed in to both.
What comes with you#
Each time you switch to Sandbox, a few details are brought across from Production. Nothing else is, and nothing goes back.
| Brought across on every switch | Never brought across |
|---|---|
| Your name and email address | Agents, policies and budgets |
| Your role in the organisation | API keys and OAuth connections |
| The organisation’s name, account type, currency, timezone and approval window | Webhook endpoints and their signing secrets |
| Notifications you have switched off | Purchases, approvals and audit history |
So a name changed in Production appears in Sandbox the next time you switch. Anything you create or change in Sandbox stays in Sandbox.
API keys#
Sandbox keys are issued in the Sandbox dashboard, in the same way and with the same two kinds described in Authentication. They start with cmp_test_.
A key only works in the environment that issued it. A cmp_test_ key sent to Production, or a cmp_live_ key sent to Sandbox, is refused before it is looked up, and the message names the address it belongs to:
Fix the base URL rather than the key. Retrying the same request will get the same answer.
Calling the API#
Every endpoint in the API reference is served from the Sandbox address at the same path, and returns the same shapes and the same errors.
With the TypeScript SDK, pass the Sandbox address as baseUrl. It defaults to Production.
Webhooks#
Webhook endpoints are registered separately in each environment. An endpoint registered in Sandbox receives Sandbox events only, signed with its own secret; Production endpoints never receive them.
Event payloads have the same shape in both environments, so point Sandbox at a different receiving URL from Production. Signature verification works exactly as described in Webhooks.
Resetting Sandbox#
An organisation owner can reset Sandbox from Settings in the Sandbox dashboard. It can’t be undone, and it takes effect immediately.
| Removed | Kept |
|---|---|
| Sandbox agents, policies and budgets | Your Veriticity account |
| Sandbox API keys — code using one stops working | Everything in Production |
| Connected AI apps, which need connecting again | Everyone who can reach this Sandbox, with the same roles |
| Webhook endpoints and their signing secrets | |
| Sandbox purchases, approvals and transaction history |
Reset and load examples does the same, then adds an agent called Example Shopping Agent and an active policy called Example spending rules: purchases over 100 need approval, purchases over 500 are blocked, and spending is capped at 1,000 a month, in the organisation’s currency. It adds no purchase history.