Mercurius API

Parlacom API reference

Every Parlacom service — voice, PBX, DIDs, VoIP/M2M PINs, SMS, GPS and UPC — is exposed through a single HTTP endpoint. Pick a function, send the parameters, receive an XML/JSON response. All 82 endpoints share the conventions below.

Base URL

base url
https://www.parlacom.net/cgi-bin/parla

Every call selects an endpoint through the function parameter, and works with either GET (query string) or POST (form-urlencoded).

Authentication

Call login → receive sessionid. Pass sessionid on later calls, or fall back to admin + adminpwd on every request.

Output format

output_type=json returns XML (renamed json), output_type=html returns the same view the web UI renders.

Errors

Every response includes <errorcode>. 0 = success; any other value indicates a failure — see the error code list.

Sessions

sessionid stays valid while the app timeout has not elapsed. If it expires the next call returns an error and you must login again.

Quick start

Request (GET)
GET https://www.parlacom.net/cgi-bin/parla?function=login
&company=parla
&output_type=json
&user=clovis1234
&password=s3cret
Response (XML)
<?xml version="1.0" encoding="UTF-8"?>
<response>
  <errorcode>0</errorcode>
  <sessionid>617310111715966...</sessionid>
  <expires>3600</expires>
</response>

All endpoints