API Server Command Results
The Uptivity API Server can be utilized by any program that can communicate over HTTP. Result messages are displayed in a simple and descriptive XML format.
For more information, see API Overview.
All messages reply with a minimum of a root tag called RESULT. This tag contains the REQUESTID that was sent, as well as a RESULTTYPE, RESULTCODE and a RESULTMSG.
<RESULT>
<REQUESTID>1</REQUESTID>
<RESULTTYPE>API_OK</RESULTTYPE>
<RESULTCODE>20</RESULTCODE>
<RESULTMSG>API_OK</RESULTMSG>
</RESULT>
If the result is an error condition, the RESULTTYPE will be ERROR, the RESULTCODE will contain a code for the error, and the RESULTMSG may contain more detail about the error.
<RESULT>
<REQUESTID>1</REQUESTID>
<RESULTTYPE>ERROR</RESULTTYPE>
<RESULTCODE>17</RESULTCODE>
<RESULTMSG> API_ERROR_NO_DEFAULT_RECORDING_PATH</RESULTMSG>
</RESULT>
If the result is a non-error condition, the RESULT node will also contain a sub node containing data specific to the request that was made.
Result Codes/Result Types
| RESULTCODE Return Value |
RESULTTYPE Label |
| 0 | API_RECORDING_STARTED |
| 1 | API_ERROR_ALREADY_RECORDING |
| 2 | API_ERROR_OUT_OF_DISK_SPACE |
| 3 | API_ERROR_NO_FREE_CHANNELS |
| 4 | API_ERROR_UNKNOWN |
| 5 | API_DEVICE_ALIAS_UNSPECIFIED |
| 6 | API_ERROR_SCHEDULER_NOT_RUNNING |
| 7 | API_DEVICE_NOT_IN_CALL |
| 8 | API_DEVICE_INVALID |
| 9 | API_DID_NOT_MATCH_A_SCHEDULE |
| 10 | API_UNKNOWN_MESSAGE_TYPE |
| 11 | API_ERROR_PROCESSING_MESSAGE |
| 12 | API_DEVICE_NOT_RECORDING |
| 13 | API_RECORDING_STOPPED |
| 14 | API_REQUESTID_INVALID |
| 15 | API_INVALID_REQUEST_TYPE |
| 16 | API_INVALID_MESSAGE_FORMAT |
| 17 | API_INVALID_MESSAGE_FORMAT |
| 18 | API_ERROR_NO_DEFAULT_RECORDING_PATH |
| 20 | API_OK |
| 21 | API_ERROR_INVALID_ACTION |
| 22 | API_ERROR_KEYS_NOT_UNIQUE |
| 23 | API_DATABASE_QUERY_ERROR |
| 24 | API_AGENT_NOT_FOUND |
| 25 | API_AGENT_NOT_ACTIVE |
| 26 | API_BLANK_REQUIRED_VALUE |
| 27 | API_NO_GROUP |
| 28 | API_USER_NOT_FOUND |
| 29 | API_MODE_INVALID |
| 30 | API_EVENT_TYPE_INVALID |
| 31 | API_ERROR_CLIENT_NOT_FOUND |
| 32 | API_ERROR_ALREADY_MONITORING |
| 33 | API_SESSIONID_UNSPECIFIED |
| 34 | API_ERROR_RECORDER_NOT_RUNNING |
| 35 | API_ERROR_BLOCKED_RECORDING_FILTER |
| 36 | API_ERROR_LOGGER_NOT_RUNNING |
| 37 | API_RECORDING_UPDATED |
| 38 | API_BLACKOUT_INVALID_STATE |
| 39 | API_UNLICENSED |
| 40 | API_RECORDID_INVALID |
| 41 | API_FILE_NOT_FOUND |
| 42 | API_AGENT_ALREADY_EXIST |
| 43 | API_STREAMING_STARTED |
| 44 | API_COMMAND_NOT_ALLOWED |
| 45 | API_EMAIL_NOT_VALID |
| 46 | API_PARTIAL_CORE_RESPONSE |
| 47 | API_COMMAND_QUEUE_FULL |
| 48 | API_TOO_MANY_CLIENTS |
| 49 | API_COMMAND_NOT_SUPPORTED |
| 50 | API_ROLE_ALREADY_EXISTS |
| 51 | API_PERMISSIONIDENT_NOT_FOUND |
| 52 | API_ROLE_NOT_FOUND |
| 53 | API_SITEID_NOT_VALID |
| 54 | API_USER_ALREADY_EXIST |
| 55 | API_CONFIG_ERROR |
| 56 | API_MASKID_NOT_VALID |
| 57 | API_PHONEID_IN_USE |
| 58 | API_STATUS_DEFAULT |
| 59 | API_PARAMETERS_INVALID |
See Also
- API Server Commands — for information on how to send commands to the API Server
- API Server Event Interface — for an introduction to writing XML API requests
- API Server Parameters and Data Types — for definitions of data you can include with API requests and the options and limitations of those values
- API Server Web API Service — for information on sending requests to the API using HTTP