---
title: "📌 Pin message"
method: POST
path: "/messages/{MessageID}/pin"
tags: ["Messages"]
---

# 📌 Pin message

`POST /messages/{MessageID}/pin`

## Path parameters

- `MessageID` string, required — Message ID

## Request body

- Pin
  - `time` 'day' | 'week' | 'month' — Pin message for this amount of days

## Response `200`

OK

- ResponseSuccess
  - `success` boolean

## Other responses

- `400` — Wrong request parameters
- `401` — Need channel authorization for star message
- `404` — Specified message not found
- `500` — Internal Error

---

[API](https://skmtc.net/whapi/apis/whatsapp-api.md) · [All operations](https://skmtc.net/whapi/apis/whatsapp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/whapi/whatsapp-api/versions/40ab05abffdb/schema)
