---
title: "WRITE: add a stop to the user's trip plan (an accepted detour — it appears in the day plan on the next build)"
method: POST
path: "/actions/apply_trip_filler"
tags: ["itinerary"]
---

# WRITE: add a stop to the user's trip plan (an accepted detour — it appears in the day plan on the next build)

`POST /actions/apply_trip_filler`

## Request

- Base URL: `https://findinghorizons.ca/api/v1`
- URL: `https://findinghorizons.ca/api/v1/actions/apply_trip_filler`
- Auth: OAuth 2 (authorization code, authorization URL `https://findinghorizons.ca/api/mcp/authorize`, token URL `https://findinghorizons.ca/api/mcp/oauth/token`, scopes: `itinerary:write`)

WRITE: add a stop to the user's trip plan (an accepted detour — it appears in the day plan on the next build). Use for gap fillers, swaps the user asked for, or detours. Only touches the user's own trip.

## Headers

- `Idempotency-Key` string, required
- `X-FH-Task` string

## Request body

- object
  - `tripId` string, required
  - `title` string, required: Stop name
  - `description` string
  - `address` string
  - `city` string
  - `latitude` number
  - `longitude` number
  - `category` string: restaurant | cafe | attraction | nature | nightlife | experience | shop | other
  - `today` string: The traveller's own date, YYYY-MM-DD, where the action needs one
  - `expectedVersion` integer: For a change to a trip: the planVersion you last read

## Response `200`

Done — { ok, api, action, result, card, operation? }

## Other responses

- `202`: Waiting for the traveller's approval in Finding Horizons
- `400`: Bad body / missing Idempotency-Key
- `401`: No or invalid token
- `403`: Scope not granted
- `409`: Conflict: the plan changed since expectedVersion, or the same key is still running
- `422`: The action said no
- `429`: Rate limited

---

[API](https://skmtc.dev/findinghorizons/apis/finding-horizons-api.md) · [All operations](https://skmtc.dev/findinghorizons/apis/finding-horizons-api/llms.txt) · [OpenAPI document](https://skmtc.dev/findinghorizons/apis/finding-horizons-api/revisions/e347f6070173?raw)
