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_typeset tonone(deliverables are not sent automatically). - An inline
ceremonyobject with custom authentication andurl_variantset toshortfor SMS-friendly URLs.
- Your server to SignatureAPI: Create envelope
POST /v1/envelopes - SignatureAPI to Your server:
201 Createdwithceremony.url - Your server to Your SMS provider: Send the message with the short URL
- Your SMS provider to Signer's phone: SMS with the signing link
- Signer's phone to SignatureAPI: Open the link, review and sign
- SignatureAPI to Your server: Webhook
recipient.completed
- Create envelope
POST /v1/envelopesThe recipient has
customauthentication,url_variantset toshort, anddelivery_typeset tonone. 201 Createdwithceremony.urlSignatureAPI sends no email: the short URL in
recipients[].ceremony.urlis yours to deliver.- Send the message with the short URL
Your own SMS account sends the text. SignatureAPI never contacts the signer's phone.
- Open the link, review and sign
The ceremony opens once the envelope is
in_progress.
Dashed: a reply, or an asynchronous call such as a webhook.
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.
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 tononeso 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: Usescustomtype since your application handles delivery. Theprovideranddatavalues are recorded in the audit log.ceremony.url_variant: Set toshortto generate a compact URL likehttps://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:
{
"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.
Send the Link via SMS
Take the url from the response and deliver it through your own SMS provider. SignatureAPI never sends the text message: your provider account does.
// 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
- Learn more about short ceremony URLs and when to use them.
- Use custom authentication to record additional context about how the signer was verified.
- Embed the signing ceremony in your own web application instead of redirecting to the SignatureAPI signing page.
- Set up webhooks to receive real-time notifications when signing completes.