Skip to main content
POST
cURL

Shorten a URL

Generates shortened links per affiliate channel. Requires scope shortener:write.

HTTP Request

Request Body

url is only allowed when type is Custom. For Coupon and Offer, featureId is required.

Example — Brand page

Response

Array of channel objects, each with id, name, availableChannel, shortUrls, and optional message when link generation is blocked.

Errors

Authorizations

x-api-key
string
header
required

Body

application/json
organizationId
string
required

ID of the organization to generate the URL for

type
enum<string>
required

Link type. Coupon and Offer require featureId. Custom requires url (HTTPS).

Available options:
Coupon,
BrandPage,
Offer,
Custom,
Home
featureId
string

Campaign operation ID. Required when type is Coupon or Offer.

url
string

HTTPS URL. Required only when type is Custom.

mdasc
string

Optional tracking identifier appended as ?mdasc= on generated links.

Response

Shorten URL response

id
string
name
string
availableChannel
object
shortUrls
string[]
message
string