---
title: "GetEventSchemaViolations gets the details of schema violations for a specific event name."
method: GET
path: "/v1.1/event_schemas/violations/pipeline/event"
tags: ["ControlService"]
---

# GetEventSchemaViolations gets the details of schema violations for a specific event name.

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

Returns the total count of violations grouped by type and field.
 write_key and event_name are required. schema_id and version_id are optional.

## Query parameters

- `earliestSeen` string, date-time, nullable
- `writeKey` string
- `eventName` string
- `schemaId` string
- `versionId` string

## Response `200`

OK

- ProtobufControlpbV1GetEventSchemaViolationsResponse
  - `violations` union[], nullable
    - union
      - object, nullable
      - ProtobufControlpbV1EventSchemaViolation
        - `count` string
        - `details` string
        - `eventName` string
        - `field` string
        - `lastSeen` string, date-time, nullable
        - `schemaId` string
        - `type` string
        - `writeKey` string

## 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/versions/5afc05bfaaa2/schema)
