> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cutmeshort.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Links

> Create, find, update, export and delete short links, in bulk or one at a time

These tools work with the short links in your connected workspace. Most of them identify a link by its `link_id`, which the assistant gets from `list_links` or `create_link`.

## Create and edit links

### create\_link

Shortens a URL and returns the new short link. Every option is optional except the destination.

**Permission:** Manage links · **Try:** *"Shorten [https://acme.com/sale](https://acme.com/sale) with the slug spring-sale on go.acme.com, tag it Campaign and make it expire on 31 March"*

**url** `string` *required*

The destination URL (http or https).

**slug** `string`

A custom back-half, for example `launch-oct`. Letters, numbers, `-`, `_` and `.`, up to 119 characters. Leave it out for a random one.

**domain** `string`

A verified custom domain of the workspace, for example `go.acme.com` (see [`list_domains`](https://docs.cutmeshort.com/mcp/tools/organize#list_domains)). Leave it out to use the workspace default.

**title** `string`

A title for the link, up to 200 characters.

**tags** `string[]`

Up to 20 tags. Each tag must already exist in the workspace ([`create_tag`](https://docs.cutmeshort.com/mcp/tools/organize#create_tag) adds one).

**folder\_id** `string`

Put the link in this folder (see [`list_folders`](https://docs.cutmeshort.com/mcp/tools/organize#list_folders)).

**split\_traffic** `object[]`

A/B test: split visitors between 2 to 10 URLs by percent. The percents must add up to 100. Include the link's own destination to keep part of the traffic on it.

**properties**

**url** `string` *required*

A destination URL.

**percent** `number` *required*

Share of visitors for this URL, from 1 to 100.

**google\_analytics\_id** `string`

A Google Analytics or Google tag ID for this link's visits, for example `G-ABC123`.

**google\_analytics\_page\_title** `string`

The page title Google Analytics records for the visit. Letters, numbers, spaces and basic punctuation, up to 60 characters.

**link\_preview** `object`

The preview shown when the link is shared on social media or in chats. Depends on your plan.

**properties**

**title** `string`

Preview title, up to 200 characters.

**description** `string`

Preview description, up to 500 characters.

**image\_url** `string`

An image URL for the preview.

**image\_data** `string`

An image to upload instead of `image_url`, as `data:image/png;base64,...`. PNG, JPG, WebP or GIF, up to 2 MB.

**track\_conversions** `boolean`

Track leads and sales from this link's visits. Your workspace must first finish the setup on the **Events** page of the dashboard.

**disabled** `boolean`

`true` creates the link switched off, so it doesn't redirect yet. Depends on your plan.

**expires\_at** `string`

When the link stops redirecting, as a date and time with a time zone, for example `2026-03-31T23:59:00+05:30`. Depends on your plan.

**expiry\_redirect\_url** `string`

Where visitors go after the link expires. Needs `expires_at`.

> [!NOTE]
>
> Tracking pixels can't be added when creating a link. Add them afterwards with `update_link`.

### update\_link

Changes an existing link. Only the options you mention change; everything else stays as it is.

**Permission:** Manage links · **Try:** *"Point my spring-sale link to [https://acme.com/summer](https://acme.com/summer) and remove its tags"*

**link\_id** `string` *required*

The link to change, from `list_links`.

**url** `string`

A new destination URL.

**title** `string`

A new title. An empty value removes it.

**tags** `string[]`

The link's tags after the change. This replaces all current tags; an empty list removes them all.

**folder\_id** `string`

Move the link to this folder.

**disabled** `boolean`

`true` stops the link redirecting; `false` turns it back on.

**expires\_at** `string`

When the link stops redirecting, with a time zone.

**expiry\_redirect\_url** `string`

Where visitors go after the link expires.

**split\_traffic** `object[]`

A new A/B split, in the same shape as in `create_link`.

**google\_analytics\_id** `string`

A Google tag ID. An empty value removes it.

**google\_analytics\_page\_title** `string`

The page title Google Analytics records for the visit.

**link\_preview** `object`

A new link preview, in the same shape as in `create_link`. It replaces the current preview, so include every part you want to keep.

**track\_conversions** `boolean`

Turn lead and sale tracking on or off for this link.

**tracking\_pixels** `object[]`

Up to 10 tracking pixels (for example from Meta or LinkedIn) that run when someone opens the link. This replaces all current pixels; an empty list removes them.

**properties**

**name** `string` *required*

A label, for example `Meta pixel`.

**script** `string` *required*

The pixel code exactly as the ad platform gives it.

> [!NOTE]
>
> Some changes depend on your plan, such as editing the destination, disabling, expiry, link previews and tracking pixels. If your plan doesn't include one, the link is still saved and the reply lists the changes that were **not applied**.

### delete\_link

Permanently deletes a link and its click statistics. The short URL stops working. This can't be undone, so the assistant confirms with you first.

**Permission:** Manage links · **Try:** *"Delete the cme.sh/old-promo link"*

**link\_id** `string` *required*

The link to delete, from `list_links`.

## Find and export links

### list\_links

Lists your links with their `link_id`, short and destination URLs, title, tags, folder, clicks, status and any advanced settings. Results come in pages.

**Permission:** View links · **Try:** *"Show my 10 most clicked links tagged Newsletter"*

**search** `string`

Text to find in the title, short URL or destination URL. Not case-sensitive.

**tags** `string[]`

Only links with any of these tags (up to 20).

**domains** `string[]`

Only short links on any of these domains (up to 10).

**folder\_id** `string`

Only links in this folder.

**sort** `string` (default: newest)

`newest`, `oldest` or `most_clicked`.

**limit** `number` (default: 20)

Links per page, from 1 to 50.

**cursor** `number` (default: 0)

The `next_cursor` value from the previous page. Use `0` to start.

### export\_links

Exports your links as CSV with these columns: short URL, destination, title, tags, folder, clicks, status, created and expires. Newest first. Each call returns up to about 100 KB of CSV, and the assistant continues with `next_cursor` for the rest.

**Permission:** View links · **Try:** *"Export all links in my Black Friday folder as a CSV"*

**search** `string`

Only links with this text in the title or URLs.

**tags** `string[]`

Only links with any of these tags.

**domains** `string[]`

Only short links on any of these domains.

**folder\_id** `string`

Only links in this folder.

**max\_links** `number` (default: 500)

At most this many links per call, from 1 to 2,000.

**cursor** `number` (default: 0)

The `next_cursor` value from the previous call. Use `0` to start.

## Bulk links

### create\_bulk\_links

Creates up to 200 links in one request. The links are created in the background, so the reply confirms the upload has started. Needs a plan with bulk link creation. Only one bulk upload runs at a time per workspace, and plan limits apply to every row.

**Permission:** Manage links · **Try:** *"Create short links for these 50 product URLs and put them in the Catalog folder"*

**links** `object[]` *required*

The links to create, from 1 to 200.

**properties**

**url** `string` *required*

The destination URL.

**slug** `string`

A custom back-half. Leave it out for a random one.

**domain** `string`

A verified custom domain. Leave it out for the default.

**title** `string`

A title for the link.

**folder** `string`

The **name** of an existing folder.

> [!TIP]
>
> For very long URLs, send around 100 links per request instead of 200.

### list\_bulk\_uploads

Shows your recent bulk uploads, newest first: status, progress, rows imported, any error and a link to a CSV with the result of each row. The CSV link expires after 7 days.

**Permission:** View links · **Try:** *"Did my last bulk upload finish? Which rows failed?"*

**limit** `number` (default: 5)

How many uploads to show, from 1 to 20.

## AI link suggestions

### suggest\_short\_links

Asks CutMe Short's AI for 5 short-link ideas for a URL, tuned to your sector, interests and audience. The ideas are kept for a few minutes so you can pick one. Needs AI links on your plan.

**Permission:** Manage links · **Try:** *"Suggest short links for [https://acme.com/laptops](https://acme.com/laptops) for young adults interested in gaming laptops"*

**url** `string` *required*

The destination URL.

**sector** `string` *required*

The business sector, for example `E-commerce` or `Travel`.

**interests** `string[]` *required*

1 to 5 interests within the sector, for example `["Laptops", "Deals"]`.

**audience** `string` *required*

`Teen`, `Young Adult`, `Middle Aged` or `Senior`.

**seo** `boolean` (default: false)

Prefer search-friendly words.

**domain** `string`

A verified custom domain to use instead of `cme.sh`.

### create\_suggested\_link

Creates the link you picked from `suggest_short_links`. Other settings can be added afterwards with `update_link`.

**Permission:** Manage links · **Try:** *"Create the second suggestion"*

**suggestions** `string[]` *required*

All 5 suggestions exactly as `suggest_short_links` returned them.

**short\_url** `string` *required*

The suggestion you picked.

**title** `string`

A title for the link.

## QR codes

### get\_qr\_code

Returns a QR code for one of your short links, in the link's saved QR colours. You get a PNG image or SVG code you can save or put on a web page. A logo set on the QR code is not included in the image.

**Permission:** View links · **Try:** *"Give me the QR code for cme.sh/spring-sale as an SVG"*

**short\_url** `string` *required*

The short URL, for example `https://cme.sh/launch`.

**format** `string` (default: png)

`png` for an image or `svg` for SVG code.

### update\_qr\_style

Changes the colours, and optionally the logo, of a link's QR code. It replaces the whole QR style. Depends on your plan.

**Permission:** Manage links · **Try:** *"Make the QR code for my spring-sale link dark purple on white"*

**link\_id** `string` *required*

The link, from `list_links`.

**foreground** `string` (default: #000000)

The colour of the code, as a hex colour such as `#1e1a4f`.

**background** `string` (default: #FFFFFF)

The background colour, as a hex colour.

**logo\_url** `string`

An image URL to show in the middle of the code. Leave it out for no logo.

## Page details

### get\_page\_metadata

Reads a web page's title, description and preview image, the same way CutMe Short does for link previews. Useful for naming a link or writing about it.

**Permission:** View links · **Try:** *"What's the title and description of [https://acme.com/blog/launch](https://acme.com/blog/launch)?"*

**url** `string` *required*

The page, for example `https://example.com`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.