Contacts
Set Online Presence
POST
/api/v1/user/presenceSet this number as online (available) or offline (unavailable).
Parameters
- typestringRequired
available (online) or unavailable (offline).
| Name | Type | Required | Description |
|---|---|---|---|
| type | string | Yes | available (online) or unavailable (offline). |
Code Examples
cURL
curl -X POST "https://orvachat.com/api/v1/user/presence" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "available"
}'Response Example
200 OK
{
"code": 200,
"data": {
"Details": "Presence set successfuly"
},
"success": true
}