Approvals / TypeScript SDK

Get approval detail

Drill into one approval item. Returns the artifact (draft copy, reply text, or push event), prospect context, and the agent handoff trail that produced it.

pipeline.getApprovalDetailDeterministic operation

Parameters

workspaceIdOptional · string
Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
idRequired · string
The approval item id (UUID of the ai_message_drafts row for drafts and replies).
kindRequired · string
See the input schema for this field.draft · reply · push_event
Request example
await pipeline.getApprovalDetail({
  "id": "00000000-0000-4000-8000-000000000000",
  "kind": "draft"
})
Full input schema
Input schema
{
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "description": "Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client."
    },
    "id": {
      "type": "string",
      "description": "The approval item id (UUID of the ai_message_drafts row for drafts and replies)."
    },
    "kind": {
      "type": "string",
      "enum": [
        "draft",
        "reply",
        "push_event"
      ]
    }
  },
  "required": [
    "id",
    "kind"
  ]
}
See this operation inCLI MCP REST API
TypeScript SDK | Pipeline v2 preview