Skip to content

Spaces

Spaces organize wins and can be shared with collaborators. Each collaborator has read_only, owner_edit, or full_access access.

GET /api/v1/spaces

Returns a paginated list of spaces the authenticated user owns or can access, in display order.

Terminal window
curl https://app.myhypedoc.com/api/v1/spaces \
-H "Authorization: Bearer $HYPEDOC_TOKEN"
GET /api/v1/spaces/:id

Returns a single space by ID.

owner_id identifies the user charged for the space and all wins inside it. access_level is owner for owned spaces, otherwise read_only, owner_edit, or full_access.

POST /api/v1/spaces
FieldTypeRequiredDescription
space[name]stringYesSpace name
space[emoji]stringNoEmoji icon for the space
space[position]integerNoDisplay order (lower = first)
Terminal window
curl -X POST https://app.myhypedoc.com/api/v1/spaces \
-H "Authorization: Bearer $HYPEDOC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"space": {
"name": "Side Project",
"emoji": "🚀",
"position": 2
}
}'
PATCH /api/v1/spaces/:id

Accepts the same fields as create. Only the space owner can update it.

DELETE /api/v1/spaces/:id

Returns 204 No Content on success. Only the space owner can delete it. Deleting a space also deletes all wins in that space.

StatusMeaning
401Missing or invalid token
402Free plan limit reached (3 spaces)
404Space not found
422Validation error (e.g. missing name)