Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

application/json

The resource to share and, for a smart link, the contact.

relateable_type
string

The kind of resource: medium, product, page, promotion, library, enrollmentpack, mysite or site. Case-insensitive.

Example:

"site"

relateable_id
integer

The resource's ID. Not used for mysite.

Example:

4821

medium_id
string

Shorthand for relateable_type=medium with this ID.

Example:

"55210"

product_id
string

Shorthand for relateable_type=product with this ID.

Example:

"30117"

contact_id
integer

A contact to make a smart link for. Omit it for a general link.

Example:

90117

sample
boolean

Whether the link activates sample pricing. Ignored for a site.

Example:

false

redirect
string

Accepted and ignored.

Response

The share link.

A share link.

id
integer
required

The share's ID.

The tracked link to hand out.

token
string
required

The link's token.

relateable_id
integer | null

The shared resource's ID.

relateable_type
string | null

The shared resource's type, such as Medium or MemberSite.

views
integer | null

Visits through the link.

sample
boolean | null

Whether the link activates sample pricing.

user_id
integer

The sharer's user ID.

contact_id
integer | null

The smart link's contact, or null for a general link.

redirect
string | null

Where the link sends a visitor now, with its tracking parameters, or null when the resource has no destination.