List all spaces the current user has access to within an organization.
GEThttps://api.aitronos.com/v1/spaces/
Retrieve a paginated list of spaces that the authenticated user has access to. Results are filtered based on the space's access_mode and the user's roles, departments, and permissions:
organizationโ visible to all members of the organizationpublicโ visible to everyoneprivate/customโ visible only if the user is inaccess_users, has a role invisible_to_roles, belongs to a department inaccess_departments, or is the space creator
Users with the override_all_permissions capability can see all spaces in the organization.
organization_id string required
Organization ID to list spaces for.
limit integer optional ยท Defaults to 50
Maximum number of spaces to return. Must be between 1 and 100.
cursor string optional
Pagination cursor from a previous response's next_cursor field.
An object containing a spaces array of Space objects and a next_cursor for pagination.
cURL
- Bash
- Python
- JavaScript
curl "https://api.aitronos.com/v1/spaces/?organization_id=org_abc123&limit=20" \
-H "X-API-Key: $FREDDY_API_KEY"