Build powerful integrations with the Routiq REST API. Create links, track clicks, and manage routing rules programmatically.
Create an API key from your dashboard. Include it in the Authorization header.
Authorization: Bearer rq_your_api_key_hereRoutiq supports multiple link generation strategies via the API:
Provide destination URL only. Slug will automatically be generated.
curl -X POST https://routiq.link/api/v1/links \
-H "Authorization: Bearer rq_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"destinationUrl": "https://example.com/my-very-long-url"
}'Specify your own custom slug alias (e.g. /my-promo).
curl -X POST https://routiq.link/api/v1/links \
-H "Authorization: Bearer rq_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"destinationUrl": "https://example.com/summer-sale",
"slug": "my-promo"
}'Organize links in folders (e.g. /marketing). The slug parameter is optional — if omitted, a slug is auto-generated inside the folder.
# Default: Auto-generated slug inside folder (slug omitted)
curl -X POST https://routiq.link/api/v1/links \
-H "Authorization: Bearer rq_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"destinationUrl": "https://example.com/campaign-page",
"folder": "marketing"
}'
# Optional: Custom slug inside folder
curl -X POST https://routiq.link/api/v1/links \
-H "Authorization: Bearer rq_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"destinationUrl": "https://example.com/campaign-page",
"folder": "marketing",
"slug": "black-friday"
}'Add password protection, expiration ISO timestamps, title, tags, and 301/302 redirect settings.
curl -X POST https://routiq.link/api/v1/links \
-H "Authorization: Bearer rq_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"destinationUrl": "https://example.com/confidential-doc",
"slug": "q3-financials",
"folder": "reports",
"password": "SecretPassword123!",
"expiresAt": "2026-12-31T23:59:59Z",
"redirectType": "301",
"title": "Q3 Financial Report",
"tags": ["finance", "confidential"]
}'https://routiq.link/api/v1All API endpoints are relative to this base URL.
Include your API key in the Authorization header of every request:
Authorization: Bearer rq_your_api_keyAPI keys start with rq_ prefix.
/api/v1/linksCreate a new smart link
/api/v1/linksList all links
Query params: page, limit, search
/api/v1/links/:idGet link details
/api/v1/links/:idUpdate a link
/api/v1/links/:idDelete a link
/api/v1/links/:id/statsGet link analytics
| Plan | Requests/Second | Requests/Day |
|---|---|---|
| Free | 10 | 1,000 |
| Pro | 50 | 50,000 |
| Enterprise | 100 | Unlimited |
| Code | Description |
|---|---|
400 | Bad Request - Invalid parameters |
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - Insufficient permissions |
404 | Not Found - Resource doesn't exist |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error |
Get your API key and start integrating in minutes.
Get Free API Key →