List Agency Plan websites
Retrieve a paginated list of Agency Plan websites (H5G, Builder, and Horizons) accessible to the authenticated client.
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.
API Token authentication
Page number
1Number of items per page
25Example: 25Filter by order IDs. Accepts a comma-separated list.
[12345,67890]Filter by domain name (case-insensitive substring match)
example.comSuccess response
Unauthenticated response
Error response
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?