---
title: "List PHP options for a website"
method: GET
path: "/api/agency-hosting/v1/websites/{website_uid}/php-settings/options"
tags: ["Agency Hosting: PHP"]
---

# List PHP options for a website

`GET /api/agency-hosting/v1/websites/{website_uid}/php-settings/options`

Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.

## Path parameters

- `website_uid` string, required

## Response `200`

Success response

- AgencyHostingV1PhpOptionResource[] — Array of [`AgencyHosting.V1.Php.OptionResource`](#model/agencyhostingv1phpoptionresource)
  - `name` string — php.ini directive name.
  - `description` string — What the directive controls.
  - `default_value` string — Value applied when no custom value is set.
  - `allowed_values` string[], nullable — Values this option accepts. Null when the option accepts any value of its type.
  - `value` string — Value currently in effect for the website.
  - `type` 'value' | 'list' — Whether the option takes a single value or a list of values.

## Other responses

- `401` — Unauthenticated response
- `500` — Error response

## Changes

- **2026-08-17** `8b0328d323ca` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hostinger/apis/hostinger-api/changes/api/agency-hosting/v1/websites/:website_uid/php-settings/options/get.md)

---

[API](https://skmtc.dev/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.dev/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/53ccee45e5eb/schema)
