API referenceDiscord
DELETE /discord/channels/{channelId}/pins/{messageId}
Unpin a message (idempotent)
DELETE
BearerAuthheader
AuthorizationBearer <token>API key sk_...
channelId*stringDiscord channel id (snowflake)
messageId*stringDiscord message id
accountId*stringDiscord account id bound to this server (or the channel's server)
Done
application/json- response
success?booleanoperation?"message_unpinned"Value in
"message_unpinned"channelId?stringmessageId?stringcurl -X DELETE 'https://example.com/api/v1/discord/channels/string/pins/string?accountId=string'Example Response
{ "success": true, "operation": "message_unpinned", "channelId": "string", "messageId": "string"}GET /discord/channels/{channelId}/pins GET
Pinned messages of the channel (at most 50, most recent first; Discord message objects). Every call takes accountId: a Discord account of the organization bound to that server (404 otherwise). Discord's 403 (bot permissions or role hierarchy) is passed on; servers that installed the bot before a permission was asked for must re-invite it
PUT /discord/channels/{channelId}/pins/{messageId} PUT
Pin a message (idempotent; needs Manage Messages; a 51st pin is a 400)