Quickstart
Shorten your first link with a single request. The response includes the short URL and a secret code that lets you manage the link later.
- 1
Send a request
POST the destination to
/api/linksas JSON. No authentication is needed. - 2
Keep the secret code
The
secretCodein the response is shown only once. Store it to view stats, edit or delete the link. - 3
Share the short URL
Use
shortUrlanywhere. Clicks appear on the stats page atstatsUrl.
curl -X POST 'https://bito.li/api/links' \
-H 'Content-Type: application/json' \
-d '{
"originalUrl": "https://example.com/spring-sale?utm_source=newsletter"
}'{
"originalUrl": "https://example.com/spring-sale?utm_source=newsletter",
"shortUrl": "https://bito.li/Xk3b9",
"shortCode": "Xk3b9",
"statsUrl": "https://bito.li/d/Xk3b9",
"clicks": 0,
"expiresAt": null,
"maxClicks": null,
"controlMode": "full",
"secretCode": "s-3f9-a1c-07b",
"password": null,
"userId": null
}Key concepts
Popular topics
Need help?
Found something unclear or a behaviour that doesn’t match these docs? Write to [email protected] and include the request you sent and the errorKey you received.