{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kognitos/json-schema/kognitos-v1-list-workspaces-response-schema.json",
  "title": "v1ListWorkspacesResponse",
  "description": "Response message for listing workspaces.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kognitos-workspaces-api-openapi.yml#/components/schemas/v1ListWorkspacesResponse",
  "type": "object",
  "properties": {
    "workspaces": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/v1Workspace"
      },
      "description": "The list of workspaces."
    },
    "next_page_token": {
      "type": "string",
      "description": "A token to retrieve the next page of results.\nPass this value in the `page_token` field in the subsequent call to\n`ListWorkspaces` to get the next page of results. If this field is\nempty, it means there are no more results."
    }
  },
  "$defs": {
    "v1Workspace": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The resource name of the workspace.\nFormat: organizations/{organization}/workspaces/{workspace}\nThis field is assigned by the server at creation and is immutable thereafter.\nClients may include this field in Get/Update/Delete requests to identify the resource."
        },
        "title": {
          "type": "string",
          "description": "The user-defined display name for the workspace.\nThis corresponds to the `name` column in the database."
        },
        "workspace_icon": {
          "type": "string",
          "description": "The workspace icon data.\nThis field contains the identifier of the workspace icon."
        },
        "workspace_icon_color": {
          "type": "string",
          "description": "The color of the workspace icon."
        },
        "create_time": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp when the workspace was created.",
          "readOnly": true
        },
        "update_time": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp when the workspace was last updated.",
          "readOnly": true
        },
        "creator_display_name": {
          "type": "string",
          "description": "The display name of the user who created the workspace.",
          "readOnly": true
        },
        "creator_email": {
          "type": "string",
          "description": "The email address of the user who created the workspace.",
          "readOnly": true
        }
      },
      "description": "A Workspace is a container for agents within an organization.",
      "required": [
        "title"
      ]
    }
  }
}