API Docs
v1.0
  • Overview
  • Quickstart

API Reference

  • Authentication
  • Endpoints
  • Links
  • Analytics
  • QR Codes
  • Folders
  • Domains
  • Webhooks
  • Rate Limits
  • Errors

Integrations

  • Zapier
Get API Key
API Docs
v1.0
  • Overview
  • Quickstart

API Reference

  • Authentication
  • Endpoints
  • Links
  • Analytics
  • QR Codes
  • Folders
  • Domains
  • Webhooks
  • Rate Limits
  • Errors

Integrations

  • Zapier
Get API Key
Back to TrimLink
Developers/API Reference

API Reference

REST API endpoints for managing short links. All endpoints require authentication.

Base URL:https://trimlink.co

Links

Create, read, update, and delete short links

POST/api/v1/shorten
GET/api/v1/links
GET/api/v1/links/:id
PATCH/api/v1/links/:id
DELETE/api/v1/links/:id

Analytics

Get click statistics and geographic data

GET/api/v1/stats/:code

QR Codes

Generate and manage QR codes for links

POST/api/v1/links/:id/qr
GET/api/v1/links/:id/qr
GET/api/v1/qr/:id/download

Folders

Organize links into folders

GET/api/v1/folders
POST/api/v1/folders
PATCH/api/v1/folders/:id
DELETE/api/v1/folders/:id
POST/api/v1/links/:id/move

Domains

Add and manage custom domains

GET/api/v1/domains
POST/api/v1/domains
GET/api/v1/domains/:id
POST/api/v1/domains/:id/verify
DELETE/api/v1/domains/:id

Related Documentation

  • Authentication — API keys, scopes, and security
  • Webhooks — Real-time event notifications
  • Rate Limits — Request limits and best practices
  • Error Codes — HTTP status codes and error handling