Shorten. Share. Disappear.
curl -X POST https://YOURDOMAIN/api/shorten \
-H 'Content-Type: application/json' \
-d '{
"url": "https://example.com/long-path",
"customSlug": "my-link",
"expiryDays": 30,
"preview": false
}'
curl -X POST https://YOURDOMAIN/api/shorten \
-H 'Content-Type: application/json' \
-H 'X-Fingerprint: "YOUR_RAW_FINGERPRINT"' \
-H 'X-Owner-Hash: YOUR_OWNER_HASH' \
-d '{
"url": "https://example.com/long-path"
}'
curl -X POST https://YOURDOMAIN/api/lookup \
-H 'Content-Type: application/json' \
-d '{ "slug": "ab3x" }'
curl -X POST https://YOURDOMAIN/api/lookup \
-H 'Content-Type: application/json' \
-d '{ "slugs": ["ab3x", "yz9q", "my-link"] }'
curl https://YOURDOMAIN/api/mylinks \ -H 'X-Fingerprint: "YOUR_RAW_FINGERPRINT"' \ -H 'X-Owner-Hash: YOUR_OWNER_HASH'
curl -X PATCH https://YOURDOMAIN/api/mylinks \
-H 'Content-Type: application/json' \
-H 'X-Fingerprint: "YOUR_RAW_FINGERPRINT"' \
-H 'X-Owner-Hash: YOUR_OWNER_HASH' \
-d '{ "slug": "ab3x", "previewMode": true }'
curl -X DELETE https://YOURDOMAIN/api/mylinks \
-H 'Content-Type: application/json' \
-H 'X-Fingerprint: "YOUR_RAW_FINGERPRINT"' \
-H 'X-Owner-Hash: YOUR_OWNER_HASH' \
-d '{ "slug": "ab3x" }'
curl https://YOURDOMAIN/api/admin \ -H 'Authorization: Bearer YOUR_ADMIN_KEY'
curl -X DELETE https://YOURDOMAIN/api/admin \
-H 'Authorization: Bearer YOUR_ADMIN_KEY' \
-H 'Content-Type: application/json' \
-d '{ "slug": "ab3x" }'
curl -X DELETE https://YOURDOMAIN/api/admin \
-H 'Authorization: Bearer YOUR_ADMIN_KEY' \
-H 'Content-Type: application/json' \
-d '{ "slugs": ["ab3x", "yz9q", "my-link"] }'
curl -X DELETE https://YOURDOMAIN/api/admin \
-H 'Authorization: Bearer YOUR_ADMIN_KEY' \
-H 'Content-Type: application/json' \
-d '{ "purgeAll": true }'