Booking Hotels
  1. Auth
Booking Hotels
  • About API
  • Auth
    • Register
      POST
    • Login by Password
      POST
    • Login by Access Token
      GET
    • Renew Access Token
      GET
    • Update Password
      PATCH
    • Update Profile
      PATCH
    • Request Forgot Password
      POST
    • Verify Forgot Password
      POST
    • Confirm Forgot Password
      PATCH
    • Logout
      DELETE
  • Hotels
    • Get Hotel List
      GET
    • Get Hotel by Id
      GET
    • Create Hotel
      POST
    • Update Hotel by Id
      PATCH
    • Delete Hotel by Id
      DELETE
  • Rooms
    • Get Room List
      GET
    • Get Room by Id
      GET
    • Create Room
      POST
    • Update Room by Id
      PATCH
    • Delete Room by Id
      DELETE
  • Bookings
    • Actions
      • Pay Booking by Id
      • Cancel Booking by Id
      • Check In Booking by Id
    • Get Booking List
      GET
    • Get Booking by Id
      GET
    • Create Booking
      POST
  • Check Service Status
    GET
  1. Auth

Renew Access Token

GET
/api/v1/auth/renew-token
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/auth/renew-token'
Response Response Example
{
    "status_code": 200,
    "data": {
        "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjNhMDlmNWZjLTA4NzgtNGQwNy05YTk3LTBmZWI0ZmY0YzliYiIsImlhdCI6MTczODkyMDI0OCwiZXhwIjoxNzM5MDA2NjQ4fQ.-azxqJocKSd-GH_25a5enk445rzjWrhf4_xElrJEZn8",
        "access_token_expired_at": "2025-02-08T09:24:08.714Z"
    },
    "message": "Renew Token successfully"
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************

Responses

🟢200Success
application/json
Body
status_code
number 
required
data
object 
required
access_token
string 
required
access_token_expired_at
string 
required
message
string 
required
Previous
Login by Access Token
Next
Update Password
Built with