ข้ามไปยังเนื้อหา
GrowSocmedเอกสารSocial media command center

Send a DM

Send a DM: text and/or one photo (≤ 8 MB) or video (≤ 25 MB) from the media library, only within 24 hours of the person's last message. A message Instagram refuses is kept as failed (retry it).

POST
/inbox/conversations/{id}/messages

Send a DM: text and/or one photo (≤ 8 MB) or video (≤ 25 MB) from the media library, only within 24 hours of the person's last message. A message Instagram refuses is kept as failed (retry it).

Authorization

apiKey
headerAuthorizationBearer <token>

API key from Developer → API keys (gs_…). An unbound key takes the workspace from the X-Workspace header.

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
text?string
Length1 <= length <= 1000
media_id?string
Formatuuid

Response Body

OK

application/json
  1. response
ok*boolean
message_id*string|null
Example Request
curl -X POST 'https://socmed.growpaces.com/api/v1/inbox/conversations/497f6eca-6276-4993-bfeb-53cbbbba6f08/messages' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
{  "ok": true,  "message_id": "string"}