Shares webhook
Shares webhooks are triggered when a member of your organization clicks Generate share link in the Smartlook player.
Setting up Shares webhooks
To set up a Shares webhook:
POST /api/v1/webhooks
BODY: {
"url": "https://some-url.com",
"type": "shares",
"secret": "some-secret" //optional
}
An example webhook payload:
{
"type": "shares.share" | "shares.unshare",
"timestamp": Date,
"project": {
"id": String,
"name": String
},
"organization": {
"id": String,
"name": String
},
"data": {
"session": {
"id": String,
"url": String
}
}
}
Updated over 1 year ago