Surepass
Webhooks

Esign events

Suresign sends this request when an Esign session completes or fails. Verify Suresign-Signature against the raw request body before you parse the JSON.

Return any 2xx status to accept the delivery. Suresign can send the same delivery more than once. Use Suresign-Webhook-Id or client_id as the idempotency key.

Header Parameters

Suresign-Webhook-Id*string

Stable delivery ID. Use this value as an idempotency key.

Suresign-Signature*string

t is the Unix timestamp. v1 is a 64-character lowercase hexadecimal HMAC-SHA256 signature. Verify v1 against {timestamp}.{raw_request_body}.

User-Agent*string

Suresign webhook user agent.

Request Body

application/json
  1. body

Webhook payload for an Esign session event.

attempt*integer

Delivery attempt number. The first attempt is 1.

Range1 <= value
client_id*string

Stable delivery ID. The ID starts with webhook_.

esign_client_id*string

Related Esign session ID. The ID starts with esign_.

event_type*string

Esign session event type.

Value in"esign_completed""esign_failed"
org_id*string

Organization that owns the Esign session.

data*

Esign session and its current state.

Response Body

The endpoint accepted the event.

Example Requests
POST/esign-event
Request Body
application/json
{
  "attempt": 1,
  "client_id": "webhook_Wf3kQ8mN2rT6yP9x",
  "data": {
    "actor_id": "api_token_xxx",
    "actor_type": "api_token",
    "allow_download": true,
    "archived": false,
    "auth_mode": [
      1
    ],
    "backend": "nsdl",
    "client_id": "esign_PsLIyRDIHAqyFWhZqhDT",
    "created_at": "2026-08-04T10:30:00Z",
    "current_pdf_file_id": "file_signed_xxx",
    "email_template_overrides": {
      "company_name": "Acme Corp",
      "legal_name": "Acme Corporation Pvt Ltd.",
      "support_email": "support@acme.com"
    },
    "expiry_seconds": 7200,
    "file_id": "file_ugSBmcbzETuPjUqQLyts",
    "filename": "agreement.pdf",
    "folder": "contracts",
    "redirect_url": "https://example.com/signing-complete",
    "sender": "Acme Corp",
    "sign_type": "aadhaar",
    "signers": [
      {
        "signer_id": "signer_vxgTyyOxYDhkhsIKQtda",
        "eligible": true,
        "invite_url": null,
        "token": null,
        "sign_type": "aadhaar",
        "auth_mode": [
          1
        ],
        "max_retry": 3,
        "pfx_id": null,
        "full_name": "Test Signer",
        "email": "signer@example.com",
        "country_code": "+91",
        "mobile": "9876543210",
        "verify_email": false,
        "verify_mobile": false,
        "reason": "Agreement approval",
        "accept_virtual_sign": false,
        "status": "completed",
        "elements": [
          {
            "field_id": "field_xxx",
            "x": 100,
            "y": 250,
            "page": 0,
            "type": "signature",
            "alignment": "center",
            "label": null,
            "width": 120,
            "height": 40,
            "allow_wet_signature": false,
            "font_size": null,
            "format": null,
            "value": null
          }
        ],
        "aadhaar_cert_details": {
          "name": "Test Signer",
          "country": "IN",
          "state": "Karnataka",
          "pin_code": "560001",
          "aadhaar": "XXXX-XXXX-1234",
          "year_of_birth": "1990",
          "gender": "M"
        },
        "verify_location": false,
        "location_source": "device",
        "enforce_geofence": false,
        "latitude": null,
        "longitude": null,
        "radius": null,
        "name_match": {
          "enforce": true,
          "prefill_name": "Test Signer",
          "signer_name": "TEST SIGNER",
          "score": 98.4,
          "status": "completed"
        },
        "face_match": {
          "enforce": false,
          "ref_file_id": null,
          "live_file_id": null,
          "match_threshold": 80,
          "max_attempts": 5,
          "liveness_score": null,
          "match_score": null
        },
        "notification": {
          "invite": true,
          "completion": true,
          "whatsapp": false
        }
      }
    ],
    "status": "completed"
  },
  "esign_client_id": "esign_PsLIyRDIHAqyFWhZqhDT",
  "event_type": "esign_completed",
  "org_id": "org_xxx"
}
Header Parameters
{
  "Suresign-Webhook-Id": "webhook_Wf3kQ8mN2rT6yP9x",
  "Suresign-Signature": "t=1722776400,v1=6d4697e95f4ad3c93a3e8c01fca98c9cc5e45775984c85279601262bfa5c8f89",
  "User-Agent": "Suresign/1.0"
}