Hatchmate Core API

Unauthenticated, cross-tenant read endpoints backing the embeddable Crow widget (SA-17, SA-30).


Embeddable widget script (E43)

GET
https://api.hatchmate.nz
/widget/crow.js

Static asset. No auth, no tenant scoping, no database access.

Embeddable widget script (E43) › Responses

The widget's embeddable JavaScript.

string

Referrer aggregate for a piece of content (E52)

GET
https://api.hatchmate.nz
/widget/v1/referrers

Public, cross-tenant, never raises (SA-32). Gated on public_shares_for_url (SA-17) returning at least one approved share for content_url — with no approved share, or if Umami configuration is absent or the Umami call fails, returns an empty list rather than an error. A content_url over 2000 characters returns an empty list without querying the database (SA-30). Response bodies never carry customer_id, the internal post id, or pageviews — only referrer and visits.

Referrer aggregate for a piece of content (E52) › query Parameters

content_url
​string · maxLength: 2000 · required

Referrer aggregate for a piece of content (E52) › Responses

Referrer breakdown for the given URL, possibly empty.


Approved shares for a piece of content (E44)

GET
https://api.hatchmate.nz
/widget/v1/shares

Public, cross-tenant, never raises (SA-17). Capped at 50 rows, ordered widget_approved_at DESC, id DESC (SA-30); a content_url over 2000 characters returns an empty list without querying the database. Response bodies never carry customer_id or the internal post id — only what a public embed may show.

Approved shares for a piece of content (E44) › query Parameters

content_url
​string · maxLength: 2000 · required

Approved shares for a piece of content (E44) › Responses

Approved shares for the given URL, possibly empty.