/distributors - List distributors

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://api.my.nethesis.it/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "my.nethesis.it MCP server": {
    "url": "https://api.my.nethesis.it/mcp"
  }
}

Close
GET /distributors

Get paginated list of distributors (Owner only)

Query parameters

  • page integer

    Page number

    Minimum value is 1. Default value is 1.

  • page_size integer

    Items per page

    Minimum value is 1, maximum value is 200. Default value is 20.

  • sort_by string

    Field to sort distributors by

    Values are name, description, created_at, updated_at, or suspended_at.

  • sort_direction string

    Sort direction

    Values are asc or desc. Default value is asc.

  • status array[string]

    Filter organizations by status. Supports multiple values.

    • enabled: not suspended and not deleted
    • suspended: suspended but not deleted
    • deleted: soft-deleted

    When "deleted" is combined with other statuses, both deleted and non-deleted matching records are returned.

    Values are enabled, suspended, or deleted.

  • created_by array[string]

    Filter organizations by creator. Repeat the parameter to pass multiple values; each value matches either the creator user's logto_id or the creator's organization logto_id (mirrors the systems created_by filter). Allowed values come from GET /api/filters/{distributors|resellers|customers}.

Responses

  • 200 application/json

    Distributors retrieved successfully

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object
      Hide data attributes Show data attributes object
      • distributors array[object]

        Organization with inline count statistics, returned in list responses

        Hide distributors attributes Show distributors attributes object

        Organization with inline count statistics, returned in list responses

        • id string

          Database UUID of the organization

        • logto_id string

          Logto organization ID (use this value for assignment operations)

        • name string

          Organization name

        • description string

          Organization description

        • custom_data object

          Custom organization data

          Additional properties are allowed.

        • suspended_at string(date-time) | null

          Timestamp when the organization was suspended. NULL means enabled, non-NULL means blocked/suspended.

        • suspended_by_org_id string | null

          Organization ID that caused cascade suspension (for resellers and customers only). NULL means directly suspended or not suspended. When set, the entity can only be reactivated by the parent organization that initiated the cascade.

        • rebranding_enabled boolean

          Whether rebranding is active for this organization (directly or inherited from parent)

        • rebranding_org_id string | null

          The organization ID that provides the rebranding (the org where rebranding is configured). Only present when rebranding_enabled is true.

        • created_by object

          Point-in-time snapshot of the user who created an organization (distributor, reseller or customer)

          Hide created_by attributes Show created_by attributes object
          • user_id string

            Logto ID of the user who created the organization

          • username string

            Username of the creator

          • name string

            Full name of the creator

          • email string

            Email of the creator

          • organization_id string

            Organization ID the creator belongs to

          • organization_name string

            Organization name the creator belongs to

        • systems_count integer

          Number of systems in this organization

        • resellers_count integer

          Number of resellers created by this distributor (distributors only)

        • customers_count integer

          Number of customers in the hierarchy (distributors and resellers only)

        • applications_count integer

          Number of certified applications (certification_level 4 or 5) in the hierarchy

      • pagination object
        Hide pagination attributes Show pagination attributes object
        • page integer

          Current page number

          Minimum value is 1.

        • page_size integer

          Number of items per page

          Minimum value is 1, maximum value is 200.

        • total_count integer

          Total number of items

          Minimum value is 0.

        • total_pages integer

          Total number of pages

          Minimum value is 0.

        • has_next boolean

          Whether there is a next page

        • has_prev boolean

          Whether there is a previous page

        • next_page integer | null

          Next page number if available

        • prev_page integer | null

          Previous page number if available

        • sort_by string | null

          Field used for sorting

        • sort_direction string | null

          Sort direction

          Values are asc or desc.

  • 401 application/json

    Unauthorized - invalid or missing token

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
  • 403 application/json

    Forbidden - insufficient permissions

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
GET /distributors
curl \
 --request GET 'https://collect.your-domain.com/api/distributors' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "code": 200,
  "message": "distributors retrieved successfully",
  "data": {
    "distributors": [
      {
        "id": "4405ffd0-0aca-44ef-bae2-c8545bce94f4",
        "logto_id": "akkbs6x2wo82",
        "name": "ACME Distribution SpA",
        "description": "Main distributor for Italian and Swiss markets",
        "custom_data": {
          "email": "contact@acme-distribution.com",
          "contactPerson": "John Smith",
          "region": "Italy"
        },
        "suspended_at": "2026-05-04T09:42:00Z",
        "suspended_by_org_id": "string",
        "rebranding_enabled": false,
        "rebranding_org_id": "string",
        "created_by": {
          "user_id": "aa15fcvgzw1y",
          "username": "owner",
          "name": "Nethesis Owner",
          "email": "owner@nethesis.it",
          "organization_id": "2wl3iixbc8ua",
          "organization_name": "Owner"
        },
        "systems_count": 32,
        "resellers_count": 25,
        "customers_count": 420,
        "applications_count": 15
      }
    ],
    "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"
    }
  }
}
Response examples (401)
{
  "code": 401,
  "message": "invalid token",
  "data": {}
}
Response examples (403)
{
  "code": 403,
  "message": "insufficient permissions",
  "data": {}
}