# trips.create

Create a trip with title, startDate, optional endDate and placeLabel, and an idempotencyKey. Finance access required.

`POST /api/v1/accounting/trips.create`

Permissions: `accounting:read`, `accounting:write` · Roles: admin, finance · Idempotency key required

MCP tool: `accounting_trips_create`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `title` | string | Yes | A short title. 1–200 characters. |
| `startDate` | string | Yes | A date, as YYYY-MM-DD. Date as YYYY-MM-DD. |
| `endDate` | string |  | A date, as YYYY-MM-DD. Date as YYYY-MM-DD. |
| `placeLabel` | string |  | at most 200 characters. |
| `idempotencyKey` | string | Yes | Any unique text you generate once per intended change, so a retried request only happens once. Send it as the Idempotency-Key header instead if you prefer; if you send both they must match. 8–200 characters. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/trips.create \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "title": "Synthetic services agreement",
  "startDate": "2026-09-30"
}'
```

Reference page: https://app.getoatmilk.com/docs/api/trips.create
