Types & Formats
This section explains some basic concepts about the types and formats that can be encountered within the Net0 APIs.
Requests
The Net0 APIs use JSON in the bodies of the requests.
Although not required, we highly recommend passing a header with each API request to define the content type of the data sent, for example,
content-type: application/json
.
Responses
TheNet0 APIs generally return JSON in the response body. There are a few notable exceptions to this rule as well.
APIs that delete items return an empty body with a 204
No Content HTTP status code.
APIs used to request binary data either return a 200 OK status code with the binary data attached, or a 202 Accepted, or 302 Found status code with no body and a Location header pointing to the actual binary file.