GET
user-spaces/
User APIService tier
Return spaces accessible to the acting user (same rules as internal_list_spaces).
This read is not paginated. It returns at most 8 rows and does not report a total, so a result of exactly 8 may be truncated.
URL
- User APIhttps://productivity.mattering.io/api/user/v1/user-spaces/
- Service tierhttps://productivity.mattering.io/api/internal/user-spaces/
Responses
200 bare JSON object (no envelope)
{
"spaces": [
{
"public_id": "...",
"name": "..."
}
]
}
Field names come from the code; values are placeholders (... is a string, 0 a number, dates are ISO 8601).
Errors
| Status | Code |
|---|---|
| 400 | missing user id message |
| 401 | missing_actor |
| 401 | unauthorized |
| 403 | forbidden |
Example
curl -X GET "https://productivity.mattering.io/api/user/v1/user-spaces/" \ -H "Authorization: Bearer $MATTERING_API_KEY"
curl -X GET "https://productivity.mattering.io/api/internal/user-spaces/" \ -H "X-Internal-Secret: $MATTERING_INTERNAL_API_SECRET" \ -H "X-Internal-Org-Id: $ORG_ID" \ -H "X-Internal-User-Email: you@example.com"
Source: MatteringPMCore/internal_api.py (internal_api.internal_user_spaces)