Overview

Welcome to the Hostex API, where seamless integration meets comprehensive management of property and reservation systems. Our API provides a powerful suite of features for developers looking to automate and interact with the Hostex platform.

Quickstart

Get started with our API quickly by visiting our Quickstart Guide. This guide provides step-by-step instructions to make your first API call, authenticate successfully, and understand the basic operations.

Authentication

Each API request must be authenticated with a valid Hostex-Access-Token passed in the request header.

Key Functionalities

Our API supports a range of functionalities across various domains:

Properties

FeatureMethodEndpointDescription
Query PropertiesGET/propertiesLists properties with their details. Supports filtering by id, group_id and tag_id.
Query GroupsGET/groupsLists property groups with their associated property ids.
Query TagsGET/tagsLists property/room type tags with their associated property and room type ids.

Room Types

FeatureMethodEndpointDescription
Query Room TypesGET/room_typesLists room types with their details. Supports filtering by id and tag_id.

Reservations

FeatureMethodEndpointDescription
Query ReservationsGET/reservationsProvides detailed lookup of reservation information.
Create ReservationPOST/reservationsEnables direct creation of a new reservation in Hostex.

Availabilities

FeatureMethodEndpointDescription
Query Property AvailabilitiesGET/availabilitiesRetrieves availability information for properties for specified dates.
Update Property AvailabilitiesPOST/availabilitiesUpdates the availability status of properties.

Listing Calendar

FeatureMethodEndpointDescription
Query Listing CalendarsPOST/listings/calendarRetrieves detailed calendar information for multiple listings.
Update Listing InventoriesPOST/listings/inventoriesUpdates inventory levels for channel listings.
Update Listing PricesPOST/listings/pricesModifies listing prices for channel listings.
Update Listing RestrictionsPOST/listings/restrictionsAlters listing restrictions for channel listings.

Messaging

FeatureMethodEndpointDescription
Query ConversationsGET/conversationsRetrieves a list of guest conversations and inquiries.
Get Conversation DetailsGET/conversations/{conversation_id}Provides messages and conversation details.
Send MessagePOST/conversations/{conversation_id}Sends a text or image message to a guest.

Reviews

FeatureMethodEndpointDescription
Query ReviewsGET/reviewsQueries reviews akin to the Hostex Reviews Page.
Create a ReviewPOST/reviews/{reservation_code}Submits a review or a reply for a specific reservation.

Tasks

FeatureMethodEndpointDescription
Query TasksGET/tasksLists schedule tasks (cleaning, maintenance, reception, room service, other). Filter by date range, staff, property, type and status.
Query StaffsGET/staffsLists schedule staffs (cleaners, etc.) for assigning and tracking tasks.

Error Handling

Errors are communicated through request_id, error_code, and error_msg for clarity.

Response Format

All responses adhere to a standardized JSON format, ensuring a consistent and predictable API experience.

Webhooks

Leverage real-time notifications with webhooks. For usage details, visit the Webhooks Usage Guide.

For more detailed information on endpoint specifics, request structures, and operational guidance, please refer to our comprehensive API documentation.