Example: Authenticating to an external mail sequencing API
To get started, head to the Developer Portal and open the Connections tab for your app. Enable either a User or Workspace connection:- User connections authenticate with external services on behalf of individual users. Use this if you want to track who performed an action, for example, who added a prospect to a sequence.
- Workspace connections authenticate on behalf of the entire workspace. These are easier for Attio users to set up, since only one person in the workspace needs to authenticate with the external service. However, if you want to track who performed an action, you’ll need to enable a user connection.
It’s possible to enable both connection types, though most apps only require one.
add-to-sequence.server.ts
getUserConnection
/getWorkspaceConnection
will throw an error.
The App SDK handles this for you by catching the error and showing a prompt that asks the user to connect their account.