---
title: "Receive testing message"
method: POST
path: "receive-test-message"
tags: ["customer-engagement", "answers", "answers-testing-receive-message"]
---

# Receive testing message

`POST receive-test-message` (webhook)

Incoming test messages will be forwarded to this endpoint. For now supported channels are WhatsApp, Live Chat and Calls.

## Payload

- 781c309206ee4e50226d2695a75a47d5a1a01fb64cb954c3d350b69d70b039a2PublicAnswersEventExample
  - `accountKey` string: Account key.
  - `sessionInformation` 781c309206ee4e50226d2695a75a47d5a1a01fb64cb954c3d350b69d70b039a2SessionInformationExample: Details about session.
    - `botInformation` 781c309206ee4e50226d2695a75a47d5a1a01fb64cb954c3d350b69d70b039a2BotInformationExample, required: Details about bot.
      - `botId` integer, required: Bot identifier.
      - `botSender` string, required: Bot sender.
      - `botName` string, required: Bot name.
      - `channel` 'WHATSAPP' | 'LIVE_CHAT' | 'CALLS', required: Channel name.
      - `testId` integer, required: Test identifier.
    - `endUserDestination` string, required: End-user destination.
    - `sessionId` string, uuid, required: Unique session identifier.
    - `componentSessionId` string, uuid, required: Component session identifier.
    - `externalId` string, required: External identifier.
    - `externalMetadata` object, required: External metadata.
    - `callbackData` string, required: Callback data from last received message.
  - `timestamp` string, date-time: The timestamp of the event.
  - `lastDialog` 781c309206ee4e50226d2695a75a47d5a1a01fb64cb954c3d350b69d70b039a2DialogInformation: Dialog in which the event occurred.
    - `id` integer, required
    - `name` string, required
  - `outboundMessage` 781c309206ee4e50226d2695a75a47d5a1a01fb64cb954c3d350b69d70b039a2PublicOutboundMessage: Received testing message.
    - `channel` 781c309206ee4e50226d2695a75a47d5a1a01fb64cb954c3d350b69d70b039a2MessageChannel
  - `type` 'MESSAGE_SENT' | 'GET_ATTRIBUTE_VALUE_QUESTION_SENT' | 'CSAT_FEEDBACK_QUESTION_SENT' | 'CSAT_FALLBACK_MESSAGE_SENT' | 'CSAT_SCORE_QUESTION_SENT' | 'CSAT_THANK_YOU_MESSAGE_SENT' | 'PUI_REPEAT_MESSAGE_SENT' | 'FALLBACK_MESSAGE_SENT' | 'TIMEOUT_MESSAGE_SENT' | 'INTERACTIVE_MESSAGE_SENT': The type of the event.

## Acknowledgement `200`

Your server returns this code if it accepts the callback.

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
