Instances

Get current steps for an instance

Returns all current step states for a workflow instance (without history). This endpoint queries the database directly for optimal performance.

get/v1/workflows/instances/{id}/steps/current

Request

  • Base URL
    https://api.paymongo.com
  • URL
    https://api.paymongo.com/v1/workflows/instances/{id}/steps/current
  • Auth
    none required

Path parameters

idstring required

Instance ID

Headers

Organization-Idstring required

Organization ID

Response

Current steps

Example response

{
  "data": [
    {
      "definition_path": "2.steps.0",
      "error": "a workflow step failed",
      "error_code": "step_execution_failed",
      "error_detail": "a workflow step failed",
      "started_at": "2026-01-15 10:30:00+00:00",
      "status": "completed",
      "step_name": "validate_amount",
      "terminated_at": "2026-01-15 10:31:00+00:00"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.