Skip to main content

Pin message

POST 

/thread/:id/pinMessage

Pins a message to a thread. Only one message can be pinned per thread at a time — pinning a new message automatically unpins the previous one. Requires the can_pin_messages permission (controlled by the better_messages_can_pin_messages filter). The message must exist and belong to the specified thread.

Request

Responses

Message pinned, returns the pinned message ID