Recent Searches
Read, save, and clear the user's recent airport-service and experience searches.
Recent Searches
The API keeps a per-user history of recent searches so a client can offer quick "search
again" shortcuts. There are two independent histories: airport-service searches (under
/v1/travel/searches/recent) and experience searches (under
/v1/travel/experiences/recent).
All requests are authenticated with a Bearer JWT and require the X-App-Id header. Use the
X-Environment header to target the sandbox.
Airport-service searches
Get recent searches
GET /v1/travel/searches/recent
Return the user's recent airport-service searches.
No parameters. Uses the JWT and X-App-Id header.
https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us./v1/travel/searches/recentSandbox credentials
Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.
curl -X GET 'https://cloud.vanitypass.com/v1/travel/searches/recent' \ -H 'Content-Type: application/json' \ -H 'X-Environment: Sandbox' \
Save a search
POST /v1/travel/searches/recent
Save an airport-service search to the user's recent history. The spec does not define a request-body schema for this endpoint; send the search payload your client wants recorded.
https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us./v1/travel/searches/recentSandbox credentials
Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.
curl -X POST 'https://cloud.vanitypass.com/v1/travel/searches/recent' \ -H 'Content-Type: application/json' \ -H 'X-Environment: Sandbox' \
Clear all searches
DELETE /v1/travel/searches/recent
Clear the user's entire airport-service search history.
No parameters. Uses the JWT and X-App-Id header.
https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us./v1/travel/searches/recentSandbox credentials
Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.
curl -X DELETE 'https://cloud.vanitypass.com/v1/travel/searches/recent' \ -H 'Content-Type: application/json' \ -H 'X-Environment: Sandbox' \
Delete a specific search
DELETE /v1/travel/searches/recent/{search_id}
Remove a single entry from the user's airport-service search history.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
search_id | path | string | Yes | Identifier of the recent search to delete. |
https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us./v1/travel/searches/recent/{search_id}Sandbox credentials
Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.
curl -X DELETE 'https://cloud.vanitypass.com/v1/travel/searches/recent/{search_id}' \
-H 'Content-Type: application/json' \
-H 'X-Environment: Sandbox' \Experience searches
Get recent experience searches
GET /v1/travel/experiences/recent
Return the user's recent experience searches.
No parameters. Uses the JWT and X-App-Id header.
https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us./v1/travel/experiences/recentSandbox credentials
Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.
curl -X GET 'https://cloud.vanitypass.com/v1/travel/experiences/recent' \ -H 'Content-Type: application/json' \ -H 'X-Environment: Sandbox' \
Clear recent experience searches
DELETE /v1/travel/experiences/recent
Clear the user's entire experience search history.
No parameters. Uses the JWT and X-App-Id header.
https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us./v1/travel/experiences/recentSandbox credentials
Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.
curl -X DELETE 'https://cloud.vanitypass.com/v1/travel/experiences/recent' \ -H 'Content-Type: application/json' \ -H 'X-Environment: Sandbox' \