Retrieve all organizations for the authenticated User
GET/v1/organizations/my
Retrieve all organizations for the authenticated User
Request
Query Parameters
Possible values: >= 1
Default value: 1
Page number starting from 1.
Possible values: >= 1
and <= 100
Default value: 10
Limit the number of results returned. Default is 10.
Responses
- 200
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data object[]required
Array of user-organization roles
organization object
The unique ID of the organization
The name of the organization
plan object
The organization's plan
Possible values: [pro_monthly
, pro_yearly
, team_monthly
, team_yearly
]
The name of the organization's plan
Possible values: [PENDING
, ACTIVE
, INCOMPLETE
, CANCELED
]
The status of the organization's plan
Possible values: [OWNER
, ADMIN
, MEMBER
]
The role of the user within the organization.
metadata object
The current page number.
Number of items per page.
Total number of items.
The next page number, or null if this is the last page.
The previous page number, or null if this is the first page.
{
"data": [
{
"organization": {
"id": "abc123",
"name": "My Organization",
"plan": {
"name": "pro_monthly",
"status": "PENDING"
}
},
"role": "OWNER"
}
],
"metadata": {
"currentPage": 1,
"limit": 10,
"total": 100,
"nextPage": 2,
"previousPage": null
}
}