Skip to main content
New to Corsair? See API access, authentication, and error handling.

Auth

test

auth.test Check that the API key is valid Risk: read
Input: empty object Output: any

Clicks

export

clicks.export Export raw click rows (time, browser, country, destination, platform, referer, bot, ISP, params) for a workspace or one link. Not in Linkly’s OpenAPI spec; Linkly’s analytics docs and MCP server use it. Counts against the workspace’s analytics allowance (free plans: 100 a month; when a paid plan runs out, Linkly adds a billed API pack). Risk: read
Input Output: Record<string, any>[] \| object

getCounters

clicks.getCounters Group a workspace’s clicks by one dimension, such as country or UTM campaign, ordered by count (top 10,000 values). Counts against the workspace’s analytics allowance (free plans: 100 a month; when a paid plan runs out, Linkly adds a billed API pack). Risk: read
Input Output

getTimeSeries

clicks.getTimeSeries Read click counts over time for a workspace, filtered by link, date range, country and device, optionally pivoted into a links-by-date matrix. Counts against the workspace’s analytics allowance (free plans: 100 a month; when a paid plan runs out, Linkly adds a billed API pack). Risk: read
Input Output: object

Conversions

create

conversions.create Report a lead, sale or custom event and attribute it to the link that drove it through its linkly_cid. Unattributable events are discarded and answer attributed: false. Pass event_id so a repeat does not count twice Risk: write
Input Output: object

list

conversions.list List a workspace’s attributed conversions (leads, sales, custom events), newest first or paged oldest-first with since and after Risk: read
Input Output

Domains

create

domains.create Attach a custom domain to a workspace. Its CNAME must already point at domains.linklyhq.com Risk: write
Input Output

delete

domains.delete Remove a custom domain from a workspace. Every short link on that domain stops working Risk: destructive · Irreversible
Input Output: string

list

domains.list List the custom domains attached to a workspace, usable as links.create domain values Risk: read
Input Output

updateFavicon

domains.updateFavicon Set or clear the favicon URL for a custom domain Risk: write
Input Output

bulkUpsert

links.bulkUpsert Create or update up to 1000 links in one call: items with an id update, items without create. Answers 200 even when some items fail; check each item’s status Risk: write
Input
Output: object[]

create

links.create Create a tracked short link in a workspace, with its destination, UTM fields and optional rules Risk: write
Input
Output

delete

links.delete Move a link to the trash: its short URL stops redirecting straight away. links.restore can undo this while the link is still in the trash, and deleting a trashed link again is a harmless no-op Risk: destructive
Input Output: string

deleteMany

links.deleteMany Move several links to the trash at once: their short URLs stop redirecting straight away. links.restore can bring them back while they are in the trash Risk: destructive
Input Output: string

export

links.export Export every link in a workspace with their click counts, unpaginated. Counts against the workspace’s analytics allowance (free plans: 100 a month; when a paid plan runs out, Linkly adds a billed API pack). Risk: read
Input Output: object[]

get

links.get Read one link by ID: destination, short URL and settings, without click counts Risk: read
Input Output

getDetails

links.getDetails Read one link with its lifetime and recent click counts, plus the workspace’s domains Risk: read
Input Output

list

links.list List the links in a workspace with their click counts, one page at a time Risk: read
Input
Output

restore

links.restore Take deleted links out of the trash by ID; a restored link whose back-half is taken reports a conflict Risk: write
Input Output

update

links.update Update an existing link in place by sending its ID with the fields to change Risk: write
Input
Output

Webhooks

list

webhooks.list List the webhook URLs registered on a workspace Risk: read
Input Output: object[]

webhooks.listForLink List the webhook URLs registered on one link Risk: read
Input Output: object[]

subscribe

webhooks.subscribe Register a webhook URL on a workspace; Linkly then POSTs there for every click, link.created, link.updated and link.deleted. Deliveries arrive at that URL, not to this plugin Risk: write
Input Output
webhooks.subscribeToLink Register a webhook URL on one link; Linkly then POSTs its clicks, link.updated and link.deleted there. Deliveries arrive at that URL, not to this plugin Risk: write
Input Output

unsubscribe

webhooks.unsubscribe Remove a webhook registration from a workspace by its URL, so it stops receiving events Risk: write
Input Output: string
webhooks.unsubscribeFromLink Remove a webhook registration from one link by its URL Risk: write
Input Output: string

Workspaces

listWorkspaces

workspaces.listWorkspaces List the workspaces the API key can reach, with their IDs Risk: read
Input: empty object Output: object[]

update

workspaces.update Rename a workspace or replace its whole webhook list. Sending webhooks overwrites every registered URL, so a missing one stops receiving events. Not in Linkly’s OpenAPI spec; Linkly’s own MCP server uses it Risk: destructive
Input Output: Record<string, any>