Stub

Diagnose the bot messages. The method only logs the incoming messages.

Curl Example

$ curl 'http: //localhost:8080/api/v1/chatbot/stub' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
    "segmentationInfo": {},
    "action": "MESSAGE",
    "clientId": "1",
    "sessionId": "1",
    "questionId": 43,
    "receivedAt": "2022-05-18T08:45:07.401Z",
    "text": "Message",
    "attachments": [
        {
            "url": "http://test...",
            "name": "testImage.png",
            "type": "image/jpeg",
            "size": 256,
            "contentType": null
        }
    ],
    "code": "SWITCH_TO_HUMAN",
    "sender": "ThreadsAPI"
}'

HTTP Request

POST /api/v1/chatbot/stub HTTP/1.1
Content-Type: application/json
Authorization: Bearer <token>
Content-Length: 399
Host: localhost: 8080
{
    "segmentationInfo": {},
    "action": "MESSAGE",
    "clientId": "1",
    "sessionId": "1",
    "questionId": 43,
    "receivedAt": "2022-05-18T08:45:07.401Z",
    "text": "Message",
    "attachments": [
        {
            "url": "http://test...",
            "name": "testImage.png",
            "type": "image/jpeg",
            "size": 256,
            "contentType": null
        }
    ],
    "code": "SWITCH_TO_HUMAN",
    "sender": "ThreadsAPI"
}

Example of a Successful HTTP Response

HTTP/1.1 200 OK
Creating New Client
Next Article StubGreet