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

List Agency Plan websites

Retrieve a paginated list of Agency Plan websites (H5G, Builder, and Horizons) accessible to the authenticated client.

List Agency Plan websites

get

Retrieve a paginated list of Agency Plan websites (H5G, Builder, and Horizons) accessible to the authenticated client.

This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you.

The response shape differs per platform — see the platform field on each item.

Use website_types to list only websites of a given detected type, e.g. only WordPress websites (website_types=wordpress) or only Node.js websites (website_types=nodejs). Combine with order_ids, states, or domain for more targeted results.

Authorizations
AuthorizationstringRequired

API Token authentication

Query parameters
pageintegerOptional

Page number

Example: 1
per_pageinteger · max: 100Optional

Number of items per page

Default: 25Example: 25
order_idsinteger[] · nullableOptional

Filter by order IDs. Accepts a comma-separated list.

Example: [12345,67890]
domainstring · nullableOptional

Filter by domain name (case-insensitive substring match)

Example: example.com
Responses
200

Success response

application/json
get/api/agency-hosting/v1/websites
GET /api/agency-hosting/v1/websites HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [
    {
      "id": "zpwlGlp19",
      "client_id": 123,
      "order_id": 1234,
      "platform": "h5g",
      "state": "active",
      "created_at": "2024-05-29T05:49:49.067239Z",
      "plan": {
        "name": "hostinger_premium",
        "display_name": "Premium Hosting",
        "has_cdn": true
      },
      "details": {
        "uid": "zpwlGlp19",
        "ipv4": "192.161.10.1",
        "flavor": "wp-6.2.0",
        "type": "wordpress",
        "username": "u123456789",
        "description": "Very awesome website",
        "state": "active",
        "created_at": "2024-05-29T05:49:49.067239Z",
        "settings": {},
        "wordpress": {},
        "domains": [
          {}
        ],
        "preview_domain": {},
        "processes": [
          {}
        ],
        "horizons_uuid": "text"
      },
      "suspension_reason": "non_payment"
    }
  ],
  "meta": {
    "current_page": 1,
    "per_page": 15,
    "total": 100
  }
}

Last updated

Was this helpful?