sdkDeterministic
List pending approvals
pipeline.listPendingApprovals
List human-input items awaiting approval across the workspace: draft sends, drafted replies, push events, and Agent Teams human-input cards. Returns four arrays: drafts, replies, pushEvents, humanInputs.
Parameters
workspaceId
string
Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
Example
TypeScripttypescript
await pipeline.listPendingApprovals({})
Response
Success response schemajson schema
{"type": "object","properties": {"drafts": {"type": "array","items": {"type": "object"}},"replies": {"type": "array","items": {"type": "object"}},"pushEvents": {"type": "array","items": {"type": "object"}},"humanInputs": {"type": "array","items": {"type": "object"}}},"required": ["drafts","replies","pushEvents","humanInputs"]}
Exceptions
- PipelineError
- Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.