Skip to content

Spaces

Spaces are categories for organizing wins (e.g. “Work”, “Personal”, “Side Project”).

GET /api/v1/spaces

Returns a paginated list of spaces in display order.

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

Returns a single space by ID.

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 YOUR_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 send the fields you want to change.

DELETE /api/v1/spaces/:id

Returns 204 No Content on success. 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)