---
title: "GetEventSchemaViolationEvents gets a sampling of events that match a schema violation."
method: GET
path: "/v1.1/event_schemas/violations/pipeline/events"
tags: ["ControlService"]
---

# GetEventSchemaViolationEvents gets a sampling of events that match a schema violation.

`GET /v1.1/event_schemas/violations/pipeline/events`

Will attempt to return the most recent events.
 write_key, event_name, type, and details are required.
 field is not required since it could be empty for top level.
 limit is optional and defaults to 10 with a max of 100.
 schema_id and version_id are optional.

## Query parameters

- `earliestSeen` string, date-time, nullable
- `writeKey` string
- `eventName` string
- `type` string
- `field` string
- `details` string
- `schemaId` string
- `versionId` string
- `limit` integer

## Response `200`

OK

- ProtobufControlpbV1GetEventSchemaViolationEventsResponse
  - `events` union[], nullable
    - union
      - object, nullable
      - GoogleProtobufStruct
        - `fields` object, nullable — Unordered map of dynamically typed values.

## Other responses

- `4XX` — Something is wrong with your request such as missing or invalid data. Correct your request and try again.
- `5XX` — Internal server error. Try again later or reach out to MetaRouter support.

---

[API](https://skmtc.net/metarouter/apis/control-api.md) · [All operations](https://skmtc.net/metarouter/apis/control-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/metarouter/control-api/revisions/5afc05bfaaa2/schema)
