← Back to all APIs

Shortlink Create

$0.002

Create a permanent short link on freeq.one (e.g. https://freeq.one/MySlug). Optional: custom slug, expires_at (ISO date) for a TTL link that auto-expires — same price. Returns short_url plus a one-time manage_secret that gates FREE stats (GET /tools/shortlink_stats with X-Link-Secret) and FREE deletion of the link. Store the secret — it is shown only at creation.

POST https://x402.freeq.one/tools/shortlink_create
Try it (x402 payment flow)

⚡ Try with your wallet — live payment

curl -X POST https://x402.freeq.one/tools/shortlink_create \ -H "Content-Type: application/json" \ -d '{"url":"https://imapp.blogspot.com/2026/08/uuid-generator-free-uuid-v4-v7-creator.html","expires_at":"2027-01-01T00:00:00Z"}'

Without payment, the server returns 402 Payment Required with x402 challenge details. A paying agent signs a USDC transaction on Base and retries with the payment header.