Skip to main content

Get Workflow Size

Available since:
  • v5.4.2 and later

Endpoint: GET /api/workflow/{workflowId}/size

Returns the current serialized payload size of a workflow execution. Use this to identify workflows approaching the size limit before they get truncated.

Path parameters

ParameterDescriptionTypeRequired/ Optional
workflowIdThe execution ID of the workflow to retrieve the size for.stringRequired.

Response

Returns the size details of the specified workflow execution.

ParameterDescription
sizeBytesCurrent serialized size of the workflow, including all tasks, in bytes.
limitBytesConfigured maximum workflow size in bytes.
ratioThe ratio of current size to the limit. A value of 0 indicates no limit is configured.

Examples

Get workflow size

Request

curl -X 'GET' \
'https://<YOUR-SERVER-URL>/api/workflow/93116479-7459-11f1-94df-8e188c22e250/size' \
-H 'accept: */*' \
-H 'X-Authorization: <TOKEN>'

Response

{
"sizeBytes": 3881,
"limitBytes": 20971520,
"ratio": 0.00018506050109863282
}