{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/retool/main/json-schema/retool-group-list-response-schema.json",
  "title": "GroupListResponse",
  "description": "List of groups.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/retool-groups-api-openapi.yml#/components/schemas/GroupListResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "description": "Array of group objects.",
      "items": {
        "$ref": "#/$defs/Group"
      }
    }
  },
  "$defs": {
    "Group": {
      "type": "object",
      "description": "A Retool group for managing permissions.",
      "properties": {
        "id": {
          "type": "integer",
          "description": "The numeric identifier for the group."
        },
        "name": {
          "type": "string",
          "description": "The name of the group."
        },
        "members": {
          "type": "array",
          "description": "Users who are members of this group.",
          "items": {
            "$ref": "#/$defs/UserRef"
          }
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp when the group was created."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp when the group was last updated."
        }
      }
    },
    "UserRef": {
      "type": "object",
      "description": "A reference to a user.",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "The user UUID."
        },
        "email": {
          "type": "string",
          "format": "email",
          "description": "The user's email address."
        }
      }
    }
  }
}