The practice organization of the workspace
platform.sandbox.get
Returns the state of the practice organization that test keys (mbs_test_…) work on: whether it exists (it is created with the first test key), its id, when it was created, seeded and last reset, how many test keys of the workspace are active, and which operations that reach an external platform it simulates (the rest of those answer 409 sandbox_external_unavailable there). Called on the workspace or, with a test key, on the practice organization itself; on an Account it answers available: false with reason account_has_no_practice and its workspace in workspace_id. Owners and admins. Module: API & MCP (developer_platform), even though the id starts with platform.; the credential needs the developer_platform:read scope.
- Scope
developer_platform:read- Permission
- View the module · Only owner, admin
- MCP tool
platform_sandbox_getOn the full surface; on the compact one,mb_execute_operationwithid: "platform.sandbox.get".
Declared cost: up to 62 reads and 0 writes per call (they count against the daily quota).
Parameters
No parameters.
Response
workspace_idstringThe workspace that owns the practice organization (for an Account, its workspace).
availablebooleanFalse in an Account: test keys and their practice organization belong to workspaces.
existsbooleanTrue once the practice organization was created (with the workspace's first test key).
test_keysobjectThe workspace's test keys (mbs_test_…).
simulated_operationsarray<string>The operations that reach an external platform and that the practice simulates (the rest of those answer 409 sandbox_external_unavailable there).
reasonenumWhy there is no practice here: account_has_no_practice when called on an Account (ask on its workspace, workspace_id).
Values: account_has_no_practice
sandbox_org_idstringThe practice organization's id.
namestringIts name.
created_atnumberWhen it was created (epoch ms).
seeded_atnumberWhen the example data was last seeded (epoch ms).
seed_versionnumberThe version of the example data.
reset_atnumberWhen it was last reset (epoch ms).
Errors
Example
curl "https://api.mb-suite.com/v1/sandbox" \
-H "Authorization: Bearer $MB_API_KEY"Try it with your test API key
With a test API key the request always goes to your practice organization: example data you can reset.
curl "https://api.mb-suite.com/v1/sandbox" \
-H "Authorization: Bearer $MB_TEST_KEY"