Skip to main content
POST
Link a provider identity to a member
Tells OneCLI which member a Slack user is. Agents then act with that member’s permissions when they reply. See Agent access. Tells OneCLI which member a Slack user is, so their messages run under that member’s access. The member must be active.
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Path Parameters

provider
enum<string>
required

Channel provider. Slack is the only provider today.

Available options:
slack

Body

application/json
externalUserId
string
required

The Slack user id.

Maximum string length: 200
userId
string
required

The OneCLI member's user id.

Maximum string length: 200

Response

The link

An explicit link between a provider identity (a Slack user) and a OneCLI member.

id
string
externalUserId
string
linkedVia
string

How the link was made (manual for admin-made links).

createdAt
string<date-time>
user
object
integration
object

List reads only.