Skip to main content
GET
List all domains
string
required
The API key for your account. You can find this in your account settings.
Requires an API key with the 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.
The 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.