DMaticKnowledge Base Open app
Home / Developers

Send a DM

POST /messages

▶ Video tutorial coming soon
curl -X POST https://app.dmatic.in/api/v1/messages \
  -H "Authorization: Bearer dmk_your_key" \
  -H "Content-Type: application/json" \
  -d '{"ig_user_id":"17841400000000000","text":"Thanks!","buttons":[{"title":"Open","url":"https://example.com"}]}'
  • text max 1000 characters. Up to 3 buttons, https URLs only.
  • Error 409 outside_messaging_window if the person last messaged you over 24 hours ago (an Instagram rule).