Create new Space
Creates a Space and an initial membership for the authenticated user. Name must be 3–80 characters without URL-forming punctuation. Slug must be 4–50 chars (lowercase letters, numbers, hyphens). `type` must be `personal` or `business`.
/api/v1/spacesThe source export uses a local development server. Examples use the configured Dashio API origin.
The export references authentication schemes without supplying their definitions.
Authentication
bearerAuth
Understand authenticationPath parameters
None declared in this export.
Query parameters
None declared in this export.
Header parameters
None declared in this export.
Request body
application/json · Required
userIdstring (uuid)RequiredAuthenticated user ID (must match token subject).
userFirstNamestringRequiredNo field description supplied.
userLastNamestringRequiredNo field description supplied.
userEmailstring (email)RequiredNo field description supplied.
namestringOptionalSpace name, 3–80 characters without URL-forming punctuation.
slugstringOptionalSpace slug, 4–50 chars; lowercase letters, numbers, hyphens.
countrystringOptionalOptional ISO-3166-1 alpha-2 code (e.g., DE, US).
contact_emailstring (email)OptionalOverrides contact email; defaults to userEmail.
typestringOptionalAllowed values: "personal", "business".
business_namestringOptionalRequired if `type` is `business`; 5–100 chars.
Responses
200
Space created.
successbooleanOptionalNo field description supplied.
spaceSlugstringOptionalNo field description supplied.
spaceIdstring (uuid)OptionalNo field description supplied.
400
Validation error (name, slug, email, etc.).
No response body schema supplied.
401
Unauthenticated.
No response body schema supplied.
403
Forbidden – userId mismatch.
No response body schema supplied.
409
Slug already in use.
No response body schema supplied.
500
Server error while creating Space or membership.
No response body schema supplied.
Was this helpful?