List all domains
List every hostname across your applications with GET /v2/apps/domains: custom domains first, then the default squareweb.app subdomains, each with its app.
GET
List all domains
string
required
The API key for your account. You can find this in your account settings.
apps:read scope.
Use this endpoint to get a single, account-wide view of every hostname you have configured, useful for populating a domains overview page without calling Get Application Info once per application. To attach or change a custom domain on a specific application, see Set Custom Domain; DNS records for a domain are retrieved separately via Get DNS Records.
This endpoint accepts either your API key or a session token (JWT) in the
Authorization header. Authentication is required: requests without it return 401.Response
string
Indicates whether the call was successful:
success if it was, error if not.response array is a flattened list of every hostname across the applications you own. Custom domains come first, followed by the default *.squareweb.app subdomains. Applications without a web domain (e.g. workers and bots) are omitted.
This list is served from the cached project list, so it does not count against the per-application network rate limits.
array
The list of hostnames.
Related
- CLI:
squarecloud app domains - SDKs:
api.apps.domains()(JavaScript),client.apps.domains()(Python),c.Apps.Domains()(Go)

