Skip to content
Last updated

The Understory API requires you to authenticate yourself in most endpoints. To authenticate your requests you need to provide an access token which is based on your integration credentials.

About the protocol

We use the standard OAuth2.0 protocol with Open ID Connect (OIDC). These are industry standards and most programming languages and frameworks support these out of the box.

Which authentication method do I need?

Understory supports two authentication methods depending on your use case:

MethodUse CaseGrant Type
Internal Integration KeysYou are an Understory customer building tools to automate or extend your own Understory account. Your integration accesses only your own data.client_credentials
Third-Party IntegrationYou are building an application that will access other Understory customers' data with their permission. Examples include marketplaces, marketing tools, and accounting integrations.authorization_code

Endpoint configuration

Below are the protocol endpoints which can be used to configure your client of choice.

DescriptionEndpoint
Issuerhttps://api.auth.understory.io
OpenID Connect Discovery Endpointhttps://api.auth.understory.io/.well-known/openid-configuration
Tokenhttps://api.auth.understory.io/oauth2/token
Authorizehttps://api.auth.understory.io/oauth2/auth

Scopes

Scopes define what resources and actions your integration can access. Request only the scopes your application needs following the principle of least privilege.

ScopeDescription
booking.readRead access to bookings
booking.writeCreate and modify bookings
event.readRead access to events and availability
experience.readRead access to experiences
marketing.readRead access to marketing consents
order.readRead access to orders
webhook.readRead access to webhook subscriptions
webhook.writeCreate, modify, and delete webhook subscriptions
offlineEnables refresh tokens for long-lived access (required for third-party integrations)

Refer to the API Reference for detailed information about which endpoints require which scopes.