Approvals / TypeScript SDK

Resolve reply draft

Approve or reject one pending Reply Agent draft by id. Approval marks it sendable for the existing sender pipeline.

pipeline.resolveReplyDraftDeterministic operation

Parameters

workspaceIdOptional · string
Optional with API key auth - inferred from the key.
draftIdRequired · string
See the input schema for this field.
approvalStatusRequired · string
See the input schema for this field.approved · rejected
editedMessageOptional · string
See the input schema for this field.
rejectionReasonOptional · string
See the input schema for this field.
Request example
await pipeline.resolveReplyDraft({
  "draftId": "00000000-0000-4000-8000-000000000000",
  "approvalStatus": "approved"
})
Full input schema
Input schema
{
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "description": "Optional with API key auth - inferred from the key."
    },
    "draftId": {
      "type": "string"
    },
    "approvalStatus": {
      "type": "string",
      "enum": [
        "approved",
        "rejected"
      ]
    },
    "editedMessage": {
      "type": "string"
    },
    "rejectionReason": {
      "type": "string"
    }
  },
  "required": [
    "draftId",
    "approvalStatus"
  ]
}
See this operation inCLI MCP REST API
TypeScript SDK | Pipeline v2 preview