---
title: "Retrieve the list of conflicts of the timetable"
method: GET
path: "/timetable/{id}/conflicts"
tags: ["timetable"]
---

# Retrieve the list of conflicts of the timetable

`GET /timetable/{id}/conflicts`

The following trains are **excluded** from the result:
- trains for which the simulation fails
- trains for which the simulation does not respect schedule times

## Path parameters

- `id` integer, required

## Query parameters

- `infra_id` integer, required
- `electrical_profile_set_id` integer

## Response `200`

List of conflicts

- Conflict[]
  - `conflict_type` 'Spacing' | 'Routing', required
  - `duration` integer, required — Duration of the conflict in ms.
  - `requirements` CoreConflictRequirement[], required — List of requirements causing the conflict
    - `duration` integer, required — Duration of the time range in ms (difference between the latest end time and the earliest start_time for any zone use in this conflict).
    - `start_time` integer, required — Start of the time range during which the zone is contested: elapsed ms since the implicit 'request base time'. Earliest start time for any zone use. The implicit 'request base time' is the same over the whole request (`trains_requirements` and `work_schedules`) and response. Example: `1970-01-01T00:00:00Z` for calendar timetables; the timetable start for hourly timetables.
    - `zone` string, required
  - `start_time` integer, required — Start of the conflict time range: elapsed ms since an implicit 'request base time'. This is the *union* of all the conflicting time ranges. The implicit 'request base time' is the same as the train schedules' `start_time` frame in this timetable. Example: `1970-01-01T00:00:00Z` for calendar timetables; the timetable start for hourly timetables.
  - `train_ids` union[], required — List of trains involved in the conflict.
    - union — This ID is used to identify paced train occurrences and exceptions when sending them to the core API for conflict detection.
      - object
        - `index` integer, required
        - `train_schedule_id` integer, required
        - `type` 'base', required
      - object
        - `exception_id` integer, required
        - `index` integer, required
        - `train_schedule_id` integer, required
        - `type` 'modified', required
      - object
        - `exception_id` integer, required
        - `train_schedule_id` integer, required
        - `type` 'created', required
  - `work_schedule_ids` integer[], required — List of work schedule ids involved in the conflict

---

[API](https://skmtc.net/openrailassociation/apis/osrd-editoast.md) · [All operations](https://skmtc.net/openrailassociation/apis/osrd-editoast/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openrailassociation/osrd-editoast/versions/1840dbbd64ac/schema)
