---
title: "Integrate eSignatures into ASP.NET Core with BoldSign API"
description: "This blog post will teach you how to easily integrate the BoldSign eSignature solution using its eSignature APIs in ASP.NET Core web application."
url: "https://boldsign.com/blogs/integrating-boldsign-esignature-apis-in-asp-net-core-app/"
---

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

# Integrating eSignature Solution into your ASP.NET Core app using BoldSign APIs

[Jayaprakash Kamaraj](https://boldsign.com/author/jayaprakash-kamaraj/) November 22, 2022 Updated April 20, 2026 4 min read

BoldSign is an enterprise-grade electronic signature application and API that enables users to sign documents digitally and allows you to send documents for eSignatures from its app or within your app. Its [eSignature APIs](https://boldsign.com/esignature-api.md) gives you complete control over documents and properties. You can send documents for signature, track document status with webhooks, download signed documents and audit trails, remind signers to complete the signing process, and much more.This blog post will teach you how to integrate the BoldSign using its eSignature APIs in ASP.NET Core web application!

## Getting started

> **Note**: Refer to the Getting Started with BoldSign documentation before proceeding.

1. Sign up for a [free sandbox.](https://account.boldsign.com/signup?planId=1076\&utm_source=boldsignblogs\&utm_medium=redirect\&utm_campaign=boldsign)
2. Create an ASP.NET Core web app using the following command:

```
dotnet new webapp --framework "netcoreapp3.1" -o ASPCoreEsignApp
```

3. Install the BoldSign API NuGet package with the following command:

```
dotnet add package BoldSign.Api
```

4. Acquire the necessary [BoldSign app credentials.](https://developers.boldsign.com/authentication/introduction/)

## Add BoldSign services through dependency injection

To communicate with the BoldSign API, you need to add authentication details such as headers and a base path to the **HttpClient**.Include the following code in the **ConfigureServices**() method in your **startup.cs** file.

```
var apiClient = new ApiClient("https://api.boldsign.com/"," ***API Key***");
services.AddSingleton(apiClient);
services.AddSingleton(new DocumentClient(apiClient));
services.AddSingleton(new TemplateClient(apiClient));
```

Now you can start using the BoldSign APIs in your app.

## Send a document for signing

Using the following code in your ASP.NET Core app, you can initiate the signing process. Send a request to sign a document to one or more recipients with the signing workflow, auto-reminders, expiration date, and more.Refer to the following code example.

```
private readonly IDocumentClient documentClient;
private readonly ITemplateClient templateClient;

public IndexModel(IDocumentClient documentClient, ITemplateClient templateClient, ILogger logger)
{
    this.documentClient = documentClient;
    this.templateClient = templateClient;
}

public void SignDocument()
{
    // Read the document from local path as stream.
    using var fileStream = System.IO.File.OpenRead("doc-2.pdf");
    var documentStream = new DocumentFileStream
    {
        ContentType = "application/pdf",
        FileData = fileStream,
        FileName = "doc-2.pdf",
    };

    // Creating collection with the loaded document.
    var filesToUpload = new List
    {
        documentStream,
    };

    // Creating signature field.
    var signatureField = new FormField(
        id: "Sign",
        type: FieldType.Signature,
        pageNumber: 1,
        isRequired: true,
        bounds: new Rectangle(x: 50, y: 50, width: 200, height: 30));

    // Adding the field to the collection.
    List formFields = new List();
    formFields.Add(signatureField);

    // Creating signer field.
    var signer = new DocumentSigner(
        name: "Signer Name 1",
        emailAddress: "signer@cubeflakes.com",
        signerOrder: 1,
        authenticationCode: "851321",
        signerType: SignerType.Signer,
        privateMessage: "This is private message for signer",
        // Assign the created form fields to the signer.
        formFields: formFields);

    // Adding the signer to the collection.
    var documentSigners = new List
    {
        signer
    };

    // Create send for sign request object.
    var sendForSign = new SendForSign
    {
        Title = "Sent from API SDK",
        Message = "This is document message sent from API SDK",
        EnableSigningOrder = false,

        // Assign the signers collection.
        Signers = documentSigners,

        // Assign the loaded files collection.
        Files = filesToUpload
    };

    // Send the document for signing.
    var createdDocumentResult = this.documentClient.SendDocument(sendForSign);
}
```

> Note: For more details, refer to the send document for signing using BoldSign documentation.

## Send a document using a template

Also, you can send documents for signing with predefined templates. Templates help users save time when they need to repeatedly send the same contracts for signing to different sets of people. Once we set up a template, sending documents takes less than a minute.First, [create a template in the BoldSign app](https://developers.boldsign.com/template/create-template/) and then get the template ID by following these steps:

1. Navigate to the **My Templates** section in the BoldSign app. You can see the created templates in the list.
2. Click the more options button at the right end of the template you want to send and choose the **Copy template ID** option to copy the template’s ID.

![Templates](https://boldsign.com/images/blogs/integrating-boldsign-esignature-apis-in-asp-net-core-app/copy-template-id-1024x480.png)

3. Use the copied template ID to send your document for signing. You can directly use the template with a predefined set of recipients or add the recipients to the document before sending the signature request. Refer to the following code example.

```
public void SendDocumentUsingTemplate()
{
    var templateDetails = new SendForSignFromTemplate(
        templateId: "**templateId**",
        title: "Document from Template",
        message: "This document description");
    var createdDocumentResult = this.templateClient.SendUsingTemplate(templateDetails);
}
```

Refer to the following images.

![Sending a PDF Document for Signing Using BoldSign](https://boldsign.com/images/blogs/integrating-boldsign-esignature-apis-in-asp-net-core-app/sending-a-pdf-document-for-signing-using-boldsign.svg)

Sending a PDF Document for Signing Using BoldSign

![Signing a PDF Document using BoldSign Web App](https://boldsign.com/images/blogs/integrating-boldsign-esignature-apis-in-asp-net-core-app/signing-a-pdf-document-for-signing-using-boldsign.svg)

Signing a PDF Document using BoldSign Web App

> **Note:** For more details, refer to the [send document to sign using templates in BoldSign documentation](https://dev-developers.boldsign.com/documents/send-document-from-template/).

Thanks for reading. I hope now you were aware of integrating the BoldSign using its eSignature APIs in ASP.NET Core web application.

Please [contact us](https://boldsign.com/contact-us.md) if you have any questions—we’d love to hear your feedback.

Topics [API integration](https://boldsign.com/blogs/tag/api-integration.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)

## Jayaprakash Kamaraj

Jayaprakash Kamaraj is a Product Manager at Syncfusion. He is passionate about front-end technologies and has been active in web development since 2014. Connect with him on [LinkedIn](https://www.linkedin.com/in/jayaprakash-kamaraj-87142b309/).

[More posts by Jayaprakash Kamaraj](https://boldsign.com/author/jayaprakash-kamaraj/)

## 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 25, 2026 10 min read

  ## [Build vs Buy an eSignature API: What Should You Choose?](https://boldsign.com/blogs/build-vs-buy-esignature-api-guide.md)

  Compare the real cost, compliance risk, launch speed, and maintenance burden of building vs buying an eSignature API before you commit.

- [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.

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*
