Base URL
Base URL conventions for PanelConfig API requests.
Use the deployed PanelConfig host as the base URL. Current source files are exposed under /api/v1/, for example https://panel.example.com/api/v1/domains.php.
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.