---
title: "Send Signature Requests from Templates via Email & SMS using API"
description: "Enhance your document management with the BoldSign API. Easily send signature requests from templates via both email and SMS. Sign up to get started."
url: "https://boldsign.com/blogs/send-signature-requests-from-templates-via-email-sms-api/"
---

1. [Blog](https://boldsign.com/blogs.md)
2. [API](https://boldsign.com/category/api.md)

# Send Signature Requests from Templates via Both Email and SMS Using the API

[Ranjitha Amirthalingam](https://boldsign.com/author/ranjitha-amirthalingam/) July 31, 2024 Updated August 26, 2026 3 min read

Text messages and emails are two of the most effective channels for document delivery. BoldSign’s API allows you to send signature requests via both email and SMS using a single template, ensuring that your documents reach signers through both channels.

## Sending a document via email and SMS

To send a document for eSignature via both email and [SMS](https://boldsign.com/blogs/send-esignature-requests-through-sms-with-boldsign-api.md), you need to specify the **deliveryMode** as **EmailAndSMS** and include the signer’s phone number in

the **phoneNumber** object by providing the **countryCode** and **number** of the signer.

## Code snippets

Let’s explore how to send a signature request from a template via email and SMS in various programming languages.

```
curl -X POST \
  "https://api.boldsign.com/v1/template/send?templateId=8fbed3d0-yyyy-xxxx-21f041809b72" \
  -H "accept: application/json" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Testing",
  "message": "msg",
  "roles": [
    {
      "roleIndex": 1,
      "signerName": "Alex",
      "signerEmail": "alexgayle@cubeflakes.com",
      "phoneNumber": {
        "countryCode": "{Signer’s Country Code}",
        "number": "{Signer’s Phone Number}"
      },
      "deliveryMode": "EmailAndSMS",
      "signerType": "Signer",
      "signerRole": "HR"
    }
  ]
}'
```

```
var apiClient = new ApiClient("https://api.boldsign.com", "{Your API Key}");
var templateClient = new TemplateClient(apiClient);
var templateRole = new Roles()
{
    SignerName = "Alex",
    SignerEmail = "alexgayle@cubeflakes.com",
    SignerRole = "HR",
    SignerType = SignerType.Signer,
    RoleIndex = 1,
    DeliveryMode = DeliveryMode.EmailAndSMS,
    PhoneNumber = new PhoneNumber()
    {
        CountryCode="Signer’s Country Code",
        Number = "Signer’s Phone Number"
    },
};
var roles = new List<Roles>
{
    templateRole,
};
var sendForSignFromTemplate = new SendForSignFromTemplate()
{
    TemplateId = "Your_template_id",
    Roles = roles
};
var documentCreated = templateClient.SendUsingTemplate(sendForSignFromTemplate);
```

```
import boldsign

configuration = boldsign.Configuration(host="https://api.boldsign.com", api_key="YOUR_API_KEY")

with boldsign.ApiClient(configuration) as api_client:

    template_api = boldsign.TemplateApi(api_client)

    phone_number = boldsign.PhoneNumber(
        countryCode="Signer’s Country Code",
        number="Signer’s Phone Number",
    )

    role = boldsign.Role(
        roleIndex=1,
        signer_name="Alex Gayle",
        signer_email="alexgayle@cubeflakes.com",
        signerType="Signer",
        deliveryMode="EmailAndSMS",
        phoneNumber=phone_number,
    )

    send_for_sign_from_template = boldsign.SendForSignFromTemplateForm(roles=[role])

    document_created = template_api.send_using_template(
        template_id="Your_Template_Id", send_for_sign_from_template_form=send_for_sign_from_template
    )
```

```
<?php
require_once "vendor/autoload.php";

use BoldSign\Configuration;
use BoldSign\Api\TemplateApi;
use BoldSign\Model\Role;
use BoldSign\Model\PhoneNumber;
use BoldSign\Model\SendForSignFromTemplateForm;

$config = new Configuration();
$config->setHost('https://api.boldsign.com');
$config->setApiKey('YOUR_API_KEY');

$templateApi = new TemplateApi($config);

$role = new Role();
$role->setRoleIndex(1);
$role->setSignerName('Alex Gayle');
$role->setSignerEmail('alexgayle@cubeflakes.com');
$role->setSignerType('Signer');
$role->setDeliveryMode('EmailAndSMS');

$phoneNumber = new PhoneNumber();
$phoneNumber->setCountryCode('Signer’s Country Code');
$phoneNumber->setNumber('Signer’s Phone Number');

$role->setPhoneNumber($phoneNumber);

$sendForSignFromTemplate = new SendForSignFromTemplateForm();
$sendForSignFromTemplate->setRoles([$role]);

$documentCreated = $templateApi->sendUsingTemplate(
    'YOUR_TEMPLATE_ID',
    $sendForSignFromTemplate
);
```

```
ApiClient client = Configuration.getDefaultApiClient();
client.setBasePath("https://api.boldsign.com");
client.setApiKey("YOUR_API_KEY");

TemplateApi templateApi = new TemplateApi(client);

Role role = new Role();
role.setRoleIndex(1);
role.setSignerName("Alex Gayle");
role.setSignerEmail("alexgayle@cubeflakes.com");
role.setSignerType(Role.SignerTypeEnum.SIGNER);
role.setDeliveryMode(Role.DeliveryModeEnum.EMAIL_AND_SMS);

PhoneNumber phoneNumber = new PhoneNumber();
phoneNumber.setCountryCode("Signer’s Country Code");
phoneNumber.setNumber("Signer’s Phone Number");

role.setPhoneNumber(phoneNumber);

SendForSignFromTemplateForm sendForSignFromTemplate = new SendForSignFromTemplateForm();
sendForSignFromTemplate.setRoles(Arrays.asList(role));

try {
    DocumentCreated documentCreated =
            templateApi.sendUsingTemplate("Your_Template_Id", sendForSignFromTemplate);
```

```
import { TemplateApi, Role, SendForSignFromTemplateForm } from "boldsign";

const templateApi = new TemplateApi("https://api.boldsign.com");
templateApi.setApiKey("YOUR_API_KEY");

const role = new Role();
role.roleIndex = 1;
role.signerName = "Alex Gayle";
role.signerEmail = "alexgayle@cubeflakes.com";
role.signerType = Role.SignerTypeEnum.Signer;
role.deliveryMode = Role.DeliveryModeEnum.EmailAndSms;

role.phoneNumber = {
  countryCode: "Signer’s Country Code",
  number: "Signer’s Phone Number",
};

const sendForSignFromTemplate = new SendForSignFromTemplateForm();
sendForSignFromTemplate.roles = [role];

const documentCreated = await templateApi.sendUsingTemplate(
  "Your_template_id",
  sendForSignFromTemplate,
);
```

## Benefits

- Relevant access points: Reach your signers via their preferred channels.
- Increased engagement: Using both email and SMS increases the likelihood that your documents will be signed promptly.
- Efficiency: Simplify your document-sending process using [templates](https://support.boldsign.com/kb/article/19270/create-a-template-using-boldsign-api).

## Conclusion

Sending documents for signature via SMS and email improves signing efficiency and accessibility by ensuring that signers receive notifications through both channels. By using [BoldSign’s API](https://boldsign.com/esignature-api.md) and its powerful template functionality, you can streamline the signature request process and ensure a seamless experience for both senders and recipients. Start your [30-day free BoldSign trial](https://account.boldsign.com/signup?planId=1018\&utm_source=boldsignblogs\&utm_medium=redirect\&utm_campaign=boldsign) today and send documents via SMS and email so that no document goes unnoticed.We value your feedback, so please share your thoughts below. If you have any questions or need more information about our services, don’t hesitate to [schedule a demo](https://boldsign.com/request-demo.md) or reach out to our support team through our [support portal](https://support.boldsign.com/).

Topics [API integration](https://boldsign.com/blogs/tag/api-integration.md)[Templates](https://boldsign.com/blogs/tag/templates.md)[Signer experience](https://boldsign.com/blogs/tag/signer-experience.md)

## Sign documents 3x faster

Send, sign and manage documents securely and efficiently.

[Try it today](https://account.boldsign.com/signup?planId=1018\&utm_source=boldsignblogs\&utm_medium=redirect\&utm_campaign=boldsign)

## Ranjitha Amirthalingam

Ranjitha is a seasoned developer with over 7 years of hands-on experience in C#, specializing in desktop applications using WPF and Blazor. Beyond the world of coding, Ranjitha has a passion for travel, particularly enjoying the tranquility and beauty of mountain ranges. Whether working on cutting-edge software or exploring nature, Ranjitha is always seeking new adventures and challenges. Connect with her on [LinkedIn](https://www.linkedin.com/in/ranjitha-amirthalingam-a4bb17118/).

[More posts by Ranjitha Amirthalingam](https://boldsign.com/author/ranjitha-amirthalingam/)

## Related posts

- [API](https://boldsign.com/category/api.md) September 29, 2026 10 min read

  ## [How to Migrate from Docusign Without Losing Templates or Workflow Continuity](https://boldsign.com/blogs/migrate-from-docusign.md)

  Learn how to migrate from Docusign while protecting templates, signed records, and active workflows. Explore key risks, a practical checklist, and next steps.

- [API](https://boldsign.com/category/api.md) September 22, 2026 9 min read

  ## [What Are the Common Challenges When Using Signature APIs in Software Development](https://boldsign.com/blogs/common-signature-api-challenges.md)

  Explore the common challenges developers face with a Signature API, from authentication issues to PDF rendering, webhooks, templates, and rate limits.

- [API](https://boldsign.com/category/api.md) September 21, 2026 7 min read

  ## [How to Detect Email and SMS Delivery Failure in eSignature Code](https://boldsign.com/blogs/email-sms-delivery-failure-esignature-webhooks.md)

  Detect email and SMS delivery failure in eSignature workflows before it stalls a signature. Learn the root causes, and how to catch failures with webhooks.

Get started

## Sign up for your free trial today!

[Start free trial](https://account.boldsign.com/signup?planId=1018)

- 30-day free trial
- No credit card required

*Picture: A completed employment contract: signed by John Doe on 11/03/2026, all parties have signed*
