# Get trip

Retrieve detailed information about a specific trip

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

## Header parameters:

  - `x-on-behalf-of` (string)
    Identifies the agent the M2M client is acting on behalf of. Format: ` or ,. 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`.

## Path parameters:

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

## 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,null)
    Duration of the trip in days
    Example: 7

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

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

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

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

  - `logo` (string,null)
    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,null)
    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

  - `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


## Response 404 fields
