HTTP Status Codes
The lemlist API uses standard HTTP status codes to indicate the success or failure of requests:| Status Code | Meaning |
|---|---|
200 | Success - The request was successful |
400 | Bad Request - Invalid parameters or invalid team |
401 | Unauthorized - Authentication is missing or invalid |
403 | Forbidden - User is blocked |
404 | Not Found - Resource does not exist |
405 | Method Not Allowed - HTTP method is not allowed for this endpoint |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error - An error occurred on the server |
For authentication related errors, refer to the Authentication section.
Common error messages
Bad team
Bad team
This indicates that the team associated with your API key is invalid or you don’t have permission to access the requested resource.Common causes
- The resource belongs to a different team
- Your API key doesn’t have access to the requested team
- Invalid team configuration
Bad params
Bad params
One or more request parameters are invalid.Common causes
- Missing required parameters
- Invalid parameter format
- Parameter values out of acceptable range
- Invalid JSON in request body
Bad request
Bad request
A generic error indicating that the request could not be processed due to client error.Common causes
- Malformed JSON
- Invalid data types
- Logical errors in request data
Best practices
Recommendations
Recommendations
- Always check the response status code before processing the response body
- Implement exponential backoff for retrying failed requests
- Log error responses for debugging and monitoring
- Handle authentication errors by refreshing or validating your API key — see Authentication
- Respect rate limits by implementing request throttling — see Rate limits
- Validate input before sending requests to avoid unnecessary API calls
Getting help
If you need assistance
If you need assistance
If you encounter errors that are not documented here or need assistance:
- Review the endpoint-specific documentation
- Make sure you understood how Authentication works
- Contact lemlist support through the feedback form