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

How to create an API access token

This guide shows you how to create a token for the Guestway Open API, with only the permissions your integration needs.

Before you start

  • You have the Super admin role.

  • To make API requests, you also need the Partnership API Key of your company from Guestway. You use the same key for all your automations. If you do not have a key yet, contact [email protected].

Create the token

1

Open API access

Go to Settings → Organization → API Access. On the API Access tab, click Create.

2

Name the token

Enter a Name.

Choose the permissions

1

Select the permissions

Select the permissions in Scopes. See API access for the full list.

2

Create it

Click Create.

Copy and store the token

1

Copy the token

In API Token generated, click Copy token & close. The token starts with gw_.

2

Store it safely

Paste the token in a secret manager. Do not put it in documents or tickets.

Use the token

1

Add both headers

Add both headers to every API request:

X-Api-Key: <your partnership api key>
Authorization: Bearer gw_<your organization access token>

See the Guestway Open API reference for the endpoints.

Troubleshooting

Why do requests return 401 Unauthorized?

The token is missing, deleted or wrong. Check that the request has the header Authorization: Bearer gw_... with a token that still exists.

Why do requests return 403 Forbidden?

The token does not have the permission for that part of the API. Check the Permissions of the token, and add the missing one.

Why are requests rejected at once?

The X-Api-Key header is missing or wrong. Every request needs a valid Partnership API Key, otherwise Guestway rejects it before it checks the token.

Why do I get rate limit errors?

You send more than 5 requests per second or 10,000 per day. Slow down your client, or contact [email protected] for higher limits.