/filters/applications/organizations - Get available organizations

GET /filters/applications/organizations

Get list of organizations for application filtering.

Special value: If there are applications without an assigned organization, the response includes a special "No organization" entry as the first item with id: "null" and type: "unassigned". Use this value (no_org) to filter applications that have no organization assigned.

Only returns organizations that have at least one application assigned - organizations without applications are excluded (except for the special "No organization" entry).

Responses

  • 200 application/json

    Organizations retrieved successfully

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

      Simplified organization for selection and assignment

      Hide data attributes Show data attributes object
      • id string

        Database UUID of the organization (or "no_org" for unassigned filter)

      • logto_id string

        Logto organization ID (or "no_org" for unassigned filter)

      • name string

        Organization name

      • description string

        Organization description

      • type string

        Organization type ("unassigned" is the special "No organization" filter entry)

        Values are owner, distributor, reseller, customer, or unassigned.

  • 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 /filters/applications/organizations
curl \
 --request GET 'https://api.your-domain.com/api/filters/applications/organizations' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "code": 200,
  "data": [
    {
      "id": "no_org",
      "name": "No organization",
      "type": "unassigned",
      "logto_id": "no_org",
      "description": ""
    },
    {
      "id": "8b04e253-d408-4218-a30e-b048196847e5",
      "name": "Acme Corp",
      "type": "customer",
      "logto_id": "fso3biosnaqp",
      "description": ""
    },
    {
      "id": "83d2f8c3-31be-4878-891e-98f2a363e683",
      "name": "TechStart Inc",
      "type": "reseller",
      "logto_id": "akkbs6x2wo82",
      "description": ""
    }
  ],
  "message": "organizations retrieved successfully"
}
Response examples (401)
{
  "code": 401,
  "message": "invalid token",
  "data": {}
}
Response examples (403)
{
  "code": 403,
  "message": "insufficient permissions",
  "data": {}
}