[BETA] accept call
Accepts the ringing incoming call. Media starts after the call connected; audioUrl plays once, imageUrl is shown, videoUrl loops as the camera. hangupAfterSeconds, if given, ends the call that many seconds after it connects. Every media URL is fetched before the call is accepted, so an unusable URL fails the request instead of answering a call that then plays nothing. Errors come back as data.status: error with message and explanation. Note: This endpoint is currently in beta and may change without notice.
Request
- Base URL: https://waapi.app/api/v1
- URL: https://waapi.app/api/v1/instances/{id}/client/action/accept-call
- Auth: HTTP bearer
Path parameters
Instance ID
Request body
Example request
{
"callId": "00E61C7AAD3559F3AFC223D4E3FC1914"
}Response
Request reached the instance. data.status reports whether the action was carried out; on error data carries message and explanation. Payload: the accepted call.
Example response
{
"status": "success",
"data": {
"status": "success",
"data": {
"call": {
"id": "00E61C7AAD3559F3AFC223D4E3FC1914",
"from": "41763070877@c.us",
"timestamp": 1789138531,
"state": 6
}
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.