GenerateConnectOauthUrlRequestDto
August 7, 2026 · View on GitHub
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
subscriberId | Optional<String> | :heavy_minus_sign: | The subscriber ID to associate with the channel connection. For Slack: optional for workspace connections (required only for incoming-webhook scope). For Webex: optional for workspace connections. For MS Teams: optional. Admin consent is tenant-wide. | subscriber-123 |
integrationIdentifier | String | :heavy_check_mark: | Integration identifier | |
connectionIdentifier | Optional<String> | :heavy_minus_sign: | Identifier of the channel connection that will be created. Generated automatically if not provided. | slack-connection-abc123 |
context | Map<String, GenerateConnectOauthUrlRequestDtoContextUnion> | :heavy_minus_sign: | N/A | |
contextHash | Optional<String> | :heavy_minus_sign: | HMAC-SHA256 of the canonicalized context, signed with the tenant environment secret key (the same "Inbox with context" signing scheme). Required when the integration has HMAC validation enabled and the session did not already HMAC-verify the context. Establishes that the context/tenant binding was minted by an authenticated backend rather than forged in the browser. | a1b2c3d4e5f6... |
scope | List<String> | :heavy_minus_sign: | Slack only: OAuth scopes to request during authorization. If not specified, default scopes will be used: chat:write, chat:write.public, channels:read, groups:read, users:read, users:read.email. Webex: OAuth scopes to request during authorization. Defaults to: spark:messages_write, spark:rooms_read, spark:people_read, spark:memberships_read, spark:kms. MS Teams: ignored — uses admin consent with pre-configured Azure AD permissions. | [ "chat:write", "chat:write.public", "channels:read" ] |
connectionMode | Optional<GenerateConnectOauthUrlRequestDtoConnectionMode> | :heavy_minus_sign: | Connection mode that determines how the channel connection is scoped. "subscriber" (default) associates the connection with a specific subscriber. "shared" associates the connection with a context instead of a subscriber. | shared |
autoLinkUser | Optional<Boolean> | :heavy_minus_sign: | When true (default when connectionMode is "subscriber"), after the workspace/tenant connection is created the OAuth flow also links the subscriber who clicked "Connect" as a personal endpoint. For Slack, uses the authed_user.id returned by oauth.v2.access — no extra redirect. For Webex, uses the authenticated Webex person returned by people/me — no extra redirect. For MS Teams, triggers a second OAuth redirect for delegated user-identity consent. Set to false to only create the workspace connection without linking the individual user. | true |