Skip to content

Request and Response formats

Request

form-urlencoded

By default the request format is a regular POST/GET form data:

Content-Type: application/x-www-form-urlencoded

json

You can send a raw json body if configure the Content-Type header to json:

Content-Type: application/json

Responses

JSON

By defaut the responses return a json string, but you can force this adding the Accept header:

Accept: application/json

XML

For get a XML response add the Accept header:

Accept: text/xml

Plain

For some responses the plain response is available. For return plain text response add the Accept header:

Accept: text/plain

CSV

For some responses the CSV response is available. For return csv document add the Accept header:

Accept: text/csv

Errors

For unknown or unsupported formats, the error HTTP 400 Bad request will be returned.