Skip to Content
APIUsersGET

GET Users

Use this endpoint to retrieve users.

User level: Advanced

Endpoint

GET /v1/{organizationId}/users
PropertyValue
MethodGET
Scope IDOrganization UUID
AuthenticationAuthorization: Bearer <access_token>

Query parameters

ParameterTypeDefaultMaxDescription
limitinteger501000Number of records per page.
offsetinteger0-Pagination offset.
sortstring-Sort expression in the format field:asc or field:desc.
filterstring-Filter expression in the format field:operator:value. Repeat filter to combine multiple filters.

Filtering and sorting

Syntax

sort=field:asc sort=field:desc filter=field:operator:value

You can repeat filter in the same request.

Supported operators

OperatorMeaning
eqExact match
neNot equal
inValue is part of a list
gtGreater than
gteGreater than or equal
ltLess than
lteLess than or equal
likeCase-sensitive text match
ilikeCase-insensitive text match
isnullNull check

Resource rules

  • Filtering and sorting are whitelisted per resource.
  • organization_id and branch_id are reserved for server-side scoping and cannot be filtered by clients.
  • Tenant scope remains server-controlled.
  • Use an organization UUID in {scopeId} for this resource.

Example filters for users

?filter=status:eq:active ?filter=last_name:ilike:%jansen% ?sort=last_name:asc

Example request

curl -X GET "https://api.routix.com/v1/123e4567-e89b-12d3-a456-426614174000/users?limit=25&offset=0&sort=last_name:asc&filter=status:eq:active" \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."

Example response for v1

{ "data": [ { "id": "e70d3a6a-799d-4a7d-88bd-0ad13f5211b4", "first_name": "Sophie", "last_name": "Jansen", "email": "[email protected]", "role_id": "planner", "status": "active", "organization_id": "123e4567-e89b-12d3-a456-426614174000" } ], "pagination": { "limit": 10, "offset": 0, "total": 1 }, "version": "v1" }

Fields

FieldDescription
idUser UUID.
first_nameUser first name.
last_nameUser last name.
emailUser email address.
role_idUser role or role ID.
statusCurrent user status.
organization_idOrganization UUID.

Response format

Success: list response

{ "data": [], "pagination": { "limit": 50, "offset": 0, "total": 123 }, "version": "v1" }

Error response

{ "error": "insufficient_scope", "error_description": "Token does not contain the required scope for users" }
  • API integration
  • API calls & examples
  • Setup guide
Last updated on