API's
Qvalia API server, base rules
All Qvalia endpoints follows the same HTTP code pattern, full set as follows:
Error Codes
200
- OKEverything worked as expected
204
- No contentEverything worked as expected, but we didn't find any data to return
400
- Invalid requestInvalid parameters from client
401
- UnauthorizedUnauthorized. Check your API key
403
- ForbiddenThe API key doesn't have permissions to perform the request.
404
- Not FoundThe requested resource does not exist. This can be either the URI, or query parameters.
409
- ConflictThe request cause some conflict, normally a duplicate
422
- Unprocessable EntityThe posted data is invalid, in the wrong format or missing
429
- Too many requests You're too fast, we will block you for a while and you'll need to cool down500
- Internal errorInternal Server Error (It's not you, it's us)
To POST
(create) any message in XML
format you'll provide a header as:
POST
content-type: application/xml
Or for POST
'ing JSON, you'd either omit the header, as JSON is the default, or provide:
POST
content-type: application/json
For GET
'ing data you'll use the accept
header instead:
GET (XML)
accept: application/xml
GET (JSON)
accept: application/json
Last updated
Was this helpful?