Get Call

Get call endpoint allows you to see the settings you provided on /setCall


Settings:

URL

https://api.99digital.co.il/whatsapp/v2/getCall

Method

JSON via POST

Header

Key

Value

apiKey

Your API key for the service


Body:

Parameter

Description / Example

from

your WhatsApp account. international number without +. for example: 972771234567


Response:

{
    "status": "OK",
    "from": "972771234567",
    "calling": {
        "status": true,
        "sip_host": "my-server.com",
        "sip_port": 5060,
        "sip_transport": "udp",
        "client_auth": null,
        "codec_pref": "PCMU,PCMA",
        "call_hours": null,
        "concurrency_limit": 1
    },
    "reason": 1
}


Response-Explain:

Parameter

Description

status

OK or FAIL

calling->status

true or false

calling->sip_host

The SIP host you provided (SIP trunk)

calling->sip_port

The SIP port you provided

calling->sip_transport

The transport you provided

calling->client_auth

username / password if provided

calling->codec_pref

The codec in use

calling->call_hours

The call hours you provided

calling->concurrency_limit

The amount of concurrent calls limit set for your account. contact support if you need more.

reason

'reason' is the status explanation in case of FAIL

1

not FAIL. the status is OK

2

Your "from" number account does not exist

3

Wrong apiKey