---
title: "Attach a source to a bot"
method: POST
path: "/bot/{id}/source/{sourceId}"
tags: ["Bot"]
---

# Attach a source to a bot

`POST /bot/{id}/source/{sourceId}`

## Path parameters

- `id` string, required
- `sourceId` string, required

## Request body

- AttachSourceInput
  - `tags` ContactTag[], nullable
    - `name` string, nullable
    - `approveDeny` boolean
    - `id` string, nullable
  - `tagFilterConfig` TagFilterConfig
    - `operator` string, nullable
    - `groups` TagFilterGroup[], nullable
      - `operator` string, nullable
      - `rules` TagFilterRule[], nullable
        - `tagName` string, nullable
        - `tagId` string, nullable
        - `condition` string, nullable
  - `channels` string[], nullable
  - `personaNameOverride` string, nullable
  - `enabled` boolean, nullable
  - `flowVariableValues` object, nullable

## Response `200`

Success

---

[API](https://skmtc.dev/closebot/apis/closebot-api.md) · [All operations](https://skmtc.dev/closebot/apis/closebot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/closebot/closebot-api/revisions/da5f5fb58534/schema)
