---
title: "Report Incident Endpoint"
method: POST
path: "/trips/{trip_id}/incidents"
tags: ["trips"]
---

# Report Incident Endpoint

`POST /trips/{trip_id}/incidents`

## Request

- Base URL: `https://api.noma.co.ke` (the document declares no server; this is the origin it was published from)
- URL: `https://api.noma.co.ke/trips/{trip_id}/incidents`
- Auth: HTTP bearer

## Path parameters

- `trip_id` integer, required

## Request body

- IncidentCreate
  - `type` string, nullable
  - `template_id` integer, nullable
  - `text` string, nullable
  - `logs` LogEvent[]
    - `id` string, required
    - `action` string, required
    - `occurred_at` string, date-time, required
    - `received_at` string, date-time, nullable
    - `actor` LogActor
      - `type` string, required
      - `id` integer, nullable
      - `name` string, nullable
    - `source` string, nullable
    - `meta` object, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `404`: Not Found
- `422`: Validation failed.

---

[API](https://skmtc.dev/noma/apis/driver-api.md) - [All operations](https://skmtc.dev/noma/apis/driver-api/llms.txt) - [OpenAPI document](https://skmtc.dev/noma/apis/driver-api/revisions/17d3d1a6929f?raw)
