Skip to content

Create a short link (single) or a batch (EDITOR)

Body containing a links array is treated as a batch create; otherwise a single link is created. Also reachable by the internal remote-MCP server as create_short_link (requireProjectRoleOrMcpScope EDITOR / ‘mcp:links_write’).

projectId
required
string
Media typeapplication/json
One of:
object
destinationUrl
required

Normalized to a valid absolute URL.

string
>= 1 characters
name
string | null
campaignId
required
string
>= 1 characters
adPlatformConfigId
string | null
utmSource
string | null
utmMedium
string | null
utmCampaign
string | null
utmTerm
string | null
utmContent
string | null
platformConfig
object
key
additional properties
any
expiresAt

ISO date/time or null.

string | null
domainId

Null/omitted = platform default domain.

string | null
Examplegenerated
json
{
"destinationUrl": "example",
"name": "example",
"campaignId": "example",
"adPlatformConfigId": "example",
"utmSource": "example",
"utmMedium": "example",
"utmCampaign": "example",
"utmTerm": "example",
"utmContent": "example",
"platformConfig": {},
"expiresAt": "example",
"domainId": "example"
}

{ link } for single, or { links, count } for batch.

Media typeapplication/json
object
key
additional properties
any

Invalid config / create failed

Media typeapplication/json

Validation error envelope (Zod). issues/details present on schema failures.

object
error
required
string
issues
Array<object>
object
key
additional properties
any
details
Array<object>
object
key
additional properties
any
Examplegenerated
json
{
"error": "example",
"issues": [
{}
],
"details": [
{}
]
}