REST API
One endpoint set for links, analytics, QR codes, bio pages, campaigns and AI. Every plan includes API access — the free one too.
1. Authenticate
Create an API key in Dashboard → API keys and send it as a bearer token. Session cookies work too, so the same endpoints power your own dashboard.
curl https://ziplify-demo.mintsource.dev/api/links \
-H "Authorization: Bearer zp_live_xxxxxxxxxxxx" \
-H "Accept: application/json"
Keys are shown once when created. Treat them like a password and rotate them whenever somebody leaves the team.
2. Create a short link
curl -X POST https://ziplify-demo.mintsource.dev/api/links \
-H "Authorization: Bearer zp_live_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/landing-page","alias":"spring-sale","title":"Spring sale"}'
Leave alias out and Ziplify generates one. Reserved words such as login or dashboard are rejected so a short link can never shadow a real page.
3. Endpoints
| Method | Path | What it does |
|---|---|---|
| POST | /api/auth/register | Create an account and return a session |
| POST | /api/auth/login | Sign in with e-mail and password |
| GET | /api/plans | List the public plans and their limits |
| GET | /api/me | The authenticated account and its plan |
| GET | /api/links | List links, newest first |
| POST | /api/links | Create a short link |
| GET | /api/links/{id} | Read one link |
| PUT | /api/links/{id} | Update the target, title or alias |
| DELETE | /api/links/{id} | Delete a link |
| GET | /api/links/{id}/stats | Clicks, uniques and referrers for one link |
| GET | /api/links/{id}/clicks | The raw clicks of one link, newest first |
| GET | /api/links/{id}/targets | The targeting rules of one link |
| PUT | /api/links/{id}/targets | Replace the targeting rules of one link |
| GET | /api/links/{id}/params | The query parameters of one link |
| PUT | /api/links/{id}/params | Replace the query parameters of one link |
| GET | /api/links/{id}/pixels | The tracking pixels of one link |
| POST | /api/links/{id}/pixels | Register a tracking pixel |
| DELETE | /api/links/{id}/pixels/{pid} | Remove a tracking pixel |
| GET | /api/analytics | Account wide click summary |
| GET | /api/qr | List generated QR codes |
| POST | /api/qr | Render a QR code for a URL |
| GET | /api/bio | List bio pages |
| POST | /api/bio | Create a bio page |
| GET | /api/campaigns | List link rotator campaigns |
| GET | /api/keys | List your API keys |
| POST | /api/keys | Issue a new API key |
| GET | /api/webhooks | List webhooks |
| POST | /api/webhooks | Register a webhook endpoint |
| POST | /api/ai/{feature} | Run an AI feature (caption, slug, bio, rewrite) |
Errors
Every error returns JSON with a stable machine readable code, so you can branch on it instead of parsing prose.
{
"error": "link_quota_reached",
"message": "You have used all 100 links on the Free plan."
}
Webhooks
A delivery that fails is retried five times with a growing pause (1, 5, 30 and 120 minutes). After the last try the delivery is marked as failed and you are told in the notification centre.
Point a webhook at your own endpoint and Ziplify posts JSON when a link is clicked, created or a payment completes. Every delivery carries an X-Ziplify-Signature header — an HMAC-SHA256 of the raw body, signed with the secret shown when you create the webhook.
X-Ziplify-Signature: sha256=9f2a…
Rate limits
120 requests per minute per API key. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Exceeding the limit returns 429 with a rate_limited error — back off and retry.