Inbox · Comments

Send private reply

Sends a private reply.

POSThttps://api.pozy.ai/v1/inbox/comments/{postId}/{commentId}/private-reply
sendPrivateReplyToComment

Guides: Comments, Instagram

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys cannot call it. Keys with the messages resource group disabled get 403 resource_group_disabled. Authentication

Path parameters

NameTypeNotes
postIdrequiredstring
commentIdrequiredstring

Request body

application/json, required

  • accountIdstringrequired
  • messagestringrequired
  • quickRepliesarray of object

    Up to 13 items.

    • titlestringrequired

      Up to 20 characters.

    • payloadstringrequired
    • imageUrlstring (URL)
  • buttonsarray of object

    At least 1 item. Up to 3 items.

    One of:

    Option 1 (3 fields)
    • typestringrequired

      One of url.

    • titlestringrequired

      Up to 20 characters.

    • urlstring (URL)required
    Option 2 (3 fields)
    • typestringrequired

      One of postback.

    • titlestringrequired

      Up to 20 characters.

    • payloadstringrequired
    Option 3 (3 fields)
    • typestringrequired

      One of phone.

    • titlestringrequired

      Up to 20 characters.

    • phonestringrequired

Example

curl -X POST "https://api.pozy.ai/v1/inbox/comments/6108a2cc742cb4e991051e0c/6cc7605fa43607e4ad43b1d4/private-reply" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "accountId": "696e0b682d0a31188e7a2ba9",
  "message": "Hello from Pozy"
}'

Response

200 on success

  • statusstring
  • messageIdstring
  • commentIdstring
  • platformstring

    One of instagram, facebook.

200 response
{
  "status": "active",
  "messageId": "62d191e7089bc48b8ea56b35",
  "commentId": "6cc7605fa43607e4ad43b1d4",
  "platform": "instagram"
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is read-only, scoped to other profiles, or has this resource group disabled.
404not_foundNothing with that id exists in your workspace.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Comments