Developers

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

MethodPathWhat it does
POST/api/auth/registerCreate an account and return a session
POST/api/auth/loginSign in with e-mail and password
GET/api/plansList the public plans and their limits
GET/api/meThe authenticated account and its plan
GET/api/linksList links, newest first
POST/api/linksCreate 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}/statsClicks, uniques and referrers for one link
GET/api/links/{id}/clicksThe raw clicks of one link, newest first
GET/api/links/{id}/targetsThe targeting rules of one link
PUT/api/links/{id}/targetsReplace the targeting rules of one link
GET/api/links/{id}/paramsThe query parameters of one link
PUT/api/links/{id}/paramsReplace the query parameters of one link
GET/api/links/{id}/pixelsThe tracking pixels of one link
POST/api/links/{id}/pixelsRegister a tracking pixel
DELETE/api/links/{id}/pixels/{pid}Remove a tracking pixel
GET/api/analyticsAccount wide click summary
GET/api/qrList generated QR codes
POST/api/qrRender a QR code for a URL
GET/api/bioList bio pages
POST/api/bioCreate a bio page
GET/api/campaignsList link rotator campaigns
GET/api/keysList your API keys
POST/api/keysIssue a new API key
GET/api/webhooksList webhooks
POST/api/webhooksRegister 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.