Links API

Create short links, edit their title, description and expiry, move them between folders and delete them with the TrimLink API.

A link's destination is set when you create it and can't be changed. To send people somewhere else, create a new link. Links made with an API key land in your personal workspace.

The API can't list or read links yet. Use the dashboard to see them, and the Analytics API for click stats. Create tags with the Tags API.

Errors

Errors return { "error": "message" } with one of these statuses.

StatusWhen
400Invalid body, for example a missing destinationUrl, an http:// URL or a bad customCode.
401Missing, invalid, expired or revoked API key.
403The key lacks links:write, your plan has no API access, or a plan limit is reached. Limit errors add tier, limit, current and limitKey (links, customSlugs, qrCodes, linkEdits, clicksPerMonth).
404The link or folder does not exist in your workspace.
409The customCode is already taken.
429Daily API request limit reached.

See errors and rate limits for the full bodies.