Authentication and authorization

Authentication identifies the user. Company membership and permissions determine which resources they can access.

Authentication identifies the user. Company membership and permissions determine which resources they can access.

App login

Apps use the configured identity provider and send an access token to the API. The backend resolves active local registration from that identity. A valid login does not automatically grant administrative permission. Companies may require Microsoft 365 login; that requirement is checked on authenticated tenant access. API keys follow their own path and do not represent an interactive Microsoft session.

Select a company

An identity can have multiple active memberships. X-Tenant-Id selects the company for ordinary API access; the backend verifies membership rather than trusting the header. Invalid selection or access without membership returns an error. Membership discovery and initial registration have dedicated handling. Webhooks, visitor chats and shared Flow links use specific resolution and validation mechanisms; they should not be treated as an ordinary administrator session.

User API key

On endpoints supporting this scheme, send X-API-Key in the header. The key identifies a user whose membership and permissions still apply. Use it in backend integrations, not public website JavaScript. Changing X-Tenant-Id does not expand its scope. User deactivation and permission changes need to be considered when operating the integration.

Read the public API contract

Permissions and access diagnosis

User and group roles contribute permissions. The API also applies resource and operation-context rules. When investigating a failure, check identity, selected company, active user, roles and required memberships. Do not fix an access error by sharing an administrator key; grant only the required permission and test again.

Configure roles and groups · Read auditing guidance