Skip to main content
POST
Create a vehicle search
Searches are asynchronous: this answers 202 at once with the search in PROCESSING status while the travel suppliers answer in the background. Poll the search with its id until status is COMPLETED — or FAILED — to read the results. A vehicle search lasts 30 minutes (see ttl); after that, create it again. Creating the same search again while it lasts returns the same id, and only your organization can read the searches it created. Find pickUpLocation and dropOffLocation with the locations endpoint. To book a result, open the item for its fare options, then create a trip with the item’s id as searchItemId and the chosen fare option’s id as fareId. An error the travel provider reports about the request — an unknown place, say — is returned with its own status, code and message.

Path Parameters

realmId
string<uuid>
required

ID of your realm.

Format: UUID

organizationId
string<uuid>
required

ID of your organization.

Format: UUID

Body

application/json
pickUpLocation
string
required

Pick-up place: its id or its slug from the locations endpoint.

Minimum string length: 1
Example:

"sao-paulo-sp"

dropOffLocation
string
required

Drop-off place: its id or its slug from the locations endpoint.

Minimum string length: 1
Example:

"sao-paulo-sp"

pickUpDate
string
required

Pick-up date and time, local to the pick-up place (YYYY-MM-DDTHH:mm:ss, no time-zone offset). Today or later, and before dropOffDate.

Minimum string length: 1
Example:

"2026-11-02T10:00:00"

dropOffDate
string
required

Drop-off date and time, local to the drop-off place (YYYY-MM-DDTHH:mm:ss, no time-zone offset), after pickUpDate.

Minimum string length: 1
Example:

"2026-11-05T10:00:00"

Response

Successful response

A search just created for vehicle rentals. Results come later: poll the search.

id
string
required

ID of the search. The same search parameters, within the time the search lasts, return the same ID.

Example:

"srch_Hb7Yk1DrMv3Lq8UsAe0Xj"

searchParams
object
required

What the search was made for.

type
enum<string>
required

Always VEHICLE.

Available options:
VEHICLE
Example:

"VEHICLE"

status
enum<string>
required

PROCESSING right after creation. It becomes COMPLETED or FAILED on its own: poll the search.

Available options:
PROCESSING,
FAILED,
COMPLETED
Example:

"PROCESSING"

warning
object | null
required

How the search went across the suppliers. null while it is processing.

ttl
number
required

Seconds until the search expires.

Example:

1800

facets
object | null
required

Facets to build filters from (price ranges, categories, rental companies, with their counts). null until the search completes.

createdAt
string<date-time>
required

When the search was created.

Example:

"2026-10-19T15:00:00.000Z"