> ## Documentation Index
> Fetch the complete documentation index at: https://docs.didit.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Повторная отправка webhook-доставки через API

> Повторно отправьте прошлую доставку webhook на endpoint с новой подписью и получите новую попытку с HTTP-статусом ответа. Didit.



Промпт для API повторной отправки доставки на адрес назначения webhook
        Скопировать промпт в буфер обмена



      
      

\<pre>

\`Resend a past Didit webhook delivery to my endpoint through the Management API.

Endpoint:
POST https://verification.didit.me/v3/webhook/destinations/{destination_uuid}/deliveries/{delivery_uuid}/resend/

Authentication:
Use the x-api-key header with my Didit API key. A scoped API key needs webhooks: write and decisions: read. A key limited to some workflows or to approved sessions cannot use this endpoint.

Goal:
\- Recover webhooks my endpoint missed (for example during an outage) by sending them again once the endpoint is fixed.

Path parameters:
\- destination_uuid: the destination uuid from GET /v3/webhook/destinations/.
\- delivery_uuid: the uuid of the delivery to resend, from GET /v3/webhook/destinations/{destination_uuid}/deliveries/.

Behavior:
\- No request body.
\- Didit takes the stored payload, sets a fresh timestamp, signs it again with the destination's current secret_shared_key (X-Signature, X-Signature-V2, X-Signature-Simple and X-Timestamp) and POSTs it to the URL the original delivery went to (request_url), even if the destination URL changed since or the destination is disabled.
\- event_id and the rest of the payload are unchanged, so deduplicate on event_id in my endpoint.
\- The call waits for my endpoint (up to 5 seconds) and returns 200 with the new delivery whatever my endpoint answered. Check response_status in the response: 2xx means accepted, 504 a timeout, 503 a connection failure.
\- One attempt only: a resend is not retried automatically. Every call sends again and creates a new delivery with its own uuid; the original delivery is unchanged.
\- The response is redacted like GET delivery for scoped keys (media URLs, session tokens and hosted links as null); my endpoint still receives the full payload.

Example call:
curl -X POST "https://verification.didit.me/v3/webhook/destinations/{destination_uuid}/deliveries/{delivery_uuid}/resend/" \
-H "x-api-key: YOUR_API_KEY"

Failure modes:
\- 400: { "detail": "Invalid webhook data format", "code": "invalid_webhook_payload" } when the stored delivery cannot be signed again. Nothing is sent.
\- 401: { "detail": "This API key has expired." }
\- 403: { "detail": "You do not have permission to perform this action." }, { "detail": "This API key has no write access to webhooks." }, { "detail": "This API key has no read access to decisions." }, or the limited-key message.
\- 404: { "detail": "Webhook destination not found." } or { "detail": "Webhook delivery not found." }
\- 429: more than 300 write requests per minute with this key; wait for Retry-After.

Side effects:
\- My endpoint receives the webhook again, and a new delivery appears in the destination's deliveries and analytics.

For the full integration shape, see /integration/integration-prompt.`

\</pre>



      
      

Вставьте в

> [!WARNING]
>
> Каждый вызов доставляет webhook повторно. Сделайте endpoint идемпотентным по `event_id` перед массовой повторной отправкой и повторно отправляйте только те доставки, у которых `response_status` равен `null` или `400` и выше.Повторная отправка уходит на URL, который использовала исходная доставка. Если вы перенесли адрес назначения на новый URL, старые доставки по-прежнему указывают на прежний. Найти доставки для повторной отправки можно с помощью [List Webhook Destination Deliveries](https://docs.didit.me/ru/management-api/webhook/list-deliveries.md), а о проверке подписи читайте в [руководстве по webhook](https://docs.didit.me/ru/integration/webhooks.md).


## OpenAPI

````yaml ru/openapi-25.json POST /v3/webhook/destinations/{destination_uuid}/deliveries/{delivery_uuid}/resend/
openapi: 3.0.0
info:
  version: 3.0.0
  title: Didit Verification API
  description: >-
    API верификации личности. Аутентификация выполняется с помощью заголовка
    x-api-key.
servers:
  - url: https://verification.didit.me
security: []
tags: []
paths:
  /v3/webhook/destinations/{destination_uuid}/deliveries/{delivery_uuid}/resend/:
    post:
      tags:
        - Webhook
      summary: Повторить доставку в адрес назначения webhook
      description: >-
        Отправьте прошлую доставку повторно, например, если ваш endpoint был
        недоступен. Didit берет сохраненный payload, устанавливает актуальный
        `timestamp`, снова подписывает его текущим `secret_shared_key` адреса
        назначения (`X-Signature`, `X-Signature-V2`, `X-Signature-Simple` и
        `X-Timestamp`) и отправляет методом POST на `request_url` доставки, даже
        если URL адреса назначения с тех пор изменился или адрес назначения
        отключен. `event_id` и остальная часть payload остаются без изменений,
        поэтому выполняйте дедупликацию по `event_id`. Вызов ожидает ответа
        вашего endpoint до 5 секунд и возвращает новую доставку с кодом `200`,
        независимо от того, что ответил ваш endpoint: проверяйте
        `response_status`. Повторная отправка не выполняется автоматически
        повторно: каждый вызов отправляет данные заново и создает новую
        доставку, а сам запрос не имеет тела. API-ключу с ограниченной областью
        действия требуются разрешения `webhooks: write` и `decisions: read`;
        ключ, ограниченный определенными сценариями или одобренными сессиями, не
        может использовать этот endpoint.
      operationId: resend_webhook_destination_delivery
      parameters:
        - name: destination_uuid
          in: path
          required: true
          description: UUID адреса назначения webhook, на который была отправлена доставка.
          schema:
            type: string
            format: uuid
          example: 11111111-2222-3333-4444-555555555555
        - name: delivery_uuid
          in: path
          required: true
          description: >-
            UUID доставки для повторной отправки: `uuid` записи, возвращаемой
            методом `GET
            /v3/webhook/destinations/{destination_uuid}/deliveries/`.
          schema:
            type: string
            format: uuid
          example: 66666666-7777-8888-9999-000000000001
      responses:
        '200':
          description: >-
            Новая доставка, попытка которой уже была совершена. Поле
            `response_status` содержит то, что ваш endpoint вернул на этот раз
            (`504` тайм-аут, `503` сбой подключения). Исходная доставка остаётся
            без изменений.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookDestinationDeliveryDetail'
              examples:
                Accepted on resend:
                  value:
                    uuid: 66666666-7777-8888-9999-000000000004
                    session_id: 22222222-3333-4444-5555-666666666666
                    request_url: https://yourapp.com/webhooks/didit
                    response_status: 200
                    response_time_ms: 151
                    status: In Progress
                    webhook_type: status.updated
                    created_at: '2026-10-16T14:05:42.330981Z'
                    request_header: >-
                      {"Content-Type": "application/json", "X-Signature":
                      "b8eb1e376517ee0cad8ba98ff7f8fd35fc72eca231000963a96a335f82328835",
                      "X-Signature-V2":
                      "9efd2ce9ed1303e1d05273ef9608a59363ed9789a05253db4748b3e8e50cb109",
                      "X-Signature-Simple":
                      "bf3a9dc04b2c20ab539203b0cd5cca2a10f630bf62d8feb6d68d82af80f64774",
                      "X-Timestamp": "1792159542", "User-Agent":
                      "DiditWebhook/2.0 +https://didit.me"}
                    request_body: >-
                      {"application_id":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee","created_at":1792056057,"environment":"live","event_id":"33333333-4444-5555-6666-777777777777","sandbox_scenario":null,"session_id":"22222222-3333-4444-5555-666666666666","status":"In
                      Progress","timestamp":1792159542,"vendor_data":"user-123","webhook_type":"status.updated","workflow_id":"44444444-5555-6666-7777-888888888888","workflow_version":3}
        '400':
          description: >-
            Сохранённую доставку не удалось подписать повторно. Ничего не
            отправлено.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Понятное сообщение об ошибке.
                  code:
                    type: string
                    description: >-
                      Постоянный машиночитаемый код ошибки. Делайте ветвление по
                      нему, а не по `detail`.
              examples:
                Unsignable delivery:
                  value:
                    detail: Invalid webhook data format
                    code: invalid_webhook_payload
        '401':
          description: >-
            Срок действия API-ключа истёк: он был создан со сроком действия,
            который уже прошёл. Неверный или отозванный ключ также возвращает
            `401`; отсутствующий ключ возвращает `403`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Понятное сообщение об ошибке.
              examples:
                Expired key:
                  value:
                    detail: This API key has expired.
        '403':
          description: >-
            Запрос не разрешён. Отсутствующий, недействительный или отозванный
            `x-api-key` возвращает `You do not have permission to perform this
            action.` Ключ с ограниченной областью действия без требуемых для
            этого endpoint прав возвращает сообщение с указанием недостающих
            разрешений, а ключ, используемый не из разрешённого списка
            IP-адресов, возвращает `This API key can't be used from this IP
            address.` Ключ, ограниченный определёнными сценариями или
            одобренными сессиями, возвращает `This API key only reaches sessions
            inside its workflow or status limits, so it can't use this
            endpoint.`
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Понятное сообщение об ошибке.
              examples:
                Missing or invalid key:
                  value:
                    detail: You do not have permission to perform this action.
                Scoped key without webhooks write:
                  value:
                    detail: This API key has no write access to webhooks.
                Scoped key without decisions read:
                  value:
                    detail: This API key has no read access to decisions.
                Key limited to workflows or approved sessions:
                  value:
                    detail: >-
                      This API key only reaches sessions inside its workflow or
                      status limits, so it can't use this endpoint.
                Outside the IP allowlist:
                  value:
                    detail: This API key can't be used from this IP address.
        '404':
          description: >-
            Адрес назначения не существует для данного приложения или был
            удалён, либо доставка не существует, принадлежит другому адресу
            назначения или больше недоступна.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Понятное сообщение об ошибке.
              examples:
                Destination not found:
                  value:
                    detail: Webhook destination not found.
                Delivery not found:
                  value:
                    detail: Webhook delivery not found.
        '429':
          description: >-
            Лимит запросов превышен: более 300 запросов на запись (POST, PATCH,
            PUT, DELETE) в текущем минутном окне для этого API-ключа. Подождите
            `Retry-After` секунд перед повторной попыткой.
          headers:
            Retry-After:
              description: Количество секунд ожидания перед повторной попыткой.
              schema:
                type: integer
                minimum: 1
                example: 30
            X-RateLimit-Limit:
              description: Количество разрешённых запросов в минутном окне (300).
              schema:
                type: integer
                example: 300
            X-RateLimit-Remaining:
              description: Количество оставшихся запросов в текущем окне.
              schema:
                type: integer
                example: 0
            X-RateLimit-Reset:
              description: Unix-время (в секундах), когда текущее окно сбрасывается.
              schema:
                type: integer
                example: 1792056120
            X-RateLimit-Scope:
              description: Название бюджета, который был превышен.
              schema:
                type: string
                example: generic-write
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Понятное сообщение об ошибке.
              examples:
                Throttled:
                  value:
                    detail: >-
                      Write request rate limit exceeded. You can make up to 300
                      requests per minute.
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X POST
            'https://verification.didit.me/v3/webhook/destinations/11111111-2222-3333-4444-555555555555/deliveries/66666666-7777-8888-9999-000000000001/resend/'
            \
              -H 'x-api-key: YOUR_API_KEY'
        - lang: python
          label: Python
          source: |-
            from didit import Didit

            # Reads DIDIT_API_KEY.
            client = Didit()

            result = client.webhooks.destinations.resend_delivery(
                "11111111-2222-3333-4444-555555555555",
                "66666666-7777-8888-9999-000000000001",
            )
            print(result)
        - lang: javascript
          label: Node.js
          source: |-
            import Didit from "@didit-protocol/sdk-node";

            // Reads DIDIT_API_KEY.
            const didit = new Didit();

            const result = await didit.webhooks.destinations.resendDelivery(
              "11111111-2222-3333-4444-555555555555",
              "66666666-7777-8888-9999-000000000001",
            );
            console.log(result);
        - lang: go
          label: Go
          source: "ctx := context.Background()\n// Reads DIDIT_API_KEY.\nclient := didit.NewClient()\n\nresult, err := client.Webhooks.Destinations.ResendDelivery(ctx, \"11111111-2222-3333-4444-555555555555\", \"66666666-7777-8888-9999-000000000001\")\nif err != nil {\n\tlog.Fatal(err)\n}\nfmt.Printf(\"%+v\\n\", result)"
        - lang: java
          label: Java
          source: >-
            import me.didit.Didit;


            // Reads DIDIT_API_KEY.

            Didit client = new Didit();


            var result =
            client.webhooks().destinations().resendDelivery("11111111-2222-3333-4444-555555555555",
            "66666666-7777-8888-9999-000000000001");

            System.out.println(result);
        - lang: php
          label: PHP
          source: >-
            <?php


            require 'vendor/autoload.php';


            use Didit\DiditClient;


            // Reads DIDIT_API_KEY.

            $didit = new DiditClient();


            $result =
            $didit->webhooks->destinations->resendDelivery('11111111-2222-3333-4444-555555555555',
            '66666666-7777-8888-9999-000000000001');

            print_r($result->toArray());
        - lang: ruby
          label: Ruby
          source: |-
            require "didit"

            # Reads DIDIT_API_KEY.
            didit = Didit::Client.new

            result = didit.webhooks.destinations.resend_delivery(
              "11111111-2222-3333-4444-555555555555",
              "66666666-7777-8888-9999-000000000001"
            )
            puts result.to_h
        - lang: csharp
          label: .NET
          source: >-
            using System;

            using System.Text.Json;

            using Didit;


            // Reads DIDIT_API_KEY.

            using var client = new DiditClient();


            var result = await
            client.Webhooks.Destinations.ResendDeliveryAsync("11111111-2222-3333-4444-555555555555",
            "66666666-7777-8888-9999-000000000001");

            Console.WriteLine(JsonSerializer.Serialize(result));
components:
  schemas:
    WebhookDestinationDeliveryDetail:
      type: object
      description: >-
        Одна попытка доставки на адрес назначения webhook с точными заголовками
        и телом запроса, отправленными Didit.
      required:
        - uuid
        - session_id
        - request_url
        - response_status
        - response_time_ms
        - status
        - webhook_type
        - created_at
        - request_header
        - request_body
      properties:
        uuid:
          type: string
          format: uuid
          description: ID доставки для запросов сведений и повторной отправки.
        session_id:
          type: string
          format: uuid
          nullable: true
          description: >-
            Сессия проверки пользователей, к которой относится событие. `null`
            для событий бизнес-сессий, пользователей, компаний, транзакций,
            Travel Rule и сценариев.
        request_url:
          type: string
          format: uri
          nullable: true
          description: >-
            URL, на который была отправлена доставка: URL адреса назначения на
            момент генерации события.
        response_status:
          type: integer
          nullable: true
          description: >-
            HTTP-статус, возвращённый вашим endpoint. `null`, пока доставка
            находится в очереди и попытка ещё не совершена. Если HTTP-ответ не
            был получен, Didit фиксирует собственный статус: `504`, если ваш
            endpoint не ответил в течение 5 секунд, `503` при ошибке
            подключения, `400`, если URL был отклонён как небезопасный
            (например, приватный или внутренний адрес), и `404` при любой другой
            ошибке запроса. Статус `400` или выше считается неудачной доставкой.
        response_time_ms:
          type: integer
          nullable: true
          minimum: 0
          description: >-
            Время, затраченное на попытку, в миллисекундах. `null`, пока
            доставка находится в очереди.
        status:
          type: string
          nullable: true
          description: >-
            Статус, о котором сообщило событие при создании: статус сессии для
            событий сессии (например, `Approved` или `In Review`), статус
            физического лица или компании для событий пользователей и компаний,
            а также статус транзакции для событий транзакций. Значение `null`
            для событий без статуса.
        webhook_type:
          $ref: '#/components/schemas/WebhookEvent'
        created_at:
          type: string
          format: date-time
          description: Когда была создана доставка.
        request_header:
          type: string
          description: >-
            JSON-текст (строка) заголовков запроса, отправленных Didit:
            `Content-Type`, `X-Signature`, `X-Signature-V2`,
            `X-Signature-Simple`, `X-Timestamp` и `User-Agent`. Разберите его с
            помощью JSON-парсера. Он содержит подписи и никогда не содержит
            секрет подписи.
        request_body:
          type: string
          description: >-
            JSON-текст (строка) точного payload, отправленного Didit, с
            отсортированными ключами, включая `event_id` и `timestamp`.
            Разберите его с помощью JSON-парсера; см. [Формат
            payload](https://docs.didit.me/ru/integration/webhooks#структура-payload).
            Для ключа с ограниченной областью действия без `media: read`
            URL-адреса медиафайлов внутри него имеют значение `null`; без
            `sessions: write` токены сессий и ссылки на размещённую страницу
            верификации имеют значение `null`. После такого изменения тела
            подписи больше ему не соответствуют. Didit не сохраняет тело ответа,
            возвращённое вашим endpoint.
    WebhookEvent:
      type: string
      description: >-
        Поддерживаемое имя события webhook. Используйте именно эти строки в
        `subscribed_events`; неподдерживаемые значения отклоняются.
      enum:
        - status.updated
        - data.updated
        - user.status.updated
        - user.data.updated
        - business.status.updated
        - business.data.updated
        - activity.created
        - transaction.created
        - transaction.status.updated
        - travel_rule.status.updated
        - workflow.compliance_changed
        - transaction_rule_suggestions.created
        - auth.signup
        - auth.login
        - auth.login_failed
        - auth.password_reset_requested
        - auth.password_reset_completed
        - auth.mfa_changed
        - auth.new_device
        - auth.account_locked
        - investigator.report.ready
        - investigator.decision.automated
        - investigator.decision.overridden
        - investigator.decision.contested
        - investigator.question.raised
        - investigator.automation.paused
        - investigator.rfi.answered
        - investigator.rfi.overdue
        - investigator.drift.detected
        - investigator.sla.breached
        - investigator.qa.failed
        - investigator.external.report.ready
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API-ключ вашего приложения из раздела «Разработчикам» -> «API-ключи» в
        Business Console. Основной ключ имеет полный доступ. Именованный ключ
        может иметь ограниченную область действия: без доступа, чтение или
        запись для каждого ресурса, ограничение определенными сценариями или
        одобренными сессиями, списком IP-адресов и сроком действия. 401
        означает, что ключ неверен, отозван или его срок действия истек; 403
        означает, что ключ не был передан, у ключа нет доступа к этому ресурсу
        или действию, либо запрос поступил с адреса вне его списка IP-адресов;
        404 на маршруте сессии означает, что сессия не входит в сценарии или
        статусы ключа. Ключ без доступа к медиа получает URL изображений, видео
        и PDF как null, а ключ без прав на запись сессий получает ссылки на
        сессии и токены как null. См. https://docs.didit.me/console/api-keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.