---
title: "Create Trip"
method: POST
path: "/trips"
tags: ["trips"]
---

# Create Trip

`POST /trips`

## 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`
- Auth: HTTP bearer

## Request body

- TripCreateRequest
  - `bus_id` integer, required
  - `schedule_id` integer, required

## Response `201`

Successful Response

- unknown

## Other responses

- `409`: Conflict
- `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)
