POST
/spaces/createCreate a space
Creates a new space in the workspace with a display name and URL-friendly slug. Supply name and slug; the slug must be unique within the workspace and contain only alphanumeric characters and hyphens.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
The new space's name, slug, and optional description.
descriptionstringoptional
Optional space description.
namestringrequired
Display name for the space.
slugstringrequired
URL-friendly identifier used in page URLs (e.g. `/s/my-space/page-slug`). Must be unique within the workspace. Alphanumeric and hyphens.
200Returns the created space, including its member count, in the response `data` field.
dataobjectoptional
Space with member count
statusintegeroptional
successbooleanoptional
400Returned when the space slug is already in use or the request fails validation.
errorstringoptional
Reason phrase, for example `Bad Request`.
messagestringoptional
statusCodeintegeroptional
403Returned when the authenticated user does not have Manage/Space workspace permission.
errorstringoptional
Reason phrase, for example `Bad Request`.
messagestringoptional
statusCodeintegeroptional
Error handling
A 400 is returned when name or slug fails validation, or the slug is already in use. name and slug must each be 2–100 characters, and slug must contain only alphanumeric characters and hyphens. A 403 is returned when the authenticated user lacks Manage/Space workspace permission.