🔗 کوتاه کننده لینک

📚 API Docs

Send X-API-Key: YOUR_KEY header (or ?api_key=YOUR_KEY) for authenticated calls.

GET https://1ti.ir/?api=ping

{ "ok": true, "version": "3.0.0", "time": "..." }

GET https://1ti.ir/?api=list

Lists your links (or all if admin).

POST https://1ti.ir/?api=create

curl -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"}'

POST https://1ti.ir/?api=update&code=XYZ

curl -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"]}'

POST https://1ti.ir/?api=delete&code=XYZ

GET https://1ti.ir/?api=stats&code=XYZ

Returns link, 14-day chart and recent clicks.

POST https://1ti.ir/?api=bulk_create

{ "urls": "https://a.com\nhttps://b.com\nhttps://c.com" }

Pretty short-link URLs