Join our community at https://www.reddit.com/r/HotelByte/
Get an authentication token for API access using your appKey/appSecret.
This endpoint returns a ticket (JWT token) that you must include in all subsequent API requests.
Sliding Expiration Mechanism:
Usage Guidelines:
Error Handling:
curl --location --request POST 'https://api-test.hotelbyte.com/api/auth/ticket' \
--header 'Client-Request-Timestamp;' \
--header 'IP;' \
--header 'Language;' \
--header 'Request-Id;' \
--header 'Trace-Id;' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"appKey": "hotelbyte_api_demo",
"appSecret": "hotelbyte_api_demo",
"ttl": 3600
}'{
"code": 0,
"msg": "string",
"data": {
"ticket": "string"
}
}