API v2 · Getting started

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.

Keys

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.

Header
curl
curl https://api.vistalink.com/v2/amenities \
  -H "Authorization: Bearer $VISTALINK_API_KEY"
Scopes

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.

Idempotency

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.