Retrieve all organizations the current user is a member of, including roles and permissions.
curl --request GET \
--url https://{deploymentHost}/me/organization-memberships
{
"status": 200,
"message": "",
"data": [
{
"id": "membership_123456789",
"organization": {
"id": "org_123456789",
"name": "Acme Corporation",
"slug": "acme-corp",
"image_url": "https://cdn.example.com/orgs/acme.jpg"
},
"role": {
"id": "role_admin",
"name": "Administrator",
"permissions": [
"read",
"write",
"admin"
]
},
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-15T10:30:00Z"
},
{
"id": "membership_987654321",
"organization": {
"id": "org_987654321",
"name": "Tech Startup Inc",
"slug": "tech-startup",
"image_url": "https://cdn.example.com/orgs/tech-startup.jpg"
},
"role": {
"id": "role_member",
"name": "Member",
"permissions": [
"read",
"write"
]
},
"created_at": "2024-01-10T00:00:00Z",
"updated_at": "2024-01-10T00:00:00Z"
}
],
"session": {
"signin_attempts": [],
"signins": [
{
"id": "signin_987654321",
"user_id": "user_456789123",
"created_at": "2024-01-01T12:00:00Z"
}
],
"signup_attempts": [],
"active_signin": {
"id": "signin_987654321",
"user_id": "user_456789123",
"created_at": "2024-01-01T12:00:00Z"
}
},
"errors": []
}
Session cookie authentication for production deployments. The session token is automatically set as an HTTP-only, secure cookie.
Organization memberships retrieved successfully
The response is of type object
.
curl --request GET \
--url https://{deploymentHost}/me/organization-memberships
{
"status": 200,
"message": "",
"data": [
{
"id": "membership_123456789",
"organization": {
"id": "org_123456789",
"name": "Acme Corporation",
"slug": "acme-corp",
"image_url": "https://cdn.example.com/orgs/acme.jpg"
},
"role": {
"id": "role_admin",
"name": "Administrator",
"permissions": [
"read",
"write",
"admin"
]
},
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-15T10:30:00Z"
},
{
"id": "membership_987654321",
"organization": {
"id": "org_987654321",
"name": "Tech Startup Inc",
"slug": "tech-startup",
"image_url": "https://cdn.example.com/orgs/tech-startup.jpg"
},
"role": {
"id": "role_member",
"name": "Member",
"permissions": [
"read",
"write"
]
},
"created_at": "2024-01-10T00:00:00Z",
"updated_at": "2024-01-10T00:00:00Z"
}
],
"session": {
"signin_attempts": [],
"signins": [
{
"id": "signin_987654321",
"user_id": "user_456789123",
"created_at": "2024-01-01T12:00:00Z"
}
],
"signup_attempts": [],
"active_signin": {
"id": "signin_987654321",
"user_id": "user_456789123",
"created_at": "2024-01-01T12:00:00Z"
}
},
"errors": []
}