REST APIv1.0

Build with TrimLink API

Programmatic access to link shortening. Create links, track clicks, and automate workflows with our REST API and webhooks.

Low Latency
Average response time under 100ms globally
Secure
HTTPS only, API key authentication, signed webhooks
Global CDN
Edge-cached redirects for maximum performance

Developer Features

Everything you need to integrate TrimLink into your workflow

Growth+

API Keys

Secure API key authentication with scoped permissions. Create, manage, and revoke keys from your dashboard.

Teams+

Webhooks

Real-time notifications when links are created, clicked, or updated. HMAC-SHA256 signed payloads.

Growth+

Zapier Integration

Connect TrimLink to 5,000+ apps. Automate link creation and react to click events without code.

Quick Start

1

Get your API key

Go to Dashboard → Settings → API & Integrations to create an API key.

tk_live_your_api_key_here
2

Add authentication header

Include your API key in the Authorization header of every request.

Authorization: Bearer tk_live_...
3

Make your first request

POST to /api/v1/shorten with your destination URL.

POST /api/v1/shorten
Example Request
curl -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

Request
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"
  }'
200Response
{
  "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

PlanAPI RequestsAPI KeysWebhooks
Growth10,000/day23
TeamsUnlimited510
EnterpriseUnlimitedUnlimitedUnlimited

Ready to Get Started?

Check out the full API reference for detailed endpoint documentation, webhook events, and code examples.