Video link for a recipient (or the generic one if the tracking mode does not allow identifying them)
const url = 'https://api.replifier.com/v1/videos/vid_01hx0000000000000000000000/links';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"contactId":"con_01hx0000000000000000000000","campaignId":"cmp_01hx0000000000000000000000"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.replifier.com/v1/videos/vid_01hx0000000000000000000000/links \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "contactId": "con_01hx0000000000000000000000", "campaignId": "cmp_01hx0000000000000000000000" }'In full mode and with full tracking consent, the link belongs to the contact and tells who opened it. In anonymous (set by the campaign or because the contact did not accept tracking) and in none there is NO per-recipient link: the campaign’s generic link is returned (identified: false). Requesting it again returns the same link. A private video only gives a link to its recipient and only in full mode (409 video_private_other_contact or video_private_needs_tracking).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
vid_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”object
Recipient. Without it (or in anonymous/no-tracking mode) the link is generic
Example
con_01hx0000000000000000000000Campaign: the tracking mode comes from it
Example
cmp_01hx0000000000000000000000Responses
Section titled “Responses”Existing link
object
Link for the email. It is a recipient secret: do not publish it
true only if the link belongs to a person. In anonymous or no-tracking mode the link is generic and does not tell who opened it
Example
{ "mode": "full"}New link
object
Link for the email. It is a recipient secret: do not publish it
true only if the link belongs to a person. In anonymous or no-tracking mode the link is generic and does not tell who opened it
Example
{ "mode": "full"}Invalid data
object
object
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
object
object
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
object
object
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
object
object
Example
{ "error": { "code": "not_found" }}Conflict
object
object
Example
{ "error": { "code": "not_found" }}Internal error
object
object
Example
{ "error": { "code": "not_found" }}Service temporarily unavailable
object
object
Example
{ "error": { "code": "not_found" }}