These are the direct booking APIs, the ones at the /booking/*.php addresses: they are not the DockBooking APIs and they are being phased out, because few marinas use them. If you are writing a new integration, do not start here.
Authentication
Authentication uses the HTTP Authentication Basic header, with the username of a technical user of the marina and one of its API keys. The technical user and the key are created by the marina, in Settings → Users and access → API keys: see Technical users and API keys: connecting an integration.
As the HTTP protocol requires, you build a string with the username and the API key separated by “:” (colon) and encode it in base64.
For example, if the username and API key were:
prenotazioni@bs123.serviceaccount.blueshell.app:bsk_la-tua-chiave
The base64 encoding would be:
cHJlbm90YXppb25pQGJzMTIzLnNlcnZpY2VhY2NvdW50LmJsdWVzaGVsbC5hcHA6YnNrX2xhLXR1YS1jaGlhdmU=
The string must be sent in the HTTP “Authorization” header.
A LIVE key works only in production, a TEST key only on the test instance. The test environment and its keys work only on request and after a technical intervention from us.
Keys that the marina has moved from a person to a technical user work until 31 January 2027, and until then they also accept the old way of connecting (the key alone, or with the person's username); from 1 February 2027 they no longer work, and the integration uses the technical user's username and a new key.
See also: REST API and Technical users and API keys: connecting an integration.
