curl -X POST "https://gateway.hookmyapp.com/meta/v25.0/${INSTAGRAM_ACCOUNT_ID}/messages" \
-H "Authorization: Bearer ${INSTAGRAM_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"recipient": {
"id": "17841400000000001"
},
"message": {
"attachment": {
"type": "image",
"payload": {
"url": "https://example.com/photo.jpg",
"is_reusable": true
}
}
}
}'
Send messages
Send image
Send an image attachment by URL.