[Experimental]

Create a workspace

⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️

Creates a new free-plan workspace owned by the authenticated user. For agent tokens the workspace is created for the agent's sponsor, and the agent's permission policy treats this as an admin action — under the default policy the sponsor approves it first.

post/v1/workspaces

Request

  • Base URL: https://api.prisma.io
  • URL: https://api.prisma.io/v1/workspaces
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL https://auth.prisma.io/authorize, token URL https://auth.prisma.io/token, scopes: workspace:admin, offline_access)
    • HTTP bearer

Request body

displayNamestring

Response

The created workspace.

Changes

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