Workflows
Get a workflow template by ID
This method retrieves a workflow template by its ID. A workflow template is a predefined blueprint for a workflow that includes a set of tasks and their dependencies. It serves as a starting point for creating workflows, allowing users to quickly set up and execute common processes without having to define each task from scratch.
get/v1/workflow-templates/{id}
Request
- Base URLhttps://api.emma.ms/external
- AuthHTTP bearer
Path parameters
idinteger required
ID of the workflow template
Response
Successful operation
Example response
{
"id": 123,
"name": "Sample Workflow Template",
"description": "This is a sample workflow template for demonstration purposes.",
"createdAt": "2026-06-26T21:44:05.345Z",
"createdByName": "Automation User",
"createdById": 123,
"modifiedAt": "2026-07-07T07:38:16.285Z",
"modifiedByName": "Automation User",
"modifiedById": 123,
"status": "PUBLISHED",
"resourceTypes": [
"COMPUTE"
],
"resourceType": "COMPUTE",
"activeVersionId": 123,
"activeVersionName": "v1",
"resourceParams": [
{
"name": "minCpuCores",
"value": "4"
}
],
"tags": [
{
"key": "env",
"value": "dev"
}
],
"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.