# Mobile - Publicar status de texto

`POST /status/text`

Pasta: **Status**

## Autenticação

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

## Descrição

# Mobile - Publicar status de texto

Publica um status de texto efêmero via socket mobile (MEX). Use somente em instâncias no modo mobile.

## Endpoint

`POST {{baseUrl}}/status/text`

## Autenticação

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

## Corpo da requisição

| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| `emoji` | string | Não | Emoji associado ao status (ex.: `🟢`). |
| `text` | string | Não | Texto do status. |
| `duration_sec` | number | Não | Duração efêmera em segundos (ex.: `86400` = 24h). |

## Exemplo de Requisição

```bash
curl --request POST '{{baseUrl}}/status/text' \
  --header 'token: {{token}}' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "emoji": "🟢",
  "text": "Disponível para conversar",
  "duration_sec": 86400
}'
```

## 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.
- `500 Internal Server Error`: instância não é mobile (`text status mex requires mobile connection mode`), bridge mobile indisponível ou falha no socket.

## Observações

- **Mobile-only**: exige `IsMobileInstance`; em modo web/desktop a API responde com erro.
- Diferente de `POST /send/status` (status/stories via whatsmeow).

## Corpo (exemplo)

```json
{
  "emoji": "🟢",
  "text": "Disponível para conversar",
  "duration_sec": 86400
}
```

## cURL

```bash
curl -X POST "{{baseUrl}}/status/text" \
  -H "token: {{token}}" \
  -H "Content-Type: application/json" \
  -d '{
  "emoji": "🟢",
  "text": "Disponível para conversar",
  "duration_sec": 86400
}'
```

---

[Índice da pasta](./index.md) · [Índice geral](../index.md) · [UI](https://gozap.dev/docs?op=status/mobile-publicar-status-de-texto)
