Add durable approval gates to any workflow step. Runs pause and wait — for minutes or days — until a human approves, rejects, or the timeout fires.
Trigger
API, dashboard, or webhook
Timeout
Configurable per gate
Escalation
Auto-reject on timeout
Audit trail
Full event history
Notifications
Webhook on state change
Concurrency
Multiple gates per workflow
strait.Step{
ID: "review",
Type: strait.StepTypeApproval,
DependsOn: []string{"charge-payment"},
Approval: &strait.ApprovalConfig{
Timeout: 24 * time.Hour,
OnTimeout: strait.ApprovalReject,
WebhookURL: "https://api.example.com/approvals",
},
}