Short links API · public redirects · Bearer token for create
Short URLs resolve under https://zurl.zonies.xyz (from APP_PUBLIC_URL when set).
POST https://zurl.zonies.xyz/api/v1/urls
| Header | Authorization: Bearer <users.api_key> |
|---|---|
| Body | JSON: {"url":"https://example.com/path"} |
| 201 | {"slug":"…","short_url":"https://zurl.zonies.xyz/…"} |
| 401 | Missing or invalid API key |
| 400 | Validation error ({"error":"…"}) |
curl -sS -X POST "https://zurl.zonies.xyz/api/v1/urls" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com"}'
GET https://zurl.zonies.xyz/<slug> → 302 to the stored URL (no auth).