Contacts
Block Contact
POST
/api/v1/user/blockBlock a contact.
Parameters
- PhonestringOptional
The phone number to block, with country code. Send Phone or JID.
- JIDstringOptional
The chat id to block, instead of Phone.
| Name | Type | Required | Description |
|---|---|---|---|
| Phone | string | No | The phone number to block, with country code. Send Phone or JID. |
| JID | string | No | The chat id to block, instead of Phone. |
Code Examples
cURL
curl -X POST "https://orvachat.com/api/v1/user/block" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"Phone": "923001234567"
}'Response Example
200 OK
{
"code": 200,
"data": {
"Details": "User blocked",
"JID": "[email protected]",
"Blocklist": [
"[email protected]"
],
"DHash": "1234567890"
},
"success": true
}