---
title: "POST /rails/search/{search_id}/search_inward"
method: POST
path: "/rails/search/{search_id}/search_inward"
tags: ["rails"]
---

# POST /rails/search/{search_id}/search_inward

`POST /rails/search/{search_id}/search_inward`

## Request

- Base URL: `https://app.getgoing.com`
- URL: `https://app.getgoing.com/rails/search/{search_id}/search_inward`
- Auth: API key in header `Authorization`

## Request body

- RailsSearchInwardParameters
  - `search_id` string, required
  - `outward_journey_id` string, required
  - `outward_alternative_ids` string[]

## Response `202`

Request accepted, processing continues off-line

- DetailedSearchResultsSchema
  - `id` integer
  - `status` 'created' | 'sent' | 'success' | 'failed'
  - `price_metadata` object
  - `co2_metadata` object
  - `flight_results` object
  - `hotel_results` object
  - `car_results` object
  - `rails_results` object

## Other responses

- `404`: Search not found.
- `422`: Success

---

[API](https://skmtc.dev/getgoing/apis/getgoing-api.md) - [All operations](https://skmtc.dev/getgoing/apis/getgoing-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getgoing/apis/getgoing-api/revisions/7546f102cf69?raw)
