Postman Guide
Use Postman to explore Guesty's OpenAPI. You will need an active Guesty account to send requests and receive responses.
Partners & Channels (OTAs)
If you are a Guesty Marketplace or Channel (OTA) Partner, please refrain from using the Open API and contact [email protected].
You can test APIs right away by forking Guesty's Postman collection. Ensure you've created an OAuth Application in your Guesty account with the keys to authenticate your requests.
1. Fork the Guest OpenAPI Postman Collection
-
Sign up or log in to an account on postman.com.
-
Select the following Run in Postman button:
-
Select Fork Collection.
-
Name your fork and select a workspace.
2. Generate an Authentication Token
Follow our authentication guide for Postman to learn how to generate an access token using the keys you saved when creating your OAuth Application. You must read our authentication guide to understand how to manage your access correctly.
Permission Error
If you receive the "You don't have permission to access, please contact Guesty support" error message when performing a request, make sure that the authorization header parameter includes "Bearer" before the access token (e.g., "Bearer {token}"). If the problem continues, please reach out to support.
3. Make API Calls with Postman
These examples use the Listings API to create and update a listing on your Guesty account.
Create a Listing
To create a listing:
- In your Postman workspace, navigate to your fork of the Guesty OpenAPI collection.
- Select Listings > Create a listing.
- In the Body tab, fill in the values to configure and describe the listing.
- Select Send. The API returns an HTTP 201 OK response code on a successful call.
Update a Listing
Edit a variety of listing fields as follows:
- Find the
_id
in the response of the listing you created, copy the value. - Select your fork of the Guesty OpenAPI collection.
- In the Variables tab, enter the value you copied in the
id
field. - Select Listings > {id} > Update a listing.
- In the Body tab, fill in the relevant body parameter values and discard any unnecessary ones.
- Select Send. A successful call returns an HTTP 201 OK response code.
Updated 4 months ago