---
title: "Fetch Validation Events By Contract Id"
method: GET
path: "/events/validations/{contract_id}"
tags: ["EVENTS"]
---

# Fetch Validation Events By Contract Id

`GET /events/validations/{contract_id}`

Fetches all validation_events for a given contract.
:param auth: The authorization token for the request.
:param db: The database session to use for fetching the validation_events.
:param contract_id: The contract for which wer are supposed to fetch validation_events.
:return: A dictionary containing the result of the operation.

## Path parameters

- `contract_id` integer, required

## Headers

- `x-tenant` string, required

## Response `200`

Successful Response

- ValidationEventFetchAllResponse
  - `validation_events` ValidationEventFetchResponse[], required
    - `id` integer, required
    - `contract_id` integer, required
    - `validation_status` string, required
    - `number_of_violations` integer, required
    - `validated_on` string, date-time, required

## Other responses

- `400` — Not supported for public user
- `403` — Not supported for public user
- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/aab3fe5c9f05/schema)
