linkledger
v0.1.0Manage your Linkly short links, domains, webhooks and click analytics.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
test_authentication
Test API Authentication
list_workspaces
Return details of authenticated workspace
batchDeleteLinks
Batch delete multiple links
| Parameter | Type | Description |
|---|---|---|
ids * | array | Array of link IDs to delete |
update_workspace
Update workspace settings. Only the fields provided are changed; omitted fields keep their current values.
| Parameter | Type | Description |
|---|---|---|
name | string | Workspace name |
webhooks | array | REPLACES the workspace's full webhook subscription list. Omit to leave webhooks unchanged; prefer subscribe_webhook / unsubscribe_webhook for adding or removing a single URL. |
list_links
List links with sorting and search
| Parameter | Type | Description |
|---|---|---|
page | integer | |
page_size | integer | |
search | string | Search Query |
sort_by | string | Field to sort by |
sort_dir | string | Sort direction |
ping
Health check: sends a message to the hosted Linkly server and returns its reply unchanged, confirming the service is reachable and responding.
| Parameter | Type | Description |
|---|---|---|
message * | string | a message to ping , default to Hello From Linkkly |
create_link
Create short links and URL shorteners. Use this when the user asks to shorten a URL, create a short link, or make a link shorter.
| Parameter | Type | Description |
|---|---|---|
url * | string | The destination URL for the link (required) |
block_bots | boolean | Block known bots and spiders from following the link |
cloaking | boolean | Hide destination URL by opening in an iframe |
domain | string | Custom domain for the short link (without trailing /). Must be a domain that already belongs to this workspace — call list_domains to get valid values. Required whenever slug is set. |
enabled | boolean | Whether the link is active (default: true) |
expiry_datetime | string | ISO 8601 datetime when the link should expire |
expiry_destination | string | Fallback URL after expiry (404 if blank) |
fb_pixel_id | string | Meta/Facebook Pixel ID for tracking |
forward_params | boolean | Forward URL parameters to the destination |
ga4_tag_id | string | Google Analytics 4 tag ID |
gtm_id | string | Google Tag Manager container ID |
hide_referrer | boolean | Hide referrer information when users click |
name | string | A nickname for the link to identify it later |
note | string | A private note about this link |
og_description | string | Open Graph description for social media previews |
og_image | string | Open Graph image URL for social media previews |
og_title | string | Open Graph title for social media previews |
slug | string | Custom slug/suffix for the link (must start with /). Only valid together with domain: setting slug without a workspace-owned domain is rejected by the API. |
utm_campaign | string | UTM campaign parameter |
utm_content | string | UTM content parameter |
utm_medium | string | UTM medium parameter |
utm_source | string | UTM source parameter |
utm_term | string | UTM term parameter |
update_link
Update an existing Linkly link by its ID
| Parameter | Type | Description |
|---|---|---|
link_id * | integer | The ID of the link to update (required) |
block_bots | boolean | Block bots |
cloaking | boolean | Enable URL cloaking |
enabled | boolean | Whether the link is active |
expiry_datetime | string | Expiry datetime (ISO 8601) |
expiry_destination | string | Fallback URL after expiry |
fb_pixel_id | string | Meta Pixel ID |
forward_params | boolean | Forward URL parameters |
ga4_tag_id | string | Google Analytics 4 tag ID |
gtm_id | string | Google Tag Manager ID |
hide_referrer | boolean | Hide referrer |
name | string | New nickname for the link |
note | string | New private note |
og_description | string | Open Graph description |
og_image | string | Open Graph image URL |
og_title | string | Open Graph title |
url | string | New destination URL |
utm_campaign | string | UTM campaign parameter |
utm_content | string | UTM content parameter |
utm_medium | string | UTM medium parameter |
utm_source | string | UTM source parameter |
utm_term | string | UTM term parameter |
delete_link
Delete a Linkly link by its ID
| Parameter | Type | Description |
|---|---|---|
link_id * | integer | The ID of the link to delete |
get_link
Get details of a specific Linkly link by its ID
| Parameter | Type | Description |
|---|---|---|
link_id * | integer | The ID of the link to retrieve |
get_clicks
Get recent click data for the workspace
| Parameter | Type | Description |
|---|---|---|
link_id | integer | Optional: filter clicks by link ID |
get_analytics
Get time-series click analytics data for charting. Returns click counts over time.
| Parameter | Type | Description |
|---|---|---|
bots | string | Bot filtering: include (default), exclude, or only |
browser | string | Filter by browser name |
country | string | Filter by country code (e.g., 'US', 'GB') |
end | string | End date in YYYY-MM-DD format (default: today) |
frequency | string | Time granularity: 'day' (default) or 'hour' |
link_id | integer | Filter by specific link ID |
platform | string | Filter by platform (e.g., 'desktop', 'mobile', 'tablet') |
start | string | Start date in YYYY-MM-DD format (default: 30 days ago) |
unique | boolean | Count unique clicks only (by IP) |
get_analytics_by
Get click counts grouped by a dimension (country, platform, referrer, etc.). Useful for breakdowns and top-N reports.
| Parameter | Type | Description |
|---|---|---|
counter * | string | Dimension to group by (required) |
bots | string | Bot filtering |
country | string | Filter by country code |
end | string | End date in YYYY-MM-DD format (default: today) |
link_id | integer | Filter by specific link ID |
platform | string | Filter by platform |
start | string | Start date in YYYY-MM-DD format (default: 30 days ago) |
unique | boolean | Count unique clicks only |
export_clicks
Export detailed click records with full information (timestamp, browser, country, URL, platform, referer, bot, ISP, params).
| Parameter | Type | Description |
|---|---|---|
bots | string | Bot filtering |
country | string | Filter by country code |
end | string | End date in YYYY-MM-DD format (default: yesterday) |
link_id | integer | Filter by specific link ID |
platform | string | Filter by platform |
start | string | Start date in YYYY-MM-DD format (default: 30 days ago) |
list_domains
List all custom domains in the workspace.
create_domain
Add a custom domain to the workspace. The domain must be configured to point to Linkly's servers.
| Parameter | Type | Description |
|---|---|---|
name * | string | The domain name (e.g., 'links.example.com') |
delete_domain
Remove a custom domain from the workspace.
| Parameter | Type | Description |
|---|---|---|
domain_id * | integer | The ID of the domain to delete |
update_domain_favicon
Update the favicon URL for a custom domain.
| Parameter | Type | Description |
|---|---|---|
domain_id * | integer | The ID of the domain to update |
favicon_url * | string | URL to the favicon image |
search_links
Search for links by name, URL, or note. Returns matching links with click statistics.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query to match against link names, URLs, and notes |
list_webhooks
List all webhook URLs subscribed to the workspace. These receive click events for all links.
subscribe_webhook
Subscribe a webhook URL to receive click events for all links in the workspace.
| Parameter | Type | Description |
|---|---|---|
url * | string | The webhook URL to receive click event notifications |
unsubscribe_webhook
Unsubscribe a webhook URL from workspace click events.
| Parameter | Type | Description |
|---|---|---|
url * | string | The webhook URL to unsubscribe |
list_link_webhooks
List all webhook URLs subscribed to a specific link.
| Parameter | Type | Description |
|---|---|---|
link_id * | integer | The ID of the link |
subscribe_link_webhook
Subscribe a webhook URL to receive click events for a specific link.
| Parameter | Type | Description |
|---|---|---|
link_id * | integer | The ID of the link |
url * | string | The webhook URL to receive click event notifications |
unsubscribe_link_webhook
Unsubscribe a webhook URL from a specific link's click events.
| Parameter | Type | Description |
|---|---|---|
link_id * | integer | The ID of the link |
url * | string | The webhook URL to unsubscribe |