curl --request POST \
--url http://127.0.0.1:3333/v3/integrations/facebook/{workspaceId}/facebook/{credentialsId}/webhook \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entry": [
{
"id": "<string>",
"time": 123,
"messaging": [
{
"sender": {
"id": "<string>"
},
"recipient": {
"id": "<string>"
},
"timestamp": 123,
"message": {
"mid": "<string>",
"text": "<string>",
"is_echo": true,
"quick_reply": {
"payload": "<string>",
"title": "<string>"
},
"attachments": [
{
"payload": {
"url": "<string>"
}
}
]
},
"postback": {
"payload": "<string>"
}
}
],
"changes": [
{
"field": "<string>",
"value": {
"id": "<string>",
"comment_id": "<string>",
"text": "<string>",
"message": "<string>",
"parent_id": "<string>",
"post_id": "<string>",
"created_time": 123,
"timestamp": 123,
"media": {
"id": "<string>"
},
"from": {
"id": "<string>",
"name": "<string>"
}
}
}
]
}
]
}
'{
"message": "<string>"
}Receive Facebook Message.
curl --request POST \
--url http://127.0.0.1:3333/v3/integrations/facebook/{workspaceId}/facebook/{credentialsId}/webhook \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entry": [
{
"id": "<string>",
"time": 123,
"messaging": [
{
"sender": {
"id": "<string>"
},
"recipient": {
"id": "<string>"
},
"timestamp": 123,
"message": {
"mid": "<string>",
"text": "<string>",
"is_echo": true,
"quick_reply": {
"payload": "<string>",
"title": "<string>"
},
"attachments": [
{
"payload": {
"url": "<string>"
}
}
]
},
"postback": {
"payload": "<string>"
}
}
],
"changes": [
{
"field": "<string>",
"value": {
"id": "<string>",
"comment_id": "<string>",
"text": "<string>",
"message": "<string>",
"parent_id": "<string>",
"post_id": "<string>",
"created_time": 123,
"timestamp": 123,
"media": {
"id": "<string>"
},
"from": {
"id": "<string>",
"name": "<string>"
}
}
}
]
}
]
}
'{
"message": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Default Response