linkly
v1.0.3Create short links, manage domains, and track click analytics
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
add_domain_to_workspace Add Domain to Workspace
Add a new custom domain to your workspace. Ensure DNS CNAME record configuration is completed before adding the domain.
| Parameter | Type | Description |
|---|---|---|
workspace_id * | integer | The unique identifier of the workspace where the domain will be added. |
name | string | The name of the custom domain to add to your workspace. |
get_link Get Link
Retrieve detailed information about a specific link by its unique identifier.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The unique identifier of the link to retrieve (e.g., 24). |
create_or_update_link Create or Update Link
Create a new shortened link or update an existing one. Provide `url` and `workspace_id` to create; provide `id` and fields to update. Supports custom slugs, UTM parameters, tracking pixels, Open Graph metadata, and conditional redirect rules.
| Parameter | Type | Description |
|---|---|---|
block_bots | boolean | Prevent automated bots and crawlers from accessing this link. |
body_tags | string | Custom HTML tags to inject into the page body for tracking or functionality purposes. |
cloaking | boolean | Enable URL cloaking to hide the destination URL from users and analytics. |
deleted | boolean | Mark the link as deleted. Set to true to soft-delete without removing the record. |
enabled | boolean | Enable or disable the link. Disabled links will not redirect. |
fb_pixel_id | string | Facebook Pixel ID for conversion tracking and audience building. |
forward_params | boolean | Forward query parameters from the shortened link to the destination URL. |
ga4_tag_id | string | Google Analytics 4 measurement ID for tracking link performance. |
gtm_id | string | Google Tag Manager container ID for advanced event tracking and tag management. |
head_tags | string | Custom HTML tags to inject into the page head for scripts, metadata, or tracking. |
hide_referrer | boolean | Hide the HTTP referrer header when redirecting to prevent the destination from seeing the source. |
id | integer | Unique identifier of the link to update. Required when updating an existing link; omit when creating new. |
linkify_words | string | Comma-separated list of words to automatically convert into links within the destination page content. |
name | string | Human-readable name or title for the link to aid organization and identification. |
note | string | Internal note or memo for reference; not visible to end users. |
og_description | string | Open Graph description displayed when the link is shared on social media platforms. |
og_image | string | Open Graph image URL displayed when the link is shared on social media platforms. |
og_title | string | Open Graph title displayed when the link is shared on social media platforms. |
replacements | string | String-encoded replacement rules for dynamic URL parameter substitution or content modification. |
rules | array | Array of conditional redirect rules that determine the destination URL based on user attributes, device type, or other criteria. Rules are evaluated in order. |
slug | string | Custom URL slug for the shortened link. If omitted, a random slug is generated automatically. |
spam | boolean | Mark the link as spam or suspicious content. |
tiktok_pixel_id | string | TikTok Pixel ID for conversion tracking and audience building on TikTok. |
url | string | Destination URL to redirect to. Required when creating a new link; must be a valid URI. |
workspace_id | integer | Workspace ID |
get_link_analytics Get Link Analytics
Retrieve detailed information about a specific link, including click statistics, UTM parameters, and configuration settings.
| Parameter | Type | Description |
|---|---|---|
id * | string | The unique identifier of the link to retrieve. Use the link ID provided when the link was created. |
workspace_id | string | Workspace ID. Optional when using OAuth2 Bearer token. |
list_webhooks_for_link List Webhooks for Link
Retrieve all webhook subscriptions configured for a specific link. Returns a list of webhooks that are actively monitoring events for the given link.
| Parameter | Type | Description |
|---|---|---|
link_id * | integer | The unique identifier of the link whose webhooks you want to retrieve. Must be a positive integer. |
get_clicks_analytics Get Clicks Analytics
Retrieve click analytics for a workspace with flexible filtering and aggregation options. Returns time-series data suitable for charting, with support for multiple output formats and pivot transformations.
| Parameter | Type | Description |
|---|---|---|
workspace_id * | string | The unique identifier of the workspace to retrieve click analytics for. |
browser | string | Filter results to clicks from a specific browser (e.g., Chrome, Firefox, Safari). |
country | string | Filter results to clicks from a specific country using its ISO 3166-1 alpha-2 code (e.g., US, GB, DE). |
end | string | The end date for filtering clicks, specified in ISO 8601 format (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ). If omitted, defaults to the current date. |
format | string | Specify the response format: 'json' (default), 'csv', or 'tsv'. |
frequency | string | The time granularity for aggregating data points: 'day' (default) for daily buckets or 'hour' for hourly buckets. |
isp | string | Filter results to clicks from a specific Internet Service Provider. |
pivot | string | Transform the response into a matrix format where dates appear as rows and links as columns. When set to 'link_id', CSV/TSV responses include header rows with link name, full URL, and ID. |
platform | string | Filter results to clicks from a specific platform or operating system (e.g., Windows, Mac, iOS, Android). |
referer | string | Filter results to clicks originating from a specific referrer domain. |
start | string | The start date for filtering clicks, specified in ISO 8601 format (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ). If omitted, defaults to the beginning of available data. |
timezone | string | The timezone to apply for date and time calculations (e.g., America/New_York). Affects how dates are bucketed and displayed. |
get_click_counters_by_dimension Get Click Counters by Dimension
Retrieve aggregated click analytics grouped by a specified dimension (such as country, platform, or browser). Returns click counts for each unique value within the selected dimension, with optional filtering by date range, country, and response format.
| Parameter | Type | Description |
|---|---|---|
counter * | string | The dimension to group clicks by. Choose from: country (geographic location), platform (device type), browser (web browser), referer (HTTP referrer), isp (internet service provider), link_id (specific… |
workspace_id * | string | The workspace identifier that contains the click analytics data. |
country | string | Filter results to a specific country using its ISO 3166-1 alpha-2 country code (e.g., 'US', 'GB', 'DE'). If omitted, all countries are included. |
end | string | The end date for filtering analytics data, specified in YYYY-MM-DD format. If omitted, defaults to the current date. |
format | string | The response format for the analytics data. Choose from JSON (default, structured format), CSV (comma-separated values), or TSV (tab-separated values). |
start | string | The start date for filtering analytics data, specified in YYYY-MM-DD format. If omitted, defaults to the earliest available data. |
list_domains List Domains
Retrieve all custom domains configured for a workspace. These domains can be used as targets when creating short links.
| Parameter | Type | Description |
|---|---|---|
workspace_id * | string | The unique identifier of the workspace whose domains you want to list. |
add_domain_to_workspace_by_id Add Domain to Workspace
Add a custom domain to a workspace. The domain must have a CNAME record configured in DNS before being added.
| Parameter | Type | Description |
|---|---|---|
name * | string | The fully qualified domain name to add (e.g., links.example.com). Ensure the corresponding CNAME record is configured in your DNS provider before adding. |
workspace_id * | string | The unique identifier of the workspace where the domain will be added. |
delete_domain Delete Domain
Remove a custom domain from your workspace. Once deleted, any links using this domain will no longer be functional.
| Parameter | Type | Description |
|---|---|---|
domain_id * | string | The unique identifier of the domain to be removed from the workspace. |
workspace_id * | string | The unique identifier of the workspace containing the domain to be deleted. |
update_domain_favicon Update Domain Favicon
Update the favicon URL for a custom domain within a workspace. The favicon will be displayed in browser tabs and bookmarks for the domain.
| Parameter | Type | Description |
|---|---|---|
id * | string | The unique identifier of the domain whose favicon should be updated. Typically a numeric ID. |
workspace_id * | string | The unique identifier of the workspace containing the domain. Typically a numeric ID. |
favicon_url | string | A valid URI pointing to the favicon image file. Common formats include .ico, .png, and .svg. If omitted, the favicon will not be updated. |
create_or_update_link_batch Create or Update Links in Batch
Create a new link or update an existing one in a workspace. Include an 'id' field to update an existing link, or omit it to create a new one. Supports batch operations by accepting an array of links.
| Parameter | Type | Description |
|---|---|---|
url * | string | The destination URL where users will be redirected. Must be a valid URI. |
workspace_id * | string | The workspace identifier where the link will be created or updated. |
block_bots | boolean | When enabled, blocks traffic from known bots and automated crawlers. |
body_tags | string | Custom HTML tags to inject into the body section of the destination page. |
cloaking | boolean | When enabled, hides the actual destination URL and displays a cloaked URL instead. |
domain_id | integer | Numeric identifier of the domain to use for this link. Use this as an alternative to specifying a domain name. |
enabled | boolean | Controls whether the link is active and functional. Set to false to disable without deleting. |
expiry_clicks | integer | Number of clicks after which the link automatically expires and becomes inactive. |
expiry_datetime | string | Date and time when the link automatically expires and becomes inactive. Use ISO 8601 format. |
expiry_destination | string | URL to redirect users to after the link expires. |
fb_pixel_id | string | Facebook Pixel ID for tracking conversions on Facebook. |
forward_params | boolean | When enabled, query parameters from the shortened link are automatically forwarded to the destination URL. |
ga4_tag_id | string | Google Analytics 4 measurement ID for tracking events and conversions. |
gtm_id | string | Google Tag Manager container ID for tracking and analytics. |
head_tags | string | Custom HTML tags to inject into the head section of the destination page. |
hide_referrer | boolean | When enabled, prevents the referrer information from being passed to the destination URL. |
id | integer | Numeric identifier of an existing link to update. Omit this field to create a new link. |
linkify_words | string | Specific words within the link that should be converted into clickable links. |
name | string | Human-readable nickname or label for this link to help identify it in your workspace. |
note | string | Private internal note for reference; not visible to end users. |
og_description | string | Open Graph description text displayed when the link is shared on social media. |
og_image | string | URL of an image to display when the link is shared on social media. |
og_title | string | Open Graph title text displayed when the link is shared on social media. |
public_analytics | boolean | When enabled, analytics data for this link is publicly accessible without authentication. |
qr_styles | object | Object containing styling options for QR codes generated from this link, such as colors and patterns. |
replacements | string | URL parameter replacements to transform or modify query parameters before forwarding to the destination. |
rules | array | Array of redirect rules that determine where users are sent based on conditions like device type, location, or custom parameters. |
skip_social_crawler_tracking | boolean | When enabled, prevents tracking of requests from social media crawlers and bots. |
slug | string | Custom URL slug for this link. Must start with a forward slash (/) and be unique within the workspace. |
tiktok_pixel_id | string | TikTok Pixel ID for tracking conversions on TikTok. |
webhooks | array | Array of webhook URLs that receive notifications when link events occur, such as clicks or conversions. |
delete_links Delete Links
Permanently delete one or more links from a workspace by their IDs. This action cannot be undone.
| Parameter | Type | Description |
|---|---|---|
workspace_id * | string | The unique identifier of the workspace containing the links to delete. |
ids | array | Array of link IDs to delete. If not provided, no links will be deleted. |
export_links Export Links
Export all links in a workspace in JSON or CSV format, with optional filtering by search query.
| Parameter | Type | Description |
|---|---|---|
workspace_id * | string | The unique identifier of the workspace containing the links to export. |
format | string | The output format for the exported links. Choose between JSON (default) or CSV. |
search | string | Optional search query to filter which links are included in the export. Only links matching the query will be returned. |
delete_link Delete Link
Permanently delete a specific link from a workspace by its ID. This action cannot be undone.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The unique identifier of the link to delete. |
workspace_id * | string | The unique identifier of the workspace containing the link to delete. |
list_links List Links
Retrieve a paginated list of all links in a workspace with support for searching, sorting, and filtering. Results include click statistics and link metadata for each entry.
| Parameter | Type | Description |
|---|---|---|
workspace_id * | string | The unique identifier of the workspace containing the links to retrieve. |
page | integer | The page number for pagination, starting from 1. Defaults to the first page if not specified. |
page_size | integer | The maximum number of links to return per page. Defaults to 1000 if not specified. |
search | string | Optional search query to filter links by matching against link properties. Searches across relevant link fields to narrow results. |
sort_by | string | The field name to sort results by. Common sortable fields include creation date, click count, and link name. |
sort_dir | string | The sort direction for results: ascending or descending order. |
list_workspaces List Workspaces
Retrieve all workspaces accessible to the authenticated user. Use this operation to discover available workspace IDs for use in other API calls.
delete_webhook_from_link Delete Webhook from Link
Remove a webhook subscription from a link by unsubscribing the specified webhook URL. This operation permanently deletes the webhook subscription relationship.
| Parameter | Type | Description |
|---|---|---|
hook_id * | string | The webhook URL to unsubscribe, provided in URL-encoded format (e.g., https%3A%2F%2Fhooks.example.com%2Fabc123). |
link_id * | integer | The unique identifier of the link from which to remove the webhook subscription. |