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": { "text": "Hello from my app" }}'
Instagram allows a plain text reply only within 24 hours of the user’s last message.
Outside that window the send is rejected unless a message tag applies.