message

pin message

Pin a message in a chat

post/instances/{id}/client/action/pin-message

Request

  • Base URL: https://waapi.app/api/v1
  • URL: https://waapi.app/api/v1/instances/{id}/client/action/pin-message
  • Auth: HTTP bearer

Path parameters

idinteger required

Instance ID

Request body

messageIdstring required

The ID of the message to pin

durationinteger nullable

Optional duration in seconds for how long the message should stay pinned

Example request

{
  "messageId": "true_123456789@c.us_123ABC456DEF",
  "duration": 86400
}

Response

status'success' | 'error'

Example response

{
  "data": {
    "messageId": "true_123456789@c.us_123ABC456DEF",
    "pinned": true
  },
  "links": {
    "self": "https://waapi.app/api/v1/instances/1/client/action/pin-message"
  },
  "status": "success"
}

Changes

No recorded changes to this operation across all 1 revision of this API.