Skip to main content
POST
/
api
/
pub
/
wa
/
call
/
accept
Accept Call
curl --request POST \
  --url https://app.adsera.in/api/pub/wa/call/accept \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-api-secret: <api-key>' \
  --data '
{
  "id": "64f1a2b3c4d5e6f7a8b9c0d1",
  "sdp": "v=0\r\no=- 46117317 2 IN IP4 127.0.0.1\r\n..."
}
'
{
  "status": 200,
  "success": true,
  "error": null,
  "msg": "Call accepted."
}

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

Accept call payload

Payload for pre-accepting or accepting a call (requires SDP).

id
string
required

The _id of the WaCall record (returned by the connect endpoint).

Example:

"64f1a2b3c4d5e6f7a8b9c0d1"

sdp
string
required

WebRTC SDP answer string from the receiving client.

Example:

"v=0\r\no=- 46117317 2 IN IP4 127.0.0.1\r\n..."

Response

Call accepted. Status is now CONNECTED.

Generic success response for call action endpoints.

status
integer
Example:

200

success
boolean
Example:

true

error
null
Example:

null

msg
string
Example:

"Call accepted."