Get user organizations
Users
Get User Organizations
⚠️ SECURITY: Lists all organizations a user belongs to. Requires authentication with scope “read:organization”. Supports both OAuth tokens and API keys. Returns organizations with membership details.
GET
Get user organizations
Lists all organizations a user belongs to. Requires authentication with scope
read:organization. Supports both OAuth tokens and API keys.
Permissions
Requires authentication with scoperead:organization.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string (UUID) | Yes | User ID |
Authentication
Supports both:- OAuth tokens:
Authorization: Bearer <oauth_token> - API keys:
X-API-Key: sk_...
Example Request
Example Response
Response Fields
Each organization includes:- Organization ID, name, and slug
- User’s role in the organization (owner, admin, member)
- Membership timestamp (when user joined)
Common Errors
401 Unauthorized
Authentication required. Provide a valid OAuth token.403 Forbidden
Insufficient scope. Required scope:read:organization