Error handling
Understanding error responses and status codes in the Holded API.
Overview
The Holded API uses standard HTTP status codes and returns error details in a consistent JSON format.
Error format
All error responses follow this structure:
{
"type": "https://api.holded.com/problems/not-found",
"title": "Not Found",
"status": 404,
"detail": "The requested invoice was not found."
}Status codes
400Bad Request · Invalid parameters or malformed request body
401Unauthorized · Missing or invalid API key
403Forbidden · Valid API key but insufficient permissions
404Not Found · The requested resource does not exist
422Unprocessable Entity · Valid JSON but semantic validation failed
429Too Many Requests · Rate limit exceeded. Wait and retry.
500Internal Server Error · Something went wrong on our end
Rate limiting
The API allows 100 requests per minute per API key. When you exceed this limit, you'll receive a 429 response. Wait for the rate limit window to reset before retrying.