dg_test_.
What’s in the sandbox
- Five accounts: «Картка» (a card), «Кредитка» (a credit card with a limit and a negative balance), «Готівка» (cash), «Скарбничка» (savings) and «Долари» in USD.
- About 120 transactions over the last 90 days: groceries, cafés, transport, a salary, utilities, a refund, transfers to «Скарбничка» and an exchange of hryvnias into dollars.
- A monthly «Кава» budget, a recurring subscription and the «Мій скрипт» source.
Create a sandbox
1
Open “Tokens and sources”
On the web, open “Settings” › “For developers” › “Tokens and sources”.
2
Create the sandbox
In the “Sandbox” card, click “Create a sandbox”. It’s ready in a few seconds, and “Refreshed …” shows when its data
was seeded.
3
Have a look
“Open” switches the web app to the sandbox. In the space switcher it comes last, marked “Sandbox”.
A sandbox key
1
Create a key
In “Tokens and sources”, click “Create a key” and tick “For the sandbox”. The list of spaces goes away: the key
works with the sandbox alone.
2
Copy it
The key starts with
dg_test_. Copy it right away: it’s shown only once.dg_pat_ key can’t reach it. You don’t need the X-Space-ID
header: the key has one space. You can have up to 5 sandbox keys, and they don’t count towards your plan’s key limit.
Everything else works as for any key: access, expiry, IP addresses and revoking are in
API keys.
Reset to the starting data
A reset puts the sandbox back to its starting data: whatever changed in it goes, and the data is seeded again. The space stays the same, so its id, keys and webhooks keep working.- On the web: in the “Sandbox” card, click “Reset to the starting data”, then “Reset”.
- Through the API:
POST /v1/sandbox/resetwith a sandbox key, for example before each test run. In the SDKs it’ssandbox.reset(). An ordinary key gets 403 with the codeSBX_004.
SBX_003, and details.retry_after
says how many seconds to wait. After a reset, change feed cursors get 410: start reading it
again. Webhooks for the sandbox.reset event hear about the reset first: see
sandbox.reset.
What the sandbox doesn’t have
- Connections: banks, wallets, exchanges and brokers don’t connect to the sandbox (403,
SBX_001). File imports work. - Sharing: you can’t invite someone, share an account or move one into the sandbox (403,
SBX_002). - AI: it can’t be turned on in the sandbox (403,
SBX_006), so AI clients through MCP don’t see it. - E-mails and push notifications: notifications stay in the app. Webhooks arrive as from any space.
- Summaries: the sandbox isn’t part of «Рік із деГроші» or the account export.
The reference console
On the API reference pages you can send a request right from the page. The console takes only a sandbox key: with any other key the API answers 403 with the codeAUTH_081, so real data
can’t be read through the reference. The request goes from your browser straight to api.degroshi.com, through no
server in between.
Delete the sandbox
In the “Sandbox” card, click “Delete”, then “Delete” again. The sandbox goes with all its data, anddg_test_ keys
stop working. You can create a new one at any time.
Error codes
All codes: Errors.