For the complete documentation index, see llms.txt. This page is also available as Markdown.

API access

API access holds the tokens and webhooks that connect your own systems to the Guestway Open API.

Requirements

  • To create and delete API access tokens, you need the Super admin role. See Users and roles.

  • To use the API, you need a partnership with Guestway and its Partnership API Key.

Go to Settings → Organization → API Access. The page has three tabs: API Access, Webhooks and Webhook Logs. Each tab shows only when your role has access to it.

The Guestway Open API

The Guestway Open API lets business partners connect their systems to Guestway, server to server. It gives access to:

  • Organization data: basic information about the organization

  • Reservation data: dates, status and guest counts

  • Reservation accesses: smart lock PIN codes and lock information of reservations

  • Conversations and messages

  • Organization users

The full reference is at api.guestway.io/swagger/open. Download on that page gets the OpenAPI specification.

Authentication

Every request needs two headers.

Header
What it does
Security

X-Api-Key

The Partnership API Key. It identifies your integration as a Guestway partner and applies the rate limits. Without a valid key, every request is rejected at once.

Gives no access to data on its own.

Authorization: Bearer

The organization access token. It identifies your organization and applies the permissions of the token.

Gives access to the data of your organization. Treat it like a password.

  • You get the Partnership API Key from Guestway, with a partnership agreement. Contact [email protected].

  • Guestway gives one Partnership API Key to each customer, holding or entity. You use this one key for all your integrations and automations.

  • The Partnership API Key works for all your organizations, also for organizations that you add later.

  • You cannot get a second Partnership API Key for a new automation. A new automation gets its own organization access token instead. See About partnership API keys and access tokens.

  • Default rate limits: 5 requests per second, with bursts up to 10 per second, and 10,000 requests per day. All your integrations and automations share the rate limits of your Partnership API Key. Contact support for higher limits.

  • Organization access tokens are opaque tokens, not JWTs. They start with gw_.

  • Every organization can open this page and create tokens. The tokens work only together with a Partnership API Key.

API Access tab

The organization access tokens, as cards or as a table. Create makes a new token. An organization can have several active tokens.

Column
What it shows

Name

The name of the token.

API Token

The last characters of the token. The full token shows only once, when you create it.

Permissions

The permissions of the token.

Created

When the token was created.

Last Used

When the token was last used to call the API. Cards show Not used yet for a token that was never used.

Click a token to open its details:

  • Information: the Name (at most 255 characters), the API token ending, Created, Last used and Permissions. The pencil changes the name and the permissions.

  • Manage: Delete API access token deletes the token. A deleted token cannot be restored.

Tokens have no expiry date, and there is no button to regenerate a token.

Token permissions

Each token needs at least one permission. Select all selects every permission. The permissions, in the order of the product:

Permission
Permission

Full Access - Read

Full Access - Edit

Reservation Accesses - Read

Reservation Accesses - Edit

Organization Users - Read

Conversations - Read

Conversations - Edit

Reservations - Read

OTA Reservations - Read

OTA Listings - Read

Reservations - Edit

Custom Field - Read

Custom Field - Edit

Pre-Check-In Responses - Read

Guests - Read

Listings - Read

Listings - Edit

Multi-Units - Read

Complexes - Read

Bookings - Read

Owners - Read

Messages - Send

WhatsApp Templates - Read

Webhooks - Read

Webhooks - Edit

Q&A Records - Read

Q&A Records - Edit

Guidebooks - Read

Guidebooks - Edit

Reservation Documents - Read

Reservation Documents - Edit

Internal Notes - Edit

Holding Managed Accounts - Read

Holding Managed Accounts - Edit

Holding Managed Accounts - Access Tokens

Roles - Read

Roles - Edit

  • Full Access - Read and Full Access - Edit give read or read-and-write access to the whole platform.

  • Messages - Send sends messages on behalf of your organization.

  • Conversations permissions read or change the conversations of the Unified AI inbox. Custom Field permissions work with Custom fields.

Webhooks tab

Webhooks send events from Guestway to your own system. An organization can have at most 5 webhooks.

Field
What it does
Limits

Name

The name of the webhook.

Optional, at most 255 characters.

URL

The endpoint that receives the events.

Required. A public HTTPS address, at most 2,048 characters. Guestway does not follow redirects.

Event types

The events that the webhook sends.

At least one.

Notification emails

Who gets an email when deliveries fail.

At least one, at most 3.

Description

Your own notes.

Optional, at most 255 characters.

If your endpoint answers a delivery with a redirect (an HTTP 3xx response), Guestway does not follow it, and the delivery fails.

Event types:

  • Reservation updated, Reservation custom fields updated

  • Conversation updated, New conversation message

  • Listing updated, Listing custom fields updated

  • Complex updated, Complex custom fields updated

  • Multi-unit updated, Multi-unit custom fields updated

  • Custom field definition updated, Custom field definition deleted

  • Q&A record updated

Webhook statuses:

Status
Meaning

Active

The webhook sends events.

Paused

You paused the webhook. It sends no events.

Disabled

Guestway turned the webhook off. It sends no events, and the events of that time are not sent later.

Guestway disables a webhook automatically in two cases:

  • The endpoint answers a delivery with HTTP 410 Gone. No email is sent.

  • An hourly check finds that in the last 3 days there were at least 150 delivery attempts, and at least 95% of the deliveries failed for good, after all 5 attempts. Guestway then emails the Notification emails of the webhook.

Re-enable webhook turns it on again.

Authentication of deliveries

Guestway signs every delivery with HTTP Basic Auth. The credentials show after you create a webhook, and in its details under Authentication credentials:

  • Name: the ID of your organization, used as the user name

  • Secret: the password

  • Header: the full Authorization header

You can show the secret again at any time.

Webhook details

Click a webhook to open its details. The pencil on Information changes the fields. Manage has these actions:

Action
What it does

Pause webhook / Resume webhook

Stops or restarts the deliveries.

Re-enable webhook

Turns on a Disabled webhook.

Regenerate secret

Makes a new secret. The old secret stops working at once.

Delete webhook

Deletes the webhook.

There is no button to send a test event or to send a delivery again.

Webhook Logs tab

Every delivery of every webhook. You can filter by Status, Event type, Resource ID and Received at.

Column
What it shows

Received

When Guestway received the event.

Event

The event type.

Status

Delivered, Failed (Guestway can still try again) or Final failure (Guestway stopped trying).

Response

The HTTP status code your endpoint returned.

Resource ID

The ID of the reservation, listing or other item of the event.

Failure reason

Why the delivery failed.

Completed

When the delivery ended.