Private reply to a visitor

This endpoint allowed you to send a direct message private reply (DM) to a user that left a comment on your post.

You are allowed to send one time private reply to a person who wrote a public comment on your media post. you can only send one private reply per comment, within 7 days when it was written.

If the user reply, you can keep chatting him with a 24 hours open session time. you can reply to him directly on instagram DM, or using the instagram messenger API if you connected it.


Settings:

URL

https://api.99digital.co.il/instagram/page/privateReply

Method

JSON via POST

Header

Your API key for the service


Body:

Parameter

Description / Example

Mandatory

Example

from

The ID you received for the connection

yes

463745743546345

commentId

The comment ID that was posted in your media post, of which you wish to send the private reply to the visitor

yes

652346734563_3463234623

body

The private message (DM) you want to send to the visitor that wrote the comment

1,000 characters maximum

yes

Thank you for the comment! here is our special deals


Response:

{
"status": "OK",
"commentId": "15234562345623_425235245346"
"from": "463745743546345",
"messageId": "The DM message ID",
"body": "Thank you for the comment! here is our special deals",
"reason": 1
}


Response-Explain:

Parameter

Description

status

OK or FAIL

target

The original commentId provided in the request

commentId

The new commentId created. you can use this for reply to a comment

timestamp

Time stamp of the message

from

Your ID for the service

body

The comment you wrote

reason

'reason' is the status explanation in case of FAIL

1

not FAIL. the status is OK

2

Your "from" number account does not exist, or JSON syntax error

3

wrong apiKey

4

commentId or postId is missing

5

Missing or invalid content. the 'body' or "url" is invalid or wrong

6

Wrong connection type. you keys/id is correct but you are using the wrong endpoint

(for example: your onboarding was for facebook messenger but you are using this facebook posts endpoint)

7

Onboarding still in progress

8

The "body" is more than 1,000 characters long

10

You must do onboarding again, the connection has expired

12

Rate limit error. too many requests. please wait few minutes and try again

13

The commentId is invalid or wrong

15

The content you posted was rejected by meta or bad media / format / size. could also indicate policy violation inside the content.

16

General error, try again