Overview
Base URL, versioning, and errors
Authentication
Include your API key in the Authorization header as a Bearer token. See Authentication for details.
Content-Type
Send JSON request bodies with Content-Type: application/json. File uploads use multipart/form-data.
Versioning
The current API version is v1. All endpoints include the version prefix and your tenant ID:
https://api.knitt.co/v1/{resource}/{tenant_id}/...HTTP Methods
| Method | Usage |
|---|---|
| GET | Retrieve resources |
| POST | Create new resources |
| PUT | Replace a resource entirely |
| PATCH | Partially update a resource |
| DELETE | Remove a resource |
Error Format
All errors return a consistent JSON structure:
{
"error": {
"code": "not_found",
"message": "The requested resource was not found."
}
}Status Codes
| Code | Meaning |
|---|---|
| 200 | OK |
| 201 | Created |
| 400 | Bad Request — invalid parameters |
| 401 | Unauthorized — missing or invalid API key |
| 403 | Forbidden — insufficient permissions |
| 404 | Not Found — resource does not exist |
| 429 | Too Many Requests — rate limit exceeded |
| 500 | Internal Server Error |
Rate Limiting
API calls are rate limited by your plan's monthly allocation. If you exceed the rate limit, requests return 429 Too Many Requests.
Endpoint Reference
Explore the full API with auto-generated code examples in JavaScript, Python, PHP, and cURL:
Last updated: February 7, 2026