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 Stack,Anthropic Claude,Per-Class Confidence Filter,Color Visualization,Single-Label Classification Model,Perspective Correction,Corner Visualization,Roboflow Custom Metadata,Halo Visualization,Dynamic Zone,Qwen-VL,Keypoint Detection Model,JSON Parser,Email Notification,Object Detection Model,Background Color Visualization,Email Notification,Text Display,Image Preprocessing,Template Matching,Relative Static Crop,Florence-2 Model,VLM As Detector,OpenAI,OCR Model,Blur Visualization,Depth Estimation,Instance Segmentation Model,Stability AI Outpainting,Anthropic Claude,PLC EthernetIP,Buffer,Webhook Sink,Byte Tracker,Contrast Equalization,Mask Edge Snap,Moondream2,VLM As Detector,Line Counter,Google Gemini,Triangle Visualization,Overlap Filter,Time in Zone,Inner Workflow,First Non Empty Or Default,Detections Stabilizer,Keypoint Detection Model,VLM As Classifier,Roboflow Asset Library Attributes,Polygon Zone Visualization,Google Gemma API,Contrast Enhancement,Image Threshold,Line Counter Visualization,Distance Measurement,Camera Calibration,Detection Offset,ByteTrack Tracker,Expression,S3 Sink,Microsoft SQL Server Sink,Twilio SMS Notification,Detections Combine,Morphological Transformation,Camera Focus,Size Measurement,Delta Filter,PTZ Tracking (ONVIF),Stability AI Inpainting,Classification Label Visualization,Stitch OCR Detections,Event Writer,Byte Tracker,Switch Case,Dominant Color,Rate Limiter,Mask Visualization,Reference Path Visualization,Identify Outliers,Image Slicer,Byte Tracker,OPC UA Writer Sink,Dot Visualization,Identify Changes,Cache Set,Dynamic Crop,Path Deviation,Llama 3.2 Vision,BoT-SORT Tracker,Gaze Detection,Segment Anything 2 Model,OpenAI-Compatible LLM,Single-Label Classification Model,Overlap Analysis,QR Code Detection,Qwen3.5,Object Detection Model,Qwen 3.6 API,Detections Consensus,Multi-Label Classification Model,OpenAI,SAM 3,PLC Reader,Image Convert Grayscale,Instance Segmentation Model,Roboflow Dataset Upload,SAM 3,Detections Classes Replacement,Roboflow Dataset Upload,PLC Writer,Instance Segmentation Model,Qwen 3.5 API,OC-SORT Tracker,Seg Preview,VLM As Classifier,Line Counter,MoonshotAI Kimi,Stability AI Image Generation,Path Deviation,Trace Visualization,Qwen2.5-VL,Icon Visualization,SIFT Comparison,Morphological Transformation,SmolVLM2,LMM For Classification,Clip Comparison,Environment Secrets Store,Detections Merge,Halo Visualization,Data Aggregator,Google Gemma,Ellipse Visualization,Twilio SMS/MMS Notification,Polygon Visualization,Crop Visualization,Absolute Static Crop,Model Monitoring Inference Aggregator,OpenRouter,OpenAI,PLC ModbusTCP,Motion Detection,Heatmap Visualization,Detections Filter,Perception Encoder Embedding Model,Dimension Collapse,Barcode Detection,YOLO-World Model,Google Gemini,Clip Comparison,Google Gemini,Background Subtraction,CSV Formatter,Keypoint Visualization,Stitch Images,Florence-2 Model,Current Time,Detections List Roll-Up,OpenAI,Qwen3-VL,Slack Notification,CLIP Embedding Model,SIFT,Local File Sink,Multi-Label Classification Model,Cosine Similarity,Image Contours,Pixel Color Count,GLM-OCR,Image Slicer,Time in Zone,Semantic Segmentation Model,Stitch OCR Detections,Semantic Segmentation Model,Multi-Label Classification Model,QR Code Generator,Detection Event Log,Detections Transformation,Mask Area Measurement,Google Vision OCR,Image Blur,Property Definition,Roboflow Vision Events,Bounding Rectangle,SAM2 Video Tracker,Qwen3.5-VL,Grid Visualization,Llama 3.2 Vision,Velocity,Label Visualization,SIFT Comparison,Detections Stitch,Circle Visualization,SAM3 Video Tracker,Camera Focus,MoonshotAI Kimi,CogVLM,SAM 3 Interactive,Bounding Box Visualization,LMM,Continue If,Roboflow Visual Search,EasyOCR,Cache Get,Instance Segmentation Model,Keypoint Detection Model,Pixelate Visualization,SORT Tracker,Track Class Lock,Anthropic Claude,Object Detection Model,Time in Zone,MQTT Writer,Polygon Visualization,SAM 3,Model Comparison Visualization,Single-Label Classification Model - outputs:
Line Counter,MoonshotAI Kimi,Stability AI Image Generation,Trace Visualization,Path Deviation,Image Stack,Anthropic Claude,Icon Visualization,SIFT Comparison,Morphological Transformation,Color Visualization,LMM For Classification,Single-Label Classification Model,Perspective Correction,Corner Visualization,Roboflow Custom Metadata,Halo Visualization,Dynamic Zone,Keypoint Detection Model,Qwen-VL,Email Notification,Halo Visualization,Object Detection Model,Google Gemma,Background Color Visualization,Ellipse Visualization,Email Notification,Twilio SMS/MMS Notification,Text Display,Polygon Visualization,Crop Visualization,Image Preprocessing,Template Matching,Model Monitoring Inference Aggregator,OpenRouter,OpenAI,Florence-2 Model,Motion Detection,Heatmap Visualization,OpenAI,Perception Encoder Embedding Model,Blur Visualization,Depth Estimation,Instance Segmentation Model,Stability AI Outpainting,Anthropic Claude,YOLO-World Model,Google Gemini,Clip Comparison,Google Gemini,Keypoint Visualization,Webhook Sink,Florence-2 Model,Current Time,Contrast Equalization,OpenAI,Moondream2,Line Counter,Google Gemini,Slack Notification,Triangle Visualization,Time in Zone,CLIP Embedding Model,Multi-Label Classification Model,Local File Sink,Keypoint Detection Model,Pixel Color Count,GLM-OCR,Roboflow Asset Library Attributes,Polygon Zone Visualization,Time in Zone,Google Gemma API,Stitch OCR Detections,Line Counter Visualization,Semantic Segmentation Model,Distance Measurement,Image Threshold,Multi-Label Classification Model,Camera Calibration,QR Code Generator,S3 Sink,Microsoft SQL Server Sink,Twilio SMS Notification,Google Vision OCR,Image Blur,Morphological Transformation,Roboflow Vision Events,Size Measurement,PTZ Tracking (ONVIF),Stability AI Inpainting,Classification Label Visualization,Stitch OCR Detections,Event Writer,Qwen3.5-VL,Mask Visualization,Llama 3.2 Vision,Reference Path Visualization,Label Visualization,OPC UA Writer Sink,Dot Visualization,Cache Set,Dynamic Crop,Detections Stitch,Circle Visualization,Llama 3.2 Vision,BoT-SORT Tracker,Path Deviation,SAM3 Video Tracker,Gaze Detection,Segment Anything 2 Model,OpenAI-Compatible LLM,MoonshotAI Kimi,Single-Label Classification Model,CogVLM,Object Detection Model,SAM 3 Interactive,Qwen 3.6 API,Detections Consensus,Bounding Box Visualization,Multi-Label Classification Model,LMM,OpenAI,SAM 3,Instance Segmentation Model,Roboflow Visual Search,Roboflow Dataset Upload,SAM 3,Cache Get,Instance Segmentation Model,Detections Classes Replacement,Pixelate Visualization,Keypoint Detection Model,Instance Segmentation Model,Roboflow Dataset Upload,PLC Writer,Qwen 3.5 API,Object Detection Model,Anthropic Claude,Time in Zone,MQTT Writer,Polygon Visualization,SAM 3,Model Comparison Visualization,Single-Label Classification Model,Seg Preview
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[boolean,float,float_zero_to_one,top_class,integer,string,roboflow_model_id,roboflow_project,roboflow_api_key,list_of_values]): Request query parameters.headers(Union[boolean,float,float_zero_to_one,top_class,integer,string,roboflow_model_id,roboflow_project,roboflow_api_key]): 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"
}