MiaRec API supports the following HTTP methods:
Retrieve details about resource or a list of resources (users, groups, calls etc).
|POST||Create new resource object|
|PUT||Modify the existing resource object|
|DELETE||Delete the resource object|
HTTP Basic Authentication header
Each request should contain HTTP Basic Authentication header with a valid user name and password. The user should exist in MiaRec and have permission to access API. * Accept header
Each request should contain
Accept: application/jsonheader because it is supposed that MiaRec API sends response in JSON format. Response from MiaRec API may contain text/plain response in case of error. * Content-Type header
On PUT and POST operations the client application should supply header
Content-Type: application/jsonand format the submitted data in JSON.
The body of API request or response can optionally carry data in JSON format. The body can be sent by the client on a PUT or POST, or returned to the client on a GET.
Submitted JSON data should be always encoded with UTF-8 character set.
Format of date/time values with timezone
All date/time values are returned in ISO8601 format with timezone (like
2014-06-10T13:45:51+0800). It is responsibility of client application to convert time to appropriate timezone before displaying to user.
The default timezone is configured on system level, although each API user account may have unique timezone settings.