# Get trip

Retrieve detailed information about a specific trip

Endpoint: GET /trips/{tripId}
Version: 1.1.0
Security: bearerAuth, m2mOnBehalfOf

## Security:

  - `bearerAuth` (unknown)
    http bearer

  - `m2mOnBehalfOf` (unknown)
    http bearer

## Path parameters:

  - `tripId` (integer, required)
    Unique identifier of the trip

## Header parameters:

  - `x-on-behalf-of` (string)
    Identifies the agent the M2M client is acting on behalf of. Format: `<email>` or `<email>,<account_id>`. When `account_id` is omitted, the agent's `current_account_id` is used. The resolved account must be within the M2M client's grant (its account or, if the grant points at an organization parent, one of its children).
Marked `required: false` because it is only needed when authenticating with the `m2mOnBehalfOf` security scheme — `bearerAuth` requests ignore it. When using `m2mOnBehalfOf` it is mandatory; omitting it causes the request to fall through to the legacy `@clients` flow, which is not the documented public API surface.
Duplicate headers are rejected with `400`.

## Response 200:

  - `200` (unknown)
    Trip details retrieved successfully

## Response 200 fields (application/json):

  - `id` (integer, required)
    Unique identifier for the trip
    Example: 12345

  - `title` (string, required)
    Title of the trip
    Example: Paris Summer Vacation

  - `slug` (string, required)
    URL-friendly identifier for the trip
    Example: paris-summer-vacation-abc123

  - `joinCode` (string)
    Code for travelers to join the trip
    Example: ABC12345

  - `seoDescription` (string)
    SEO description for the trip
    Example: Experience the best of Paris in this 7-day adventure

  - `duration` (integer)
    Duration of the trip in days
    Example: 7

  - `hasFirmBooking` (boolean)
    Whether the trip has a firm booking, which freezes its party. Returned by the trip read and update.
    Example: false

  - `partyLock` (string)
    Why the party cannot be restated through `statedParty`, or null when it can.
    Enum: "trip_party_frozen", "trip_party_quoted", "null"

  - `dateStart` (string)
    Start date of the trip
    Example: 2025-07-15T00:00:00.000Z

  - `dateFinish` (string)
    End date of the trip
    Example: 2025-07-22T00:00:00.000Z

  - `dateExpiration` (string)
    Expiration date for the trip offer
    Example: 2025-06-30T00:00:00.000Z

  - `code` (string, required)
    Internal trip code
    Example: TRIP-001

  - `logo` (string)
    URL of the trip logo
    Example: https://example.com/trip-logo.png

  - `countries` (array)
    ISO 3166-1 alpha-3 country codes
    Example: ["FRA","ESP"]

  - `imageUrl` (string)
    URL of the trip cover image
    Example: https://example.com/trip-cover.jpg

  - `agentId` (integer, required)
    ID of the agent who created the trip
    Example: 100

  - `template` (boolean, required)
    Whether this trip is a template
    Example: false

  - `accountId` (integer, required)
    ID of the account that owns the trip
    Example: 50

  - `createdAt` (string, required)
    Timestamp when the trip was created
    Example: 2025-01-15T10:30:00.000Z

  - `updatedAt` (string, required)
    Timestamp when the trip was last updated
    Example: 2025-01-18T14:45:00.000Z

  - `visualizations` (integer, required)
    Number of times the trip has been viewed by travelers (read-only)
    Example: 150

  - `travelerAges` (array)
    Canonical search party, returned on trip detail reads. IDs are assigned by the server and retained when services reference the party.

  - `travelerAges.id` (string, required)
    Example: 1c2c38f3-e596-463e-9f62-75c7c3602770

  - `travelerAges.age` (integer, required)
    Example: 30

## Response 404:

  - `404` (unknown)
    Trip not found

