Snoze Developers
API referenceWorkspaces

Create

POST
/v1/workspaces
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/workspaces" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "slug": "string"  }'
{  "data": {    "id": "string",    "slug": "string",    "name": "string",    "icon": "initials",    "accentColor": "string",    "imageUrl": "string",    "role": "owner",    "createdAt": "string",    "updatedAt": "string"  }}