Service Response

The REST API supports the JSON and XML data formats for service responses.

The Download File (GET) service call returns the contents of a specified file.

You can specify the data format for the response using the Accept HTTP header. If you don't specify a data format, JSON is used by default for the response. For example:

Accept: application/xml

The service response includes a general status code and, in some cases, a fault response body to help diagnose the issue. This information is returned in the specified JSON or XML format.

Requests that do not reach a valid API endpoint, such as improperly formed requests, may return a response in a format other than JSON or XML. These types of errors typically occur during code development, not with properly tested and deployed applications.

Examples of service responses are included with the API descriptions.