Skip to content

Integration patterns

Send Signing Links via SMS

Deliver signing links by SMS, WhatsApp or any channel you control, using custom authentication and short ceremony URLs instead of signing emails.

By default, SignatureAPI sends signing links to recipients via email. If you need to deliver signing links through SMS, WhatsApp, or any other channel, you can disable email delivery and configure an inline ceremony with a short URL directly on the recipient.

This example creates an envelope with:

  • A single PDF document with one signature place.
  • One recipient with delivery_type set to none (deliverables are not sent automatically).
  • An inline ceremony object with custom authentication and url_variant set to short for SMS-friendly URLs.

Create the Envelope

Set delivery_type to none on the recipient so the completed deliverable is not automatically emailed. Include a ceremony object on the recipient with custom authentication (since your application handles delivery) and set url_variant to short to generate a compact URL suitable for SMS.

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": "customer"
        }
      ]
    }
  ],
  "recipients": [
    {
      "type": "signer",
      "key": "customer",
      "name": "Jane Doe",
      "email": "jane.doe@example.com",
      "delivery_type": "none",
      "ceremony": {
        "authentication": [
          {
            "type": "custom",
            "provider": "SMS",
            "data": {
              "phone": "+1-555-867-5309"
            }
          }
        ],
        "url_variant": "short"
      }
    }
  ]
}

Key properties on the recipient:

  • delivery_type: Set to none so the completed deliverable is not automatically emailed to this recipient. Your application is responsible for distributing the deliverable.
  • ceremony: Configures the signing ceremony inline. SignatureAPI creates the ceremony automatically when the envelope starts processing.
  • ceremony.authentication: Uses custom type since your application handles delivery. The provider and data values are recorded in the audit log.
  • ceremony.url_variant: Set to short to generate a compact URL like https://sign.signatureapi.com/s/BgnexxxxxxxxIbRi, which fits within SMS character limits.

The recipient still requires an email property even when delivery_type is none. The email is used for identification and audit purposes.

Get the Ceremony URL

The 201 Created response includes the short ceremony URL in recipients[].ceremony.url. 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": "customer",
      "name": "Jane Doe",
      "email": "jane.doe@example.com",
      "status": "pending",
      "delivery_type": "none",
      "ceremony": {
        "authentication": [
          {
            "type": "custom",
            "provider": "SMS",
            "data": {
              "phone": "+1-555-867-5309"
            }
          }
        ],
        "embeddable_in": [],
        "redirect_url": null,
        "redirect_delay": 3,
        "url_variant": "short",
        "url": "https://sign.signatureapi.com/s/BgnexxxxxxxxIbRi"
      }
    }
  ]
}

The ceremony opens once the envelope is in_progress (the envelope.started event). Send the SMS after that event, so the signer never opens a link that asks them to try again later.

Take the url from the response and deliver it through your own SMS provider. SignatureAPI never sends the text message: your provider account does.

JavaScript
// Example with the Twilio Node.js library; envelope is the parsed create response
const ceremonyUrl = envelope.recipients[0].ceremony.url;

await twilioClient.messages.create({
  to: "+15558675309",
  from: "+15551234567",
  body: `Please sign your Service Agreement: ${ceremonyUrl}`
});

The recipient opens the link on their device, reviews the document, and signs.

Result

When the recipient completes the ceremony, SignatureAPI updates the envelope status as usual. You can track completion through webhooks or by polling the envelope.

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 short URL from the response on your phone to see what the signer sees.

Keep Learning