---
title: "GetPipelineSchemaViolations gets the total count of all schema violations grouped by the event name."
method: GET
path: "/v1.1/event_schemas/violations/pipeline"
tags: ["ControlService"]
---

# GetPipelineSchemaViolations gets the total count of all schema violations grouped by the event name.

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

write_key is required. schema_id and version_id are optional.

## Query parameters

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

## Response `200`

OK

- ProtobufControlpbV1GetPipelineSchemaViolationsResponse
  - `violations` union[], nullable
    - union
      - object, nullable
      - ProtobufControlpbV1PipelineEventSchemaViolation
        - `count` string
        - `eventName` string
        - `lastSeen` string, date-time, nullable
        - `schemaId` 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/revisions/5afc05bfaaa2/schema)
