curl -X POST "https://app.runtm.com/api/v1/slack/integration/test" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123" \
-H "Content-Type: application/json" \
-d '{ "channel": "C01ABC123" }'
import requests
resp = requests.post(
"https://app.runtm.com/api/v1/slack/integration/test",
headers={
"Authorization": "Bearer runtm_xxx",
"X-Organization-Id": "org_abc123",
"Content-Type": "application/json",
},
json={"channel": "C01ABC123"},
)
print(resp.json())
const resp = await fetch(
"https://app.runtm.com/api/v1/slack/integration/test",
{
method: "POST",
headers: {
Authorization: "Bearer runtm_xxx",
"X-Organization-Id": "org_abc123",
"Content-Type": "application/json",
},
body: JSON.stringify({ channel: "C01ABC123" }),
}
);
const data = await resp.json();
{
"success": true,
"message": "Test message sent"
}
Slack
Test Integration
Send a test message to verify the Slack integration is working.
POST
/
api
/
v1
/
slack
/
integration
/
test
curl -X POST "https://app.runtm.com/api/v1/slack/integration/test" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123" \
-H "Content-Type: application/json" \
-d '{ "channel": "C01ABC123" }'
import requests
resp = requests.post(
"https://app.runtm.com/api/v1/slack/integration/test",
headers={
"Authorization": "Bearer runtm_xxx",
"X-Organization-Id": "org_abc123",
"Content-Type": "application/json",
},
json={"channel": "C01ABC123"},
)
print(resp.json())
const resp = await fetch(
"https://app.runtm.com/api/v1/slack/integration/test",
{
method: "POST",
headers: {
Authorization: "Bearer runtm_xxx",
"X-Organization-Id": "org_abc123",
"Content-Type": "application/json",
},
body: JSON.stringify({ channel: "C01ABC123" }),
}
);
const data = await resp.json();
{
"success": true,
"message": "Test message sent"
}
Sends a test message to a Slack channel to verify the integration is properly configured and the bot can post messages.
Requires org admin role.
Required scope:
integrations:write
Requires organization context via the
X-Organization-Id header.string
required
The organization with the Slack integration.
string
required
Slack channel ID to send the test message to.
boolean
required
Whether the test message was sent successfully.
string
required
Human-readable result message.
curl -X POST "https://app.runtm.com/api/v1/slack/integration/test" \
-H "Authorization: Bearer runtm_xxx" \
-H "X-Organization-Id: org_abc123" \
-H "Content-Type: application/json" \
-d '{ "channel": "C01ABC123" }'
import requests
resp = requests.post(
"https://app.runtm.com/api/v1/slack/integration/test",
headers={
"Authorization": "Bearer runtm_xxx",
"X-Organization-Id": "org_abc123",
"Content-Type": "application/json",
},
json={"channel": "C01ABC123"},
)
print(resp.json())
const resp = await fetch(
"https://app.runtm.com/api/v1/slack/integration/test",
{
method: "POST",
headers: {
Authorization: "Bearer runtm_xxx",
"X-Organization-Id": "org_abc123",
"Content-Type": "application/json",
},
body: JSON.stringify({ channel: "C01ABC123" }),
}
);
const data = await resp.json();
{
"success": true,
"message": "Test message sent"
}