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.
- Escopo
developer_platform:read- Permissão
- Ver o módulo · Só owner, admin
- Tool do MCP
platform_sandbox_getNa superfície completa; na compacta,mb_execute_operationcomid: "platform.sandbox.get".
Custo declarado: até 62 leituras e 0 escritas por chamada (contam na cota diária).
Parâmetros
Sem parâmetros.
Resposta
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).
Valores: 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).
Erros
Exemplo
curl "https://api.mb-suite.com/v1/sandbox" \
-H "Authorization: Bearer $MB_API_KEY"Testar com a sua API key de teste
Com uma API key de teste o pedido vai sempre para a sua organização de prática: dados de exemplo que você pode reiniciar.
curl "https://api.mb-suite.com/v1/sandbox" \
-H "Authorization: Bearer $MB_TEST_KEY"