New to Corsair? See API access, authentication, and error handling.
Auth
test
auth.test
Check that the API key is valid
Risk: read
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
Output:
Record<string, any>[] \| object
Output full type
Output full type
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
Output
values full type
values full type
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
Output:
object
Output full type
Output full type
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
Output:
object
Output full type
Output full type
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
Output
conversions full type
conversions full type
Domains
create
domains.create
Attach a custom domain to a workspace. Its CNAME must already point at domains.linklyhq.com
Risk: write
Output
delete
domains.delete
Remove a custom domain from a workspace. Every short link on that domain stops working
Risk: destructive · Irreversible
Output:
string
list
domains.list
List the custom domains attached to a workspace, usable as links.create domain values
Risk: read
Output
domains full type
domains full type
updateFavicon
domains.updateFavicon
Set or clear the favicon URL for a custom domain
Risk: write
Output
Links
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
links full type
links full type
object[]
Output full type
Output full type
create
links.create
Create a tracked short link in a workspace, with its destination, UTM fields and optional rules
Risk: write
rules full type
rules full type
rules full type
rules full type
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
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
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
Output:
object[]
Output full type
Output full type
get
links.get
Read one link by ID: destination, short URL and settings, without click counts
Risk: read
Output
rules full type
rules full type
getDetails
links.getDetails
Read one link with its lifetime and recent click counts, plus the workspace’s domains
Risk: read
Output
link full type
link full type
list
links.list
List the links in a workspace with their click counts, one page at a time
Risk: read
filter full type
filter full type
links full type
links full type
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
Output
conflicts full type
conflicts full type
update
links.update
Update an existing link in place by sending its ID with the fields to change
Risk: write
rules full type
rules full type
rules full type
rules full type
Webhooks
list
webhooks.list
List the webhook URLs registered on a workspace
Risk: read
Output:
object[]
Output full type
Output full type
listForLink
webhooks.listForLink
List the webhook URLs registered on one link
Risk: read
Output:
object[]
Output full type
Output full type
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
Output
subscribeToLink
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
Output
unsubscribe
webhooks.unsubscribe
Remove a webhook registration from a workspace by its URL, so it stops receiving events
Risk: write
Output:
string
unsubscribeFromLink
webhooks.unsubscribeFromLink
Remove a webhook registration from one link by its URL
Risk: write
Output:
string
Workspaces
listWorkspaces
workspaces.listWorkspaces
List the workspaces the API key can reach, with their IDs
Risk: read
object[]
Output full type
Output full type
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
Output:
Record<string, any>