API Documentation

Build integrations and automate your URL shortener workflows with the Zappr REST API.

Authentication

Session Cookie (Browser)

API calls from the dashboard use NextAuth session cookies automatically. No headers needed.

API Key (Programmatic)

Pass your API key in the Authorization header as a Bearer token.

Authorization: Bearer za_<your-api-key>

Generate keys at Settings → API Keys. API keys inherit your plan's rate limits and Pro features.

MethodPathAuthDescription
GET/api/healthNoneCheck service health and version
POST/api/shortenNoneCreate a public short link (24h expiry, no auth required)
GET/api/linksSession or API KeyList your short links with search, filter, and pagination
POST/api/linksSession or API KeyCreate a new short link with custom slug, password, and expiry
PATCH/api/links/{id}Session or API KeyUpdate an existing short link
DELETE/api/links/{id}Session or API KeyArchive (soft-delete) a short link
GET/api/domainsSession or API KeyList your custom domains with verification status
POST/api/domainsSession or API Key (Pro)Add a custom domain with DNS verification instructions
GET/api/domains/{id}Session or API KeyGet domain details and link count
POST/api/domains/{id}Session or API KeyRe-verify domain DNS records
DELETE/api/domains/{id}Session or API KeyRemove a custom domain and disconnect links
GET/api/user/keysSession or API KeyList your API keys (full key shown once on creation)
POST/api/user/keysSession or API KeyCreate a new API key for programmatic access
DELETE/api/user/keys/{id}Session or API KeyRevoke an API key
Rate Limits

Free

  • Shorten: 10/min
  • Links: 30/min
  • Domains: 5/min

Pro

  • Shorten: 30/min
  • Links: 100/min
  • Domains: 20/min

API Key

  • Shorten: 100/min
  • Links: 500/min
  • Domains: 50/min