Skip to content

Make the video private to a single recipient (or open it again with null)

PUT
/v1/videos/{video}/privacy
curl --request PUT \
--url https://api.replifier.com/v1/videos/vid_01hx0000000000000000000000/privacy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "contactId": "con_01hx0000000000000000000000" }'

Setting a recipient revokes the active links that are not theirs. A private video plays only with that contact’s link and only if it has full tracking.

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

Example

vid_01hx0000000000000000000000
Media typeapplication/json
object
contactId
required

The only recipient who can watch it; null opens it again to any link

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

Example

con_01hx0000000000000000000000

Privacy

Media typeapplication/json
object
id
required
string
privateContactId
required
string
nullable
revokedLinks
required
integer

Example generated

{
"id": "example",
"privateContactId": "example",
"revokedLinks": 1
}

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"
}
}

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"
}
}