Get current step state
GET/api/v1/:environment/sessions/:sessionId/step
Returns the current step state for a running session. Returns { stepType: "START", data: {} } when the workflow is running but no step is currently waiting for input. Returns { stepType: "END", actions: [] } when the workflow has ended (status COMPLETED, ERROR, ABORTED, or EXPIRED). Returns 400 if the session has not started yet (status CREATED).
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Current step state
Bad Request
Unauthorized - Invalid or missing Bearer token
Forbidden - Token does not have required permissions
Session not found
Internal server error