Response Structure
All Pandabase API responses follow a consistent format that includes anok field to indicate success or failure.
Success Response
When a request succeeds, the API returnsok: true along with the requested data:
Always
true for successful requestsThe requested resource or response data. The structure varies by endpoint.
Error Response
When a request fails, the API returnsok: false along with error details:
Always
false for failed requestsHuman-readable error message explaining what went wrong
Error messages are designed to not contain sensitive information and can be
safely displayed in user interfaces.
HTTP Status Codes
The API uses standard HTTP status codes to indicate the general category of response:| Status Code | Description |
|---|---|
200 | OK - Request succeeded |
201 | Created - Resource created successfully |
400 | Bad Request - Invalid request parameters |
401 | Unauthorized - Missing or invalid authentication |
403 | Forbidden - Authenticated but lacks permission |
404 | Not Found - Resource doesn’t exist |
409 | Conflict - Request conflicts with current state |
422 | Unprocessable Entity - Validation error |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error - Server error |
503 | Service Unavailable - Temporary service interruption |
Handling Responses
Always check theok field to determine if a request succeeded:
