Skip to main content

Error Response Format

All Kintsugi API errors follow a consistent JSON format:
For validation errors (422), the response includes detailed field-level information:

HTTP Status Codes

Status CodeError TypeDescriptionCommon Causes
400Bad RequestInvalid request data or parametersMissing required fields, invalid data types, business logic violations
401UnauthorizedInvalid or missing authenticationMissing API key, invalid API key, expired token
403ForbiddenInsufficient permissionsUser lacks access to organization, admin-only endpoint
404Not FoundResource does not existInvalid ID, deleted resource, wrong organization
409ConflictResource conflictDuplicate creation, state conflicts, concurrent modifications
422Unprocessable EntityValidation errorsInvalid field values, constraint violations, business rules
429Too Many RequestsRate limit exceededExceeding 10,000 requests per minute limit
Status CodeError TypeDescriptionCommon Causes
500Internal Server ErrorUnexpected server errorDatabase errors, unhandled exceptions, system failures
503Service UnavailableExternal service unavailableThird-party API failures, maintenance windows

Common Error Messages

Authentication Errors

Validation Errors

Solution: Include all required fields in your request
Solution: Use valid enum values as specified in the API documentation
Solution: Ensure your data follows business rules and constraints

Error Handling Best Practices

1

Implement Proper HTTP Status Code Handling

Check the response status code and handle each type appropriately:
2

Implement Exponential Backoff

For rate limiting and temporary errors, implement exponential backoff:
3

Log Errors Appropriately

Log errors with sufficient context for debugging:
4

Provide User-Friendly Error Messages

Transform technical errors into user-friendly messages:

Troubleshooting Common Issues

Error: API key is missing or empty.Solution: Ensure you’re including both the x-api-key and x-organization-id headers in your requests:
Kintsugi uses API key authentication via headers (not bearer token). Both headers are required.
Error: Field requiredSolution: Check the API documentation for required fields and ensure all are included in your request body.
Error: Resource not foundSolution:
  1. Verify the resource ID is correct
  2. Check if the resource belongs to your organization
  3. Ensure the resource hasn’t been deleted