Use our REST API to create and manage short links programmatically.
Include your API key in the request header:
1x-api-key: your_api_key_here1https://a.i6t.co.zaCreate a new shortened URL.
1curl -X POST "https://a.i6t.co.za/trpc/links.create" \
2 -H "Content-Type: application/json" \
3 -H "x-api-key: your_api_key_here" \
4 -d '{
5 "json": {
6 "destinationUrl": "https://example.com/very-long-url",
7 "title": "My Link",
8 "customCode": "mylink"
9 }
10 }'Retrieve all your shortened links.
1curl "https://a.i6t.co.za/trpc/links.list?input=%7B%22json%22%3A%7B%22limit%22%3A50%7D%7D" \
2 -H "x-api-key: your_api_key_here"Get click statistics for a specific link.
1curl "https://a.i6t.co.za/trpc/links.getAnalytics?input=%7B%22json%22%3A%7B%22id%22%3A%22your-link-id%22%7D%7D" \
2 -H "x-api-key: your_api_key_here"Permanently delete a shortened link.
1curl -X POST "https://a.i6t.co.za/trpc/links.delete" \
2 -H "Content-Type: application/json" \
3 -H "x-api-key: your_api_key_here" \
4 -d '{"json": {"id": "your-link-id"}}'1{
2 "result": {
3 "data": {
4 "json": { /* Your data here */ }
5 }
6 }
7}1{
2 "error": {
3 "message": "Error description",
4 "code": -32600,
5 "data": { "code": "UNAUTHORIZED", "httpStatus": 401 }
6 }
7}API requests are currently not rate limited, but please be respectful and avoid excessive requests. We reserve the right to implement rate limits in the future.