---
title: "Send response"
method: POST
path: "/survey/bots/{bot_id}"
tags: ["Surveys"]
---

# Send response

`POST /survey/bots/{bot_id}`

Send a survey response to the platform

## Path parameters

- `bot_id` string, required

## Request body

- SurveyPost
  - `client_id` string, required — Client ID of the survey respondant
  - `survey_id` string, required — ID of the survey
  - `data` object, required — survey data to send to the API
    - `like_dislike` 'like' | 'dislike' — This field represents the 👍/👎 part of your survey. This field is mandatory for Answer surveys. This field can also be used if you have a 👍/👎 form on your Conversation survey.
    - `input` string — This field is only required for Answer surveys. It should contain the question of the user before the bot answer surveyed was pushed to the user.
    - `bot_answer` string — This field is only requiered for Answer surveys. It should contain (exactly or approximately) the bot answer surveyed by the user.
    - `feedback` string — This field is only needed for Conversations surveys, depending on wether or not you have activated the comment form. It should contain the user comment of the survey.
    - `rate_stars` integer — This field is only needed for Conversations surveys, depending on wether or not you have 5 stars rating in the survey. It should contain the rate given by the user to the survey, an integer between 0 and 5.

## Response `200`

successful operation

- MessageOk
  - `message` string

## Other responses

- `400` — Invalid ID supplied
- `404` — Survey not found

---

[API](https://skmtc.net/smartly/apis/smartly-ai-apis.md) · [All operations](https://skmtc.net/smartly/apis/smartly-ai-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smartly/smartly-ai-apis/revisions/1e26909d86c9/schema)
