API V2.0: Difference between revisions
Jump to navigation
Jump to search
| Line 322: | Line 322: | ||
==Where can I see examples for how to use the API?== | ==Where can I see examples for how to use the API?== | ||
Examples can be found here [https://beds24.com/api/v2 beds24.com/api/v2] | Examples can be found here [https://beds24.com/api/v2 beds24.com/api/v2] | ||
==Can I use API V2 to send pictures or webhooks?== | |||
Currently no, however these features are coming soon. | |||
==What are scopes?== | |||
Scopes limit what your token can do. | |||
For example, the read/bookings scope allows your token to retrieve bookings via the API, but if your token does not have the write/bookings scope then it cannot be used to create or modify bookings. | |||
==Where are scopes set?== | |||
Scopes are set when you create an invite code. | |||
Scopes cannot be changed later, you must create a new invite code with the scopes you want and exchange it for a new token. | |||
==How do I get a token/refresh token?== | |||
Create an invite code under Settings -> Apps & Integrations -> API. | |||
Exchange this invite code for a refresh token and token using the POST /authentication/setup endpoint. | |||