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 5,000+ 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
Include your API key in the Authorization header of every request.
Authorization: Bearer tk_live_...Make your first request
POST to /api/v1/shorten with your destination URL.
POST /api/v1/shortencurl -X POST https://trimlink.co/api/v1/shorten \
-H "Authorization: Bearer tk_live_..." \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'Create Your First Link
Simple REST API with responses in JSON format
curl -X POST https://trimlink.co/api/v1/shorten \
-H "Authorization: Bearer tk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/my-long-url",
"customSlug": "my-link"
}'{
"success": true,
"data": {
"id": "clx123abc",
"shortCode": "my-link",
"shortUrl": "https://trimlink.co/my-link",
"destinationUrl": "https://example.com/my-long-url",
"createdAt": "2026-01-30T12:00:00Z"
}
}Rate Limits
Generous limits that scale with your needs
| Plan | API Requests | API Keys | Webhooks |
|---|---|---|---|
| Growth | 10,000/day | 2 | 3 |
| Teams | Unlimited | 5 | 10 |
| Enterprise | Unlimited | Unlimited | Unlimited |
Ready to Get Started?
Check out the full API reference for detailed endpoint documentation, webhook events, and code examples.