Paginated list of organizations across the caller's hierarchy (distributors + resellers + customers). Supports text search and per-field filters; intended for filter dropdowns and assignment pickers.
Query parameters
-
Page number
Minimum value is
1. Default value is1. -
Items per page
Minimum value is
1, maximum value is200. Default value is20. -
Search term. For organizations (distributors, resellers, customers), searches across name, description, and all custom_data fields (vat, address, city, contact, email, phone, language, notes, etc.). For systems, also searches across ipv4_address and ipv6_address.
Minimum length is
1. -
Field to sort organizations by
Values are
name,description, ortype. -
Sort direction
Values are
ascordesc. Default value isasc. -
Filter by organization name (exact match)
-
Filter by organization description (exact match)
-
Filter by organization type
Values are
distributor,reseller, orcustomer. -
Filter by creator user ID
curl \
--request GET 'https://collect.your-domain.com/api/organizations' \
--header "Authorization: Bearer $ACCESS_TOKEN"
{
"code": 200,
"message": "organizations retrieved successfully",
"data": {
"organizations": [
{
"id": "4405ffd0-0aca-44ef-bae2-c8545bce94f4",
"logto_id": "akkbs6x2wo82",
"name": "ACME Corp",
"description": "Main customer organization",
"type": "customer"
}
],
"pagination": {
"page": 1,
"page_size": 20,
"total_count": 156,
"total_pages": 8,
"has_next": true,
"has_prev": false,
"next_page": 2,
"prev_page": 42,
"sort_by": "name",
"sort_direction": "asc"
}
}
}
{
"code": 401,
"message": "invalid token",
"data": {}
}