Skip to main content
Use Linkly through Corsair: one client, typed API calls. Create an API key in Linkly under Settings, API Keys at app.linklyhq.com. The key is available on every plan, including the free one. Every workspace-scoped call takes a workspace_id input; workspaces.listWorkspaces lists the IDs your key can reach, and auth.test checks the key. Things to know before you send:
  • Create and update share one endpoint. links.create POSTs a new link; links.update is the same call with the link’s id, updating it in place. links.bulkUpsert does the same for up to 1000 links and answers 200 even when some fail, so read each item’s status.
  • Deleting a link is soft. links.delete and links.deleteMany move links to the trash and their short URLs stop redirecting straight away. links.restore takes them back out; a restored link whose back-half is already taken on the domain is reported under conflicts.
  • Deleting a domain is not. domains.delete removes a custom domain, and every link on it stops working.
  • links.list paging. The API defaults to 1000 rows per page, the largest page it serves; page_number and total_pages in the answer tell you where you are. filter narrows by exact domain, slug or UTM value.
  • Analytics has its own allowance. clicks.getTimeSeries, clicks.getCounters, clicks.export and links.export count against the workspace’s analytics allowance (100 requests a month on the free plan) and a limit of 50 requests an hour. When a paid workspace runs out, Linkly adds a billed API pack to its subscription automatically; free and Starter workspaces get a 429 instead. Pivot mode (clicks.getTimeSeries with pivot: 'link_id') returns every link in one call.
  • Rate limits. The link API allows 20 requests a second. Core retries a 429 three times with backoff; Linkly sends no Retry-After header.
  • Webhooks. Linkly POSTs click, link.created, link.updated and link.deleted events to the URLs you register with webhooks.subscribe (whole workspace) or webhooks.subscribeToLink (one link). Branch on the body’s event field; only click events carry a click object. Deliveries arrive at that URL, not to this plugin. workspaces.update with webhooks replaces the whole list.
  • Conversions. conversions.create attributes a lead or sale to the link through the linkly_cid your landing page captured. Without it the event is discarded and the answer says attributed: false. Pass event_id so a repeat is not counted twice.
  • Outside the OpenAPI spec. auth.test, workspaces.update and clicks.export are routes Linkly’s own MCP server uses but its OpenAPI document leaves out.
What you get:
  • 28 typed API operations

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

4

Connect a tenant

Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.

Example API calls

List links in a workspace
Create a tracked short link
See the full list on the API page.

What’s next

API reference

Every linkly.api.* operation with input and output types.

Connect / OAuth

createLink, Hub delivery, and tenant connect flows.

Use with agents

Expose this plugin’s operations as MCP tools.