> ## 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.

# Riinvio consegna webhook API

> Con Didit, reinvia una consegna webhook passata al tuo endpoint, firmata di nuovo, e ottieni il nuovo tentativo con lo stato HTTP restituito dal tuo endpoint.



Prompt API per il reinvio delle consegne alla destinazione webhook
        Copia il prompt negli appunti



      
      

\<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>



      
      

Incolla in

> [!WARNING]
>
> Ogni chiamata invia di nuovo il webhook. Rendi il tuo endpoint idempotente rispetto a `event_id` prima di reinviare in blocco, e reinvia solo le consegne il cui `response_status` è `null`, `400` o superiore.Un reinvio va all'URL usato dalla consegna originale. Se hai spostato la destinazione su un nuovo URL, le vecchie consegne puntano ancora a quello precedente. Trova le consegne da reinviare con [Elenca le consegne della destinazione webhook](https://docs.didit.me/it/management-api/webhook/list-deliveries.md) e consulta la [guida ai webhook](https://docs.didit.me/it/integration/webhooks.md) per la verifica della firma.


## OpenAPI

````yaml it/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 di verifica dell'identità. Autenticati con l'intestazione 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: Reinvia la consegna alla destinazione webhook
      description: >-
        Invia nuovamente una consegna precedente, ad esempio dopo che il tuo
        endpoint non era disponibile. Didit prende il payload memorizzato,
        imposta un nuovo `timestamp`, lo firma nuovamente con il
        `secret_shared_key` corrente della destinazione (`X-Signature`,
        `X-Signature-V2`, `X-Signature-Simple` e `X-Timestamp`) e lo invia
        tramite POST all'URL `request_url` della consegna, anche se l'URL della
        destinazione è cambiato nel frattempo o la destinazione è disabilitata.
        L'identificativo `event_id` e il resto del payload restano invariati,
        pertanto esegui la deduplicazione su `event_id`. La chiamata attende
        fino a 5 secondi il tuo endpoint e restituisce la nuova consegna con
        codice `200` indipendentemente da cosa abbia risposto il tuo endpoint:
        controlla `response_status`. Un nuovo invio non viene ritentato
        automaticamente, ogni chiamata esegue un nuovo invio e crea una nuova
        consegna, e la richiesta non ha corpo. Una chiave API con restrizioni
        d'ambito necessita di `webhooks: write` e `decisions: read`; una chiave
        limitata ad alcuni workflow o a sessioni approvate non può utilizzare
        questo endpoint.
      operationId: resend_webhook_destination_delivery
      parameters:
        - name: destination_uuid
          in: path
          required: true
          description: UUID della destinazione a cui è stata inviata la consegna.
          schema:
            type: string
            format: uuid
          example: 11111111-2222-3333-4444-555555555555
        - name: delivery_uuid
          in: path
          required: true
          description: >-
            UUID della consegna da reinviare: lo `uuid` di una voce restituita
            da `GET /v3/webhook/destinations/{destination_uuid}/deliveries/`.
          schema:
            type: string
            format: uuid
          example: 66666666-7777-8888-9999-000000000001
      responses:
        '200':
          description: >-
            La nuova consegna, già tentata. `response_status` è la risposta del
            tuo endpoint in questo tentativo (`504` timeout, `503` errore di
            connessione). La consegna originale rimane invariata.
          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: >-
            Impossibile firmare nuovamente la consegna salvata. Non viene
            inviato nulla.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Messaggio di errore di facile lettura.
                  code:
                    type: string
                    description: >-
                      Codice di errore stabile leggibile da macchina. Basa la
                      logica su questo, non su `detail`.
              examples:
                Unsignable delivery:
                  value:
                    detail: Invalid webhook data format
                    code: invalid_webhook_payload
        '401':
          description: >-
            La chiave API è scaduta: è stata creata con una data di scadenza
            ormai trascorsa. Anche una chiave errata o revocata riceve `401`;
            una chiave mancante riceve `403`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Messaggio di errore di facile lettura.
              examples:
                Expired key:
                  value:
                    detail: This API key has expired.
        '403':
          description: >-
            La richiesta non è consentita. Una chiave `x-api-key` mancante, non
            valida o revocata restituisce `You do not have permission to perform
            this action.` Una chiave con ambito senza l'accesso richiesto da
            questo endpoint restituisce un messaggio che indica l'accesso
            mancante, mentre una chiave utilizzata al di fuori della sua
            allowlist IP restituisce `This API key can't be used from this IP
            address.` Una chiave limitata ad alcuni workflow o a sessioni
            approvate restituisce `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: Messaggio di errore di facile lettura.
              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: >-
            La destinazione non esiste per l'applicazione o è stata eliminata,
            oppure la consegna non esiste, appartiene a un'altra destinazione o
            non è più disponibile.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Messaggio di errore di facile lettura.
              examples:
                Destination not found:
                  value:
                    detail: Webhook destination not found.
                Delivery not found:
                  value:
                    detail: Webhook delivery not found.
        '429':
          description: >-
            Limite di frequenza superato: più di 300 richieste di scrittura
            (POST, PATCH, PUT, DELETE) nella finestra corrente di un minuto per
            questa chiave API. Attendi `Retry-After` secondi prima di riprovare.
          headers:
            Retry-After:
              description: Secondi da attendere prima di effettuare un nuovo tentativo.
              schema:
                type: integer
                minimum: 1
                example: 30
            X-RateLimit-Limit:
              description: Richieste consentite nell'intervallo di un minuto (300).
              schema:
                type: integer
                example: 300
            X-RateLimit-Remaining:
              description: Richieste rimanenti nell'intervallo corrente.
              schema:
                type: integer
                example: 0
            X-RateLimit-Reset:
              description: Ora Unix (secondi) in cui la finestra corrente si azzera.
              schema:
                type: integer
                example: 1792056120
            X-RateLimit-Scope:
              description: Nome del budget superato.
              schema:
                type: string
                example: generic-write
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Messaggio di errore di facile lettura.
              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: >-
        Un tentativo di consegna a una destinazione webhook, con le intestazioni
        e il corpo esatti della richiesta inviati da 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 consegna, per le chiamate per i dettagli e per il nuovo invio.
        session_id:
          type: string
          format: uuid
          nullable: true
          description: >-
            Sessione di verifica dell'utente a cui si riferisce l'evento. `null`
            per eventi relativi a sessioni aziendali, utenti, aziende,
            transazioni, Travel Rule e workflow.
        request_url:
          type: string
          format: uri
          nullable: true
          description: >-
            URL a cui è stata inviata la consegna: l'URL della destinazione al
            momento della generazione dell'evento.
        response_status:
          type: integer
          nullable: true
          description: >-
            Stato HTTP restituito dal tuo endpoint. `null` finché la consegna è
            in coda e non è ancora stata tentata. Quando non è stata ricevuta
            alcuna risposta HTTP, Didit registra un proprio stato: `504` se il
            tuo endpoint non risponde entro 5 secondi, `503` in caso di errore
            di connessione, `400` se l'URL viene rifiutato perché non sicuro (ad
            esempio un indirizzo privato o interno) e `404` per qualsiasi altro
            errore della richiesta. Un codice `400` o superiore è considerato
            una consegna non riuscita.
        response_time_ms:
          type: integer
          nullable: true
          minimum: 0
          description: >-
            Tempo impiegato dal tentativo, in millisecondi. `null` mentre la
            consegna è in coda.
        status:
          type: string
          nullable: true
          description: >-
            Stato segnalato dall'evento al momento della generazione: lo stato
            della sessione per gli eventi di sessione (ad esempio `Approved` o
            `In Review`), lo stato della persona o dell'azienda per gli eventi
            utente e aziendali, e lo stato della transazione per gli eventi di
            transazione. `null` per gli eventi che non contengono alcuno stato.
        webhook_type:
          $ref: '#/components/schemas/WebhookEvent'
        created_at:
          type: string
          format: date-time
          description: Data e ora di creazione della consegna.
        request_header:
          type: string
          description: >-
            Testo JSON (una stringa) delle intestazioni della richiesta inviate
            da Didit: `Content-Type`, `X-Signature`, `X-Signature-V2`,
            `X-Signature-Simple`, `X-Timestamp` e `User-Agent`. Analizzalo con
            un parser JSON. Contiene le firme, mai il segreto di firma.
        request_body:
          type: string
          description: >-
            Testo JSON (una stringa) del payload esatto inviato da Didit, con
            chiavi ordinate, inclusi `event_id` e `timestamp`. Analizzalo con un
            parser JSON; vedi [Payload
            shape](https://docs.didit.me/it/integration/webhooks#struttura-del-payload).
            Per una chiave con ambito limitato senza `media: read`, gli URL dei
            file multimediali al suo interno sono `null`; senza `sessions:
            write`, i token di sessione e i link di verifica ospitati sono
            `null`. Un corpo modificato in questo modo non corrisponde più alle
            sue firme. Didit non registra il corpo della risposta restituito dal
            tuo endpoint.
    WebhookEvent:
      type: string
      description: >-
        Nome dell'evento webhook supportato. Usa queste stringhe esatte in
        `subscribed_events`; i valori non supportati vengono rifiutati.
      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: >-
        La chiave API della tua applicazione, da Developers -> API keys nella
        Business Console. La chiave primaria ha accesso completo. Una chiave con
        nome può avere un ambito definito: nessuno, lettura o scrittura per
        risorsa, limitata ad alcuni workflow o a sessioni approvate, a un elenco
        di indirizzi IP e a una data di scadenza. 401 indica che la chiave è
        errata, revocata o scaduta; 403 indica che non è stata inviata alcuna
        chiave, che la chiave non ha accesso a questa risorsa o azione, oppure
        che la richiesta proviene da un indirizzo non incluso nel suo elenco IP;
        404 su una route di sessione indica che la sessione non rientra nei
        workflow o negli stati previsti dalla chiave. Una chiave senza accesso
        ai media riceve gli URL di immagini, video e PDF come null, e una chiave
        senza permessi di scrittura sulle sessioni riceve link e token di
        sessione come null. Consulta https://docs.didit.me/console/api-keys.

````

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