Show typing
POST/v1/profiles/{profile_id}/typing
- Scope
messages:send
Shows (or stops) the typing indicator in a chat. Give to or chat_id. Needs the line working.
Parameters
Path
profile_idstringrequiredThe line (
prf_…).
Request body
tostringThe person or group id. Give this or
chat_id.chat_idstringThe chat. Give this or
to.typingbooleanfalsestops it (defaulttrue).secondsintegerStop after this many seconds, 1–60.
Response
200 OKDone.
oktruerequiredtypingbooleanrequireddetailmap
Errors
| Status | Code | Means |
|---|---|---|
| 403 | draft_only_key | This key can only write drafts; typing, reactions and read receipts aren't drafts. |
| 403 | recipient_not_allowed | The recipient isn't on this key's allowed recipients. |
| 403 | sending_paused | We paused sending on your account (or this line) while we review recent activity that looked like mass texting. Incoming messages still arrive. details.scope is team or line. |
| 503 | line_unavailable | The line is having trouble right now. |
| 400 | validation_failed | A field is missing or invalid. |
| 401 | unauthorized | The API key is missing, unknown or revoked. |
| 403 | insufficient_scope | The API key lacks the scope this needs. |
| 404 | not_found | No such object, or the key can't see it. |
Every error is { "error": { "code", "message" } }. All error codes.