Hanzo
OpenapiAuthor

Records that the caller's org deployed a project built from a source…

Records that the caller's org deployed a project built from a source repository, which is the edge that makes an author's work earn royalty.

POST /v1/author/deploys/record

Addresshttps://api.hanzo.ai/v1/author/deploys/record
MethodPOST
Operationpost_author_deploys_record
AuthAuthorization: Bearer $HANZO_API_KEY

Records that the caller's org deployed a project built from a source repository, which is the edge that makes an author's work earn royalty.

It is deliberately NOT an error for a deploy to attribute to nobody: a project built from no repository, or from one no author has verified, answers {"recorded": false, "reason"} so a deploy pipeline can fire this on every deploy without branching. Attribution resolves per-repository first, then owner-wide, so a repository with its own claim always earns for its own author.

A deploy of a Hanzo-maintained template attributes to the platform treasury, and a self-deploy (the author's own org deploying its own repository) is recorded for provenance but excluded from accrual. The edge is idempotent per repository+project+org.

Answers 201 when it recorded a new edge and 200 otherwise.

Request

2 fields, body application/json (required).

FieldInTypeRequiredDescription
projectbodystringProject is the deployed project's id.
repoUrlbodystringRepoURL is the source repository the project was built from.

Response

StatusBodyMeaning
200deployRecordok

200 body — 6 fields.

FieldInTypeAlwaysDescription
createdbodybooleanCreated reports whether this call recorded a new attribution edge (201) or found an existing one (200).
createdAtbodyintegerCreatedAt is when the edge was first recorded, in unix seconds.
deployIdbodystringDeployID is the attribution edge's handle.
reasonbodystringReason says why nothing was attributed.
recordedbodybooleanRecorded reports whether the deploy was attributed to an author at all.
selfbodybooleanSelf reports that the deploying org IS the author's org.

Failure carries the platform error shape — see Errors.

Examples

hanzo authors deploys record

Author API · All Hanzo APIs · Interactive reference

How is this guide?

On this page