Read the organization's Code policy

GET /api/v1/code/policy on the Caveman Cloud control plane. Requires the org:update scope. Not exposed to autonomous agents: Service accounts, their code:run keys and the organization's Code policy are a person's decisions (org:update). No agent connection mints credentials, disables an account or changes the policy.

get/code/policy

Request

  • Base URL
    https://api.caveman.so/api/v1
  • URL
    https://api.caveman.so/api/v1/code/policy
  • Auth
    • OAuth 2
      Authorization code: /api/v1/oauth/authorize
      Token URL: /api/v1/oauth/token scopes: org:update
    • or HTTP bearer
    • or API key in cookie cave_access
    • or API key in cookie __Secure-cave_identity.session_token

Response

The policy

allowed_enginesstring[]
allowed_modelsstring[]
max_budget_usdnumber nullable
pausedboolean

The kill switch: no session starts while it is on.

paused_atstring date-time nullable
paused_reasonstring
egress_default'install' | 'environment_only'
event_retention_daysinteger
updated_atstring date-time nullable

Changes

No recorded changes to this operation across all 1 revision of this API.