Standard Response Format
All API responses follow a consistent structure
Response Structure
{
"success": boolean,
"message": string,
"errors": array | null,
"data": object | array | null
}
Resources Response Structure
{
"success": boolean,
"message": string,
"data": object | array
}
Field Descriptions
| Field | Type | Description |
|---|---|---|
| success | boolean | Indicates whether the request was successful |
| message | string | Human-readable message describing the result |
| errors | array | Array of error messages (null if successful) |
| data | object/array | Response payload (null if error) |