Skip to main content

6) Authenticating requests

You can make queries to the Hotel Manager API by providing a valid accessToken in an Authorization header.

Here is an example querying the Booking entity for the hotelId provided when generating an access token.

query bookings {
bookings {
id
checkInDate
guest {
mobile
dateOfBirth
}
}
}

Headers

{
"Authorization": "Bearer {access_token}"
}