Authentication
API Keys
All requests require the X-Fliinow-API-Key header. You'll receive two keys: one for Sandbox (testing) and one for Production.
Header:
X-Fliinow-API-KeyAPI key types
There are three types of API key depending on who owns the integration: a merchant integrating on its own, a group working for the merchants it owns, or an integrator (booking engine, payment gateway, PMS) working on behalf of the merchants Fliinow has linked to it. The key type determines which headers you must send on every request.
| Key type | Scope | Required headers |
|---|---|---|
| Merchant | Always operates on a single merchant, the one linked to the key. The X-Fliinow-Merchant header is ignored. |
|
| Group | Can operate on any active merchant of the group (a hotel chain, a group of travel agencies). It is the only key type that can use Auto Login. |
|
| Integrator | Can operate on any active merchant Fliinow has linked to the integrator, without owning it: the same merchant can belong to its group and be linked to one or more integrators. Fliinow registers the integrator, links its merchants and hands over the keys. It cannot use Auto Login. It only sees and acts on the operations created with its own keys for the merchant in X-Fliinow-Merchant: any other operation (created from the Fliinow panel, by the merchant's group or by another integrator) returns 404 OPERATION_NOT_FOUND, like one that does not exist. |
|
X-Fliinow-Merchant header
With a group or integrator key, every request must include the X-Fliinow-Merchant header with the numeric ID of the merchant you are acting on behalf of. The only exception is GET /merchants, which does not need it and returns precisely the IDs valid for that header. If it is missing, not a number, or the merchant is not yours (or not active), the response is 401. GET /operations and externalId idempotency are scoped to the key owner: the listing returns the operations created with your keys (with a group key across all your merchants; with an integrator key, only those of the merchant in the header), and externalIds must be unique across all your merchants: resending an externalId for the same merchant returns the existing operation, but one already used with another of your merchants returns 409 EXTERNAL_ID_IN_USE.
X-Fliinow-Agency and GET /agencies, deprecated
Up to v1.11.0 the header was called X-Fliinow-Agency and the discovery endpoint GET /agencies. Both keep working as aliases of X-Fliinow-Merchant and GET /merchants, with no removal date: you do not need to change anything. If you send both headers, they must carry the same ID; if they differ, the response is 401.
Recommended flow with a group or integrator key
# 1. Discover the merchants of your group or integrator (no X-Fliinow-Merchant needed here)
curl -X GET 'https://demo.fliinow.com/integration-api/v1/merchants' \
-H 'X-Fliinow-API-Key: your_api_key'
# 2. Act on behalf of one of them using its id
curl -X GET 'https://demo.fliinow.com/integration-api/v1/operations' \
-H 'X-Fliinow-API-Key: your_api_key' \
-H 'X-Fliinow-Merchant: 41'Authentication example
curl -X GET 'https://demo.fliinow.com/integration-api/v1/operations' \
-H 'X-Fliinow-API-Key: your_api_key'Available environments
| Environment | Base URL | Purpose |
|---|---|---|
| Sandbox | https://demo.fliinow.com/integration-api/v1 | Testing and development |
| Production | https://app.fliinow.com/integration-api/v1 | Live operations |
Important
Never expose your API Key in frontend code. All calls must be made from your server.