Skip to contentSkip to page list

Docs

List Slack Connections

List the Slack connections this project can deliver through: its own and its organization's, by name. Never returns a token or webhook URL.

GET/api/v1/slack-connections
Request and response examples
request.py
import osimport requests​origin = "https://app.langwatch.ai"path = "/api/v1/slack-connections"api_key = os.environ["LANGWATCH_API_KEY"]headers = {    "X-Auth-Token": api_key,}​response = requests.get(    origin + path,    headers=headers,)print(response.json())

Success

application/json · Generated from schema

[  {    "id": "string",    "name": "string",    "kind": "bot",    "scopeType": "ORGANIZATION",    "scopeId": "string",    "scopeName": "string",    "slackTeamName": "string",    "createdAt": "string"  }]
api-reference/triggers/list-slack-connections

Authorization

X-Auth-Tokenstringheaderrequired

Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.

Responses

200

Success

application/json

object[]
idstringrequired

What an automation's slackIntegrationId names to post through this connection.

namestringrequired
kindstringrequired

bot posts as the LangWatch Slack app and needs a slackChannelId on the automation; webhook posts to its incoming webhook's channel.

One of"bot""webhook"
scopeTypestringrequired
One of"ORGANIZATION""PROJECT"
scopeIdstringrequired
scopeNamestringrequired
slackTeamNamestring | nullrequired

The Slack workspace a bot connection posts into.

createdAtstringrequired

Documentation