Documentation

Sandbox

5 min read · last updated 18 August 2026

A Sandbox is a complete copy of the API surface with fictional data — the same addresses, the same fields, the same errors. It lives entirely at artim/dev: a request with a Sandbox key never reaches the product.

How it works

Real token (mcapi_…)Sandbox key (ai_sbx_…)
Addressmembers.api.methacore.de/v1/membersthe same
Response shapereal datafictional data, same fields
PathGateway → productGateway, answered there
Rate limitcounts towards quotadoes not count
Breaking thingspossibleimpossible

So you switch the environment by switching the key — not the URL. The same code, the same deployment, a different token.

# against the Sandbox
curl "https://members.api.methacore.de/v1/members?limit=2" \
  -H "Authorization: Bearer ai_sbx_…"

# against real data — only the key is different
curl "https://members.api.methacore.de/v1/members?limit=2" \
  -H "Authorization: Bearer mcapi_…"

Create a Sandbox

  1. Create a new Sandbox in the console under Sandboxes. Each Sandbox belongs to exactly one API — a members Sandbox does not answer on the accounting subdomain.
  2. In the same step you receive a Sandbox key. It is shown exactly once; only its hash is stored.
  3. The key's scopes decide what it may do — just like with real tokens. If a scope is missing, the Sandbox responds with 403 missing_scope.

The data

It is generated from the Sandbox's seed: the same Sandbox always returns the same records. A test that ran yesterday runs the same way today — without anyone maintaining a data set. A reset in the console re-rolls the seed if you want fresh data.

The volume is deliberately realistic: 120 members, 240 bookings, 96 direct debits, 12 meetings, 24 training plans, 9 competitions, 5 badges. Enough to seriously test paging, search and rankings.

What is different in the Sandbox

  • Enterprise scopes are open to everyone. You can try mandates, DATEV and the archive here without an Enterprise membership — the data is fictional. Real data requires the membership.
  • No rate limit. Sandbox calls do not count towards your per-minute quota, but they do appear in the live log under usage.
  • Every response carries X-Artim-Sandbox with the Sandbox's identifier — so when in doubt, you can tell you are not working on real data.

Limits

AccessSandboxes in totalper project
Hobby102
Developer membership4010
Enterprise10025

Writing in the Sandbox

Everything the real API can write, the Sandbox writes too — at the same address, with the same body, the same errors:

curl -X POST "https://members.api.methacore.de/v1/departments" \
  -H "Authorization: Bearer ai_sbx_…" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Bahn-9", "location": "Hallenbad" }'

The response is a 201 with the created entry, and the next list contains it — at the top, because it is the newest. A PATCH stays visible, a DELETE removes the entry from the lists and makes the subsequent fetch respond with 404. The rules apply too: an assigned booking cannot be deleted, approved minutes cannot be approved twice, a full event puts the next registration on the waiting list.

What you write lies as an overlay on top of the generated data — separate per Sandbox, separate per team. Reset throws this overlay away: afterwards the data set is exactly the one from day one. A test run that creates data therefore needs no clean-up — one click is enough.