# List schema changes

## `GET /v1/schema/changes`

Requires the `read` scope.

```json
{
  "tags": [
    "Schema"
  ],
  "operationId": "list-schema-changes",
  "summary": "List schema changes",
  "description": "Requires the `read` scope.",
  "x-retainer-scope": "read",
  "parameters": [
    {
      "name": "limit",
      "in": "query",
      "schema": {
        "type": "integer",
        "minimum": 1,
        "maximum": 200,
        "default": 50
      },
      "description": "Maximum items in this page."
    },
    {
      "name": "cursor",
      "in": "query",
      "schema": {
        "type": "string"
      },
      "description": "The opaque nextCursor from the previous page."
    },
    {
      "name": "status",
      "in": "query",
      "schema": {
        "type": "string",
        "enum": [
          "applied",
          "proposed",
          "rejected",
          "failed"
        ]
      },
      "description": "Filter by change status."
    }
  ],
  "responses": {
    "200": {
      "description": "Successful response.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "changes": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SchemaChange"
                }
              },
              "total": {
                "type": "integer"
              },
              "nextCursor": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "changes",
              "total",
              "nextCursor"
            ]
          }
        }
      }
    },
    "401": {
      "$ref": "#/components/responses/Unauthorized"
    },
    "default": {
      "$ref": "#/components/responses/ApiError"
    }
  }
}
```

[Full OpenAPI contract](/openapi.json)
