For the complete documentation index, see llms.txt. This page is also available as Markdown.

List available PHP versions for an order

Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on.

List available PHP versions for an order

get

Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
order_idintegerRequired

Agency Plan order ID

Example: 123456
Responses
200

Success response

application/json
versionstringOptional

PHP version available for the website.

Example: 8.2
get/api/agency-hosting/v1/orders/{order_id}/websites/php-settings/versions
GET /api/agency-hosting/v1/orders/{order_id}/websites/php-settings/versions HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "version": "8.2"
  }
]

Last updated

Was this helpful?