Request format:

curl -u <username>:<password> 'http://127.0.0.1:8001/api?recipient=<dnis>&reply_to=<ani>&messageBody=<text>&reporting_key=<reporting_key>'

or

curl Authorization: Basic dXNlcjpwYXNz 'http://127.0.0.1:8001/api?recipient=<dnis>&reply_to=<ani>&messageBody=<text>'

where:

dXNlcjpwYXNz is the base64 encode value of username:password (only Basic Authorization is used for authorization)

reporting_key is an optional field (an extra client ID)

all other fields are required

Response format:

A successful response will look as follows:

{"success": true, "error": ""}

An unsuccessful response will look as follows:

{"success": false, "error": "not authorized (check login and password)"}