## Errors `POST https://getkollek.com/api/collections` The API uses conventional HTTP status codes: 2xx for success, 4xx for request errors, 5xx for server errors. Requests for an object that does not exist in your account return 404, and so do write requests made with a role that does not allow them. Validation failures return 422 with a message and an errors object keyed by field name. Authentication failures return 401 with a message. ### Example request ```bash curl https://getkollek.com/api/collections \ -X POST \ -H "Authorization: Bearer $API_KEY" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "visibility": "private" }' ``` ### Example response `Status: 422` ```json { "message": "The name field is required.", "errors": { "name": [ "The name field is required." ] } } ```