Error Handling
When something goes wrong, Apper returns a consistent error format:
{
"success": false,
"message": "Field 'Email' is required",
"data": null
}
Common Errors and Solutions
| Error Message | What It Means | How to Fix |
|---|---|---|
| "Unauthorized" | Invalid API key | Check your Authorization header and API key. |
| "Field 'X' is required" | Missing mandatory data | Include the missing required field in your request body. |
| "Invalid field type" | Wrong data format | Check the Field Value Formats and match the type. |
| "Record does not exist" | ID doesn't exist | Verify the recordId or appId in your URL. |
| "Unknown field X provided" | Field name doesn't exist | Check field name spelling (note: names are case-sensitive). |
Bulk Operation Errors
For bulk operations (Create, Update, Delete), check the results array:
{
"success": true,
"message": "Bulk create operation completed",
"results": [
{
"success": true,
"data": {"id": 24}
},
{
"success": false,
"errors": [
{
"fieldName": "Email",
"message": "Invalid email format"
}
]
}
]
}