API Documentation

Use our REST API to create and manage short links programmatically.

Authentication
All API requests require an API key. You can generate one in your dashboard settings.

Include your API key in the request header:

1x-api-key: your_api_key_here
Base URL
1https://a.i6t.co.za
Endpoints
Available API endpoints

POSTCreate a Short Link

Create 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 }'

GETList Your Links

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"

GETGet Link Analytics

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"

POSTDelete a Link

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"}}'
Response Format
All responses follow the tRPC format

Success Response

1{ 2 "result": { 3 "data": { 4 "json": { /* Your data here */ } 5 } 6 } 7}

Error Response

1{ 2 "error": { 3 "message": "Error description", 4 "code": -32600, 5 "data": { "code": "UNAUTHORIZED", "httpStatus": 401 } 6 } 7}
Rate Limits

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.