Webhook Sink¶
Class: WebhookSinkBlockV1
Source: inference.core.workflows.core_steps.sinks.webhook.v1.WebhookSinkBlockV1
The Webhook Sink block enables sending a data from Workflow into external APIs by sending HTTP requests containing workflow results.
How This Block Works¶
It supports multiple HTTP methods (GET, POST, PUT) and can be configured to send:
-
JSON payloads
-
query parameters
-
multipart-encoded files
This block is designed to provide flexibility for integrating workflows with remote systems for data exchange, notifications, or other integrations.
Setting Query Parameters¶
You can easily set query parameters for your request:
query_parameters = {
"api_key": "$inputs.api_key",
}
will send request into the following URL: https://your-host/some/resource?api_key=<API_KEY_VALUE>
Setting headers¶
Setting headers is as easy as setting query parameters:
headers = {
"api_key": "$inputs.api_key",
}
Sending JSON payloads¶
You can set the body of your message to be JSON document that you construct specifying json_payload
and json_payload_operations properties. json_payload works similarly to query_parameters and
headers, but you can optionally apply UQL operations on top of JSON body elements.
Let's assume that you want to send number of bounding boxes predicted by object detection model
in body field named detections_number, then you need to specify configuration similar to the
following:
json_payload = {
"detections_number": "$steps.model.predictions",
}
json_payload_operations = {
"detections_number": [{"type": "SequenceLength"}]
}
Multipart-Encoded Files in POST requests¶
Your endpoint may also accept multipart requests. You can form them in a way which is similar to
JSON payloads - setting multi_part_encoded_files and multi_part_encoded_files_operations.
Let's assume you want to send the image in the request, then your configuration may be the following:
multi_part_encoded_files = {
"image": "$inputs.image",
}
multi_part_encoded_files_operations = {
"image": [{"type": "ConvertImageToJPEG"}]
}
Cooldown¶
The block accepts cooldown_seconds (which defaults to 5 seconds) to prevent unintended bursts of
notifications. Please adjust it according to your needs, setting 0 indicate no cooldown.
During cooldown period, consecutive runs of the step will cause throttling_status output to be set True
and no notification will be sent.
Cooldown limitations
Current implementation of cooldown is limited to video processing - using this block in context of a
Workflow that is run behind HTTP service (Roboflow Hosted API, Dedicated Deployment or self-hosted
inference server) will have no effect for processing HTTP requests.
Async execution¶
Configure the fire_and_forget property. Set it to True if you want the request to be sent in the background,
allowing the Workflow to proceed without waiting on data to be sent. In this case you will not be able to rely on
error_status output which will always be set to False, so we recommend setting the fire_and_forget=False for
debugging purposes.
Disabling notifications based on runtime parameter¶
Sometimes it would be convenient to manually disable the Webhook sink block. This is possible
setting disable_sink flag to hold reference to Workflow input. with such setup, caller would be
able to disable the sink when needed sending agreed input parameter.
Common Use Cases¶
- Use this block to [purpose based on block type]
Connecting to Other Blocks¶
The outputs from this block can be connected to other blocks in your workflow.
Type identifier¶
Use the following identifier in step "type" field: roboflow_core/webhook_sink@v1to add the block as
as step in your workflow.
Properties¶
| Name | Type | Description | Refs |
|---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | ❌ |
url |
str |
URL of the resource to make request. | ✅ |
method |
str |
HTTP method to be used. | ❌ |
query_parameters |
Dict[str, Union[List[Union[bool, float, int, str]], bool, float, int, str]] |
Request query parameters. | ✅ |
headers |
Dict[str, Union[bool, float, int, str]] |
Request headers. | ✅ |
json_payload |
Dict[str, Union[Dict[Any, Any], List[Any], bool, float, int, str]] |
Fields to put into JSON payload. | ✅ |
json_payload_operations |
Dict[str, List[Union[ClassificationPropertyExtract, ConvertDictionaryToJSON, ConvertImageToBase64, ConvertImageToJPEG, DetectionsFilter, DetectionsOffset, DetectionsPropertyExtract, DetectionsRename, DetectionsSelection, DetectionsShift, DetectionsToDictionary, Divide, ExtractDetectionProperty, ExtractFrameMetadata, ExtractImageProperty, LookupTable, Multiply, NumberRound, NumericSequenceAggregate, PickDetectionsByParentClass, RandomNumber, SequenceAggregate, SequenceApply, SequenceElementsCount, SequenceLength, SequenceMap, SortDetections, StringMatches, StringSubSequence, StringToLowerCase, StringToUpperCase, TimestampToISOFormat, ToBoolean, ToNumber, ToString]]] |
UQL definitions of operations to be performed on defined data w.r.t. each value of json_payload parameter. |
❌ |
multi_part_encoded_files |
Dict[str, Union[Dict[Any, Any], List[Any], bool, float, int, str]] |
Data to POST as Multipart-Encoded File. | ✅ |
multi_part_encoded_files_operations |
Dict[str, List[Union[ClassificationPropertyExtract, ConvertDictionaryToJSON, ConvertImageToBase64, ConvertImageToJPEG, DetectionsFilter, DetectionsOffset, DetectionsPropertyExtract, DetectionsRename, DetectionsSelection, DetectionsShift, DetectionsToDictionary, Divide, ExtractDetectionProperty, ExtractFrameMetadata, ExtractImageProperty, LookupTable, Multiply, NumberRound, NumericSequenceAggregate, PickDetectionsByParentClass, RandomNumber, SequenceAggregate, SequenceApply, SequenceElementsCount, SequenceLength, SequenceMap, SortDetections, StringMatches, StringSubSequence, StringToLowerCase, StringToUpperCase, TimestampToISOFormat, ToBoolean, ToNumber, ToString]]] |
UQL definitions of operations to be performed on defined data w.r.t. each value of multi_part_encoded_files parameter. |
❌ |
form_data |
Dict[str, Union[Dict[Any, Any], List[Any], bool, float, int, str]] |
Fields to put into form-data. | ✅ |
form_data_operations |
Dict[str, List[Union[ClassificationPropertyExtract, ConvertDictionaryToJSON, ConvertImageToBase64, ConvertImageToJPEG, DetectionsFilter, DetectionsOffset, DetectionsPropertyExtract, DetectionsRename, DetectionsSelection, DetectionsShift, DetectionsToDictionary, Divide, ExtractDetectionProperty, ExtractFrameMetadata, ExtractImageProperty, LookupTable, Multiply, NumberRound, NumericSequenceAggregate, PickDetectionsByParentClass, RandomNumber, SequenceAggregate, SequenceApply, SequenceElementsCount, SequenceLength, SequenceMap, SortDetections, StringMatches, StringSubSequence, StringToLowerCase, StringToUpperCase, TimestampToISOFormat, ToBoolean, ToNumber, ToString]]] |
UQL definitions of operations to be performed on defined data w.r.t. each value of form_data parameter. |
❌ |
request_timeout |
int |
Number of seconds to wait for remote API response. | ✅ |
fire_and_forget |
bool |
Boolean flag to run the block asynchronously (True) for faster workflows or synchronously (False) for debugging and error handling.. | ✅ |
disable_sink |
bool |
Boolean flag to disable block execution.. | ✅ |
cooldown_seconds |
int |
Number of seconds to wait until follow-up notification can be sent.. | ✅ |
The Refs column marks possibility to parametrise the property with dynamic values available
in workflow runtime. See Bindings for more info.
Runtime compatibility¶
-
requires_internet— air-gapped / offline deployments - This block depends on a service that is not reachable from fully offline / air-gapped deployments.
-
soft— runtimehosted_serverless,dedicated_deployment; executionremote - Cooldown / rate-limit timer is stored in process memory. With remote step execution on stateless or multi-replica HTTP runtimes each request gets a fresh worker, so cooldown does not throttle. Cooldown only behaves as documented with local step execution inside an InferencePipeline.
Available Connections¶
Compatible Blocks
Check what blocks you can connect to Webhook Sink in version v1.
- inputs:
Image Preprocessing,Detections Transformation,Object Detection Model,Time in Zone,Text Display,Template Matching,Image Threshold,Keypoint Detection Model,Time in Zone,OpenAI,Crop Visualization,Cosine Similarity,Florence-2 Model,Roboflow Dataset Upload,Qwen3.5-VL,Roboflow Vision Events,Polygon Zone Visualization,Qwen2.5-VL,Polygon Visualization,S3 Sink,Absolute Static Crop,QR Code Generator,SIFT Comparison,Cache Get,Stitch OCR Detections,OCR Model,Color Visualization,Gaze Detection,OpenAI-Compatible LLM,Line Counter Visualization,Image Blur,Stability AI Inpainting,Blur Visualization,SAM 3,Detection Offset,Anthropic Claude,MQTT Writer,Image Slicer,SAM 3,Detections Consensus,Detections Stitch,Google Gemma API,Ellipse Visualization,PLC ModbusTCP,Overlap Analysis,Rate Limiter,Image Stack,Google Gemini,Delta Filter,Cache Set,Keypoint Detection Model,Stitch OCR Detections,Camera Focus,CSV Formatter,Keypoint Detection Model,Perception Encoder Embedding Model,Image Convert Grayscale,Roboflow Asset Library Attributes,Seg Preview,Overlap Filter,Buffer,Multi-Label Classification Model,VLM As Classifier,Icon Visualization,Qwen 3.5 API,Triangle Visualization,Dominant Color,Instance Segmentation Model,Distance Measurement,Qwen3-VL,Background Color Visualization,Byte Tracker,Clip Comparison,Corner Visualization,Single-Label Classification Model,Image Slicer,Dynamic Crop,Detection Event Log,Stability AI Outpainting,VLM As Detector,Anthropic Claude,Clip Comparison,SORT Tracker,OpenAI,ByteTrack Tracker,Detections Combine,PTZ Tracking (ONVIF),Camera Calibration,Trace Visualization,Email Notification,Camera Focus,Background Subtraction,GLM-OCR,SAM2 Video Tracker,Qwen3.5,VLM As Detector,Llama 3.2 Vision,Property Definition,Stitch Images,Mask Visualization,Microsoft SQL Server Sink,Data Aggregator,Detections Classes Replacement,Morphological Transformation,Email Notification,VLM As Classifier,Halo Visualization,Morphological Transformation,Pixel Color Count,BoT-SORT Tracker,Model Monitoring Inference Aggregator,Pixelate Visualization,Qwen-VL,CogVLM,SAM 3,Dot Visualization,Google Vision OCR,PLC EthernetIP,Detections List Roll-Up,Detections Merge,Dimension Collapse,Mask Edge Snap,SIFT Comparison,Twilio SMS/MMS Notification,Contrast Enhancement,Per-Class Confidence Filter,Single-Label Classification Model,Dynamic Zone,Detections Filter,Byte Tracker,Roboflow Dataset Upload,Roboflow Custom Metadata,Bounding Rectangle,Environment Secrets Store,LMM For Classification,Detections Stabilizer,Object Detection Model,Path Deviation,Current Time,Perspective Correction,Keypoint Visualization,Byte Tracker,MoonshotAI Kimi,Google Gemini,Identify Changes,Depth Estimation,Object Detection Model,Slack Notification,Identify Outliers,Inner Workflow,Time in Zone,Bounding Box Visualization,Label Visualization,Size Measurement,Multi-Label Classification Model,OpenAI,SIFT,Anthropic Claude,OC-SORT Tracker,Moondream2,CLIP Embedding Model,Florence-2 Model,EasyOCR,YOLO-World Model,Segment Anything 2 Model,Twilio SMS Notification,Local File Sink,Single-Label Classification Model,Mask Area Measurement,Path Deviation,JSON Parser,OpenRouter,Instance Segmentation Model,OpenAI,MoonshotAI Kimi,Continue If,Google Gemini,Grid Visualization,Semantic Segmentation Model,Reference Path Visualization,SmolVLM2,Line Counter,First Non Empty Or Default,Halo Visualization,Webhook Sink,Instance Segmentation Model,Relative Static Crop,Multi-Label Classification Model,Expression,Llama 3.2 Vision,Barcode Detection,Velocity,Motion Detection,Google Gemma,Model Comparison Visualization,OPC UA Writer Sink,Line Counter,QR Code Detection,Circle Visualization,LMM,Event Writer,Instance Segmentation Model,Contrast Equalization,Heatmap Visualization,Qwen 3.6 API,Image Contours,Classification Label Visualization,Stability AI Image Generation,Semantic Segmentation Model,Polygon Visualization - outputs:
Detections Classes Replacement,Morphological Transformation,Image Preprocessing,Email Notification,Halo Visualization,Morphological Transformation,Object Detection Model,Time in Zone,BoT-SORT Tracker,Text Display,Template Matching,Pixel Color Count,Image Threshold,Model Monitoring Inference Aggregator,Pixelate Visualization,Keypoint Detection Model,Time in Zone,Qwen-VL,OpenAI,CogVLM,Crop Visualization,SAM 3,Dot Visualization,Google Vision OCR,Florence-2 Model,Roboflow Dataset Upload,Qwen3.5-VL,Roboflow Vision Events,Polygon Zone Visualization,Polygon Visualization,S3 Sink,Twilio SMS/MMS Notification,QR Code Generator,SIFT Comparison,Single-Label Classification Model,Cache Get,Stitch OCR Detections,Dynamic Zone,Color Visualization,Roboflow Dataset Upload,Gaze Detection,Roboflow Custom Metadata,LMM For Classification,OpenAI-Compatible LLM,Line Counter Visualization,Stability AI Inpainting,Image Blur,Object Detection Model,Blur Visualization,Path Deviation,Current Time,SAM 3,Perspective Correction,Keypoint Visualization,Anthropic Claude,MQTT Writer,MoonshotAI Kimi,Google Gemini,SAM 3,Depth Estimation,Detections Consensus,Ellipse Visualization,Detections Stitch,Google Gemma API,Object Detection Model,Slack Notification,Time in Zone,Image Stack,Google Gemini,Cache Set,Bounding Box Visualization,Label Visualization,Keypoint Detection Model,Stitch OCR Detections,Size Measurement,Keypoint Detection Model,Multi-Label Classification Model,OpenAI,Perception Encoder Embedding Model,Anthropic Claude,Roboflow Asset Library Attributes,Moondream2,CLIP Embedding Model,Florence-2 Model,Seg Preview,YOLO-World Model,Multi-Label Classification Model,Segment Anything 2 Model,Twilio SMS Notification,Local File Sink,Single-Label Classification Model,Triangle Visualization,Icon Visualization,Qwen 3.5 API,Path Deviation,OpenRouter,Instance Segmentation Model,Distance Measurement,Instance Segmentation Model,OpenAI,Background Color Visualization,MoonshotAI Kimi,Google Gemini,Corner Visualization,Reference Path Visualization,Single-Label Classification Model,Line Counter,Halo Visualization,Webhook Sink,Dynamic Crop,Instance Segmentation Model,Stability AI Outpainting,Anthropic Claude,Multi-Label Classification Model,Clip Comparison,OpenAI,Llama 3.2 Vision,Motion Detection,PTZ Tracking (ONVIF),Camera Calibration,Model Comparison Visualization,Trace Visualization,Google Gemma,OPC UA Writer Sink,Line Counter,Circle Visualization,Email Notification,LMM,Event Writer,Instance Segmentation Model,Heatmap Visualization,Contrast Equalization,GLM-OCR,Qwen 3.6 API,Classification Label Visualization,Llama 3.2 Vision,Mask Visualization,Microsoft SQL Server Sink,Stability AI Image Generation,Semantic Segmentation Model,Polygon Visualization
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Webhook Sink in version v1 has.
Bindings
-
input
url(string): URL of the resource to make request.query_parameters(Union[roboflow_project,roboflow_api_key,integer,float_zero_to_one,top_class,boolean,roboflow_model_id,string,list_of_values,float]): Request query parameters.headers(Union[roboflow_project,roboflow_api_key,integer,float_zero_to_one,top_class,boolean,roboflow_model_id,string,float]): Request headers.json_payload(*): Fields to put into JSON payload.multi_part_encoded_files(*): Data to POST as Multipart-Encoded File.form_data(*): Fields to put into form-data.request_timeout(integer): Number of seconds to wait for remote API response.fire_and_forget(boolean): Boolean flag to run the block asynchronously (True) for faster workflows or synchronously (False) for debugging and error handling..disable_sink(boolean): Boolean flag to disable block execution..cooldown_seconds(integer): Number of seconds to wait until follow-up notification can be sent..
-
output
Example JSON definition of step Webhook Sink in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/webhook_sink@v1",
"url": "<block_does_not_provide_example>",
"method": "<block_does_not_provide_example>",
"query_parameters": {
"api_key": "$inputs.api_key"
},
"headers": {
"api_key": "$inputs.api_key"
},
"json_payload": {
"field": "$steps.model.predictions"
},
"json_payload_operations": {
"predictions": [
{
"property_name": "class_name",
"type": "DetectionsPropertyExtract"
}
]
},
"multi_part_encoded_files": {
"image": "$steps.visualization.image"
},
"multi_part_encoded_files_operations": {
"predictions": [
{
"property_name": "class_name",
"type": "DetectionsPropertyExtract"
}
]
},
"form_data": {
"field": "$inputs.field_value"
},
"form_data_operations": {
"predictions": [
{
"property_name": "class_name",
"type": "DetectionsPropertyExtract"
}
]
},
"request_timeout": "$inputs.request_timeout",
"fire_and_forget": "$inputs.fire_and_forget",
"disable_sink": false,
"cooldown_seconds": "$inputs.cooldown_seconds"
}