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

# Fetch Timeline Events By Contract Id

`GET /events/{contract_id}`

Fetches all timeline_events for a given contract.
:param auth: The authorization token for the request.
:param db: The database session to use for fetching the timeline_events.
:param contract_id: The contract for which wer are supposed to fetch timeline_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

- TimelineEventFetchAllResponse
  - `timeline_events` TimelineEventFetchResponse[], required
    - `id` integer, required
    - `contract_id` integer, required
    - `event_type` string, required
    - `event_message` string, required
    - `user_first_name` string, required
    - `user_last_name` string, required
    - `user_email` string, required
    - `created_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)
