Skip to main content

Error Response Format

All errors follow a consistent structure:

HTTP Status Codes

Common Errors

Authentication Errors

HTTP 401
Solution: Include x-api-key header in your request
HTTP 401
Solutions:
  • Verify your API key is correct
  • Check if the key has been revoked
  • Generate a new key from the dashboard
HTTP 403
Solutions:
  • Upgrade from read to write scope
  • Request company-wide access
  • Use a different API key

Validation Errors

HTTP 400
Solution: Include all required fields in your request
HTTP 403
Solutions:
  • Verify the campaignId is correct
  • Check your API key has access to this campaign
  • Ensure the campaign belongs to your company
HTTP 400
Solution: Use a different phone number or update the existing lead

Rate Limit Errors

HTTP 429
Response Headers:
Solutions:
  • Wait until the reset time
  • Implement exponential backoff
  • Contact us for higher limits

Error Handling Best Practices

1. Check Status Codes

JavaScript

2. Implement Retry Logic

Python

3. Log Errors Properly

JavaScript

4. Handle Rate Limits Gracefully

Python

Getting Help

If you encounter errors you can’t resolve:
  1. Check this documentation for common solutions
  2. Review API logs in your dashboard
  3. Contact support at support@lupitor.com
  4. Text the Creator! That’s right, my personal number! +l 4l2 5OO lOOl
When reporting errors, include:
  • The HTTP status code
  • The error message
  • Your request (without sensitive data)
  • Timestamp of the error