---
title: "Submit feedback for a completed flight search"
method: POST
path: "/wrapped/credits/locus-travel/flight-search/{runId}/feedback"
tags: ["Travel routing"]
---

# Submit feedback for a completed flight search

`POST /wrapped/credits/locus-travel/flight-search/{runId}/feedback`

## Request

- Base URL: `https://api.paywithlocus.com/api`
- URL: `https://api.paywithlocus.com/api/wrapped/credits/locus-travel/flight-search/{runId}/feedback`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Creates or replaces feedback for a completed run owned by the authenticated account. selectedItineraryId, when supplied, must belong to that run. End-user and Agent Connection access remains scoped exactly as it was for execution.

## Path parameters

- `runId` string, uuid, required

## Headers

- `X-Locus-Session-Id` string
- `X-Locus-End-User` string: Case-sensitive immutable ID in the tenant namespace. Prefer an identity-provider subject, not an email address.

## Request body

- TravelFlightSearchFeedbackRequest
  - `helpful` boolean, required
  - `selectedItineraryId` string
  - `reason` 'price' | 'schedule' | 'missing_option' | 'provider_quality' | 'other'
  - `note` string

## Response `200`

Feedback saved

- TravelFlightSearchFeedbackResponse
  - `success` unknown, required
  - `data` object, required
    - `runId` string, uuid, required
    - `helpful` boolean, required
    - `selectedItineraryId` string, nullable, required
    - `reason` 'price' | 'schedule' | 'missing_option' | 'provider_quality' | 'other' | 'null', nullable, required
    - `updatedAt` string, date-time, required

## Other responses

- `400`: Invalid run ID, feedback, or itinerary ID
- `401`: Missing or invalid execution credential
- `403`: The credential is not allowed to access Locus Travel feedback
- `404`: No matching run is visible to this account
- `409`: The travel search has not completed

---

[API](https://skmtc.dev/paywithlocus/apis/locus-pro-api.md) - [All operations](https://skmtc.dev/paywithlocus/apis/locus-pro-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paywithlocus/apis/locus-pro-api/revisions/aab8fa5d6cef?raw)
