Skip to main content
POST
Preview a Slack auto-join rule

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.

Body

application/json
id_field
string | null
required

The account CRM field that holds a channel id to join; null: none

Maximum string length: 200
name_field
string | null
required

The account CRM field that holds a channel name to join; null: none

Maximum string length: 200
prefixes
string[]
required

Join the channels whose name starts with one

Maximum array length: 20
Maximum string length: 200
suffixes
string[]
required

Join the channels whose name ends with one

Maximum array length: 20
Maximum string length: 200

Response

200 - application/json

Successful Response

What the next scan would join and link for the draft rule; nothing is written. The nested parts are plain objects: the service's own models share names (PreviewRow) with another domain's public schema.

complete
boolean
required

false: a workspace's channel list was not read in full, so the counts may be short

rules
Rules · object[]
required

Each part of the rule, with the channels and accounts it matches: at most 1000 rows each, and truncated true when a part matches more

totals
Totals · object
required

Channels to join, already joined, links to add, conflicts, and the rest

workspaces
Workspaces · object[]
required

Each workspace: its channels, whether it was read, and when