Référence de l’API
ZenHost Public API 1.0.0, produite à partir de openapi.json. Tous les endpoints sauf la spécification elle-même exigent Authorization: Bearer zh_at_... et la permission indiquée.
Authentification
Envoyez le jeton d’accès de la connexion d’App dans l’en-tête Authorization de chaque appel. L’URL de base est https://app.zenhost.com/api/v1.
GET /api/v1/properties
Authorization: Bearer zh_at_...Endpoints
Properties
Restrictions
Bookings
Messages
- GET
/message-threadsList the Message Threads of the Connection Scope - POST
/bookings/{booking_id}/message-thread/closeClose the conversation of a booking - POST
/bookings/{booking_id}/message-thread/reopenReopen the conversation of a booking - GET
/bookings/{booking_id}/messagesList the messages of a booking - POST
/bookings/{booking_id}/messagesSend a message to the guest of a booking - GET
/bookings/{booking_id}/messages/{message_id}/attachments/{index}Download an attachment of a message