Hotel API authentication
One header, seven scopes.
Every call except the OpenAPI document and health carries a bearer key. Keys carry scopes, and a key without the booking scope can't book; dashboard keys carry them all.
Live keys and test keys.
vl_live_… and vl_test_…keys hit the same catalogue and spend the same credit; test keys never create Stripe charges, and a test key's quote is answered by a simulated hotel instead of emailing a real one. Create and revoke both in the dashboard; to rotate, create a new key, move your traffic to it, then revoke the old one. Keep keys server-side; a key in a browser bundle is a key anyone can use.
curl https://api.vistalink.com/v2/amenities \
-H "Authorization: Bearer $VISTALINK_API_KEY"A key does only what it's scoped for.
Keys you create in the dashboard carry every scope; ask us if you need a narrower one. Calling an endpoint without its scope returns 403 forbidden. Jobs, webhooks and the catalog helpers work with any key; GET /v2/openapi.json and GET /v2/health need none.
| Scope | Covers | Endpoints |
|---|---|---|
search | Resolve and search | POST /v2/hotels/resolvePOST /v2/search |
content | Hotel detail | GET /v2/hotels/{hotel_id} |
rates | Rates, single and batch | POST /v2/ratesPOST /v2/rates/batch |
reconcile | Room reconciliation | POST /v2/rooms/reconcile |
booking | Bookings | POST /v2/bookingsPOST /v2/bookings/{booking_id}/confirmPOST /v2/payment_credentialsGET /v2/bookings/{booking_id}POST /v2/bookings/{booking_id}/cancel |
quotes | Quotes | POST /v2/quotesGET /v2/quotes/{quote_id}POST /v2/quotes/{quote_id}/cancelPOST /v2/quotes/{quote_id}/offers/{offer_id}/accept |
chat | Chat | POST /v2/chat |
Retry without doubling up.
Send Idempotency-Keyon any POST that starts a job or a booking; it's required on bookings. The same key with the same body returns the original response. The same key with a different body is a 409 conflict.