Create a service account

POST /api/v1/code/service-accounts 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.

post/code/service-accounts

Request

  • Base URL
    https://api.caveman.so/api/v1
  • URL
    https://api.caveman.so/api/v1/code/service-accounts
  • 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

Request body

namestring required
project_idstring uuid
owner_user_idstring uuid

Response

The service account

idstring uuid required
organization_idstring uuid
project_idstring uuid required
namestring required
owner_user_idstring uuid nullable
created_bystring uuid nullable
created_atstring date-time required
updated_atstring date-time
disabled_atstring date-time nullable
activeboolean required

Enabled, and its owner is still a member who may run Caveman Code.

Changes

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