Response Formats


Responses are always in JSON format.


Response Headers

Responses may include some of the following response headers:

Header Value Comments
Content-Type application/vnd.ib.api-v?+json Where ? is the version number. See versions for specific versions supported.
Authorization An authorization token for the user. Depending on the age of the authorization token used in the request this may represent a refreshed token. If this value is present and differs from the token used in the request then this refreshed token should be used for future requests.
X-Language The language used for the response. This is the language submitted with the request or the language configured for the current user.
X-Encryption-Key-Tag The key tag or key id for the encryption key utilized for response encryption. This is only included when the api endpoint is configured for response encryption.
X-Api-Server The name of the api server responding to the API request. This is only included when the request includes a X-Trace=True header.
X-Data-Server The name of the data server responding to the API request. This is only included when the request includes a X-Trace=True header.
X-Data-Store The name of the data store utilized for this API request. This is only included when the request includes a X-Trace=True header.
X-Core-Version The core version number of the back end data schema and services. This is only included when the request includes a X-Trace=True header.
X-Auth-User The name of the authorized user based on the authorization token or api key provided. This is only included when the request includes a X-Trace=True header.

Response Body Format

All API responses are in JSON format and share some common response format elements as shown in this example:

{
    "Success": true,
    "ResultCode": 0,
    "ResultText": "Success",
    "Message": "Success",
    "Scope": {
        "TotalResults": 1,
        "IncludedResults": 1,
        "PageNumber": 1,
        "PageSize": 1,
        "PageCount": 1,
        "Sort": "",
        "FilterId": null,
        "Filter": "",
        "Q": "",
        "Expand": ""
    },
    "Data": null,
    "Meta": null,
    "Links": [
    {
      "Rel": "self",
      "Url": "http://...",
      "Method": "GET"
    }
    ],
    "Errors": [
    {
      "ResultCode": 0,
      "Type": "",
      "Subtype": "",
      "Reference": "",
      "Message": "",
      "Details": "",
      "Warning": false
    }
    ],
    "TimeStamp": "2014-05-28T12:30:07.2447Z",
    "Trace": [
    ""
    ]
}

The common response properties include: