Build with TrimLink API
Programmatic access to link shortening. Create links, track clicks, and automate workflows with our REST API and webhooks.
Developer Features
Everything you need to integrate TrimLink into your workflow
API Keys
Secure API key authentication with scoped permissions. Create, manage, and revoke keys from your dashboard.
Webhooks
Real-time notifications when links are created, clicked, or updated. HMAC-SHA256 signed payloads.
Zapier Integration
Connect TrimLink to thousands of apps. Automate link creation and react to click events without code.
Quick Start
Get your API key
Go to Dashboard → Settings → API & Integrations to create an API key.
tk_live_your_api_key_hereAdd authentication header
Send your key in the X-API-Key header (Authorization: Bearer also works).
X-API-Key: tk_live_...Read the click report
GET /api/v1/stats/:code returns the link's 30 day click report.
GET /api/v1/stats/:codecurl -X POST https://trimlink.co/api/v1/links \
-H "Authorization: Bearer tk_live_..." \
-H "Content-Type: application/json" \
-d '{"destinationUrl": "https://example.com"}'Create Your First Link
Simple REST API with responses in JSON format
curl -X POST https://trimlink.co/api/v1/links \
-H "Authorization: Bearer tk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"destinationUrl": "https://example.com/my-long-url",
"customCode": "my-link"
}'{
"success": true,
"data": {
"id": "8f14e45f-ceea-4e7a-9c1b-2a6d3f0b5c71",
"shortCode": "my-link",
"originalUrl": "https://example.com/my-long-url",
"shortUrl": "https://trimlink.co/my-link",
"createdAt": "2026-01-30T12:00:00.000Z"
}
}Rate Limits
Generous limits that scale with your needs
| Plan | API Requests | API Keys | Webhooks |
|---|---|---|---|
| Pro | 1,000/day | 1 | — |
| Growth | 10,000/day | 5 | 3 |
| Teams | Unlimited | Unlimited | 10 |
| Enterprise | Unlimited | Unlimited | Unlimited |
Ready to Get Started?
Check out the full API reference for detailed endpoint documentation, webhook events, and code examples.