Skip to main content
The TrimYourl API is REST over HTTPS on the same host as the app. There is no separate api. subdomain.

Base URL

Authentication

Link, analytics, domain, and QR endpoints require a Bearer token. Create a key under Settings → API. It starts with tyl_ and is shown once.
The key belongs to one workspace. You do not pass a workspace id. Switch workspace in the app, then create another key if you need a different client.
Treat the secret like a password. TrimYourl stores only a hash. If you lose it, create a new key.
POST /api/v1/convert is public (CORS *). It is meant for the tracking snippet or your server, not for the tyl_ key.

Endpoints

Use the playground pages in this tab to send requests. Conversion webhooks are documented under Webhooks.

Errors

JSON errors look like { "error": "destination is required" }. Conversion errors use { "ok": false, "reason": "kid" } and similar. Creating links is limited to 60 per hour per user. Trial workspaces can hold 50 links.

Example

The Chrome extension sends this request for the current tab. See Chrome extension.