Skip to content

Create a workspace (creator becomes admin). With invite_token the invite is accepted instead and NO workspace is created: the response is the workspace joined, with joined_via_invite true. A token that cannot be accepted refuses and creates nothing.

POST
/api/v1/workspaces
curl --request POST \
--url https://example.com/api/v1/workspaces \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "description": "example", "slug": "example", "invite_token": "example" }'
Media typeapplication/json
object
name
string
>= 1 characters <= 100 characters
description
string
<= 200 characters
slug
string
/^[a-z0-9](?:[a-z0-9-]{0,48}[a-z0-9])?$/
invite_token
string
>= 16 characters <= 256 characters
Examplegenerated
{
"name": "example",
"description": "example",
"slug": "example",
"invite_token": "example"
}