Chats
Send Typing Indicator
POST
/api/v1/chat/presenceShow typing… or recording… in a chat (State: composing or paused; Media: "" or audio).
Parameters
- PhonestringRequired
The chat to show it in.
- StatestringRequired
composing (show typing…) or paused (stop).
- MediastringOptional
Leave empty for typing…, or audio for recording….
| Name | Type | Required | Description |
|---|---|---|---|
| Phone | string | Yes | The chat to show it in. |
| State | string | Yes | composing (show typing…) or paused (stop). |
| Media | string | No | Leave empty for typing…, or audio for recording…. |
Code Examples
cURL
curl -X POST "https://orvachat.com/api/v1/chat/presence" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"Phone": "923001234567",
"State": "composing",
"Media": ""
}'Response Example
200 OK
{
"code": 200,
"data": {
"Details": "Chat presence set successfuly"
},
"success": true
}