Skip to main content
POST
Pin message

Overview

Pins the message in the chat.
duration: 24_HOURS, 7_DAYS, or 30_DAYS (uppercase, exactly like this). Responds 204, no body. A value outside these three responds 400 {"error": "invalid_request", "field": "duration"}.

Authorizations

Authorization
string
header
required

Secret Key

Path Parameters

channelId
string
required

Channel id

Example:

"58907809F0964E998D36C87F10EBA60C"

messageId
string
required

The Omni message id (the same one returned on send and in the webhook).

Example:

"01A1EA9883087E9EB1E0D7432E185E2B"

Body

application/json
duration
enum<string>
required
Available options:
24_HOURS,
7_DAYS,
30_DAYS

Response

OK (no content)