Sample - Slack Web API
GET/admin.conversations.getConversationPrefs

Get channel conversation preferences

Retrieves posting preferences for a public or private channel. Supply channel_id to identify the channel whose thread and posting permissions you want to inspect. The authentication token must include the required administrative read scope.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
channel_idstringrequired
Identifier of the public or private channel whose conversation preferences to retrieve.
tokenstringrequired
Authentication token with the `admin.conversations:read` scope.

2 status codes
200Returns the `ok` flag and, when available, a `prefs` object containing channel posting preferences such as `can_thread` and `who_can_post`.
okbooleanrequired
Allowed:true
prefsobjectoptional
defaultReturned when the request cannot be processed successfully; the response contains `ok: false` and an error value.
errorstringrequired
Allowed:feature_not_enablednot_an_adminnot_an_enterpriserestricted_actionmissing_scopechannel_not_foundchannel_type_not_supportedcould_not_get_conversation_prefs
okbooleanrequired
Allowed:false

Error handling

token must provide the admin.conversations:read scope, and channel_id must identify the channel whose preferences you want to retrieve.