Redeliver a failed webhook log

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://openapi.logto.io/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Logto API references MCP server": {
    "url": "https://openapi.logto.io/mcp"
  }
}

Close
POST /api/hooks/{id}/recent-logs/{logId}/redeliver

Re-enqueue a permanently failed webhook delivery log entry for the specified hook. Reconstructs the request body from the stored log payload while keeping the original deliveryId, signs it with the hook's current signing key, and sends it to the hook's current endpoint. Because the request body is read from the sanitized audit log, fields redacted when the log was recorded (such as masked secrets or passwords replaced with ****** and omitted script keys) are sent in their sanitized form. Delivery results are written to a new log entry linked to the original via redeliveredFrom.

Path parameters

  • id string Required

    The unique identifier of the hook.

  • logId string Required

    The unique identifier of the log.

Responses

  • 202 application/json

    The redelivery has been accepted and queued.

    Hide response attribute Show response attribute object
    • logId string Required

      The ID of the log entry that will record this redelivery once its first attempt finishes.

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    Hook or log entry not found, or the log entry does not belong to the specified hook.

  • 409

    A delivery or redelivery for the same deliveryId is already queued or in progress.

  • 422

    The hook is disabled, the log entry is not a permanently failed webhook delivery, or its stored request payload cannot be redelivered.

  • 429

    The waiting delivery queue cap for this hook or tenant has been reached.

POST /api/hooks/{id}/recent-logs/{logId}/redeliver
curl \
 --request POST 'https://[tenant_id].logto.app/api/hooks/{id}/recent-logs/{logId}/redeliver' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (202)
{
  "logId": "string"
}