replayWebhookEvent

Send the stored payload of a webhook event to the current target of the webhook again, for example after a failed run; returns the new webhook event that the replay created.

Arguments

  • inputReplayWebhookEventInput!required

  • input.projectReferenceString

  • input.idID!required

    Webhook definition ID. Task and workflow targets accept a project-execution credential that carries native source authority from project.runs.write instead of project.agents.write. Agent targets require project.agents.write, plus project.conversations.write for conversation-backed targets.

  • input.webhookEventIdID!required

    Stored delivery to replay: a new webhook event is created from its payload and run through the webhook target. Task and workflow targets accept a project-execution credential that carries native source authority from project.runs.write instead of project.agents.write. Agent targets require project.agents.write, plus project.conversations.write for conversation-backed targets.

Responses

mutation ReplayWebhookEvent($input: ReplayWebhookEventInput!) {  replayWebhookEvent(input: $input) {    id    webhookId    projectId    conversationId    messageId    runId    canonicalRunId    latestEventId    status    duplicate    payload    errorCode    errorMessage    invokedBy    manualInvokedByUserId    receivedAt    completedAt  }}
{  "data": {    "replayWebhookEvent": {      "id": "string",      "webhookId": "string",      "projectId": "string",      "conversationId": "string",      "messageId": "string",      "runId": "string",      "canonicalRunId": "string",      "latestEventId": 0,      "status": "string",      "duplicate": false,      "payload": {},      "errorCode": "string",      "errorMessage": "string",      "invokedBy": "string",      "manualInvokedByUserId": "string",      "receivedAt": "string",      "completedAt": "string"    }  }}

The WebhookRunResult! in data.replayWebhookEvent.