Short link API
Create links and fetch reports from your own tools.
Authentication
Create a scoped key under Workspace → API keys. Send it as a bearer token in the Authorization header. Keep it on your server.
curl https://rgo.ie/api/v1/links -X POST \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"destination":"https://example.ie/menu","alias":"menu"}'Endpoints
| Endpoint | Permission | Response |
|---|---|---|
GET /api/v1/links | links:read | Lists links in the key’s workspace. |
POST /api/v1/links | links:write | Creates a link from a destination and optional alias. |
GET /api/v1/links/{alias} | links:read | Returns a link and its last seven days of clicks. |
PATCH /api/v1/links/{alias} | links:write | Changes destination, active status or both. |
GET /api/v1/reports | reports:read | Returns daily totals and aggregate breakdowns. Filter with from, to, link and campaign. |
Report dates use YYYY-MM-DD in UTC. If you receive HTTP 429, wait for the Retry-After interval.