Calling this endpoint allows you to create a new share link.

Response Data Fields

FieldDescription
person_id
(string)
The unique identifier of the customer.
code
(string)
The short, alpha-numeric share code assigned to the customer and content being shared. This becomes the slug of the share link.
label
(string)
The program label for targeting purposes (e.g., refer-a-friend).
link
(string)
The full share link.
key
(string)
A shareable key. This is useful when requesting a share link. If the customer makes a request for a key, where they already have a link, the same link is returned.
content
(object)
The content associated with this share link for content sharing purposes.
data
(object)
A map of custom data associated with the share link.

Error Responses

Error CodeMessage
400 Code Taken By PromotionThe code associated with this shareable is already used by a promotion link.
400 Invalid ProgramThe program is invalid.
400 Program Domain Not FoundThe program domain was not found.
400 Unknown ProgramThe provided program URL is not associated with an existing program.
403 Access DeniedThe access token provided is not permitted to access the specified resource.
403 Code Illegal CharacterThe code can only contain alphanumeric characters, dashes, and underscores.
403 Code Out Of RangeThe code length must be between 4 and 50 characters.
403 Code TakenThe code associated with this shareable has already been specified.
403 Content Description Length ExceededThe content description exceeded the maximum character length.
403 Content Image InvalidThe image URL provided is invalid.
402 Content URL BlockedThe content URL provided is blocked.
403 Content URL InvalidThe content URL provided is invalid.
403 Data Attribute Name InvalidA shareable data attribute name is invalid.
403 Data Attribute Name Length Out Of RangeA shareable data attribute name length exceeds 200 characters.
403 Data Attribute Value InvalidA shareable data value is invalid
403 Data Attribute Value Length Out Of RangeA shareable data attribute value length exceeds 2,000 characters.
403 Key TakenThe key associated with this shareable has already been specified.
403 Label Is MissingThe label is missing from this request.
403 Label Name Contains Illegal CharacterThe label name can only contain alphanumeric characters, dashes, and underscores.
403 Label Name Length Out Of RangeThe label name length must be between 2 and 50 characters.
403 Missing Access TokenNo access token was provided with this request.
403 Person Not FoundThe person associated with the person ID provided was not found.
403 Person Not RewardableThe person does not have an email address.
403 Shareable Not FoundThe shareable associated with the code provided was not found.
Language
Credentials
Header