# Notificar menção em status

`POST /status/mention-notify`

Pasta: **Status**

## Autenticação

```http
token: {{token}}
```

## Descrição

# Notificar menção em status

Notifica os chats mencionados de que foram citados em um status já publicado. Use imediatamente após publicar o status (e após `POST /status/mention-audience`, se aplicável) para disparar a notificação de menção.

## Endpoint

`POST {{baseUrl}}/status/mention-notify`

## Autenticação

Envie o token da instância no header `token: {{token}}`.

## Corpo da requisição

| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| `statusid` | string | Sim | ID da mensagem de status publicada. Aceita aliases `statusId`, `messageid`, `messageId`. |
| `mentions` | array<string> | Sim | JIDs mencionados no status a notificar. Não pode ser vazio. |

## Exemplo de Requisição

```bash
curl --request POST '{{baseUrl}}/status/mention-notify' \
  --header 'token: {{token}}' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "statusid": "3EB0C767D097B7C7D2B0",
  "mentions": ["5511999999999@s.whatsapp.net"]
}'
```

## Resposta de Sucesso

```json
{
  "success": true
}
```

## Erros comuns

- `401 Unauthorized`: o header `token` não foi enviado ou é inválido.
- `400 Bad Request`: o JSON está malformado ou contém um identificador inválido.
- `500 Internal Server Error`: a conexão com o WhatsApp falhou ou a operação foi recusada.

## Corpo (exemplo)

```json
{
  "statusid": "3EB0C767D097B7C7D2B0",
  "mentions": ["5511999999999@s.whatsapp.net"]
}
```

## cURL

```bash
curl -X POST "{{baseUrl}}/status/mention-notify" \
  -H "token: {{token}}" \
  -H "Content-Type: application/json" \
  -d '{
  "statusid": "3EB0C767D097B7C7D2B0",
  "mentions": ["5511999999999@s.whatsapp.net"]
}'
```

---

[Índice da pasta](./index.md) · [Índice geral](../index.md) · [UI](https://gozap.dev/docs?op=status/notificar-mencao-em-status)
