Skip to main content
POST
/
api
/
workspaces
cURL
curl --request POST \
  --url https://recoup-api.vercel.app/api/workspaces \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "workspace": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "isWorkspace": true
  }
}

Body

application/json

Workspace creation parameters

name
string

Name of the workspace (defaults to "Untitled")

account_id
string<uuid>

UUID of the account to create the workspace for. Only applicable when the authenticated account has access to multiple accounts via organization membership. If not provided, the workspace is created for the API key's own account.

organization_id
string<uuid>

Organization to link the workspace to

Response

Workspace created successfully

workspace
object
required