Errors
The API uses standard HTTP status codes and returns consistent error responses.
HTTP status codes
| Code | Description |
|---|---|
200 | Success |
201 | Created |
207 | Multi-Status (batch operations) |
400 | Bad Request — invalid parameters |
401 | Unauthorized — invalid or missing API key |
403 | Forbidden — brand is inactive |
404 | Not Found |
429 | Too Many Requests — rate limit exceeded |
500 | Internal Server Error |
Error response format
All errors return a JSON body with an error field:
{
"error": "Descriptive error message"
}Some errors include additional details:
{
"error": "Validation failed",
"details": {
"accountIds": "At least one account ID is required",
"content": "Content cannot be empty"
}
}Common errors
400 Bad Request
{
"error": "No valid account IDs provided"
}Causes: Missing required fields, invalid field types, account IDs that don't belong to your brand.
401 Unauthorized
{
"error": "Unauthorized"
}Causes: Missing Authorization header, invalid API key, expired key.
403 Forbidden
{
"error": "Brand is not active"
}Causes: Brand has been deactivated, API access has been revoked.
404 Not Found
{
"error": "Post not found"
}Causes: Post ID doesn't exist or belongs to a different brand.
429 Too Many Requests
{
"error": "Too many requests. Please try again later."
}Causes: Rate limit exceeded. Check the Retry-After header for wait time. See Rate Limiting.