Skip to main content
WEBHOOK
messageCreated
{
  "type": "message_created",
  "payload": {
    "message": {
      "id": 123,
      "conversation_id": 123,
      "date": "2023-01-31 16:22:17.327878+00:00",
      "content_type": "Text",
      "sender_type": "User",
      "sender_label": "Jane Doe",
      "status": "Sending",
      "is_deleted": false,
      "is_automated": false,
      "content": "<string>",
      "user_id": "<string>",
      "custom_channel": {
        "external_message_id": "<string>"
      }
    },
    "conversation": {
      "id": 123,
      "consumer_img": "https://www.example.com/profile-picture.jpg",
      "consumer_name": "John Doe",
      "consumer_phone_number": "+33612345678",
      "consumer_email": "john.doe@example.com",
      "last_message": {
        "id": 123,
        "conversation_id": 123,
        "date": "2023-01-31 16:22:17.327878+00:00",
        "content_type": "Text",
        "sender_type": "User",
        "sender_label": "Jane Doe",
        "status": "Sending",
        "is_deleted": false,
        "is_automated": false,
        "content": "<string>",
        "user_id": "<string>",
        "custom_channel": {
          "external_message_id": "<string>"
        }
      },
      "is_read": true,
      "status": "Open",
      "created_at": "2023-01-31 16:22:17.327878+00:00",
      "has_one_user_message": true,
      "business": {
        "id": "<string>",
        "name": "<string>",
        "city": "<string>",
        "zipcode": "<string>",
        "country": "<string>",
        "formatted_address": "<string>"
      },
      "messaging_partner": "Facebook",
      "issues": [
        "facebook_no_page_linked"
      ],
      "first_message_date": "<string>",
      "is_expired": false,
      "is_solved": false,
      "is_automated": false,
      "assigned_user_id": "62d80fae74e8b11d700302b8",
      "custom_channel": {
        "id": "<string>",
        "name": "<string>",
        "icon": "<string>",
        "is_readonly": true,
        "external_conversation_id": "<string>"
      }
    },
    "org_id": 123
  }
}

Body

application/json
type
enum<string>
Available options:
message_created
payload
object

Response

Return a 200 status to indicate that the event was properly received