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’).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”projectId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
One of:
object
destinationUrl
required
Normalized to a valid absolute URL.
string
name
string | null
campaignId
required
string
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
object
campaignId
required
string
adPlatformConfigId
string | null
utmSource
string | null
utmMedium
string | null
utmCampaign
string | null
domainId
string | null
links
required
Array<object>
object
destinationUrl
required
string
name
string | null
utmContent
string | null
Examplegenerated
{ "destinationUrl": "example", "name": "example", "campaignId": "example", "adPlatformConfigId": "example", "utmSource": "example", "utmMedium": "example", "utmCampaign": "example", "utmTerm": "example", "utmContent": "example", "platformConfig": {}, "expiresAt": "example", "domainId": "example"}Responses
Section titled “Responses”{ 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
{ "error": "example", "issues": [ {} ], "details": [ {} ]}