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.
- Alcance
developer_platform:read- Permiso
- Ver el módulo · Solo owner, admin
- Tool del MCP
platform_sandbox_getEn la superficie completa; en la compacta,mb_execute_operationconid: "platform.sandbox.get".
Costo declarado: hasta 62 lecturas y 0 escrituras por llamada (cuentan en el cupo diario).
Parámetros
Sin parámetros.
Respuesta
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).
Errores
Ejemplo
curl "https://api.mb-suite.com/v1/sandbox" \
-H "Authorization: Bearer $MB_API_KEY"Probar con tu API key de prueba
Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar.
curl "https://api.mb-suite.com/v1/sandbox" \
-H "Authorization: Bearer $MB_TEST_KEY"