← Help centre · Integrations
Webhooks and the REST API
Webhooks (Pro and above)
Add a webhook URL in your workspace settings. uzines sends a POST request with a JSON body when these events happen:
| Event | When it fires |
|---|---|
| issue.published | An issue is published. |
| lead.created | A reader submits a lead gate or form. |
| subscriber.created | A new subscriber is added to one of your publications. |
| sale.completed | A single issue or subscription purchase completes. |
Verifying signatures
Each request includes an X-Uzines-Signature header in the form sha256=<hex>, where the hex value is an HMAC-SHA256 of the raw request body using your webhook secret as the key.
- Read the raw request body before parsing JSON.
- Compute HMAC-SHA256(secret, raw body) and hex-encode it.
- Compare it with the header value using a constant-time comparison.
- Reject the request if they do not match.
REST API (Business)
Create an API key in your workspace settings. Keys start with uz_live_. Send it as a bearer token:
Authorization: Bearer uz_live_…
| Endpoint | Returns |
|---|---|
| GET /api/v1/publications | Your publications. |
| GET /api/v1/issues | Your issues. |
| GET /api/v1/leads?since=ISO | Leads collected since the given ISO 8601 date and time, for example ?since=2026-12-01T00:00:00Z. |
Keep API keys secret. If a key is exposed, delete it and create a new one.
U-Suite apps
- ubuilder.ai: embed issues on your site.
- uleads.ai: receive leads via the lead.created webhook.
- umails.ai: send campaigns on issue.published, or import a CSV.
- usocials.ai: use the ready-made social post text, or trigger posts from a webhook.