---
title: "Show typing in a chat"
method: POST
path: "/v1/connections/{connection}/presence"
tags: ["Messages"]
---

# Show typing in a chat

`POST /v1/connections/{connection}/presence`

## Request

- Base URL: `https://www.chatrail.dev`
- URL: `https://www.chatrail.dev/v1/connections/{connection}/presence`
- Auth: HTTP bearer

Shows "typing…" or "recording…" to a person or group, or stops (`paused`). WhatsApp clears it by itself after a short while or when a message arrives. Nothing is stored.

## Path parameters

- `connection` string, required

## Request body

- object
  - `to` union, required
    - string
    - object
      - `phone` string, required
    - object
      - `group` string, required
  - `state` 'typing' | 'recording' | 'paused', required

## Response `204`

Shown.

## Other responses

- `404`: No such connection.
- `409`: The connection is not ready.
- `422`: The connection's engine cannot show typing.

---

[API](https://skmtc.dev/chatrail/apis/chatrail-api.md) · [All operations](https://skmtc.dev/chatrail/apis/chatrail-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatrail/apis/chatrail-api/revisions/acc5b88c6f59?raw)
