{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/popp/json-schema/popp-list-organizations-response-schema.json",
  "title": "ListOrganizationsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/popp-organizations-api-openapi.yml#/components/schemas/ListOrganizationsResponse",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "description": "Organizations the authenticated user can access.",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "organizationGroupId": {
            "type": [
              "string",
              "null"
            ]
          },
          "externalOrganizationId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Your own external identifier for the organization, or null if none is set."
          },
          "isHidden": {
            "type": "boolean",
            "description": "Whether the organization is hidden."
          }
        },
        "required": [
          "id",
          "name",
          "organizationGroupId",
          "externalOrganizationId",
          "isHidden"
        ],
        "additionalProperties": false
      }
    },
    "nextToken": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass back as `nextToken` to fetch the next page. Null when there are no more results."
    }
  },
  "required": [
    "items",
    "nextToken"
  ],
  "additionalProperties": false
}