Webhooks
In this guide, we will look at how to consume webhooks. With webhooks, your app can know when something happens in Cake Slice, such as File Mover finishing a transfer.
Consuming webhooks
When your app receives a webhook request from Cake Slice, check the type
attribute to see what
event caused it. The details attribute will contain a summary of the request.
Event types
- Name
- file_mover.success
- Type
- Description
A File Mover request finished successfully
File Mover success payload
{
"type": "file_mover.success",
"details": {
"bytes_transferred": 227843
}
}
- Name
- file_mover.failed
- Type
- Description
A File Mover request errored out.
File Mover failure payload
{
"type": "file_mover.failed",
"details": {
"error_message": "source URL returned a 404 not found"
}
}