Skip to main content
POST
Create Space
Creates a new space. The authenticated user is automatically added as an admin. Supports optional avatar and banner image upload via multipart form data.

Body Parameters

string
Display name for the space. Must be 3–100 characters.
string
Optional URL slug. Must be unique per project. Supports Unicode letters, numbers, hyphens, and underscores.
string
Optional description. Up to 1,000 characters.
string
Who can read content: "anyone" or "members". Defaults to "anyone".
string
Who can post entities: "anyone", "members", or "admins". Defaults to "members".
boolean
Whether new joins require approval. Defaults to true.
object
Optional arbitrary key-value data. Up to 1 MB.
string
Optional UUID of a parent space. The caller must be an admin of the parent space.
file
Optional avatar image. Multipart form field. Requires avatarFile.options when provided.
file
Optional banner image. Multipart form field. Requires bannerFile.options when provided.

Response

Returns the created Space object with membersCount, childSpacesCount, and optional file associations.

Error Responses

See also: useCreateSpace