It’s useful for apps to understand the permissions or objects available for each token. During the development of a canvas you can provide different features depending on the user level (e.g., is the user an admin or a mobile app user?).
It’s useful for apps to understand the permissions or objects available for each token. During the development of a canvas you can provide different features depending on the user level (e.g., is the user an admin or a mobile app user?).
The below example shows how you can use the field `capabilities` available at `me` object. Click the play button to run the query in this live demo. The table below explains the response further.
Capability | Description |
authenticated | Will be returned only if the token is valid and not expired |
manage | Will be returned only if the user is an admin or if its an organization token |
bookings | Will be returned only if the token has permissions to handle bookings |
checkins | Will be returned only if the token has permissions to handle check-ins |
invoices | Will be returned only if the token has permissions to handle invoices |
We are here to help. Ask us a question and we’ll do our best to answer as soon as possible.
Previous
API ThrottlingNext
API Example - Bookings