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

# API para reenviar la entrega del webhook de sesión

> Didit reenvía un webhook de sesión registrado a la misma URL con firmas nuevas y devuelve la nueva entrega con la respuesta de tu endpoint.



Prompt de la API para reenviar la entrega del webhook de una sesión
        Copiar el prompt al portapapeles



      
      

\<pre>

\`Resend a webhook delivery of a Didit verification session through the API.

Endpoint:
POST https://verification.didit.me/v3/session/{session_id}/webhook/{webhook_uuid}/resend
(no trailing slash, no request body)

Authentication:
Send my Didit API key in the x-api-key header. A scoped key needs webhooks: write and decisions: read.

Goal:
\- Replay a webhook my endpoint missed or rejected, after I fixed the endpoint.

Behavior:
\- {webhook_uuid} is the uuid of an entry from GET /v3/session/{session_id}/webhooks/, and it must belong to the session in the path.
\- Didit sends the recorded payload again to the URL the delivery was first sent to. The payload keeps its event_id; Didit refreshes the timestamp field, the X-Timestamp header and the signatures, using the destination's current signing secret (the application-level secret for a delivery sent to the legacy webhook_url).
\- Synchronous: Didit waits up to 5 seconds for my endpoint, records the attempt as a new delivery and returns it. The original delivery is not changed.
\- The call returns 200 even when my endpoint answered with an error: read response_status in the returned delivery.
\- A failed resend is not retried automatically. Every call sends one more request to my endpoint, so my handler must be idempotent on event_id.

Example call:
curl -X POST "https://verification.didit.me/v3/session/11111111-2222-3333-4444-555555555555/webhook/9f8e7d6c-5b4a-4321-8fed-cba987654321/resend" \
-H "x-api-key: YOUR_API_KEY"

What to read from the response:
\- uuid: the new delivery id.
\- response_status: what my endpoint answered this time (504 timeout, 503 connection failure, 400 URL refused as unsafe).
\- request_header and request_body: the headers and body actually sent.

Failure modes:
\- 400 with code webhook_url_missing: the delivery has no recorded URL.
\- 400 with code webhook_resend_error: the recorded payload could not be re-signed or sent.
\- 401: the API key has expired.
\- 403: missing key (a wrong, revoked or expired key gets 401), a key of another application, a scoped key without the permissions above, or a request from outside the key's IP allowlist.
\- 404: the session does not exist, was deleted, or is outside a scoped key's limits, or the delivery does not belong to this session ({ "detail": "Webhook log not found" }).
\- 429: more than 300 writes per minute for this API key; honor Retry-After.

Side effects: sends one HTTP request to my webhook endpoint and adds one delivery to the session's webhook log.

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

\</pre>



      
      

Pegar en

> [!NOTE]
>
> El reenvío va a la URL guardada en la entrega, aunque hayas cambiado la URL del destino desde entonces. Como el payload conserva su `event_id`, un receptor que [elimina duplicados por `event_id`](https://docs.didit.me/es/integration/webhooks#envoltorio) trata el reenvío como el evento que ya conoce.Busca la entrega que quieres reenviar con [Listar las entregas de webhook de una sesión](https://docs.didit.me/es/management-api/sessions/list-webhooks.md).


## OpenAPI

````yaml es/openapi-25.json POST /v3/session/{sessionId}/webhook/{webhook_uuid}/resend
openapi: 3.0.0
info:
  version: 3.0.0
  title: Didit Verification API
  description: API de verificación de identidad. Autentícate con el encabezado x-api-key.
servers:
  - url: https://verification.didit.me
security: []
tags: []
paths:
  /v3/session/{sessionId}/webhook/{webhook_uuid}/resend:
    post:
      tags:
        - Sessions
      summary: Reenviar la entrega del webhook de la sesión
      description: >-
        Vuelve a enviar un webhook de sesión registrado a la URL a la que se
        envió originalmente, con el mismo payload y `event_id`, y con un
        `timestamp`, un encabezado `X-Timestamp` y unas firmas nuevos. Didit lo
        firma con el secreto actual del destino al que pertenece la entrega (o
        con el secreto a nivel de aplicación si la entrega fue a la URL de
        webhook heredada), espera hasta 5 segundos a tu endpoint, registra el
        intento como una nueva entrega y la devuelve con `200` sea cual sea la
        respuesta de tu endpoint: consulta `response_status`. Un reenvío no se
        reintenta automáticamente y cada llamada vuelve a enviar, así que haz
        que tu endpoint sea idempotente respecto a `event_id`. La ruta no lleva
        barra final y la solicitud no tiene cuerpo. Una clave de API con alcance
        limitado necesita `webhooks: write` y `decisions: read`.
      operationId: post_v3_session_webhook_resend
      parameters:
        - name: sessionId
          in: path
          required: true
          description: >-
            UUID de la sesión de verificación, de usuario (KYC) o de empresa
            (KYB): el `session_id` que devuelve `POST /v3/session/`. El servidor
            lo resuelve en ambos tipos de sesión.


            **Debe ser un UUID válido.** La ruta solo coincide con UUID bien
            formados, por lo que el enrutador de URL rechaza un valor mal
            formado antes de que se ejecute el código de la aplicación, y la
            respuesta es una página **HTML** `404` en lugar del envoltorio JSON
            `{"detail": ...}` que se muestra a continuación.
          schema:
            type: string
            format: uuid
          example: 22222222-3333-4444-5555-666666666666
        - name: webhook_uuid
          in: path
          required: true
          description: >-
            UUID de la entrega que se va a reenviar: el `uuid` de una entrada
            devuelta por `GET /v3/session/{sessionId}/webhooks/`. Debe
            pertenecer a la sesión indicada en la ruta.
          schema:
            type: string
            format: uuid
          example: 66666666-7777-8888-9999-000000000001
      responses:
        '200':
          description: >-
            La nueva entrega, ya intentada. `response_status` es lo que
            respondió tu endpoint esta vez. La entrega original no cambia.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionWebhookDelivery'
              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
                    status: In Progress
                    webhook_type: status.updated
                    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}
                    created_at: '2026-10-16T14:05:42.330981Z'
        '400':
          description: >-
            No se pudo reenviar la entrega. Actúa según el valor de `code`:
            `webhook_url_missing` significa que la entrega no tiene ninguna URL
            registrada y no se envía nada; `webhook_resend_error` significa que
            la entrega almacenada no pudo volver a firmarse o que el intento no
            pudo completarse. Después de `webhook_resend_error`, `detail`
            empieza con `Error processing webhook resend:` seguido de un texto
            de diagnóstico que puede cambiar.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Mensaje de error legible.
                  code:
                    type: string
                    description: >-
                      Código de error estable legible por máquina. Usa este
                      valor para bifurcar la lógica, no `detail`.
              examples:
                No recorded URL:
                  value:
                    detail: >-
                      The webhook delivery does not have a request URL
                      configured
                    code: webhook_url_missing
                Resend failed:
                  value:
                    detail: >-
                      Error processing webhook resend: Invalid webhook data
                      format
                    code: webhook_resend_error
        '401':
          description: >-
            La clave de API ha expirado: se creó con una fecha de caducidad que
            ya pasó. Una clave incorrecta o revocada también recibe `401`; si
            falta la clave, se recibe `403`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Mensaje de error legible.
              examples:
                Expired key:
                  value:
                    detail: This API key has expired.
        '403':
          description: >-
            La solicitud no está permitida. Si no se envía `x-api-key`, o la
            clave no es válida o está revocada, se recibe `Authentication
            credentials were not provided or are invalid.` Una clave de otra
            aplicación recibe `You do not have permission to perform this
            action.` Una clave con alcance limitado que no tiene el acceso que
            necesita este endpoint recibe un mensaje que indica el acceso que
            falta, y una clave usada desde fuera de su lista de IP permitidas
            recibe `This API key can't be used from this IP address.` Un
            `sessionId` desconocido devuelve `404` antes de que se compruebe la
            credencial.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Mensaje de error legible.
              examples:
                Missing or invalid key:
                  value:
                    detail: >-
                      Authentication credentials were not provided or are
                      invalid.
                Key of another application:
                  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.
                Outside the IP allowlist:
                  value:
                    detail: This API key can't be used from this IP address.
        '404':
          description: >-
            La sesión no existe o se ha eliminado (`Not found.`, que se devuelve
            antes de comprobar la credencial), o está fuera de los límites de
            flujo o de estado de una clave con alcance restringido (`Session not
            found.`). Una entrega que no existe, pertenece a otra sesión o ya no
            está disponible devuelve `Webhook log not found`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Mensaje de error legible.
              examples:
                Unknown session:
                  value:
                    detail: Not found.
                Outside the key's limits:
                  value:
                    detail: Session not found.
                Delivery not in this session:
                  value:
                    detail: Webhook log not found
        '429':
          description: >-
            Límite de solicitudes superado: más de 300 solicitudes de escritura
            (POST, PATCH, PUT, DELETE) en la ventana actual de un minuto para
            esta clave de API. Espera `Retry-After` segundos antes de
            reintentar.
          headers:
            Retry-After:
              description: Segundos que hay que esperar antes de reintentar.
              schema:
                type: integer
                minimum: 1
                example: 30
            X-RateLimit-Limit:
              description: Solicitudes permitidas en la ventana de un minuto (300).
              schema:
                type: integer
                example: 300
            X-RateLimit-Remaining:
              description: Solicitudes restantes en la ventana actual.
              schema:
                type: integer
                example: 0
            X-RateLimit-Reset:
              description: Tiempo Unix (segundos) en que se restablece la ventana actual.
              schema:
                type: integer
                example: 1792056120
            X-RateLimit-Scope:
              description: Nombre del presupuesto que se superó.
              schema:
                type: string
                example: generic-write
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Mensaje de error legible.
              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/session/22222222-3333-4444-5555-666666666666/webhook/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.sessions.webhooks.resend(
                "22222222-3333-4444-5555-666666666666",
                "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.sessions.webhooks.resend(
              "22222222-3333-4444-5555-666666666666",
              "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.Sessions.Webhooks.Resend(ctx, \"22222222-3333-4444-5555-666666666666\", \"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.sessions().webhooks().resend("22222222-3333-4444-5555-666666666666",
            "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->sessions->webhooks->resend('22222222-3333-4444-5555-666666666666',
            '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.sessions.webhooks.resend(
              "22222222-3333-4444-5555-666666666666",
              "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.Sessions.Webhooks.ResendAsync("22222222-3333-4444-5555-666666666666",
            "66666666-7777-8888-9999-000000000001");

            Console.WriteLine(JsonSerializer.Serialize(result));
components:
  schemas:
    SessionWebhookDelivery:
      type: object
      description: >-
        Un intento de entrega de webhook registrado para una sesión de
        verificación, con los encabezados y el cuerpo exactos de la solicitud
        que envió Didit.
      required:
        - uuid
        - session_id
        - request_url
        - response_status
        - status
        - webhook_type
        - request_header
        - request_body
        - created_at
      properties:
        uuid:
          type: string
          format: uuid
          description: >-
            ID de entrega. Úsalo como `{webhook_uuid}` para obtener o reenviar
            esta entrega.
        session_id:
          type: string
          format: uuid
          description: La sesión a la que pertenece la entrega (la sesión de la ruta).
        request_url:
          type: string
          format: uri
          nullable: true
          description: URL a la que se envió la entrega.
        response_status:
          type: integer
          nullable: true
          description: >-
            Estado HTTP que devolvió tu endpoint. `null` mientras la entrega
            está en cola y aún no se ha intentado. Cuando no se recibe ninguna
            respuesta HTTP, Didit registra un estado propio: `504` cuando tu
            endpoint no respondió en 5 segundos, `503` para un fallo de
            conexión, `400` cuando la URL se rechazó por no ser segura (por
            ejemplo, una dirección privada o interna) y `404` para cualquier
            otro error de la solicitud. `400` o superior cuenta como entrega
            fallida.
        status:
          type: string
          nullable: true
          description: >-
            Estado de la sesión cuando se generó el evento, por ejemplo `In
            Progress`, `Approved` o `Declined`.
        webhook_type:
          $ref: '#/components/schemas/WebhookEvent'
        request_header:
          type: string
          description: >-
            Texto JSON (una cadena) de los encabezados de la solicitud que envió
            Didit: `Content-Type`, `X-Signature`, `X-Signature-V2`,
            `X-Signature-Simple`, `X-Timestamp` y `User-Agent`. Analízalo con un
            parser JSON. Contiene firmas, nunca el secreto de firma.
        request_body:
          type: string
          description: >-
            Texto JSON (una cadena) del payload exacto que envió Didit, con las
            claves ordenadas, incluidos `event_id` y `timestamp`. Analízalo con
            un parser JSON; consulta [Estructura del
            payload](https://docs.didit.me/es/integration/webhooks#estructura-del-payload).
            Para una clave con alcance limitado sin `media: read`, las URL de
            medios que contiene son `null`; sin `sessions: write`, los tokens de
            sesión y los enlaces de verificación alojados son `null`. Un cuerpo
            modificado de esa forma ya no coincide con sus firmas. Didit no
            registra el cuerpo de la respuesta que devolvió tu endpoint.
        created_at:
          type: string
          format: date-time
          description: Cuándo se creó la entrega.
    WebhookEvent:
      type: string
      description: >-
        Nombre de evento de webhook admitido. Usa exactamente estas cadenas en
        `subscribed_events`; los valores no admitidos se rechazan.
      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 clave de API de tu aplicación, que encontrarás en Developers -> API
        keys en la Business Console. La clave principal tiene acceso completo.
        Una clave con nombre puede tener un alcance limitado: ninguno, lectura o
        escritura por recurso, limitada a algunos flujos o a sesiones aprobadas,
        a una lista de direcciones IP y a una fecha de caducidad. 401 significa
        que la clave es incorrecta, se revocó o expiró; 403 significa que no se
        envió ninguna clave, que la clave no tiene acceso a este recurso o
        acción, o que la solicitud provino de una dirección fuera de su lista de
        IP; 404 en una ruta de sesión significa que la sesión está fuera de los
        flujos o estados de la clave. Una clave sin acceso a contenido
        multimedia recibe las URL de imágenes, videos y PDF como null, y una
        clave sin permiso de escritura en sesiones recibe los enlaces y tokens
        de sesión como null. Consulta https://docs.didit.me/console/api-keys.

````

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