HostPanel
API errors, limits and pagination
Error format
Errors use an HTTP status and an error object containing code, message and details.
Validation details contain field messages.
Do not treat a custom HTTP 200 message as the standard API error format.
Handling status codes
401: check credentials and expiry; 403: permissions, organization, plan or feature; 404: missing or unavailable record; 422: fix parameters; 429: slow down; 5xx: temporary failure, retry later.
Never retry an unchanged failing request indefinitely.
Limits and retries
Public storefront requests are limited to 120 per minute, with an additional 20 for domain searches.
Authenticated API limits are 180 per minute per user, so that user’s keys share the quota.
Honor Retry-After when present; otherwise use increasing backoff.
Pagination
Start with page=1 and stop at meta.last_page.
Private APIs accept per_page up to 100; public catalogs return up to 25 products and do not accept per_page.
Data may change between requests: reconcile IDs rather than treating pages as one immutable snapshot.
422 error example
{
"error": {
"code": "VALIDATION_ERROR",
"message": "The given data was invalid.",
"details": {
"field": [
"Validation message"
]
}
}
}Pagination examples
GET /api/v1/store/YOUR_STORE_SLUG?page=2
GET /api/v1/orders?page=2&per_page=100