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.createPOSTs a new link;links.updateis the same call with the link’sid, updating it in place.links.bulkUpsertdoes the same for up to 1000 links and answers 200 even when some fail, so read each item’sstatus. - Deleting a link is soft.
links.deleteandlinks.deleteManymove links to the trash and their short URLs stop redirecting straight away.links.restoretakes them back out; a restored link whose back-half is already taken on the domain is reported underconflicts. - Deleting a domain is not.
domains.deleteremoves a custom domain, and every link on it stops working. links.listpaging. The API defaults to 1000 rows per page, the largest page it serves;page_numberandtotal_pagesin the answer tell you where you are.filternarrows by exact domain, slug or UTM value.- Analytics has its own allowance.
clicks.getTimeSeries,clicks.getCounters,clicks.exportandlinks.exportcount 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.getTimeSerieswithpivot: '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-Afterheader. - Webhooks. Linkly POSTs
click,link.created,link.updatedandlink.deletedevents to the URLs you register withwebhooks.subscribe(whole workspace) orwebhooks.subscribeToLink(one link). Branch on the body’seventfield; only click events carry aclickobject. Deliveries arrive at that URL, not to this plugin.workspaces.updatewithwebhooksreplaces the whole list. - Conversions.
conversions.createattributes a lead or sale to the link through thelinkly_cidyour landing page captured. Without it the event is discarded and the answer saysattributed: false. Passevent_idso a repeat is not counted twice. - Outside the OpenAPI spec.
auth.test,workspaces.updateandclicks.exportare routes Linkly’s own MCP server uses but its OpenAPI document leaves out.
- 28 typed API operations
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the Linkly API key before the first call: More: API Key
pnpm corsair setup --plugin=linkly --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.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 workspaceWhat’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.