workspace-code-execution-policy

Get Workspace Code Execution Policy

Changed on

Read a workspace's code-execution policy.

Takes the same role as setting it (an organization owner/admin, or an owner/admin of this workspace), because the policy describes the workspace's security and billing posture rather than one member's allowance. A workspace with no policy answers with the unconfigured one (configured: false), which is the deployment's own behavior described in the same shape rather than a 404.

get/api/v1/workspaces/{workspace_id}/code-execution-policy

Request

  • The document declares no server URL.
  • Auth: one of:
    • API key in header Otari-Key
    • API key in header x-api-key

Path parameters

workspace_idstring uuid required

Response

Successful Response

allowed_imagesstring[] required
available_toolsstring[] required
configuredboolean required
created_atstring nullable required
default_enabledboolean required
default_purpose_hintstring nullable required
enabledboolean required
exec_timeout_sinteger nullable required
executor'auto' | 'otari' | 'provider' required

Who runs the code a request's code-execution tool asks for.

Values are read without regard to case or surrounding whitespace.

imagestring nullable required
max_iterationsinteger nullable required
sandbox_configuredboolean required
toolsstring[] nullable required
updated_atstring nullable required
workspace_idstring uuid required

Changes