Skip to main content

API Scopes

Scopes are used to grant limited access to user data and Hub functionality. When an application requests an access token, it specifies a list of scopes. The user must approve these scopes during the 3-legged authorization flow.

Available Scopes

ScopeDescriptionLevel
data:readView your conversations, messages, and files.User
data:writeSend messages and update existing data.User
workflow:executeTrigger and run automated workflows.Account
workflow:readView workflow definitions and execution logs.Account
connection:manageCreate, update, and delete tool connections.Account
user:profileAccess basic profile info (email, name).User
admin:accessFull administrative access to the organization.Org

Best Practices

  1. Least Privilege: Only request the scopes necessary for your application to function.
  2. Incremental Scopes: If your application gains new features, you can prompt the user to re-authorize with additional scopes later.
  3. Internal vs. External: Some scopes (like admin:access) are restricted and may require manual approval by Arrotech for third-party apps.

Token Expiration

Access tokens generated with specific scopes typically expire in 1 hour. Refresh tokens can be used to obtain new access tokens without re-prompting the user, provided the user has not revoked the application's access.