Send X-API-Key: YOUR_KEY header (or ?api_key=YOUR_KEY) for authenticated calls.
https://1ti.ir/?api=ping{ "ok": true, "version": "3.0.0", "time": "..." }
https://1ti.ir/?api=listLists your links (or all if admin).
https://1ti.ir/?api=createcurl -X POST "https://1ti.ir/?api=create" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com","alias":"my-link"}'
https://1ti.ir/?api=update&code=XYZcurl -X POST "https://1ti.ir/?api=update&code=XYZ" \
-H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
-d '{"url":"https://new.com","enabled":true,"tags":["promo"]}'
https://1ti.ir/?api=delete&code=XYZhttps://1ti.ir/?api=stats&code=XYZReturns link, 14-day chart and recent clicks.
https://1ti.ir/?api=bulk_create{ "urls": "https://a.com\nhttps://b.com\nhttps://c.com" }
https://1ti.ir/CODE — redirecthttps://1ti.ir/qr/CODE — QR Code pagehttps://1ti.ir/p/CODE — preview