About partnership API keys and access tokens
This page explains why you get one Partnership API Key for all your automations, and why each automation gets its own access token.
Two credentials with two jobs
Every request to the Guestway Open API carries two credentials. Each one answers a different question.
The Partnership API Key answers "Who is calling?". It tells Guestway which partner sends the request, and it sets the rate limits. It gives no access to data on its own.
The organization access token answers "What can this caller do?". It gives access to the data of your organization, with the permissions that you chose when you created the token. You create and delete these tokens yourself, on the API access page.
Why you get one Partnership API Key
Guestway gives one Partnership API Key to each customer, holding or entity. You use this one key for all your integrations and automations, and for all your organizations. The key keeps working when you add a new organization later.
The key identifies you as a partner, not one automation. A second key would not give a new automation its own access or its own permissions, because the key gives no access to data. That is the job of the access token. So Guestway does not issue a second Partnership API Key for a new automation.
One key also keeps your API traffic in one place. All your automations share the rate limits of the key, so Guestway sees the total load of your company and can set the limits that fit it.
Why each automation gets its own access token
The access tokens are where you keep your automations apart. You can create several tokens in one organization, so give each automation its own token. This has three advantages:
Each token gets only the permissions that its automation needs. For example, a token for a reporting export can have only Reservations - Read, so it cannot send messages to guests.
When you stop an automation, or when a token leaks, you delete that one token. The other automations keep working.
Last Used on each token shows which automations still call the API.
When you need more requests
All your automations share the rate limits of your Partnership API Key. When you need higher limits, contact [email protected].
Guestway first looks at how you use the API, together with you. For example, a webhook can replace frequent polling, and fewer calls can often give the same result. Guestway raises the limit when your use case needs it and the calls cannot be made more efficient.
Related
Last updated