# pins.add

> Pin a message in its conversation.

Source: https://slaiky.xyz/docs/reference/methods/pins.add

`POST https://app.slaiky.xyz/api/methods/pins.add` · needs `pins:write`

## Arguments

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `messageId` | id | yes | Message id. |

## Answer

`{ "ok": true, … }` with: (nothing). A refusal is `{ "ok": false, "error": { "code", "message" } }` ([errors](/docs/errors)).

## Example

The required arguments, with placeholders in angle brackets.

*you run*

```sh

curl -s https://app.slaiky.xyz/api/methods/pins.add \
  -H "authorization: Bearer $SLAIKY_BOT_TOKEN" \
  -H 'content-type: application/json' \
  -d '{"messageId":"<messageId>"}'

```
