Push Webhook to Scispot
curl --request POST \
--url https://events.scispot.io/webhook/custom \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"event": "labsheet.row.updated",
"labsheet": "Sample Manager",
"id": "SMPL000001",
"sampleStatus": "Completed"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
event: 'labsheet.row.updated',
labsheet: 'Sample Manager',
id: 'SMPL000001',
sampleStatus: 'Completed'
})
};
fetch('https://events.scispot.io/webhook/custom', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://events.scispot.io/webhook/custom"
payload = {
"event": "labsheet.row.updated",
"labsheet": "Sample Manager",
"id": "SMPL000001",
"sampleStatus": "Completed"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true
}{
"success": false,
"message": "Invalid Authentication Token"
}{
"success": false,
"message": "Missing Authentication Token"
}{
"success": false,
"message": "Operation failed"
}Webhook API
Push Webhook to Scispot
Push a JSON payload to Scispot. Depending on the “Scispot-Event-Type”, automatic actions can be performed in Scispot. The “Scispot-Event-Types” are configured from the Scispot platform GLUE application. The webhooks can be configured from the GLUE page, to accept the specified event type and trigger the appropriate automation. The entire JSON body is persisted as webhook payload and may trigger automations based on the optional Scispot-Event-Type header. In API-v2 mode, authentication is required.
POST
https://events.scispot.io
/
webhook
/
custom
Push Webhook to Scispot
curl --request POST \
--url https://events.scispot.io/webhook/custom \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"event": "labsheet.row.updated",
"labsheet": "Sample Manager",
"id": "SMPL000001",
"sampleStatus": "Completed"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
event: 'labsheet.row.updated',
labsheet: 'Sample Manager',
id: 'SMPL000001',
sampleStatus: 'Completed'
})
};
fetch('https://events.scispot.io/webhook/custom', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://events.scispot.io/webhook/custom"
payload = {
"event": "labsheet.row.updated",
"labsheet": "Sample Manager",
"id": "SMPL000001",
"sampleStatus": "Completed"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true
}{
"success": false,
"message": "Invalid Authentication Token"
}{
"success": false,
"message": "Missing Authentication Token"
}{
"success": false,
"message": "Operation failed"
}Authorizations
Personal access token from Scispot Account → Personal Tokens
Headers
Tag describing the type of event that triggered the webhook. The "Scispot-Event-Types" are configured from the Scispot platform GLUE application.
Body
application/json
The body is of type object.
⌘I
