Errors
Learn how to handle API errors in your application.
Error Response Format
All errors return a JSON object with an error field:
{"error": "Error message describing what went wrong"}
HTTP Status Codes
400Bad RequestThe request was invalid. Check your parameters or request body.
Common causes:
- Missing required parameter (e.g.,
email) - Invalid JSON body
- Email array exceeds 100 items (batch check)
- Invalid cursor format
401UnauthorizedInvalid or missing API key.
Common causes:
- Missing
X-API-Keyheader - Invalid API key format
- Revoked API key
403ForbiddenYou don't have permission to access this resource.
Common causes:
- API key doesn't have access to this project
- Project belongs to a different user
404Not FoundThe requested resource doesn't exist.
Common causes:
- Invalid project ID
- Suppression hash doesn't exist (when deleting)
- Invalid endpoint URL
500Internal Server ErrorSomething went wrong on our end. Try again later.
If the issue persists, contact support@parsebounce.com
Handling Errors
Always check the HTTP status code and handle errors gracefully:
const response = await fetch(url, {headers: { 'X-API-Key': apiKey }});if (!response.ok) {const error = await response.json();switch (response.status) {case 401:// Invalid API key - check your credentialsbreak;case 403:// No access to this projectbreak;case 404:// Resource not foundbreak;case 429:// Rate limited - wait and retrybreak;default:// Other errorconsole.error(error.error);}return;}const data = await response.json();