Retrive domain settings
GET
/domain/show
Retrieve the domain settings for PortSIP PBX.
Request
Placeholders
access_token
string
required
Access token is a 32-byte string with validity of 30 seconds.
Sample Request
https://example.com/api/domain/show?access_token=196ACE20C6F34027895F7F95402BB164
Response
Placeholders
domain
string
required
SIP domain used by current user.
Sample Response
{
"domain": "xx.com"
}
Setup SIP domain
POST
/domain/update
Setup a new SIP domain.
Request
Placeholders
access_token
string
required
Access token is a 32-byte string with validity of 30 seconds.domain
string
required
SIP domain, which could be either FQDN or IP address.
Sample Request
{
"access_token": "196ACE20C6F34027895F7F95402BB164",
"domain": "xx.com"
}
Response
Placeholders