Skip to main content
POST
/
ai
/
agents
/
{agent_id}
/
integrations
Create agent integration
curl --request POST \
  --url https://api.wacht.dev/ai/agents/{agent_id}/integrations \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "integration_type": "slack",
  "name": "My Slack Integration",
  "config": {
    "webhook_url": "https://hooks.slack.com/services/..."
  }
}
'
{
  "id": "1234567890123456789",
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z",
  "deployment_id": "9876543210987654321",
  "agent_id": "1234567890123456789",
  "integration_type": "teams",
  "name": "My Slack Integration",
  "config": {}
}

Authorizations

Authorization
string
header
required

API key authentication (format: Bearer {api_key})

Path Parameters

agent_id
string
required

AI Agent ID

Body

application/json
integration_type
enum<string>
required

Type of integration

Available options:
teams,
slack,
whatsapp,
discord,
clickup
Example:

"slack"

name
string
required

Integration name

Example:

"My Slack Integration"

config
object

Integration configuration

Example:
{
"webhook_url": "https://hooks.slack.com/services/..."
}

Response

200 - application/json

Integration created

id
string
Example:

"1234567890123456789"

created_at
string<date-time>
Example:

"2024-01-15T10:30:00Z"

updated_at
string<date-time>
Example:

"2024-01-15T10:30:00Z"

deployment_id
string
Example:

"9876543210987654321"

agent_id
string
Example:

"1234567890123456789"

integration_type
enum<string>

Type of integration

Available options:
teams,
slack,
whatsapp,
discord,
clickup
name
string
Example:

"My Slack Integration"

config
object

Integration configuration