List Organization Members
Get all members in your organization with their roles.
Returns a paginated list of all organization members, including their roles and profile info.
Required: Owner, Editor, or Viewer role
Authorization
bearerToken
AuthorizationBearer <token>
API token for YourGPT Public APIs. Create tokens in Settings > API Tokens in your YourGPT dashboard.
In: header
Request Body
application/json
limit?integer
Number of members to return per page.
Default
10Range
value <= 1000page?integer
Page number for pagination.
Default
1Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.yourgpt.ai/chatbot/v1/getOrganizationMembers" \ -H "Content-Type: application/json" \ -d '{}'{
"type": "RXSUCCESS",
"message": "Data Fetched Successfully!",
"total": 5,
"data": {
"organizationMember": [
{
"id": 201,
"user_id": 42,
"organization_id": 100,
"role": "owner",
"createdAt": "2025-01-15T10:30:00.000Z",
"updatedAt": "2025-01-15T10:30:00.000Z",
"Member": {
"id": 42,
"name": "John Doe",
"email": "john@example.com",
"profile_pic": null
}
}
],
"invitations": [
{
"id": 301,
"email": "invited@example.com",
"role": "viewer",
"status": "pending",
"createdAt": "2025-01-15T10:30:00.000Z"
}
]
}
}{
"type": "RXERROR",
"message": "Invalid params"
}{
"type": "RXERROR",
"message": "Invalid or revoked API token"
}{
"type": "RXERROR",
"message": "You do not have permission to perform this action"
}