Content-Type header for POST and PATCH requests must be application/json.
Success Responses
Successful requests return HTTP2xx status codes. The response body contains the requested object or array directly — there is no outer wrapper envelope.
Single object example (GET /surveys/):
Error Responses
All error responses return a JSON body with amessage field containing a human-readable description suitable for display to end users.
- 400 Bad Request
- 404 Not Found
- 405 Method Not Allowed
- 429 Too Many Requests
- 500 Server Error
Returned when a required field is missing or a field value is invalid.
HTTP Status Code Reference
Pagination
Endpoints that return lists (GET /surveys, GET /responses) support pagination via query parameters:
Example:
GET /surveys?page=2&page_size=50
