GET/hotel
Which hotel the key belongs to, its room types with your codes for them, and what the key may do. A good first call to check a key works.
Permission: any key
GET https://hourly.ng/api/v1/hotel
Authorization: Bearer hk_live_…{
"hotel": {
"id": "cm3h0telex4mple01",
"name": "Example Hotel Ikeja",
"slug": "example-hotel-ikeja",
"area": "LAGOS_IKEJA_AIRPORT",
"timeZone": "Africa/Lagos"
},
"roomTypes": [
{
"id": "cm3rt0deluxe00001",
"externalCode": "DLX-K",
"name": "Deluxe King",
"maxGuests": 2,
"active": true
},
{
"id": "cm3rt0standard0002",
"externalCode": null,
"name": "Standard Queen",
"maxGuests": 2,
"active": true
}
],
"key": {
"prefix": "hk_live_3fa9c2d1",
"mode": "live",
"scopes": [
"availability:write",
"availability:read",
"bookings:read",
"checkins:write"
]
}
}