{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clarifymedical/json-schema/clarifymedical-list-of-workspaces-response-dto-schema.json",
  "title": "ListOfWorkspacesResponseDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clarifymedical-workspaces-api-openapi.yml#/components/schemas/ListOfWorkspacesResponseDto",
  "type": "object",
  "properties": {
    "links": {
      "type": "object",
      "properties": {
        "next": {
          "type": [
            "string",
            "null"
          ],
          "description": "URL of the next page, or `null` on the last page."
        },
        "prev": {
          "type": [
            "string",
            "null"
          ],
          "description": "URL of the previous page, or `null` on the first page."
        }
      },
      "required": [
        "next",
        "prev"
      ],
      "description": "Pagination links."
    },
    "meta": {
      "type": "object",
      "properties": {
        "total_records": {
          "type": "number",
          "description": "Total number of records across all pages."
        },
        "total_pages": {
          "type": "number",
          "description": "Total number of pages at the current page size."
        }
      },
      "required": [
        "total_records",
        "total_pages"
      ],
      "description": "Pagination metadata."
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "workspace"
            ],
            "description": "The resource type; matches the `object` path parameter."
          },
          "id": {
            "type": "string",
            "description": "The unique ID of the resource."
          },
          "attributes": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string",
                "description": "The workspace slug, the `{slug}` segment of the workspace URL. It never changes after creation."
              },
              "name": {
                "type": "string",
                "description": "The workspace display name."
              },
              "organization_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The WorkOS organization ID that backs the workspace, used to mint an access token scoped to it."
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "The time the workspace was created."
              }
            },
            "required": [
              "slug",
              "name",
              "organization_id",
              "created_at"
            ],
            "description": "Field values keyed by field name; available fields depend on the object’s schema."
          },
          "relationships": {
            "type": "object",
            "properties": {},
            "description": "Related resources keyed by relationship name, present when requested via `include`."
          }
        },
        "required": [
          "type",
          "id",
          "attributes"
        ]
      },
      "description": "The page of resources."
    }
  },
  "required": [
    "links",
    "meta",
    "data"
  ]
}