Get package workflow info
const url = 'https://example.com/api/workflow/example/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/workflow/example/example \ --header 'Authorization: Bearer <token>'Retrieves the current workflow state for a package
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Repository CACHE_ROOT
Package name
Responses
Section titled “Responses”Workflow info retrieved successfully
object
object
Name of the workflow definition
External workflow engine instance ID
Current step in the workflow
Current workflow status
URL for the next action in external engine
Unix timestamp when workflow started
Unix timestamp when workflow completed
object
User’s username/login
User’s display name
User’s email address
Additional metadata from external engine
object
Ordered list of workflow steps
object
Step key
Display label
Actions allowed from this step
Security group IDs whose members can be assigned to this step
History of workflow actions
object
Unix timestamp in milliseconds
The action that occurred
The step before this action (null for start)
The step after this action
object
User’s username/login
User’s display name
User’s email address
Optional comment for this action
External system reference ID
Example
{ "workflowInfo": { "workflowName": "content-approval", "workflowInstanceId": "wf-123", "currentStep": "review", "status": "active", "nextActionUrl": "https://engine/api/tasks/123/complete", "startedAt": 1706025600000, "completedAt": 1706112000000, "assignee": { "userName": "user@example.com", "displayName": "John Doe", "email": "user@example.com" }, "steps": [], "history": [] }}Internal server error
object
Indicates an error occurred
Error message describing what went wrong
Example
{ "error": true, "message": "Item not found"}