Hanzo
OpenapiProjects

Returns one site — the same row ListSites carries, for one slug.

Returns one site — the same row ListSites carries, for one slug. Every sub-resource under a site already answered: deployments, releases, publish.

GET /v1/projects/sites/{slug}

Addresshttps://api.hanzo.ai/v1/projects/sites/{slug}
MethodGET
Operationget_projects_sites_by_slug
AuthAuthorization: Bearer $HANZO_API_KEY

Returns one site — the same row ListSites carries, for one slug.

Every sub-resource under a site already answered: deployments, releases, publish. The site itself did not, and a route that is never registered answers 404 for a LIVE site exactly as it does for one that was never created. So the one call a client makes to ask "is it there yet?" could only ever say no, and a CI lane watching for its own publish would wait forever on a success it had already achieved.

The org is the caller's, never a path segment. A slug is unique within an org and two orgs may both own tel; taking the org from the validated principal instead of the URL means a caller cannot read another org's site by editing a path, and it is the same scope ListProjects and ListSites already use.

A site that exists but is not live is NOT found here, matching ListSites, which keeps only live rows so a draft or a failed build is never advertised as a site. One definition of "is a site", used by both.

Request

1 field.

FieldInTypeRequiredDescription
slugpathstringyesSlug is the project to act on, from the path.

Response

StatusBodyMeaning
200projectsSiteok

200 body — 5 fields.

FieldInTypeAlwaysDescription
namebodystringName is the site's display name.
slugbodystringSlug is the site's handle — also the label of the host it serves at.
statusbodystringStatus is the project's state behind the site — whether it is serving, still building, or failed its last build.
updatedAtbodyintegerUpdatedAt is when the project last changed, as Unix seconds.
urlbodystringURL is the pretty address readers use, not the object-store path behind it.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Projects API · All Hanzo APIs · Interactive reference

How is this guide?

On this page