Get all organization roles

GET /organization-roles

Get all available organization roles with their IDs and descriptions

Responses

  • 200 application/json

    Organization roles retrieved successfully

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object
      Hide data attribute Show data attribute object
      • organizationRoles array[object]
        Hide organizationRoles attributes Show organizationRoles attributes object
        • id string

          Organization role ID

        • name string

          Organization role name

        • description string

          Organization role description

  • 401 application/json

    Unauthorized - invalid or missing token

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
GET /organization-roles
curl \
 --request GET 'https://api.your-domain.com/api/organization-roles' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "code": 200,
  "message": "organization roles retrieved successfully",
  "data": {
    "organizationRoles": [
      {
        "id": "org_rol_owner_123",
        "name": "Owner",
        "description": "Complete control over organization and business hierarchy"
      }
    ]
  }
}
Response examples (401)
{
  "code": 401,
  "message": "invalid token",
  "data": {}
}