Skip to content

Recipients

Use Custom Authentication

Authenticate recipients in your own application, record how you verified them in the audit log, and send them straight to the signing ceremony.

With custom authentication, your application handles identity verification before the recipient accesses the signing ceremony. SignatureAPI provides a ceremony URL that you deliver directly, so the recipient can start signing without any additional authentication step on the SignatureAPI side.

This approach is useful when:

  • Recipients are already authenticated in your system.
  • You want to integrate signing into your existing application flow without interrupting the user experience.
  • You need a specific authentication method, such as biometrics, SSO, or multi-factor.

In this example, we will:

  1. Create an envelope with custom authentication on the recipient’s ceremony object.
  2. Set delivery_type to "none" so the completed deliverable is not automatically emailed to the recipient.
  3. Get the ceremony URL from the response and redirect the authenticated user.

Create the Envelope

Set the recipient’s ceremony object with authentication set to custom. Provide:

  • provider: The name of your application or company. This appears in the audit log as: “Jane Doe has been authenticated by [provider]”.
  • data: Key-value pairs that link the signing event to your authentication records. These values are recorded in the envelope audit log.

Set delivery_type to "none" so the completed deliverable is not automatically emailed to the recipient. Your application is responsible for distributing the deliverable.

HTTP
POST /v1/envelopes HTTP/1.1
Host: api.signatureapi.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json

{
  "title": "Service Agreement",
  "documents": [
    {
      "url": "https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/privacy-placeholder.pdf",
      "format": "pdf",
      "places": [
        {
          "key": "signer_signs_here",
          "type": "signature",
          "recipient_key": "client"
        }
      ]
    }
  ],
  "recipients": [
    {
      "type": "signer",
      "key": "client",
      "name": "Jane Doe",
      "email": "jane.doe@example.com",
      "delivery_type": "none",
      "ceremony": {
        "authentication": [
          {
            "type": "custom",
            "provider": "Acme Portal",
            "data": {
              "Session ID": "a4f9e8b2-7c1d-4b2d-9a4b-e0c5d6f7a1b3",
              "User ID": "usr_88620999344",
              "Authenticated At": "2026-11-02T14:02:58Z"
            }
          }
        ]
      }
    }
  ]
}

Include enough data in the data object to verify how the recipient was authenticated. Useful values include session IDs, user IDs, authentication timestamps, and authentication methods. These values appear in the audit log and may be needed to confirm identity in legal proceedings.

Get the Ceremony URL

The 201 Created response already includes the ceremony URL in recipients[].ceremony.url. Because authentication is custom (not email_link), SignatureAPI returns the URL to you instead of emailing it. The response below is trimmed to the recipient:

201 Created
{
  "id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
  "title": "Service Agreement",
  "status": "processing",
  "recipients": [
    {
      "id": "re_49r1R2jpPDz8hSpP75ZkPp",
      "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
      "type": "signer",
      "key": "client",
      "name": "Jane Doe",
      "email": "jane.doe@example.com",
      "status": "pending",
      "delivery_type": "none",
      "ceremony": {
        "authentication": [
          {
            "type": "custom",
            "provider": "Acme Portal",
            "data": {
              "Session ID": "a4f9e8b2-7c1d-4b2d-9a4b-e0c5d6f7a1b3",
              "User ID": "usr_88620999344",
              "Authenticated At": "2026-11-02T14:02:58Z"
            }
          }
        ],
        "embeddable_in": [],
        "redirect_url": null,
        "redirect_delay": 3,
        "url_variant": "standard",
        "url": "https://sign.signatureapi.com/en/start?token=eyJhbGciOiJFUzI1NiIsInR..."
      }
    }
  ]
}

The envelope starts in processing. The ceremony opens once the envelope is in_progress (the envelope.started event); a recipient who opens the URL earlier is asked to try again later. With sequential routing, a recipient’s ceremony opens when their turn comes.

Redirect to the Ceremony URL

Use the url from the ceremony object to redirect the recipient from your application to the signing ceremony. Because your application already authenticated the recipient, they land directly in the signing experience without any additional login step.

https://sign.signatureapi.com/en/start?token=eyJhbGciOiJFUzI1NiIsInR...

Treat ceremony URLs as sensitive credentials. Do not expose them in logs, public forums, or client-side code where unauthorized users could access them. Deliver the URL only to the authenticated recipient.

After the recipient completes signing, SignatureAPI records the authentication event in the envelope audit log, including the provider name and all key-value pairs from the data object.

Try It

Send the request with your test API key to create a free, non-binding test envelope, for example from the API Playground. Open the ceremony URL from the response to see what your recipient sees.

Keep Learning