{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/name-ai/json-schema/name-ai-page-schema.json",
  "title": "Page",
  "description": "Pagination. Two ways to walk a list and they interoperate: follow page.next_cursor until it is null (preferred — a cursor names the row you stopped at, so rows inserted or removed while you page cannot shift the window under you), or add limit to offset until offset >= total. next_cursor is returned on offset pages too, so you can switch part-way through.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/name-ai-openapi.json#/components/schemas/Page",
  "type": "object",
  "required": [
    "limit",
    "offset",
    "total",
    "has_more",
    "next_cursor"
  ],
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "description": "Offset applied to this request. 0 on a page fetched with a cursor, where no offset was used."
    },
    "total": {
      "type": "integer",
      "minimum": 0,
      "description": "Total matching items across all pages."
    },
    "has_more": {
      "type": "boolean",
      "description": "Whether a further page exists. Exact — not inferred from the page being full."
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Opaque cursor for the next page, or null on the last one. Valid only for the filters and sort order it was issued with; reusing it with different ones returns 400 invalid_cursor rather than a wrong window."
    }
  }
}