Documentation / API Request Format / Request Headers

Request Headers

Request Headers conventions for PanelConfig API requests.

Most API clients should send Authorization: Bearer pc_YOUR_TOKEN and Accept: application/json. For future JSON write endpoints, also send Content-Type: application/json.

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 429 by 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.

← Base URL JSON Requests →