POST
/
webhooks
/
on-optout
curl --request POST \
  --url https://tudominio.com/webhooks/on-optout \
  --header 'Content-Type: application/json' \
  --data '{
  "country_code": "+57",
  "cellphone": "3176477608",
  "session_id": "85b398ef5bcb20c355f3710c4509349784c907673c9118fb7a89c7a8",
  "conversation_id": 54263,
  "question": {
    "type": "closed",
    "text": "Hi! Thanks for attending our webinar today. We would like to have a feedback about our session and we would be very grateful if you could help us with that. ",
    "answers": [
      {
        "text": "Sure"
      },
      {
        "text": "No, thanks"
      },
      {
        "text": "DEFAULT"
      }
    ]
  },
  "sent_at": "2021-10-22 00:15:39.044704",
  "sent_text": "Hi! Thanks for attending our webinar today. We would like to have a feedback about our session and we would be very grateful if you could help us with that. \n1) Sure\n2) No, thanks\n3) DEFAULT",
  "user_session_keys": [],
  "classified_answer": {
    "text": "No, thanks"
  },
  "reason": "OPTOUT"
}'
{}

Body

application/json

Information about the opt-out event

Evento que se dispara cuando un usuario decide darse de baja o salir de la conversación

Response

200 - application/json

Response to update or add information to the session

JSON object with new information that will be replaced or added to the session for future use. The service must respond within 10 seconds.