Generate OAuth URL to link a subscriber user identity
Generate an OAuth URL that links a specific subscriber to their chat identity (Slack user ID or MS Teams user OID). The generated URL expires after 5 minutes.
Authorization
Authorization<token>API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".
In: header
Request Body
application/jsonRequiredsubscriberIdRequiredstringThe subscriber ID to link to their chat identity. Required — this operation always binds a specific subscriber to a user identity in the chat provider.
integrationIdentifierRequiredstringIntegration identifier
connectionIdentifierstringIdentifier of the existing channel connection to associate this user endpoint with. Generated automatically if not provided.
contextobjectuserScopearray<string>Slack only: User-level OAuth scopes for "Sign in with Slack". Defaults to: identity.basic. MS Teams: ignored — uses delegated OpenID scopes (openid, profile, User.Read).
Header Parameters
idempotency-keystringA header for idempotency purposes
Response Body
Created
urlRequiredstringThe OAuth authorization URL for the chat provider. For Slack: https://slack.com/oauth/v2/authorize?... For MS Teams: https://login.microsoftonline.com/.../adminconsent?... This URL should be presented to the user to authorize the integration. Expires after 5 minutes.