{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/copper-financial/json-schema/copper-financial-pagination-envelope-schema.json",
  "title": "PaginationEnvelope",
  "description": "Standard paginated response envelope returned for ChatGPT-only requests. Mirrors the previous pagination headers by surfacing totals inside the response body while keeping the original headers available.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/copper-financial-account-api-openapi.yml#/components/schemas/PaginationEnvelope",
  "type": "object",
  "properties": {
    "page_number": {
      "type": "integer",
      "description": "Current page number (defaults to 1 when not provided in the request)."
    },
    "total": {
      "type": "integer",
      "description": "Total number of records that match the request filters (equivalent to the X-PW-TOTAL header)."
    },
    "data": {
      "type": "array",
      "description": "Records returned for the requested page. The item schema depends on the endpoint using this envelope.",
      "items": {}
    }
  },
  "required": [
    "page_number",
    "total",
    "data"
  ]
}