Configure Slack assistant installation
curl --request PUT \
--url https://api.openworklabs.com/v1/mcp-connections/{connectionId}/slack-assistant \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"enabled": true,
"signingSecret": "<string>",
"channelIds": [],
"shadowMode": false,
"dailyLimit": 100,
"model": "<string>",
"progressUpdates": true
}
'import requests
url = "https://api.openworklabs.com/v1/mcp-connections/{connectionId}/slack-assistant"
payload = {
"enabled": True,
"signingSecret": "<string>",
"channelIds": [],
"shadowMode": False,
"dailyLimit": 100,
"model": "<string>",
"progressUpdates": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
signingSecret: '<string>',
channelIds: [],
shadowMode: false,
dailyLimit: 100,
model: '<string>',
progressUpdates: true
})
};
fetch('https://api.openworklabs.com/v1/mcp-connections/{connectionId}/slack-assistant', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.openworklabs.com/v1/mcp-connections/{connectionId}/slack-assistant",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => true,
'signingSecret' => '<string>',
'channelIds' => [
],
'shadowMode' => false,
'dailyLimit' => 100,
'model' => '<string>',
'progressUpdates' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.openworklabs.com/v1/mcp-connections/{connectionId}/slack-assistant"
payload := strings.NewReader("{\n \"enabled\": true,\n \"signingSecret\": \"<string>\",\n \"channelIds\": [],\n \"shadowMode\": false,\n \"dailyLimit\": 100,\n \"model\": \"<string>\",\n \"progressUpdates\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.openworklabs.com/v1/mcp-connections/{connectionId}/slack-assistant")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"signingSecret\": \"<string>\",\n \"channelIds\": [],\n \"shadowMode\": false,\n \"dailyLimit\": 100,\n \"model\": \"<string>\",\n \"progressUpdates\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openworklabs.com/v1/mcp-connections/{connectionId}/slack-assistant")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"signingSecret\": \"<string>\",\n \"channelIds\": [],\n \"shadowMode\": false,\n \"dailyLimit\": 100,\n \"model\": \"<string>\",\n \"progressUpdates\": true\n}"
response = http.request(request)
puts response.read_body{
"ok": true
}{
"error": "invalid_request",
"details": [
{
"message": "<string>",
"path": [
"<string>"
]
}
],
"message": "<string>",
"capability": "<string>"
}{
"error": "unauthorized"
}{
"error": "forbidden",
"reason": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "connection_changed"
}Authentication
Configure Slack assistant installation
Save the connector’s Slack assistant settings and optionally replace its signing secret. Enabling requires the deployment’s headless runner. Requires the Manage connections permission, a browser session and recent verification.
PUT
/
v1
/
mcp-connections
/
{connectionId}
/
slack-assistant
Configure Slack assistant installation
curl --request PUT \
--url https://api.openworklabs.com/v1/mcp-connections/{connectionId}/slack-assistant \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"enabled": true,
"signingSecret": "<string>",
"channelIds": [],
"shadowMode": false,
"dailyLimit": 100,
"model": "<string>",
"progressUpdates": true
}
'import requests
url = "https://api.openworklabs.com/v1/mcp-connections/{connectionId}/slack-assistant"
payload = {
"enabled": True,
"signingSecret": "<string>",
"channelIds": [],
"shadowMode": False,
"dailyLimit": 100,
"model": "<string>",
"progressUpdates": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
signingSecret: '<string>',
channelIds: [],
shadowMode: false,
dailyLimit: 100,
model: '<string>',
progressUpdates: true
})
};
fetch('https://api.openworklabs.com/v1/mcp-connections/{connectionId}/slack-assistant', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.openworklabs.com/v1/mcp-connections/{connectionId}/slack-assistant",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => true,
'signingSecret' => '<string>',
'channelIds' => [
],
'shadowMode' => false,
'dailyLimit' => 100,
'model' => '<string>',
'progressUpdates' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.openworklabs.com/v1/mcp-connections/{connectionId}/slack-assistant"
payload := strings.NewReader("{\n \"enabled\": true,\n \"signingSecret\": \"<string>\",\n \"channelIds\": [],\n \"shadowMode\": false,\n \"dailyLimit\": 100,\n \"model\": \"<string>\",\n \"progressUpdates\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.openworklabs.com/v1/mcp-connections/{connectionId}/slack-assistant")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"signingSecret\": \"<string>\",\n \"channelIds\": [],\n \"shadowMode\": false,\n \"dailyLimit\": 100,\n \"model\": \"<string>\",\n \"progressUpdates\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openworklabs.com/v1/mcp-connections/{connectionId}/slack-assistant")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"signingSecret\": \"<string>\",\n \"channelIds\": [],\n \"shadowMode\": false,\n \"dailyLimit\": 100,\n \"model\": \"<string>\",\n \"progressUpdates\": true\n}"
response = http.request(request)
puts response.read_body{
"ok": true
}{
"error": "invalid_request",
"details": [
{
"message": "<string>",
"path": [
"<string>"
]
}
],
"message": "<string>",
"capability": "<string>"
}{
"error": "unauthorized"
}{
"error": "forbidden",
"reason": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "connection_changed"
}Authorizations
denApiKeybearerAuth
Organization API key passed as the x-api-key header. The raw key is the header value; do not prefix it with Bearer.
Path Parameters
Den TypeID with 'emc_' prefix and a 26-character base32 suffix.
Required string length:
30Body
application/json
Required string length:
16 - 512Maximum array length:
100Pattern:
^[CG][A-Z0-9]+$Required range:
1 <= x <= 1000Gateway model alias for headless runs; null restores the runner default. Omit to keep the current model.
Pattern:
^[A-Za-z0-9._:/-]{1,255}$Show steps and notes in Slack while a task works. Off (the default) shows only Slack's working status, then the answer. Omit to keep the current setting.
Response
Slack assistant settings saved.
Was this page helpful?