---
title: "Send a message to a test session"
method: POST
path: "/bot/{botId}/testSession/message"
tags: ["BotTesting"]
---

# Send a message to a test session

`POST /bot/{botId}/testSession/message`

## Path parameters

- `botId` string, required

## Request body

- TestSessionMessageInput
  - `leadId` string, nullable — The lead ID
  - `message` string, nullable — The message to send

## 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)
