Sorting
Sorting conventions for PanelConfig API requests.
Most current endpoints sort by descending ID, descending creation time, or a natural display field. Client-side sorting is acceptable for dashboards, but do not depend on undocumented sort order for billing decisions.
Request
curl -s https://panel.example.com/api/v1/domains.php \
-H "Authorization: Bearer pc_YOUR_TOKEN" \
-H "Accept: application/json"Notes
- Use HTTPS only.
- Keep tokens out of URLs.
- Handle
429by backing off instead of looping. - Treat undocumented filters or routes as unavailable until they exist in source.
Related
If a request works in cURL but not in your application, compare headers, TLS verification, proxy behavior, and whether the web server forwards Authorization to PHP.