provider usersusers POST /api/users/{uuid}/integrations/slack/start/
@utdk/posthog /api/users/{uuid}/integrations/slack/start/
Start Slack identity link from settings
Mint a Sign-in-with-Slack invite URL initiated from settings, without Slack-DM context. The returned URL takes the user through PostHog login (already satisfied here), then to Slack OAuth, then back to our callback which writes the ``UserIntegration`` row. Without body params, falls back to the user's ``current_team`` and that team's first Slack ``Integration`` — works when there's exactly one linkable workspace. With ``team_id`` + ``slack_team_id``, links against the exact pair (what the frontend uses when a picker is shown). Refuses if the target team has no matching Slack workspace, if the feature flag is off for the workspace, or if the user is already linked to it.
uuid path required
string

Try it

Authentication
Configure credentials for PostHog API
usersIntegrationsSlackStartCreate
POST/api/users/{uuid}/integrations/slack/start/
Mint a Sign-in-with-Slack invite URL initiated from settings, without Slack-DM context. The returned URL takes the user through PostHog login (already satisfied here), then to Slack OAuth, then back to our callback which writes the ``UserIntegration`` row. Without body params, falls back to the user's ``current_team`` and that team's first Slack ``Integration`` — works when there's exactly one linkable workspace. With ``team_id`` + ``slack_team_id``, links against the exact pair (what the frontend uses when a picker is shown). Refuses if the target team has no matching Slack workspace, if the feature flag is off for the workspace, or if the user is already linked to it.

Parameters

required

Input

Optional team/project id to link against; defaults to the user's current team.

Specific Slack workspace id to link against, scoped to the team. Disambiguates when one team has multiple Slack integrations (rare).

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.usersIntegrationsSlackStartCreate()