orvachat

Calls and Status

Reject Call

POST/api/v1/call/reject

Reject an incoming call (use the ids from the CallOffer event).

Parameters

  • call_fromstringRequired

    Who is calling (from the CallOffer event).

  • call_idstringRequired

    The call id (from the CallOffer event).

Code Examples

cURL
curl -X POST "https://orvachat.com/api/v1/call/reject" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "call_from": "[email protected]",
  "call_id": "5D3F0A1B2C3D4E5F"
}'

Response Example

200 OK
{
  "code": 200,
  "data": {
    "Details": "Call rejected",
    "CallID": "ABCD1234567890"
  },
  "success": true
}