To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
GET //ApiRequestsPerHour HTTP/1.1
Host: api.agentivity.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<AgentivityResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="schemas.agentivity.com/types">
<ResponseMetadata>
<Success>false</Success>
<HasCache>false</HasCache>
<HasPaging>false</HasPaging>
<CacheMetadata>
<IsFromCache>false</IsFromCache>
<CachedAt>0001-01-01T00:00:00</CachedAt>
<CacheExpiresAt>0001-01-01T00:00:00</CacheExpiresAt>
</CacheMetadata>
<PagingMetadata>
<Limit>String</Limit>
<Offset>String</Offset>
<ResponseRecords>0</ResponseRecords>
<TotalRecords>0</TotalRecords>
</PagingMetadata>
</ResponseMetadata>
<ResponseReport>
<ApiRequestPerHour>
<RequestDate>0001-01-01T00:00:00</RequestDate>
<Hour0>0</Hour0>
<Hour1>0</Hour1>
<Hour2>0</Hour2>
<Hour3>0</Hour3>
<Hour4>0</Hour4>
<Hour5>0</Hour5>
<Hour6>0</Hour6>
<Hour7>0</Hour7>
<Hour8>0</Hour8>
<Hour9>0</Hour9>
<Hour10>0</Hour10>
<Hour11>0</Hour11>
<Hour12>0</Hour12>
<Hour13>0</Hour13>
<Hour14>0</Hour14>
<Hour15>0</Hour15>
<Hour16>0</Hour16>
<Hour17>0</Hour17>
<Hour18>0</Hour18>
<Hour19>0</Hour19>
<Hour20>0</Hour20>
<Hour21>0</Hour21>
<Hour22>0</Hour22>
<Hour23>0</Hour23>
</ApiRequestPerHour>
</ResponseReport>
<ResponseError>
<ErrorCode>String</ErrorCode>
<Message>String</Message>
<StatusCode>String</StatusCode>
<VerboseMessage>String</VerboseMessage>
</ResponseError>
</AgentivityResponse>