Skip to content

Video link for a recipient (or the generic one if the tracking mode does not allow identifying them)

POST
/v1/videos/{video}/links
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).

video
required
string
/^vid_[a-z0-9]{26}$/

Example

vid_01hx0000000000000000000000
Media typeapplication/json
object
contactId

Recipient. Without it (or in anonymous/no-tracking mode) the link is generic

string
/^con_[a-z0-9]{26}$/

Example

con_01hx0000000000000000000000
campaignId

Campaign: the tracking mode comes from it

string
/^cmp_[a-z0-9]{26}$/

Example

cmp_01hx0000000000000000000000

Existing link

Media typeapplication/json
object
id
required
string
url
required

Link for the email. It is a recipient secret: do not publish it

string
mode
required
string
Allowed values: full anonymous none
identified
required

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

boolean
contactId
required
string
nullable
campaignId
required
string
nullable
created
required
boolean

Example

{
"mode": "full"
}

New link

Media typeapplication/json
object
id
required
string
url
required

Link for the email. It is a recipient secret: do not publish it

string
mode
required
string
Allowed values: full anonymous none
identified
required

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

boolean
contactId
required
string
nullable
campaignId
required
string
nullable
created
required
boolean

Example

{
"mode": "full"
}

Invalid data

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

No session, expired session, or invalid, expired or revoked API key

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Does not exist or is not visible to you

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Conflict

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Internal error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Service temporarily unavailable

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}