Workflows
Get a workflow template version by ID
Returns the full immutable snapshot of a specific version, including all fields captured at the time of the save (name, description, status, resourceTypes, resourceParams, tags, contentType, content, isContentValid, contentParams) plus the version-level metadata (isActive, secretsChanged, createdAt, createdBy*). Secret content parameter values are never returned — defaultValue is always null for parameters with isSecret = true; use hasDefaultValue = true to detect that a stored secret exists.
get/v1/workflow-templates/{id}/versions/{versionId}
Request
- Base URLhttps://api.emma.ms/external
- AuthHTTP bearer
Path parameters
idinteger required
ID of the workflow template
versionIdinteger required
ID of the workflow template version
Response
Successful operation
Example response
{
"id": 123,
"name": "v1",
"createdAt": "2026-11-26T14:54:11",
"createdById": 543,
"createdByName": "Automation User",
"tagsRestorable": true,
"sequenceNumber": 7,
"restoredFrom": 123,
"restoredFromName": "v11",
"snapshot": {
"name": "Deploy MongoDB",
"description": "Deploy MongoDB from a shell script.",
"status": "PUBLISHED",
"resourceTypes": [
"COMPUTE"
],
"resourceParams": [
{
"name": "minCpuCores",
"value": "4"
}
],
"tags": [
{
"tagId": "123",
"key": "environment",
"value": "production"
}
],
"contentType": "Shell",
"content": "echo Hello, World!",
"isContentValid": true,
"contentParams": [
{
"name": "command1",
"defaultValue": "echo Hello, World!",
"mandatory": true,
"description": "Database password used by the deployment script.",
"hasDefaultValue": true,
"vaultVersion": 1
}
],
"contentExecutionTimeout": 10
}
}Changes
No recorded changes to this operation across all 1 revision of this API.