---
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`

## Request

- Base URL: `https://www.metarouter.io/contact`
- URL: `https://www.metarouter.io/contact/v1.1/event_schemas/violations/pipeline/event`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/metarouter/apis/control-api/docs/v1.1/event_schemas/violations/pipeline/event/get.ts> (a function with typed inputs; its response is checked against the schema)

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.dev/metarouter/apis/control-api.md) - [All operations](https://skmtc.dev/metarouter/apis/control-api/llms.txt) - [OpenAPI document](https://skmtc.dev/metarouter/apis/control-api/revisions/aa3afac506c0?raw)
