Skip to main content
POST
/
api
/
pub
/
wa
/
call
/
end
End Call
curl --request POST \
  --url https://app.adsera.in/api/pub/wa/call/end \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-api-secret: <api-key>' \
  --data '
{
  "id": "64f1a2b3c4d5e6f7a8b9c0d1"
}
'
{ "status": 200, "success": true, "error": null, "msg": "Call ended." }

Authorizations

x-api-key
string
header
required

Your application's unique ID.

x-api-secret
string
header
required

Your application's secret key.

Body

application/json

End call payload

Payload for ending an active call.

id
string
required

The _id of the WaCall record to terminate.

Example:

"64f1a2b3c4d5e6f7a8b9c0d1"

Response

Call terminated. Status is now END.

Generic success response for call action endpoints.

status
integer
Example:

200

success
boolean
Example:

true

error
null
Example:

null

msg
string
Example:

"Call accepted."