Skip to main content
GET
/
organizations
/
{id}
/
members
Get Organization Members
curl --request GET \
  --url https://{deploymentHost}/organizations/{id}/members
{
  "status": 200,
  "message": "",
  "data": [
    {
      "id": "membership_987654321",
      "user": {
        "id": "user_456789123",
        "first_name": "John",
        "last_name": "Doe",
        "email": "[email protected]",
        "username": "johndoe",
        "image_url": "https://cdn.example.com/avatars/john.jpg",
        "email_verified": true,
        "phone_verified": true,
        "two_factor_enabled": true
      },
      "roles": [
        {
          "id": "role_admin",
          "name": "Administrator",
          "permissions": [
            "organization:admin",
            "organization:manage",
            "organization:read"
          ]
        }
      ],
      "joined_at": "2024-01-01T10:00:00Z",
      "last_active": "2024-01-15T18:30:00Z"
    },
    {
      "id": "membership_123456789",
      "user": {
        "id": "user_789012345",
        "first_name": "Jane",
        "last_name": "Smith",
        "email": "[email protected]",
        "username": "janesmith",
        "image_url": "https://cdn.example.com/avatars/jane.jpg",
        "email_verified": true,
        "phone_verified": false,
        "two_factor_enabled": false
      },
      "roles": [
        {
          "id": "role_member",
          "name": "Member",
          "permissions": [
            "organization:read"
          ]
        },
        {
          "id": "role_manager",
          "name": "Manager",
          "permissions": [
            "organization:manage",
            "organization:read"
          ]
        }
      ],
      "joined_at": "2024-01-05T14:30:00Z",
      "last_active": "2024-01-14T16:45: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": []
}

Authorizations

__session
string
cookie
required

Session cookie authentication for production deployments. The session token is automatically set as an HTTP-only, secure cookie.

Path Parameters

id
string
required

Organization ID

Response

Organization members retrieved successfully

status
integer
required

HTTP status code

message
string
required

Response message (empty for success)

data
any
required

Response data (can be any type)

session
object
required
errors
object[]
required

Array of error objects (empty for success)