Export resellers to CSV or PDF format with applied filters (max 10,000 resellers)
Query parameters
-
Export format (csv or pdf)
Values are
csvorpdf. -
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 resellers by
Values are
name,description,created_at,updated_at,suspended_at, orcreator_name. -
Sort direction
Values are
ascordesc. Default value isasc. -
Filter by owning organization Logto ID (custom_data.createdBy, the ownership key RBAC visibility walks). Supports multiple values; combine with include_hierarchy to cover a whole subtree. Results always stay within the caller's RBAC scope.
-
When true (and organization_id is provided), each organization_id is expanded to the organization plus all its descendants (a distributor's resellers and their customers, a reseller's customers) before filtering
Default value is
false.
curl \
--request GET 'https://api.your-domain.com/api/resellers/export?format=csv' \
--header "Authorization: Bearer $ACCESS_TOKEN"
{
"code": 400,
"message": "validation failed",
"data": {
"type": "validation_error",
"errors": [
{
"key": "username",
"message": "required",
"value": "string"
}
]
}
}
{
"code": 401,
"message": "invalid token",
"data": {}
}
{
"code": 403,
"message": "insufficient permissions",
"data": {}
}