# SignNow API Documentation — Full Content

> REST API documentation for the SignNow e-signature platform.
> Complete published guides and API reference for RAG ingestion and pre-training.
> Last updated: 2026-12-04

## Welcome

<div style="display: flex;align-items: center;margin-bottom:40px;">
<div style="flex:1;margin-right:40px;">

# Start building eSignature integrations

The SignNow REST API empowers users to deliver an exceptional eSignature experience for signers, preparers, and senders. Pre-fill documents, create embedded branded workflows for multiple signers, request payments, and track signature status in real-time. Ensure signing is simple, secure, and intuitive on any device.
</div>
<div>
<img src="/reference-assets/images/welcome-page.png" alt="signNow API demonstration" width="296" />
</div>
</div>

## What you can do with the SignNow API

### Embed signing in your app

Let signers complete documents inside your product, with no redirects and no SignNow branding.

### Let users send from your app

Give them a full prep flow: upload a document, assign recipients and fields, send the request — all in your UI.

### Prepare documents in your interface

Drop in the embedded editor so users can add and position fields before sending.

### Put your brand on everything

Signing pages, emails, logos, colors, fonts. Your users never see SignNow.

### Generate documents from data

Upload a `.docx` with tags, populate it from your data, get a signature-ready PDF.

### Automate the whole agreement flow

REST endpoints, SDKs, and webhooks for real-time signing events, plus Development Mode to test end to end before you ship.

## Quick links

* [Getting started](/docs/get-started) — Send your first document for signing in under 5 minutes.
* [Authentication](/docs/authentication) — Learn about OAuth 2.0 flows and token management.
* [SDKs & Tools](/docs/sdk) — Official SDKs for PHP, .NET, Java, Python, and Node.js.
* [API Changelog](/docs/signnow-api-changelog) — Latest updates and new features.

---

## Getting started

<div style='position: absolute; top: 16px; right: 370px; z-index: 9;'><a href="https://github.com/signnow/sn-api-helper-mcp"><span style='font-family: "Open Sans", "Arial", sans-serif;width: 206px;padding: 15px 42px;color: #000;font-size: 16px;line-height: 24px;font-weight: 600;border-radius: 4px;background: #fff;text-decoration: none;border: 1px solid rgb(7, 119, 207);'>SignNow API Helper MCP</span></a></div>
<div style='position: absolute;top: 16px; right: 34px;z-index: 9;'><a href="https://snseats.signnow.com/purchase/business_free_trial/loggedout?type=api"><span style='font-family:"Open Sans", "Arial", sans-serif;width:206px;padding:15px 42px;color:#fff;font-size:16px;line-height:24px;font-weight:600;border-radius:4px;background:#0777CF;text-decoration:none;border: 1px solid rgb(7, 119, 207);'>Create a free developer account</span></a></div>
<div class="section-greeting" style="margin-top:72px;">
  <div class="page-section__inner" style="margin:0 auto;max-width:1280px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;">
    <h1 class="section-subtitle" style='font-family:"Graphik", "Arial", sans-serif;color:#2C2C2C;margin-bottom:0 !important;padding-bottom:0 !important;font-size:36px !important;line-height:48px !important;font-weight:700 !important;'>Get started with the SignNow API</h1>
    <div class="section-message" style='margin-top:10px;font-family:"Open Sans", "Arial", sans-serif;font-size:16px;line-height:28px;font-weight:400;'>This quickstart guide walks you through the basics of the SignNow API dashboard and helps you send your first signature request.</div>

<br>
<div>
<h2 class="section-subtitle" style='font-family:"Graphik", "Arial", sans-serif;color:#2C2C2C;margin-bottom:0 !important;padding-bottom:0 !important;font-size:36px !important;line-height:48px !important;font-weight:700 !important;'>Register a free developer account</h2>
</div>

Register a [free developer account](https://snseats.signnow.com/purchase/business_free_trial/loggedout?type=api) and verify your email address.

<br>
<div>
<h2 class="section-subtitle" style='font-family:"Graphik", "Arial", sans-serif;color:#2C2C2C;margin-bottom:0 !important;padding-bottom:0 !important;font-size:36px !important;line-height:48px !important;font-weight:700 !important;'>Get an active application</h2>
</div>

Once your email is verified, your API dashboard will open. 

SignNow automatically creates your first application in the Development mode. You can create more applications by clicking **Add Application** on the **Apps & Keys** page.

<br>
<div>
<h2 class="section-subtitle" style='font-family:"Graphik", "Arial", sans-serif;color:#2C2C2C;margin-bottom:0 !important;padding-bottom:0 !important;font-size:36px !important;line-height:48px !important;font-weight:700 !important;'>Copy your API key</h2>
</div>

Click your application to open its details. Copy the API key from the **API Key** tab.

![API Key tab of an application in the API dashboard, with the copy button](/reference-assets/images/%C2%A0Getting%20started/api_key_copy.png)

> Learn more about [authentication](/docs/authentication). 

<div>
<h2 class="section-subtitle" style='font-family:"Graphik", "Arial", sans-serif;color:#2C2C2C;margin-bottom:0 !important;padding-bottom:0 !important;font-size:36px !important;line-height:48px !important;font-weight:700 !important;'>Calling the API</h2>
</div>

There are two ways this guide helps you send your first API requests:

- Click the **Send API Request** button in the **Try it console** below to send requests directly from this page.
- Copy the code examples in your preferred language to send requests using your own development environment or an HTTP client (like Postman or cURL). Click the arrows next to **Request Sample** to select a language and view the code.

We recommend following the instructions for each step to add the required parameters and send requests without leaving this page.

> **Note on limits**: If you have a free trial or active subscription, signature invites sent in Development mode won’t count toward your limit.<br>If you don’t have a free trial or active subscription, you can send up to 500 signature invites in Development mode.

<div>
<h2 class="section-subtitle" style='font-family:"Graphik", "Arial", sans-serif;color:#2C2C2C;margin-bottom:0 !important;padding-bottom:0 !important;font-size:36px !important;line-height:48px !important;font-weight:700 !important;'>Step 1. Upload a document</h2>
</div>

Upload a document to SignNow using the [Upload document from URL](/docs/document/operations/post-v2-documents-url) request.

- Paste your **API key** into the `Authorization` header after `Bearer`.

- The request body is pre-filled with a sample document URL for testing.

- Click **Send API Request**.

```json http
{
  "method": "post",
  "url": "https://api.signnow.com/v2/documents/url",
  "headers": {
    "Authorization": "Bearer {{your_api_key}}"
  },
  "body": {
    "url": "https://www.signnow.com/whitepapers/signnow_api_test_invite.pdf"
  }
}
```

> Learn about other [document uploading options](/docs/entities#step-1-upload-document).

The successful request returns the ID of the uploaded document. Copy this ID — you will need it for **Step 2**.

<div>
<h2 class="section-subtitle" style='font-family:"Graphik", "Arial", sans-serif;color:#2C2C2C;margin-bottom:0 !important;padding-bottom:0 !important;font-size:36px !important;line-height:48px !important;font-weight:700 !important;'>Step 2. Add fields to the document</h2>
</div>

Add two fields for the recipient - a **text field** and **signature field** using the [Edit document](/docs/document/operations/edit-document) request.

- Paste your **API key** in the `Authorization` header after `Bearer`.
- Paste the document `id` from **Step 1** response into the `document_id` field.
- Click **Send API Request**.

```json http
{
  "method": "put",
  "url": "https://api.signnow.com/document/{document_id}",
  "headers": {
    "Authorization": "Bearer {{your_api_key}}"
  },
  "body": {
    "fields": [
      {
        "type": "text",
        "role": "Recipient 1",
        "page_number": 0,
        "x": 193,
        "y": 572,
        "width": 132,
        "height": 29,
        "required": true,
        "font": "Arial",
        "size": 14
      },
      {
        "type": "signature",
        "role": "Recipient 1",
        "page_number": 0,
        "x": 193,
        "y": 526,
        "width": 132,
        "height": 29,
        "required": true,
        "font": "Arial",
        "size": 14
      }
    ]
  }
}
```

> Learn more about [fields](/docs/fields).

The response will return the document ID again, confirming the update.


<div>
<h2 class="section-subtitle" style='font-family:"Graphik", "Arial", sans-serif;color:#2C2C2C;margin-bottom:0 !important;padding-bottom:0 !important;font-size:36px !important;line-height:48px !important;font-weight:700 !important;'>Step 3. Send the signature invite</h2>
</div>

Send the document with fields to one signer (Recipient 1) using the [Invite to sign](/docs/document-field-invite/operations/post-document-doc-id-invite) request. 

- Paste your API key into the `Authorization` header after `Bearer`.
- Paste the document `id` from **Step 1** response into the `document_id` field.
- **Recipient email**: Enter a valid email address (different from the sender) in the `to`.`email` field in the request body.
- **Sender email**: Enter your developer account email address in the `from` field in the request body.
- Click **Send API Request**.

```json http
{
  "method": "post",
  "url": "https://api.signnow.com/document/{document_id}/invite",
  "headers": {
    "Authorization": "Bearer {{your_api_key}}"
  },
  "body": {
    "to": [
        {
            "email": "{{recipient_email_address}}",
            "role": "Recipient 1",
            "reminder": 12,
            "expiration_days": 30
        }
    ],
    "from": "{{your_email_address}}"
 }
}
```

That's it! Your first signature invite is sent. Check the inbox of the recipient email address you entered to sign the document.

> Documents signed in Development mode will contain a watermark.

<div>
<h2 class="section-subtitle" style='font-family:"Graphik", "Arial", sans-serif;color:#2C2C2C;margin-bottom:0 !important;padding-bottom:0 !important;font-size:36px !important;line-height:48px !important;font-weight:700 !important;'>Explore advanced workflows</h2>
</div>

Now that you have sent your first invite, explore more complex scenarios:

[**Embedded signing**](/docs/guides-embedded-signing): Build a seamless signing experience directly within your website or application.

[**Embedded sending**](/docs/guides-embedded-sending): Enable users to send documents for signature directly from your application using their own custom settings.
 
[**Embedded editor**](/docs/guides-embedded-editor): Empower users to add fillable fields and prepare documents for sending.

[**Branding**](/docs/guides-branding): Customize the signing, sending, editing, and viewing experience, as well as email notifications, to match your company’s style.

[**Webhooks**](/docs/guides-webhooks): Receive real-time notifications for events related to documents, document groups, or users.

<div>
<h2 class="section-subtitle" style='font-family:"Graphik", "Arial", sans-serif;color:#2C2C2C;margin-bottom:0 !important;padding-bottom:0 !important;font-size:36px !important;line-height:48px !important;font-weight:700 !important;'>Go Live</h2>
</div>

You can test eSignature workflows in Development mode as long as you need. 

When you are ready to launch your application in production, follow the [Go Live checklist](/docs/go-live-checklist).



---

## Go-live checklist

# Developer Go-live Checklist

SignNow uses a single URL `https://api.signnow.com` for both development and production. There are no separate "production keys." Going live is a billing and configuration change.

## Account and billing

- [x]  **Confirm active subscription:** To use the SignNow API in Live mode, you must have an active paid subscription or a valid free trial.

You can choose between an [API-specific plan](https://snseats.signnow.com/purchase/api/pricing) or a [Site License](https://snseats.signnow.com/purchase/business_plans/pricing) subscription:

* **API Plans:** Best for a single developer or system integration that requires one API dashboard.
* **Site License:** Best for organizations that need both the SignNow web application and API access for multiple users.
- [x]  **Add API users to subscription plan**: For a Site License subscription, ensure that all API users are added to the subscription plan.

Learn how to [add users to the subscription plan](https://www.signnow.com/help/add-users-subscription).

**Tip:** You can access your subscription details from the API dashboard.

Go to **Plan Usage** > **Manage subscription**.

![Plan Usage page in the API dashboard with the signature invite usage and the Manage subscription link](/reference-assets/images/Go-live%20checklist/plan_usage.png)

## Go-Live switch

- [x]  **Toggle app to Live:** In the SignNow API dashboard, go to **Apps and Keys**, locate your application, and switch the mode from **Development** to **Go** **Live**.

![Apps and Keys page with a Development application, its Go Live button and the menu with the Go Live option](/reference-assets/images/Go-live%20checklist/go_live_app.png)

## Configuration final check

Ensure your code is pointing to the right infrastructure.

- [x]  **Production webhooks:** Update your SignNow dashboard to point event subscriptions to your **production** callback URLs (must be HTTPS), removing any test or ngrok addresses.
- [x]  **Secure credentials:** Move your existing Client ID, Client Secret, and user credentials out of code and into a secure production secrets manager.
- [x]  **Test refresh token flow:** Verify your code automatically and successfully refreshes access tokens before they expire to prevent downtime.

## Performance and stability

Avoid service disruptions caused by high volume.

- [x]  **Check rate limits:** Review the API rate limits associated with your specific subscription plan. Ensure your anticipated production volume will not exceed these limits.

In Live mode, applications have a default limit of **1,000 requests per hour**. Each API request receives the following parameters in the response header:

```text
X-RateLimit-Limit => Total allowed requests per hour.
X-RateLimit-Remaining => Count of remaining requests for this hour.
X-RateLimit-Reset => Timestamp when the limit will reset.
```

If the limit is exceeded, the API returns a **429** error with this plain-text body:

```text
You exceeded the rate limit of {limit} API requests per hour.
```

**Note**: If your application consistently exceeds 1,000 calls per hour, contact [SignNow support](https://support.signnow.com/) to request a limit increase.

- [x]  **Handle 429 errors:** Verify your code includes logic to gracefully handle `429 Too Many Requests` errors (e.g., implement an exponential backoff retry mechanism) instead of crashing.

## Final test

Send a document for signature in Live mode. If the signed PDF **has no** ***Development*** watermark, you are live.


---

## API changelog

# SignNow API Changelog

Explore new features, updates, and guides for the SignNow API.

<details open>

**<summary>October 2026</summary>**

✅ **Endpoint improvements**

- Published [Get doc group template info](/docs/document-group-template/operations/get-document-group-template-info), which returns the documents, roles, and fields of a document group template in one call, so you don't need to request each document separately before prefilling or sending.

- Added the opt-in `include=documents.fields` option to [Get document group info (v.2)](/docs/document-group/operations/get-document-group-info-v2), so fields come back in the same format as for document group templates, and documented the other `include` values that were missing from the page.

- Documented the limits for free trial accounts, accounts without a paid subscription, and apps in development mode on the [API errors](/docs/api-errors) page: phone authentication, freeform invite subject and message length, the number of signers, invite personalization, custom SMS, and custom branding. Each limit comes with the exact error code the API returns, and the affected invite, embedded invite, and branding endpoints show the same restrictions and error examples.

- Added missing response schemas, field descriptions, and examples across the API reference, and fixed error examples to match what the live API returns.

</details>
<br>

<details>

**<summary>September 2026</summary>**

✅ **Endpoint improvements**

- Added the `completed_at` and `expires_at` fields to [Get document group info (v.2)](/docs/document-group/operations/get-document-group-info-v2), so you can see when a document group was completed and when its soonest pending invite expires.

- Added `invite_steps`, `documents`, and `completed_at` to the `document_group.complete` and `user.document_group.complete` webhook payloads. See the payload example in [Get callback info by ID](/docs/callbacks-info/operations/get-v2-dashboard-event-subscriptions-subscription-id-callbacks).

✅ **Integrations**

- Published the [Automate eSignatures](/docs/clickup-zapier-signing-workflow) guide in [ClickUp and SignNow](/docs/clickup), covering a no-touch signing workflow with ClickUp and SharePoint through Zapier.

</details>
<br>

<details>

**<summary>August 2026</summary>**

✅ **Integrations**

- Published the [SignNow for Procore](/docs/signnow-procore) guide, covering [installation](/docs/procore-installation) and app configuration, [supported record types](/docs/procore-record-types), [admin tools](/docs/procore-admin-tools) for templates, document flows, and custom actions, [sending for signature](/docs/procore-send-with-signnow) from a record, [tracking document statuses](/docs/procore-track-document-statuses), and [troubleshooting](/docs/procore-troubleshooting).

- Published the [Workday and SignNow](/docs/signnow-workday) guide, covering how to connect the two apps through Zapier and [automate eSignatures](/docs/signnow-workday-automate-esignatures) in HR workflows.

✅ **Endpoint improvements**

- Documented SMS and phone recipients on the [Update doc group invite](/docs/doc-group-field-invite/operations/update-document-group-invite) endpoint. All four recipient conversions — email to email, email to phone, phone to email, and phone to phone — have a request example, along with the validation rules for the matching email and phone fields and where to source the current phone recipient value.

✅ **Guides**

- Corrected the lock-signing-date parameter in [Complex tag parameters](/docs/text-tags#complex-tag-parameters): the parameter is `lock_to_sign_date`, a boolean that pre-fills the date field with the signing date.

- Reviewed and corrected the [API dashboard](/docs/account) page against current API behavior.

</details>
<br>

<details>

**<summary>July 2026</summary>**

✅ **Endpoint improvements**

- Documented the optional `sms_message` parameter for the [document group invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group) and [single-document SMS invite](/docs/document-field-invite/operations/post-document-document-id-for-sms-invite-send-invite-via-sms) endpoints, so you can customize the SMS text your signers receive. Also added a mixed email + SMS invite example and kept the [SMS invite guide](/docs/sms-invite) in sync.

- Added the DocumentGroup Invite Expiry events to the [Webhooks guide](/docs/guides-webhooks) and the [Get callback info by ID](/docs/callbacks-info/operations/get-v2-dashboard-event-subscriptions-subscription-id-callbacks) reference, with a payload example, giving you visibility into when document group invites expire so you can automate follow-up.

✅ **Branding**

Updated the [Create and edit send invite brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-resources-send-invite) endpoint and the [Send invite resource](/docs/branding-send-invite-resource) page to remove the retired `actions-on-completion` setting and refresh the Send invite screenshots, so the docs match the current product.

✅ **Guides**

- Added an end-to-end flow to the [entities guide](/docs/entities) covering the reusable-template-to-embedded-signing path, from creating a template to instantiating a signable document for signing.

- Published a new [Handling SignNow event callbacks](/docs/guides-handling-signnow-event-callbacks) guide covering how to subscribe to SignNow events and build a callback server to receive and process them, complete with an end-to-end flow diagram and a runnable example server.

- Published a new [Sign PDFs in WordPress](/docs/sign-pdfs-in-wordpress) guide showing how to embed SignNow document signing in a WordPress page via the REST API.

</details>
<br>

<details>

**<summary>June 2026</summary>**

✅ **Endpoint improvements**

Documented the new [`GET /v2/search`](/docs/search/operations/get-v2-search) endpoint, giving developers a single call to search documents, templates, document groups, and document group templates across every folder they can access.

Added the `content.initiator_id` and `content.initiator_email` parameters, new event payload examples, and missing response fields to [Get callback info by ID](/docs/callbacks-info/operations/get-v2-dashboard-event-subscriptions-subscription-id-callbacks).

</details>
<br>

<details>

**<summary>May 2026</summary>**

✅ **Endpoint improvements**

Added approver role documentation to the embedded invite endpoints for documents and document groups, and updated the [Embedded signing guide](/docs/guides-embedded-signing#recipient-roles) with recipient role details.

- [Create embedded invite for document](/docs/document-embedded-signing/operations/create-embedded-signing-invite)
- [Create embedded invite for document group](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group)

Added CRUD documentation for scheduled invite endpoints which let you schedule signing invites for a future date, reducing manual follow-up for time-sensitive workflows.

- [Scheduled document invite](/docs/reference)
- [Scheduled document group invite](/docs/reference)

Documented new fields for setting reminders and expiration across the entire invite at once, applying to all recipients rather than configuring each one individually (`general_expiration_days`, `general_reminder`, `general_expiration_time` — available for document groups only).

- [Invite to sign](/docs/document-field-invite/operations/post-document-doc-id-invite)
- [Get document group info](/docs/document-group/operations/get-document-group-info-v2)
- [Create document group invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group)
- [Edit document group template recipients](/docs/document-group-template/operations/put-v2-document-group-templates-document-group-template-id-recipients)
- [List document group template recipients](/docs/document-group-template/operations/get-v2-document-group-templates-doc-group-template-id-recipients)
- [Complete DG correction](/docs/document-group/operations/put-v2-document-groups-document-group-id-invite-document-group-invite-id-correction)

✅ **SignNow MCP Server**

Added documentation for new [SignNow MCP Server tools](/docs/mcp-tools) covering signing workflows, document and contact management.

✅ **Custom fields**

Published a new article on [Custom fields](/docs/custom-fields) covering how to build integrations using pre-set fields for embedded workflows.

</details>
<br>

<details>

**<summary>April 2026</summary>**

✅ **Endpoint improvements**

- [Import CRM contacts in bulk](/docs/contacts/operations/post-v2-crm-contacts-import) — published endpoint that adds multiple contacts to the account from a CSV file in a single request.
- [Update a document](/docs/document/operations/edit-document) — added the `document_name` parameter to the example, schema, and JSON so users know the call can also rename a document.
- [Get document](/docs/document/operations/get-document), [Get document group info](/docs/document-group/operations/get-document-group-info-v2) — added the full list of `email_statuses` values (`sent`, `mail_open`, `bounce`, `mail_click`, `reminder_sent`, `undefined`) and the per-event fields returned with each status.
- [Edit document group recipients](/docs/doc-group-field-invite/operations/put-v2-document-groups-document-group-id-recipients) — explained that one email can hold multiple roles across documents and added mapping guidance for developers building custom integrations.

✅ **Branding**

Added `field-settings` and `default-fields` parameters to the [Editor brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-editor) for customizing the embedded sending and embedded editor experience.

✅ **Guide improvements**

- [Authentication guide](/docs/authentication#common-401-errors-and-solutions) — added troubleshooting for 401 responses.
- [Branding guide](/docs/guides-branding#brand-ownership) — documented the brand ownership model (`common`, `organization`, `user`).
- [Embedded editor guide](/docs/guides-embedded-editor#troubleshooting) — added a troubleshooting section.
- [Embedded signing guide](/docs/guides-embedded-signing#link-and-session-expiration) — added `session_expiration` info and a troubleshooting section.
- [Webhooks guide](/docs/guides-webhooks#webhook-recovery) — added retry policy details and a webhook recovery section.

</details>
<br>

<details>

**<summary>March 2026</summary>**

✅ **Document generation**

Published an article for the [SignNow document generation](/docs/document-generations) use cases and added new endpoints to the public API docs, along with new webhook events to the [Webhooks guide](/docs/guides-webhooks).

- [Generate a document from uploaded file](/docs/document-generation/operations/post-v2-document-generations-upload)
- [Generate a document from URL](/docs/document-generation/operations/post-v2-document-generations-url)
- [Get document generation status](/docs/document-generation/operations/get-v2-document-generations-process-id-status)

✅ **Document, Document Group, Document Group Template sharing**

Published full CRUD documentation for personal sharing of documents, document groups, and document group templates, covering endpoints for listing, assigning, updating, and removing user roles (sender or viewer).

**Document**

- [Share document](/docs/document/operations/share-document)
- [Get document users](/docs/document/operations/get-document-roles)
- [Unshare document from all users](/docs/document/operations/unshare-document-from-user)
- [Unshare document from user](/docs/document/operations/unshare-document-from-user)

**Document Group**

- [Share document group](/docs/document-group/operations/share-document-group)
- [Get document group users](/docs/document-group/operations/get-document-group-roles)
- [Unshare document group from all users](/docs/document-group/operations/unshare-document-group-from-user)
- [Update document group role](/docs/document-group/operations/update-document-group-role)
- [Unshare document group from user](/docs/document-group/operations/unshare-document-group-from-user)

**Document Group Template**

- [Share document group template](/docs/deprecated-dgt/operations/share-document-group-template)
- [Get document group template roles](/docs/document-group-template/operations/list-document-group-template-roles)
- [Unshare document group template from all users](/docs/document-group-template/operations/unshare-document-group-template-user)
- [Update document group template role](/docs/document-group-template/operations/update-document-group-template-role)
- [Unshare document group template from user](/docs/document-group-template/operations/unshare-document-group-template-user)

✅ **Branding**

Added the [Branding and web settings configuration priority](/docs/guides-branding#branding-and-web-settings-configuration-priority) section to the Branding guide, explaining the hierarchy of API-based branding and web settings.

✅ **AI connectors**

Published a dedicated [AI Security article](/docs/mcp-server-security) in the API Tools section covering the security model of the MCP Server and linking to the SignNow AI security documentation.

</details>
<br>

<details>

**<summary>February 2026</summary>**

✅ **Branding**

Added new settings to the [Editor resource](/docs/general-branding/operations/put-v2-brands-brand-id-editor) for customizing the signing session for the recipient:

- `editor.signing-settings.guide-signers-only-through-required-fields`
- `editor.signing-settings.auto-apply-signatures-and-initials-to-document-fields`

✅ **Guides**

Updated the Text tags guide with examples of [radio button tags](/docs/text-tags#radio-buttons).

✅ **Endpoint improvements**

Added the `lock_to_sign_prefill` attribute to [`PUT /document/{{document_id}}`](/docs/document/operations/edit-document) and [`GET /document/{{document_id}}`](/docs/document/operations/get-document) endpoints. This attribute controls whether recipients can edit `prefilled_text` fields.

</details>
<br>


<details>

**<summary>January 2026</summary>**

✅ A new section, **SignNow AI Tools**, has been added to the documentation covering the Model Context Protocol (MCP) suite:

- [SignNow MCP Server](/docs/mcp-server)
- [SignNow API Helper MCP](/docs/api-helper-mcp)

✅ **Microsoft 365**

Published the [Word/Excel add-in user guide](/docs/word-excel-add-in).

✅ **Branding**

New guides are available for configuring custom branding across different stages of the workflow:

- [White-labeled signing](/docs/white-labeled-signing)
- [White-labeled sending](/docs/white-labeled-sending)
- [White-labeled editor](/docs/white-labeled-editor)

✅ **Webhooks**

New event subscriptions added for document group copying:

- `user.document_group.copy`: Triggers for all user document groups.
- `document_group.copy`: Triggers for a single document group.
- Updated the [Webhooks guide](/docs/guides-webhooks).

✅ **Endpoint improvements**

- Added `prefill_signature_name` parameter to the [Invite to sign a doc group](/docs/doc-group-field-invite/operations/invite-to-sign-document-group) and [Create embedded invite for a doc group](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group) requests.
- Added info that freeform invite can be sent to the sender: for a [document](/docs/document-field-invite/operations/post-document-doc-id-invite) and [document group](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites).

✅ **User flow**

Updated the [Getting started page](/docs/get-started) to align with the new user flow, now empowering users to send their first signature invite directly from the docs.

</details>
<br>

---

<details>

**<summary>December 2025</summary>**

✅ **Branding**

Added the `from_email` and `from_name` parameters to [embedded sending](/docs/guides-embedded-sending#embedded-sending-features) and [embedded signing](/docs/guides-embedded-signing#senders-email-address-and-name) resources. These parameters allow API customers to build white-labeled eSignature workflows.

✅ **Onboarding flow**

Published a new [Go-live checklist page](/docs/go-live-checklist) that provides developers with clear instructions for going live.

✅ **Webhooks**

Updated the Webhooks 2.0 documentation:
- All endpoints that use Basic authorization are now organized in the [Basic auth](/docs/reference) section.
- Added the [`POST /v2/event-subscriptions`](/docs/manage-event-subscriptions/operations/create-event-subscription-2) endpoint.

✅ **Edit template and document recipients**

Added endpoints for managing template and document recipients:
- [Edit recipients](/docs/template/operations/edit-template-routing-details)
- [Get recipients](/docs/template/operations/get-template-routing-details)

✅ **Customer use cases**

Published a customer-based use case: [How to add static text to a document](/docs/add-static-text-to-document).


</details>
<br>

<details>

**<summary>November 2025</summary>**

✅ Published the user guide for the [SignNow Power Automate connector](/docs/power-automate-signnow-overview). The guide provides step-by-step instructions for integrating SignNow actions into automated workflows and includes detailed descriptions of each action.


</details>
<br>

<details>

**<summary>October 2025</summary>**

✅ **Branding**

Added new attributes for the close button option in the editor. Now users can customize the closing options for the embedded editor, embedded sending, and signing session.

- [Create and edit editor brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-editor)

- [Get editor brand resource](/docs/general-branding/operations/get-v2-brands-brand-id-editor)

- [Editor brand resource](/docs/branding-editor-resource) in the branding guide

✅ **Webhooks**

Added the new events:

- `user.document_group.invite.signer.complete`: Triggers when all documents in a document group field invite sent by a [user](/docs/guides-webhooks#user-events) were completed by a specific signer.
- `document_group.invite.signer.complete`: Triggers when all documents in a specific [document group](/docs/guides-webhooks#document-group-events) field invite were completed by a specific signer.

✅ **Request payments**

Added endpoints for managing a Stripe account with a personal SignNow account:

- [Connect payment account](/docs/request-payments/operations/post-v2-merchant-accounts)

- [Get payment account](/docs/request-payments/operations/get-v2-merchant-accounts)

- [Delete payment account](/docs/request-payments/operations/delete-v2-merchant-accounts)

- Published the [Request payments](/docs/request-payments-guide) guide, which explains how to connect to a payment system and send a document group invite with a payment request.

✅ **API dashboard**

Updated the [user guide](/docs/account) to reflect the new onboarding flow.

</details>
<br>

<details>

**<summary>September 2025</summary>**

✅ **Branding**

Updated branding endpoints with new attributes for embedded editor, embedded sending, and FreeForm invite:
- General resource ([Create and edit general brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-general), [Get general brand resource](/docs/general-branding/operations/get-v2-brands-brand-id-general))
- Editor resource ( [Create and edit editor brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-editor), [Get editor brand resource](/docs/general-branding/operations/get-v2-brands-brand-id-editor))
- [Get brand template file](/docs/general-branding/operations/get-v2-brands-template-file)
- [Create brand from template file](/docs/general-branding/operations/post-v2-brands-upload-file)


Added endpoints for the new `send invite` brand resource, allowing users to customize the Send Invite page:
- [Create and edit send invite brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-resources-send-invite)
- [Get send invite brand resource](/docs/general-branding/operations/get-v2-brands-brand-id-resources-send-invite)
- [Delete send invite brand resource](/docs/general-branding/operations/delete-v2-brands-brand-id-resources-send-invite)

Updated the branding guide:
- [General brand resource](/docs/branding-general-resource)
- [Editor brand resource](/docs/branding-editor-resource)
- [Send Invite brand resource](/docs/branding-send-invite-resource)

</details>
<br>

<details>

**<summary>August 2025</summary>**

✅ **Product guides**

Published the [Kiosk Mode guide](/docs/kiosk-mode).

✅ **Text tags**

Added description for [pre-filling the checkboxes](/docs/text-tags#simple-text-tag-parameters).

✅ **Embedded signing**

Added parameters to customize the email `subject` and `message` when creating an embedded invite for a [document](/docs/document-embedded-signing/operations/create-embedded-signing-invite) and [document group](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group).

✅ **OAuth 2.0**

Updated the [Generate access token](/docs/oauth2/operations/post-oauth2-token) endpoint descriptions with links to grant types and detailed examples.

</details>
<br>

<details>

**<summary>July 2025</summary>**

✅ **Approver flow**

Added the approver action for the [document](/docs/invite-to-sign#send-a-document-for-signature) and [document group](/docs/invite-to-sign#send-a-document-group-for-signature) sending.

✅ **Branding**

Published the [white-labeling guide](/docs/guides-white-labeling).

✅ **Sample apps**

Added the industry-specific [SignNow sample apps](/docs/sample-apps) to help users explore tailored use cases.

✅ **Endpoint improvements**

  - Added the `type` parameter for the [embedded sending links](/docs/embedded-sending/operations/post-v2-document-groups-document-group-id-embedded-sending).
  - Added parameters that let organization admins [configure redirect links](/docs/organizations#list-of-settings-and-possible-values) for senders to related endpoints: [Invite to sign a document](/docs/document-field-invite/operations/post-document-doc-id-invite), [Invite to sign a document via SMS](/docs/document-field-invite/operations/post-document-document-id-for-sms-invite-send-invite-via-sms), [Invite to sign a document group,](/docs/doc-group-field-invite/operations/invite-to-sign-document-group) [Complete a document group correction](/docs/document-group/operations/put-v2-document-groups-document-group-id-invite-document-group-invite-id-correction).

</details>
<br>

<details>

**<summary>May 2025</summary>**

✅ **Embedded view**

Added new endpoints for creating embedded view links:

- [Create a document embedded view link](/docs/embedded-view/operations/embedded-view)
- [Create a document group embedded view link](/docs/embedded-view/operations/embedded-view-doc-group)

✅ **Embedded sending**

Added the flow for [pre-filling the document group parameters](/docs/guides-embedded-sending#pre-filling-document-group-parameters-for-embedded-sending) in the embedded sending mode.

✅ **Two-factor signer authentication**

Added a signer's `authentication` object for the [document group embedded signing](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group).

✅ **User API**

Added the [Send verification email](/docs/user/operations/post-user-verifyemail) endpoint.

</details>
<br>

<details>

**<summary>March 2025</summary>**

✅ **Branding resources**

Added new attributes (`welcome-message.header-text`; `auth-page`, `download-button.visibility`, `decline-button`.

✅ **Authentication**

Added details about [API keys](/docs/authentication#generate-an-api-key).

</details>
<br>

<details>

**<summary>February 2025</summary>**

✅ **Template sharing**

Added new endpoints:

- [Share a template](/docs/template/operations/post-v2-templates-template-id-roles)
- [Update a role for a template](/docs/template/operations/put-v2-templates-template-id-roles-user-id)
- [Get user role for a template](/docs/template/operations/get-v2-templates-template-id-roles-user-id)
- [Remove access to a template](/docs/template/operations/delete-v2-templates-template-id-roles-user-id)

✅ **Branding resources**

Added CC email branding [endpoints](/docs/reference).

✅ **Document groups** 

Added a new endpoint: [Edit a document group](/docs/document-group/operations/patch-v2-document-groups-document-group-id)

✅ **Document group template**

Added new endpoints:

- [Edit a document group template](/docs/document-group-template/operations/patch-v2-document-group-templates-doc-group-template-id)
- [Edit a document group template recipients](/docs/document-group-template/operations/put-v2-document-group-templates-document-group-template-id-recipients)
- [Add a template to document group template](/docs/document-group-template/operations/post-v2-document-group-templates-document-group-template-id-templates)
- [Create an empty document group template](/docs/document-group-template/operations/post-v2-document-group-templates)

✅ **OAuth 2.0**

Added a new endpoint: [**Terminate an access token**](/docs/oauth2/operations/post-oauth2-terminate)

</details>
<br>

View more [SignNow API updates](https://www.signnow.com/release-notes/signnow-api).


---

## Authentication

# Authentication

Authorize SignNow API requests with OAuth 2.0 basic and access tokens, or sign users in with Google, Microsoft, Facebook, or SAML SSO.

## About authentication

SignNow API relies on the [OAuth 2.0 protocol](https://oauth.net/2/) for authorization. To authorize API requests, you need a basic authorization token and an access token (bearer token).

> In this article, *access token* and *bearer token* refer to the same thing and are used interchangeably.

| Basic authorization token                                                                                                                            | Access token                                                                                                 |
| -------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| Base64 encoded string<br><br>Example: `MNTxMmQxNjgyYjFhNjI3Y2Q2ZmY2OGIzZjIxNmU3N2I6`<br>`MTVkNDVkMTgyYWRiMTc5MmUwMGQ0NThlNjAxYjA0NjE=` | 64-character string<br><br>Example: `6b128e17fdf9b00e2cdb101ccf9fbbe1`<br>`3e318f770ee1b73c97b5f96778e9a21f` |
| Each application has one basic token                                                                                                   | Multiple bearer tokens can exist for different users within an application                                   |
| Copy from the [API dashboard](https://app.signnow.com/webapp/api-dashboard)                                                                | Request from [`POST /oauth2/token`](/docs/oauth2/operations/post-oauth2-token)                                                                            |
| Use to get authorized when generating a bearer token                                                                                   | Use to get authorized for most* other requests                                                               |
| Use in the Authorization header after the word “Basic”:<br>` Basic {{basic_authorization_token}}  `                                    | Use in the Authorization header after the word “Bearer”:<br>`Bearer {{access_token}}`                        |

\*Several requests work with basic authorization:

- [Create user](/docs/user/operations/post-user)
- [Reset password](/docs/user/operations/user-forgot-password)
- [Activate/deactivate signing link](/docs/signing-link/operations/put-v2-application-signing-links-signing-link-short-url-id)
- [Get signing links](/docs/signing-link/operations/get-v2-application-signing-links)
- [Get event subscriptions](/docs/basic-auth/operations/get-event-subscriptions)
- [Delete event subscriptions (basic auth)](/docs/basic-auth/operations/delete-event-subscription)
- [Edit event subscriptions (basic auth)](/docs/basic-auth/operations/update-event-subscription)

For quick authorization and testing, use API keys generated in the API dashboard.

## SignNow login options

Before diving into the authentication process, let’s review how end-users can log in to SignNow.

SignNow supports the following login methods:

- Using account email and password
- Using third-party applications:<br>
    - Facebook login
    - Microsoft login
    - Google login
- SSO (Single Sign-on) via SAML

![SignNow login page with the available login methods](/reference-assets/images/authentication%20guide/login_methods.png)

Let’s briefly discuss the last two methods.

### Facebook login

Facebook login is an OAuth-based authentication method that allows users to log in to SignNow using their Facebook account.

**Benefits**:
- Users don’t need to remember additional passwords.
- Seamless experience for users already logged into Facebook.
- Grants access to basic user data (e.g., name, email) for account creation.

**Usage example:**

A user clicks **Facebook** on the SignNow login page, enters the email and password from the Facebook account, and authorizes the app. 

### Microsoft login

Microsoft login uses Microsoft’s OAuth-based authentication to enable users to log in to SignNow using their Microsoft credentials (e.g., Office 365, Outlook, Teams accounts).

**Benefits:**
- Commonly used in enterprise environments for integration with Azure Active Directory (AAD).
- Supports single sign-on (SSO) across Microsoft services and partner apps.
- Offers robust security features like multi-factor authentication (MFA).

**Usage example**:

A user clicks **Microsoft** on the SignNow login page, selects their account, and gets access to their SignNow organization.

### Google login

Google login uses OAuth 2.0 and OpenID Connect protocols to let users sign in to SignNow with their Google account.

**Benefits:**
- Widely used and trusted by millions of users worldwide.
- Allows developers to request access to basic user info (e.g., email, name) or extended permissions (e.g., Google Drive files).
- Strong security with features like two-factor authentication (2FA).

**Usage example:**
A user clicks **Google** on the SignNow login page, selects their account, and gains instant access to SignNow without needing to create a separate password.

### SSO via SAML (Security Assertion Markup Language)

SAML is an open standard used for single sign-on (SSO) in enterprise environments. It allows authentication data to be exchanged securely between an identity provider (IdP) (ADFS, Auth0, Azure AD, Okta, OneLogin, and Salesforce Identity) and a service provider (SP) (SignNow).

**Benefits:**
- Eliminates the need for multiple passwords by enabling SSO across many apps.
- Often used in corporate or organizational environments.
- Secure communication between IdP and SP using XML-based assertions.

**Usage example:**
With SSO enabled, SignNow users who are already authenticated through their identity provider can automatically log into SignNow without the need to manage a separate username and password.

## Generate an API key

The easiest way to authenticate your application is by using an API key, which is generated automatically when you create an application.

- Go to the [API dashboard](https://app.signnow.com/webapp/api-dashboard) > **Apps and Keys** and select the application.
- On the **API Keys** tab, copy the API key.

![API Keys tab of an application in the API dashboard](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_api_keys.png)

- Add the API key into the `Authorization` header of your API request.

**Example API request with the API key in the Authorization header (Send a freeform invite)**

```bash
curl --request POST \
  --url https://api.signnow.com/document/{{document_id}}/invite \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{API_key}}' \
  --header 'Content-Type: application/json' \
  --data-raw '{
      "document_id": "a485bc7c95274c3cb6614c4a1fc469510d6aWWWW",
      "to": "signer@email.com",
      "from": "sender@email.com",
      "redirect_uri": "https://redirect-uri.com",
      "close_redirect_uri": "https://close-redirect-uri.com",
      "redirect_target": "blank",
      "cc": [
          "cc-recipient@email.com"
      ],
      "subject": "You have been invited to sign a document",
      "message": "You have been invited to sign a document",
      "cc_subject": "Subject for CC",
      "cc_message": "Message for CC",
      "sms_message": "{sender_email} your document is here {invite_url}",
      "language": "en"
}'
```

## Generate access token (bearer token)

We will walk through the process of generating an access token:

- using SignNow account credentials
- for users who signed up with third-party applications
- with a refresh token
- without credentials (using the authorization code)

## Step 1. Get basic authorization token

1. Go to the [API dashboard](https://app.signnow.com/webapp/api-dashboard).
2. On the **Apps and Keys** tab, select the application.
3. Select the **OAuth 2.0** tab and copy the **Basic Authorization Token**.

![OAuth 2.0 tab of an application with the Basic Authorization Token](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_oauth.png)

## Step 2. Generate access token (bearer token)

Use the [`POST /oauth2/token`](/docs/oauth2/operations/post-oauth2-token) request to generate a bearer token. You can generate an access token using on of the following authorization grants:

### Password grant

Use the application **Basic Authorization Token** and your account credentials. This method works only for application owners: for any other user, the token request fails with an access denied error (code `11005001`) even if the same credentials work for logging in to the SignNow web application. To authenticate users who don't own the application, use the [Authorization code grant](/docs/authentication#authorization-code-grant).

> If you log in to your SignNow account using third-party applications (Google, Facebook, or Microsoft), you need to reset a password and create a new one. 

<br>
<details>
<summary>Learn how to reset a password</summary>

- Log out of your SignNow account.

- Click **Forgot password?** on the login page.

![SignNow login page with the Forgot password link](/reference-assets/images/authentication%20guide/forgot_password.png)

- Enter the email address associated with your third-party application and click **Recover password**.

![Recover your password form with the email address field and the Recover password button](/reference-assets/images/authentication%20guide/recover_password.png)

- Check your email inbox and click the link. Enter your new password and click **Change password**.

![Reset password form with the password requirements and the Change password button](/reference-assets/images/authentication%20guide/enter_new_password.png)

- You will be redirected to the login page. Enter your email address and a new password to ensure everything works as expected.

Now you can use the new password for [`POST /oauth2/token`](/docs/oauth2/operations/post-oauth2-token) request.

</details>
<br>

<!--
type: tab
title: Request
-->
```bash
curl --request POST \
  --url https://api.signnow.com/oauth2/token \
  --header 'Authorization: Basic {{basic_authorization_token}}' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'username={{account_email}}' \
  --data-urlencode 'password={{account_password}}' \
  --data-urlencode 'grant_type=password' \
  --data-urlencode 'scope=*'
```
<!--
type: tab
title: Response
-->
```json
{
  "expires_in": "1584793649",
  "token_type": "bearer",
  "access_token": "XXXX55867b471d39c73f3baedfad51e7fef9a7116bd07224d048e6366651YYYY",
  "refresh_token": "XXXX8c3ce4fda49db8ff1d45533117857e7f8d3182c5c7cd8ef20cc95b36YYYY",
  "scope": "*",
  "last_login": 1
}
```
<!-- type: tab-end -->

> For all the grant types, you can use the `scope` parameter to manage the permissions for the issued token. The default `*` value grants all permissions and allows the token to perform any API action.<br>Using `scope`, you can define a custom list of accessible URLs.</br><br>For example: `document/* GET/user` will allow access to:</b><br> - all routes starting with `/document/`</br> - `GET /user` route</br>

### Refresh token grant

Use this method if the access token expires. Find a refresh token in the response to the previous authorization request.

<!--
type: tab
title: Request
-->
```bash
curl --request POST \
  --url https://api.signnow.com/oauth2/token \
  --header 'Authorization: Basic {{basic_authorization_token}}' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'grant_type=refresh_token' \
  --data-urlencode 'refresh_token={{refresh_token}}' \
  --data-urlencode 'scope=*'
```
<!--
type: tab
title: Response
-->
```json
{
  "expires_in": "1584793649",
  "token_type": "bearer",
  "access_token": "XXXX55867b471d39c73f3baedfad51e7fef9a7116bd07224d048e6366651YYYY",
  "refresh_token": "XXXX8c3ce4fda49db8ff1d45533117857e7f8d3182c5c7cd8ef20cc95b36YYYY",
  "scope": "*",
  "last_login": 1
}
```
<!-- type: tab-end -->

### Authorization code grant

Use an authorization code to generate an access token for users who are not application owners. 

**1\) Retrieve the required query parameters**

To generate an authorization code, you need the following query parameters:
- `client_id`: can be found on the API dashboard. Go to **Apps and Keys** >  select your application > select the **OAuth 2.0** tab > copy the **Client ID**.

![OAuth 2.0 tab of an application with the Client ID](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_client_id.png)

- `redirect_uri`: any URL that is opened to generate a code. Usually, it's a customer's URL with a logic that reads and uses the authorization code in the integration.
- `response_type`: always set to `code`.

**2\) Generate the authorization URL**

Use the query parameters to create an authorization URL, and share it with your users. 

**The URL example:**

```json
https://app.signnow.com/authorize?client_id={{client_id}}&response_type=code&redirect_uri=https://www.signnow.com
```

**3\) [Get the authorization code](/docs/oauth2/operations/get-oauth2-userauth)**

When the user opens the link, they’ll be prompted to log in with their SignNow credentials and grant your app access to their SignNow account.

![Consent screen where the user grants the app access to their SignNow account](/reference-assets/images/authentication%20guide/grant_access_screen.png)

After the successful login, the user will be redirected to the `redirect_uri`, which includes the authorization code as a query parameter.

**Example of the redirect URL with the authorization code:**

```json
https://www.signnow.com/?code=xxxxxxc3110eb7e741888449e0873b0d43e43f81ccfdf2131c8f90b02yyyyyyy
```

**4\) Generate an access token (bearer token)**

To exchange the authorization code for a bearer token, you’ll need:
- The application’s [Basic Authorization Token](#step-1-get-basic-authorization-token)
- The authorization `code` from the redirect URL

> The `basic_authorization_token` must belong to the same application as the `client_id` used in the authorization URL.

Send the request.

<!--
type: tab
title: Request
-->
```bash
curl --request POST \
  --url https://api.signnow.com/oauth2/token \
  --header 'Authorization: Basic {{basic_authorization_token}}' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'code={{authorization_code}}' \
  --data-urlencode 'grant_type=authorization_code' \
  --data-urlencode 'scope=*'
```
<!--
type: tab
title: Response
-->
```json
{
    "expires_in": 2592000,
    "token_type": "bearer",
    "access_token": "XXXX55867b471d39c73f3baedfad51e7fef9a7116bd07224d048e6366651YYYY",
    "refresh_token": "XXXX8c3ce4fda49db8ff1d45533117857e7f8d3182c5c7cd8ef20cc95b36YYYY",
    "scope": "*",
    "last_login": 1
}
```
<!-- type: tab-end -->

The successful request returns the access token (bearer token) and a refresh token.

### API key vs. access token (bearer token): key differences

| Feature                 | API Key                                          | Access Token                                               |
|-------------------------|-------------------------------------------------|-----------------------------------------------------------|
| **How to create**       | In the API dashboard                           | Send [`POST /oauth2/token`](/docs/oauth2/operations/post-oauth2-token) request                        |
| **Purpose**            | Identifies the application or user making API requests | Proves authentication and authorization for a specific user or session |
| **Security level and expiration** | Less secure and doesn't expire        | More secure, expires after a set time and requires refreshing |
| **Authentication**      | Simple; included in Authorization headers.  Example: `Bearer {{API_key}}` | Part of OAuth 2.0 authentication flow. Included in Authorization headers. Example: `Bearer {{access_token}}` |
| **Scope and permission** | All SignNow API requests                      | All SignNow API requests                                  |

### Which authentication method fits your integration

| Integration type | Recommended method |
|---|---|
| Server-to-server automation that acts as a single SignNow account, for example a backend that sends all documents from one integration account | An API key from that account's [API Dashboard](/docs/account#api-keys), or the password grant with the account credentials and a refresh token. API keys don't expire, so there is no token refresh logic to maintain. |
| An application that acts on behalf of individual SignNow users | The authorization code grant: users authorize your application without sharing their credentials. |
| Short-lived scripts and testing | The password grant. |

<!-- theme: info -->

> **Note**: Supported OAuth2 grant types: `password`, `refresh_token`, and `authorization_code`.

Keep API keys, the basic authorization token, and user credentials in a secure secrets manager, and never expose them in client-side code. For details, see the [Go-live checklist](/docs/go-live-checklist). To revoke an API key immediately, delete it in the API Dashboard: the application using that key stops working.

## Common 401 errors and solutions

The table below lists the most common causes of a `401 Unauthorized` error when sending API requests, and how to fix them.

| Cause | Description | How to fix |
|---|---|---|
| **The access token is incorrect** | The `Bearer` token passed in the `Authorization` header is incorrect. | Make sure you are copying the access token correctly from the [`POST /oauth2/token`](/docs/oauth2/operations/post-oauth2-token) response. |
| **The access token has expired** | The access token has reached its expiration time and is no longer valid. | Request a new access token via [`POST /oauth2/token`](/docs/oauth2/operations/post-oauth2-token) or use the refresh token to obtain a new one. |
| **The access token has been revoked** | The access token was manually revoked by the user or admin. | Re-authenticate via [`POST /oauth2/token`](/docs/oauth2/operations/post-oauth2-token) to obtain a new access token. |
| **The API key is incorrect** | The API key passed in the `Authorization` header is incorrect. | Copy the correct API key from your SignNow API dashboard. |
| **The API key has been revoked** | The API key was deleted or revoked in the SignNow API dashboard. | Generate a new API key in your SignNow API dashboard. |
| **The `Authorization` header is missing** | The request does not include the `Authorization` header. | Add `Authorization: Bearer {{access_token}}` or `Authorization: Bearer {{api_key}}` to the request. |
| **The `Authorization` header format is incorrect** | The `Authorization` header value is not formatted correctly. | Use the correct format: `Bearer {{access_token}}` or `Bearer {{api_key}}`. |
| **The account has been suspended** | The SignNow account has been suspended or deactivated. | Contact SignNow support for assistance. |

---
## iFrame authorization for integrated users

When building SignNow integration in your system, you can streamline user login using an embedded iFrame:

1\) The user clicks a button in your system to trigger a SignNow action.

2\) The SignNow login screen opens in an embedded iFrame. The screen offers all the SignNow login options, including SSO.

**Example: user logs in to SignNow within Salesforce**

**Step 1**

![SignNow sign-in screen inside Salesforce, with the Log in and Sign up buttons](/reference-assets/images/authentication%20guide/iframe_login_1.png)

**Step 2**

![SignNow login form with social login buttons, email and password fields, and Log in with SSO](/reference-assets/images/authentication%20guide/iframe_login_2.png)

3\) The user logs in to SignNow without leaving your system.

4\) The user is requested to allow the integration app to access their SignNow account.

5\) Once authorized, the user can use the SignNow functionality directly from your system.

> This authorization flow doesn't need to occur every time the user needs to use the integration. You can implement logic to store the user’s session and reuse the bearer token. 

## Try out in Postman

[Access](https://www.postman.com/signnow-api/signnow-public-collection/collection/tmopsan/signnow-code-grant-generation-collection?action=share\&creator=29919567) the authorization flow in Postman to choose from various authentication methods for your integrations.


---

## SignNow AI connectors

# SignNow AI connectors

Empower your AI assistants with the official SignNow Model Context Protocol (MCP) suite. This collection includes the **SignNow MCP Server** for executing direct eSignature actions (like sending invites and managing templates) and the **SignNow MCP API Helper** for instant access to technical documentation and code generation support.

- [SignNow MCP Server](/docs/mcp-server)

- [SignNow MCP API Helper](/docs/api-helper-mcp)

- [SignNow MCP Server security](/docs/mcp-server-security)

---

Get started with SignNow AI Connectors:

Anthropic: Find the [SignNow MCP connector](https://claude.com/connectors/signnow) on the Anthropic Marketplace.

OpenAI: Find the [SignNow app](https://chatgpt.com/apps/signnow/asdk_app_69b144385fe481919993cbb4a104b393) in the ChatGPT App Directory.



---

## SignNow MCP Server

# SignNow MCP Server

---

The hosted SignNow MCP server is available at: `https://mcp-server.signnow.com/mcp`

This URL is used by MCP clients that accept a custom server URL (such as MCP Inspector or custom integrations). The Quick connect buttons below configure it automatically, so you do not need to paste the URL.

**Quick connect**:

✅ [Add SignNow to Claude](https://claude.com/connectors/signnow)

✅ [Add SignNow to ChatGPT](https://chatgpt.com/apps/signnow/asdk_app_69b144385fe481919993cbb4a104b393)

---

## What is the SignNow MCP?

The [SignNow MCP server](https://github.com/signnow/sn-mcp-server) provides a set of tools your MCP-compatible AI assistant can call via the Model Context Protocol (MCP). This allows your AI to securely interact with SignNow's eSignature APIs in response to natural language requests or workflow triggers.

In short, instead of only suggesting *what* to do, your AI can execute eSignature workflows directly in SignNow.

The SignNow MCP server is an open-source project, allowing you to deploy it within your own infrastructure for maximum control. You can find the source code on [GitHub](https://github.com/signnow/sn-mcp-server) and explore it on the [MCP Market](https://mcpmarket.com/server/signnow) community directory.

## How it works

1. You connect SignNow MCP to your MCP-compatible AI client (like Claude or VS Code).
2. You enter a command, for example: *"List all documents in my account."*
3. The AI selects the **SignNow tool** and triggers the appropriate action.
4. The SignNow MCP securely calls the **SignNow API**, which executes the requested action.
5. Finally, the SignNow MCP returns the structured results (JSON) back to the AI.

---

## Features

The server exposes the following capabilities to your AI agent:

**Templates and document creation**

- List templates and template groups with simplified metadata.
- Create a document or a group from a template/group.
- Convert a document or document group into a reusable template.
- Upload documents from a local file path, a public URL, or an MCP resource attachment.

**Document management**

- Browse your documents, document groups, and their current statuses.
- Get normalized document/group structure with field values.
- Generate a read-only view link to preview a document or group before sending.
- Pre-fill text fields in individual documents.
- Rename documents, document groups, templates, and template groups.
- Get a direct download link for a document (or merged output for groups).

**Contacts**

- Search contacts by name, email, or phone to resolve recipient details before sending.

**Send invites**

- Send email invites for documents, groups, or templates (auto-creates documents from templates as needed; supports ordered recipients and freeform documents).
- Send self-sign invites that return a ready-to-open signing link.
- Get a direct signing link for documents awaiting the user's signature.
- Send signing reminders to pending recipients.
- Replace the recipient on a pending field invite.
- Cancel all active (pending) signing invites on a document or group.
- Check the current status and step details of an invite.

**Embedded experiences**

- Create an embedded signing session without sending an email (documents, groups, or templates).
- Create an embedded "sending/management" experience.
- Generate an embedded editor link to place or adjust fields.

---

## SignNow MCP Server in action

Watch how to automate eSignature workflows using the SignNow MCP Server in Claude Desktop.

https://www.youtube.com/watch?v=hxt9BybwRbQ

---

## Keep workflows running with Zapier

You can also use SignNow with Zapier MCP to build automations that keep running after the conversation ends. Describe the workflow to your AI tool, and it builds a Zap that Zapier runs on a schedule, a webhook, or an app event. For example, a Zap can start when every signer completes a document in SignNow and save the signed file to your storage app.

To set it up, connect Zapier to Claude or ChatGPT, or add Zapier to Grok Build (formerly Cursor), as described in the [Zapier MCP quickstart](https://docs.zapier.com/mcp/get-started/quickstart). For the SignNow triggers and actions you can use, see [SignNow on Zapier](https://zapier.com/apps/signnow/integrations).

For SignNow triggers and actions, example workflows, and how to use both servers together, see [SignNow for Zapier](/docs/signnow-and-zapier).

---

## See also

- [Quick start](/docs/mcp-quick-start)
- [Local setup](/docs/mcp-local-setup)
- [Hosted setup](/docs/mcp-hosted-setup)
- [SignNow MCP Server tools](/docs/mcp-tools)
- [SignNow API Helper MCP](/docs/api-helper-mcp)
- [SignNow MCP Server security](/docs/mcp-server-security)

Report technical issues about the SignNow MCP Server [here](https://github.com/signnow/sn-mcp-server/issues).


---

## Quick start

# Quick start

Connect Claude Desktop (or any MCP-compatible client) to the hosted SignNow MCP server in under two minutes.

---

## Credentials

You need a [SignNow web account](https://snseats.signnow.com/purchase/business_plans/pricing) to use the hosted MCP server. The hosted server uses OAuth, so you only need to log in with your SignNow email and password when prompted by the client.

For local installation, see [Local setup](/docs/mcp-local-setup).

---

## Connect Claude Desktop

- Open Claude Desktop or Claude.ai and go to **Customize** (right panel) > **Connectors** > **Search connectors** and enter `SignNow`, or use the [SignNow connector for Claude](https://claude.com/connectors/signnow) direct link.

![Claude Connectors settings with SignNow found in the search and the Connect button](/reference-assets/images/MCP/signnow_mcp_remote_new.png)

- Click **Connect** to add SignNow to Claude.

- Log in to your SignNow account and grant the SignNow MCP server access to your account.

---

## Verify the connection

In a new chat, enter a command like `List my documents in SignNow` to verify that the MCP server responds correctly.

---

## What's next

- [Hosted setup](/docs/mcp-hosted-setup) — instructions for ChatGPT, VS Code, Cursor, and MCP Inspector.
- [Local setup](/docs/mcp-local-setup) — run the MCP server locally with your own credentials.
- [SignNow MCP Server tools](/docs/mcp-tools) — full catalog of SignNow MCP tools and example prompts.


---

## Local setup

# Local setup

Run the SignNow MCP server locally with your personal credentials and connect it to your preferred MCP-compatible client.

---

## Prerequisites

- **Python 3.11+** installed (verify with `python3 --version`).
- **uvx** installed (verify with `uvx --version`). If missing, install `uv`:

   ```bash
   curl -LsSf https://astral.sh/uv/install.sh | sh
   ```

- A SignNow [developer account](https://snseats.signnow.com/purchase/business_free_trial/loggedout?type=api) with an active API application. Your first application is created automatically.
- Credentials for one of the two supported authentication methods shown below.

<!--
type: tab
title: API key
-->

- `SIGNNOW_API_KEY` — the **API key** from your SignNow API application.

> To copy the **API key**, go to your developer account API dashboard → **Apps and Keys** → select your application → **API Keys** → copy the API key.

<!--
type: tab
title: Email and password
-->

- `SIGNNOW_USER_EMAIL` — your account email.
- `SIGNNOW_PASSWORD` — your account password.
- `SIGNNOW_API_BASIC_TOKEN` — the **Basic Authorization Token** from your SignNow API application.

> To copy the **Basic Authorization Token**, go to your developer account API dashboard → **Apps and Keys** → select your application → **OAuth 2.0** tab → copy the **Basic Authorization Token**.

<!-- type: tab-end -->

---

## Verify the server starts

Run the server once from the terminal to confirm `uvx` can fetch and launch the package. The server reads credentials from environment variables at startup, so pass them inline (replace the placeholder values with your real credentials).

<!--
type: tab
title: API key
-->

```bash
SIGNNOW_API_KEY="your-api-key" \
uvx --from signnow-mcp-server sn-mcp serve
```

<!--
type: tab
title: Email and password
-->

```bash
SIGNNOW_USER_EMAIL="your.email@example.com" \
SIGNNOW_PASSWORD="your-password" \
SIGNNOW_API_BASIC_TOKEN="your-basic-token" \
uvx --from signnow-mcp-server sn-mcp serve
```

<!-- type: tab-end -->

This starts a STDIO server. If the process launches without errors and waits for a client, it is working. Stop it with `Ctrl+C`. The first run is slower because `uvx` downloads the package from PyPI.

> If you run `uvx --from signnow-mcp-server sn-mcp serve` without the environment variables, the server exits with a Pydantic `ValidationError` for `SignNowConfig`. That's the package telling you the credentials are missing.

---

## Connect Claude Desktop

### Step 1. Configure Claude Desktop

Locate the Claude Desktop config file:

- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`

Or open it from the app: **Claude Desktop** → **Settings** → **Developer** → **Edit Config**.

![mcp_claude_edit_config.png](/reference-assets/images/MCP/mcp_claude_edit_config.png)

Add the following entry under `mcpServers`. Replace the placeholder values with your real credentials.

<!--
type: tab
title: API key
-->

```json
{
  "mcpServers": {
    "signnow-local": {
      "command": "uvx",
      "args": ["--from", "signnow-mcp-server", "sn-mcp", "serve"],
      "env": {
        "SIGNNOW_API_KEY": "your-api-key"
      }
    }
  }
}
```

<!--
type: tab
title: Email and password
-->

```json
{
  "mcpServers": {
    "signnow-local": {
      "command": "uvx",
      "args": ["--from", "signnow-mcp-server", "sn-mcp", "serve"],
      "env": {
        "SIGNNOW_USER_EMAIL": "your.email@example.com",
        "SIGNNOW_PASSWORD": "your-password",
        "SIGNNOW_API_BASIC_TOKEN": "your-basic-token"
      }
    }
  }
}
```

<!-- type: tab-end -->

The `${env:VARIABLE_NAME}` placeholder syntax also works for any of these variables, but only if they are exported in the system environment that Claude Desktop sees. For a quick local setup, paste the values directly.

### Step 2. Disable the cloud SignNow connector

If you have the official hosted SignNow connector enabled in Claude Desktop, turn it off. Otherwise both connectors expose the same tool names and the model gets confused about which one to call.

### Step 3. Restart and verify

- Quit Claude Desktop completely (on macOS use `Cmd+Q`, do not just close the window), then reopen it.
- In a new chat, ask: `list available signnow tools`. You should see entries such as `list_all_templates`, `list_documents`, `send_invite`, `create_embedded_invite`, and others.
- Smoke test: `list my SignNow templates` or `upload this file to SignNow: https://pdfobject.com/pdf/sample.pdf`.

### Troubleshooting

| Problem | Solution |
|---|---|
| Server does not start from the terminal | Confirm `uvx` is on `PATH` (run `which uvx`) and Python 3.11+ is installed. |
| Claude does not see the tools | Check the MCP logs at `~/Library/Logs/Claude/mcp*.log` (macOS). The error is usually wrong credentials or a stale `uvx` cache. |
| 401 or 403 errors on tool calls | The credentials are wrong. If using the API key, confirm it was copied from **Apps and Keys** → **API Keys**. If using email and password, confirm the **Basic Authorization Token** is from **Apps and Keys** → **OAuth 2.0** (not the API key or an access token). |
| Need to force a fresh package version | Run `uvx --refresh --from signnow-mcp-server sn-mcp serve`. |

---

## Connect VS Code (GitHub Copilot)

### Step 1. Configure the server

Create a file `.vscode/mcp.json` in your workspace. Add the following configuration to this file, replacing the placeholders with your actual credentials.

<!--
type: tab
title: API key
-->

```json
{
  "servers": {
    "signnow": {
      "command": "uvx",
      "args": [
        "--from",
        "signnow-mcp-server",
        "sn-mcp",
        "serve"
      ],
      "env": {
        "SIGNNOW_API_KEY": "your_api_key"
      }
    }
  }
}
```

<!--
type: tab
title: Email and password
-->

```json
{
  "servers": {
    "signnow": {
      "command": "uvx",
      "args": [
        "--from",
        "signnow-mcp-server",
        "sn-mcp",
        "serve"
      ],
      "env": {
        "SIGNNOW_USER_EMAIL": "your_account_email",
        "SIGNNOW_PASSWORD": "your_account_password",
        "SIGNNOW_API_BASIC_TOKEN": "your_basic_authorization_token"
      }
    }
  }
}
```

<!-- type: tab-end -->

### Step 2. Restart VS Code

Restart VS Code to load the new configuration.

### Step 3. Open GitHub Copilot Chat

Click the chat icon in the sidebar or press `Ctrl+Cmd+I` (macOS) / `Ctrl+Alt+I` (Windows).

### Step 4. Enable Agent Mode

Look for the toggle or mode selector in the chat window and switch to **Agent Mode** (sometimes labeled as **Workspace** or **Attach Context**).

![mcp_vs_agent_mode.png](/reference-assets/images/MCP/mcp_vs_agent_mode.png)

### Step 5. Verify tools

Ensure the SignNow MCP server tools are visible in the context menu (paperclip icon) or that the agent confirms it can access them.

![mcp_vs_tools.png](/reference-assets/images/MCP/mcp_vs_tools.png)

### Step 6. Test the connection

Enter a command like `List my documents` to verify the MCP server is working correctly.

> The same configuration applies in Cursor. Create the configuration file `.cursor/mcp.json` in your workspace and reuse the JSON block above.

---

## See also

- [Overview](/docs/mcp-server)
- [Quick start](/docs/mcp-quick-start)
- [Hosted setup](/docs/mcp-hosted-setup)
- [SignNow MCP Server tools](/docs/mcp-tools)


---

## Hosted setup

# Hosted setup

This page covers hosted MCP options: connecting your client to the SignNow-managed MCP server, or deploying your own instance on a cloud platform like Glama. To run the MCP server locally on your own machine instead, see [Local setup](/docs/mcp-local-setup).

---

## Server URL

The hosted SignNow MCP server is available at:

`https://mcp-server.signnow.com/mcp`

This URL is used by MCP clients that accept a custom server URL (such as MCP Inspector or custom integrations). The Claude and ChatGPT connectors below configure it automatically, so you do not need to paste the URL.

---

## Connect SignNow MCP to Claude

Claude Desktop and Claude.ai connect to the hosted SignNow MCP server through the Claude UI connector. See [Quick start](/docs/mcp-quick-start) for the step-by-step walkthrough.

---

## Connect SignNow MCP to ChatGPT

- Open ChatGPT and go to **Apps**, or use the [SignNow app for ChatGPT](https://chatgpt.com/apps/signnow/asdk_app_69b144385fe481919993cbb4a104b393) direct link.
- Start typing SignNow in the search bar.

![ChatGPT Apps page with SignNow found in the search](/reference-assets/images/MCP/mcp_openai_1.png)

- On the SignNow page, click **Connect**.

![SignNow connector page in ChatGPT with the Connect button](/reference-assets/images/MCP/mcp_openai_2.png)

- Log in to your SignNow account and grant the SignNow MCP server access to your account.
- Enter a command like `What is the latest document updated in SignNow?` to verify the MCP server is working correctly.

---

## Connect SignNow MCP to MCP Inspector for testing

The MCP Inspector allows you to visually test and explore the available tools without an AI agent.

[View MCP Inspector instructions](https://github.com/signnow/sn-mcp-server?tab=readme-ov-file#mcp-inspector-testing).

---

## Self-managed deployment on Glama

If you want a hosted MCP server that you manage yourself, you can deploy the SignNow MCP server on [Glama](https://glama.ai). This option is separate from the SignNow-managed hosted server above — you provide your own SignNow credentials and control the deployment.

[View deployment instructions](https://github.com/signnow/sn-mcp-server?tab=readme-ov-file#glama-hosted-mcp).

---

## Troubleshooting

| Problem | Cause | Solution |
|---|---|---|
| OAuth login fails or you cannot sign in | Wrong credentials, a locked account, or a popup blocker preventing the SignNow login window from opening. | Double-check your SignNow email and password, allow popups for the client's domain, then retry the **Connect** flow. If you do not have an account, sign up for a [web account](https://snseats.signnow.com/purchase/business_plans/pricing). |
| Tools not appearing after connecting | The client cached the connector state before authentication finished, or the OAuth grant was interrupted. | Disconnect SignNow in your client's connector settings, then reconnect. After reconnecting, start a new chat session so the client picks up the tools. |
| Permission denied or 401 errors on tool calls | The connector's access was revoked from your SignNow account, or the session expired. | Re-grant access by clicking **Connect** on the SignNow connector again. |

---

## See also

- [Overview](/docs/mcp-server)
- [Quick start](/docs/mcp-quick-start)
- [Local setup](/docs/mcp-local-setup)
- [SignNow MCP Server tools](/docs/mcp-tools)


---

## SignNow MCP Server tools

# SignNow MCP Server tools

Full catalog of the tools the SignNow MCP server exposes to your AI assistant, grouped by category. Example prompts and troubleshooting notes are at the bottom.

> To list the available tools in your client, enter a prompt like `list available signnow tools`. Or use an MCP client (e.g., Inspector) to view full tool schemas.

---

## Templates and document creation

| Tool | Description |
|---|---|
| `list_all_templates` | List templates and template groups with simplified metadata. Supports `limit`/`offset` pagination (default: 50 items per page). |
| `create_from_template` | Make a document or a group from a template/group. |
| `create_template` | Convert a document or document group into a reusable template for signing. |
| `upload_document` | Upload a document from a local file path (`file_path`), public URL (`file_url`), or MCP resource attachment (`resource_uri`). For `file_path`, the resolved path must stay within the configured safe base directory (by default, the user's home directory); paths outside that base fail validation. Supported formats: PDF, DOC, DOCX, PNG, JPG, JPEG. Maximum size: 40 MB. Returns `document_id`, `filename`, `source`. |

---

## Document management

| Tool | Description |
|---|---|
| `list_documents` | Browse your documents, document groups, and statuses. Supports filtering by status (`filter`: `signed`, `pending`, `waiting-for-me`, `waiting-for-others`, `unsent`), expiration (`expired_filter`: `all`, `expired`, `not-expired`), folder (`folder_id`), and sorting (`sortby`: `updated`, `created`, `document-name`, combined with `order`: `asc` or `desc`). Supports `limit`/`offset` pagination (default: 50 items per page, max 100). |
| `get_document` | Normalized document/group structure with field values. |
| `view_document` | Generate a read-only embedded view link for a document or document group. Use it to preview the file before sending an invite. In MCP Apps-compatible clients the document renders inline; in other hosts the link is returned as a clickable URL. Optional `link_expiration_minutes` (43,200–518,400; default: 30 days). |
| `update_document_fields` | Pre-fill text fields in individual documents. Only text-type fields are supported. |
| `rename_entity` | Rename a document, document group, template, or template group. Auto-detects entity type when not provided. |
| `get_document_download_link` | Direct download link (merged output for groups). |

---

## Contacts

| Tool | Description |
|---|---|
| `list_contacts` | Search contacts by name, email, or phone. Returns `id`, `email`, first/last name, and company. Use before `send_invite` to resolve a recipient's email address by their name. Supports `per_page` (default 15, max 100). |

---

## Send invites

| Tool | Description |
|---|---|
| `send_invite` | Send email invites for documents or document groups. Supports ordered recipients. Auto-detects freeform documents (no fields); omit the `role` parameter for freeform recipients. Pass `self_sign=True` (with no orders) to sign the document yourself. The tool resolves your email server-side and returns a `SendInviteResponse` with a `link` field holding a ready-to-open signing URL. The same `link` is populated when a freeform recipient email matches the authenticated user. For templates or template groups, the tool auto-creates a document or document group first. The tool is designed for confirmed sends. Your AI assistant will typically prompt you to preview the document (via `view_document`) and confirm the recipients before invoking it. Set `preview_was_shown=True` once you have reviewed the preview. |
| `get_invite_status` | Current invite status/steps for a document or group. Covers field invites and freeform invites (field path preferred when both exist). The response includes `invite_mode` (`field` or `freeform`). For freeform document groups, signer emails come from the group documents list (`signature_requests`). |
| `get_signing_link` | Get a signing link for a document or document group that is already awaiting the user's signature. The document must have at least one fillable field. |
| `send_invite_reminder` | Send a signing reminder to pending signers on a document or document group. By default, reminds all pending signers; pass `email` to remind a single recipient. Optional `subject` and `message` override the default reminder email content. |
| `update_invite_recipient` | Replace the signing recipient on a pending field invite. Pass `current_email` and `new_email`; for multi-role documents, pass `role` to match a specific step. For documents, the tool deletes the old invite, creates a replacement, and immediately emails the new recipient. For document groups, it updates the pending step(s) in place. Field invites only. Freeform and embedded invites are not supported. |
| `cancel_invite` | Cancel all active (pending) signing invites on a document or document group. Auto-detects both entity type (tries `document_group` first) and invite type (field vs. freeform). Accepts an optional `reason` string. Returns one of three statuses: `cancelled`, `completed` (invite already finished), or `invite_not_sent`. |

---

## Embedded experiences

| Tool | Description |
|---|---|
| `create_embedded_invite` | Embedded signing session without email delivery for documents, groups, or templates. For template/template group, it auto-creates a document or document group first. |
| `create_embedded_sending` | Embedded "sending/management" experience for documents, groups, or templates. For template/template group, it auto-creates a document or document group first. |
| `create_embedded_editor` | Embedded editor link to place/adjust fields for documents, groups, or templates. For template/template group, it auto-creates a document or document group first. |

---

## Example prompts

**Example 1: Upload and send a document for signature**

**User prompt:** Upload contract.pdf from my Desktop and send it to client@example.com for signing.

**What happens:**
- Server uploads the document from the local file path to your SignNow account.
- Generates a read-only view link so you can preview the file before sending.
- Sends an email invite to the recipient. For documents without predefined fields, the recipient signs in freeform mode.

SignNow tools: `upload_document`, `view_document`, `send_invite`

> Tip: If you plan to reuse the uploaded document later, follow up with `create_template` to convert it into a reusable template.

---

**Example 2: Send a document from a template with preview**

**User prompt:** Send the Employee NDA template to john@example.com for signature.

**What happens:**
- Server searches your templates and identifies the matching template.
- Creates a new document instance from the template.
- Generates a preview link so you can review the document before sending.
- After your confirmation, sends the email invite to the recipient.

SignNow tools: `list_all_templates`, `create_from_template`, `view_document`, `send_invite`

---

**Example 3: Send an existing document for signature**

**User prompt:** Find the Lease Agreement document in my account and send it to tenant@example.com.

**What happens:**
- Server lists your documents and locates the Lease Agreement.
- Generates a preview link so you can confirm it is the correct document.
- Sends an email invite to the recipient.

SignNow tools: `list_documents`, `view_document`, `send_invite`

---

**Example 4: Check status and remind a pending signer**

**User prompt:** Check the status of the Employee NDA document and remind anyone who has not signed yet.

**What happens:**
- Server retrieves the invite status and identifies completed and pending signing steps.
- Reports who has signed and who is still pending.
- Sends a reminder email to pending recipients.

SignNow tools: `list_documents`, `get_invite_status`, `send_invite_reminder`

---

**Example 5: Cancel a mistake and resend**

**User prompt:** I sent the Sales Contract to the wrong email. Cancel it and resend to correct@example.com.

**What happens:**
- Server cancels all active (pending) invites on the document.
- Sends a new email invite to the corrected recipient.

SignNow tools: `cancel_invite`, `send_invite`

> Tip: If only the recipient address needs to change (and the invite is still pending on a field-based document), use `update_invite_recipient` instead.

---

**Example 6: Generate a quick signing link**

**User prompt:** Create a quick signing link for the Employee NDA contract that is waiting for my signature.

**What happens:**
- Server lists your documents and locates the Employee NDA awaiting your signature.
- Returns a direct signing URL.
- You can open the link in any browser or share it through other channels (for example, Slack) to sign without going through email.

SignNow tools: `list_documents`, `get_signing_link`

---

## See also

- [Overview](/docs/mcp-server)
- [Quick start](/docs/mcp-quick-start)
- [Local setup](/docs/mcp-local-setup)
- [Hosted setup](/docs/mcp-hosted-setup)


---

## SignNow API Helper MCP

# SignNow API Helper MCP

Give your AI coding assistant the official SignNow docs so it finds the right endpoints, debugs errors, and writes accurate code.

## What is the SignNow API Helper MCP?

The [SignNow API Helper MCP](https://github.com/signnow/sn-api-helper-mcp) is your AI-powered development guide. It gives your AI agent instant access to the official SignNow documentation, allowing it to write accurate code and answer technical questions for you.

**How it differs:** While the [SignNow MCP server](/docs/mcp-server) *performs* actions (like sending documents), this helper *teaches* you how to build integrations. It is designed to help you find the right endpoints, debug errors, and generate code samples instantly.

## How it works

1. You connect the SignNow API Helper to your AI MCP-compatible client (like Claude Desktop, Cursor, or VS Code (with Cline).
2. You ask a development question, for example: *"How do I upload a document with the API?"*
3. The AI uses the helper tools to retrieve accurate API definitions, endpoints, and parameters.
4. The server returns the documentation or guidance, allowing the AI to generate correct code snippets and explanations for you.

---

## Prerequisites

Before you begin, ensure you have:

- **Python 3.11+** installed (check with `python --version`).
- **uv** installed (recommended for the quickest setup).
    - Check with: `uvx --version`
    - If you don't have it: `pip install uv`
- **An MCP-compatible client:** Examples include Cursor, VS Code (with Cline), or Claude Desktop.

---

## Available tools

The server provides tools focused on documentation and integration support:

`get_signnow_api_info`: Fetches authoritative API reference documentation.

- **Code examples:** Generates sample code for common operations (uploading documents, creating invites).
- **Authentication help:** Explains authentication methods and token management.
- **Error resolution:** Helps troubleshoot common API error codes.
- **Integration guidance:** Provides best practices for e-signature workflows.

---

## Installation

This section provides instructions on how to configure popular MCP clients to connect to the SignNow API Helper.

### Quick run

If you use `uv`, you can run the server immediately to test it:

```
uvx sn-api-helper-mcp
```

Learn about other [running methods](https://github.com/signnow/sn-api-helper-mcp?tab=readme-ov-file#run).

---

### Connect to VS Code (via Cline)

VS Code uses the **Cline** extension (or similar MCP clients) to interact with MCP servers.

- Install the Cline extension from the VS Code Marketplace.
- **Open Cline settings:** Click the gear icon inside the Cline chat window (not the main VS Code settings).
- Select **MCP Servers > Configure** tab.
- Click **Configure MCP Servers** and add the following configuration JSON to the open file:
    
```json
{
  "mcpServers": {
    "signnow-api-helper": {
      "command": "uvx",
      "args": [
        "sn-api-helper-mcp"
      ]
    }
  }
}
```

![Cline MCP Servers settings in VS Code next to the SignNow API Helper server configuration](/reference-assets/images/MCP/mcp_cline_helper.png)

- Save the file.
- Restart VS Code.

---

### Connect to Claude Desktop

To use SignNow API Helper with the **Claude Desktop** app:

- In Claude Desktop, open **Settings** > select the **Developer** tab and click **Edit Config**.

![Claude Desktop Settings on the Developer tab with Local MCP servers and the Edit Config button](/reference-assets/images/MCP/mcp_claude_edit_config.png)

This will open the `claude_desktop_config.json` file in your default text editor.

- **Add payload:** Add the server configuration to the `mcpServers` object:

```json
{
  "mcpServers": {
    "signnow-api-helper": {
      "command": "uvx",
      "args": ["sn-api-helper-mcp"]
    }
  }
}
```

- Save the file.
- Restart the client.

---

### Connect to Cursor AI

Cursor supports MCP natively. Follow these steps to add the SignNow API Helper MCP:

- Open **Cursor Settings** (`Cmd/Ctrl + ,`).
- Go to **Features** > **MCP Servers**.
- Click **+ Add New MCP Server**.
- Add the following configuration:
    
```json
{
  "mcpServers": {
    "signnow-api-helper": {
      "command": "uvx",
      "args": ["sn-api-helper-mcp"]
    }
  }
}
```

---    

## Example prompts

Once connected, you can ask your AI agent for specific development help:

### 📖 Documentation & research

- Show me the parameters for the SignNow 'Create Invite' endpoint.
- What is the correct API endpoint to download a signed document?
- Explain the authentication flow for SignNow.

### 💻 Code generation

- Write a Python script to upload a document and send it for signing.
- Give me a curl command to check the status of a document.
- How do I handle the `invalid_token` error in my Node.js app?

See also:
- [SignNow MCP Server](/docs/mcp-server)
- [SignNow MCP Server security](/docs/mcp-server-security)

---

*Always review AI-generated code for accuracy before deploying it in production.*


---

## SignNow MCP Server security

# SignNow MCP Server Security

Security is a core principle of the SignNow MCP server.

**Your data is never used for AI training.** SignNow does not use any data transmitted through the MCP server (including your documents, templates, and account information) to train, fine-tune, or improve any AI models. Your data remains yours.

The SignNow MCP server is designed with the following security principles:

- **Scoped access:** When you connect your SignNow account, you grant access to documents and templates only. The MCP server does not request access to other account data beyond what is required to perform the actions you initiate.
- **User-initiated actions:** The MCP server only performs actions that you explicitly request. No background processing or autonomous access to your account takes place.
- **Credential isolation:** Your SignNow credentials are never exposed to the AI client or stored by the MCP server.
- **Encrypted transport:** All communication between the MCP server and SignNow APIs is conducted over HTTPS.
- **No data retention:** The MCP server does not store your data server-side. Document and template data is processed in runtime memory only and remains on your client.
- **Access revocation:** You can disconnect the SignNow MCP server at any time directly from your AI agent.
- **Compliance:** SignNow meets industry-leading security and regulatory standards, including GDPR, HIPAA, SOC 2 Type II, PCI DSS, 21 CFR Part 11, CCPA, ESIGN, and UETA. For full details, see [SignNow Security and Compliance](https://www.signnow.com/security).

---
For full details on how SignNow handles data privacy and security in AI-powered features, see [Introduction to AI in SignNow](https://helpcenter.signnow.com/en/articles/13632930-ai-in-signnow).

See also:
- [SignNow MCP Server](/docs/mcp-server)
- [SignNow API Helper MCP](/docs/api-helper-mcp)

---

## Documents, doc groups, and templates

# Documents, doc groups, and templates

How documents, document groups, and their templates relate, with API steps from upload to sending a group for signature.

## About documents, document groups, and templates

In SignNow, you can work with the following entities:

- [Document](/docs/reference): a file with one or more pages that can contain fields.
- [Document group](/docs/reference) (DG): a set of documents sent to signers simultaneously.
- [Document template](/docs/reference): a template that is used to generate multiple documents. Use [bulk invite](/docs/template/operations/bulk-invite) to send invites with uniform documents to multiple signers simultaneously.
- [Document group template](/docs/reference) (DGT): a template that is used to generate multiple document groups.

## Work with documents, document groups, and templates

### Step 1. Upload document

There are three ways to upload a document:

- [Upload](/docs/document/operations/upload-document) a document from your computer.

```bash
curl --request POST \
--url https://api.signnow.com/document \
--header 'Authorization: Bearer {{access_token}}' \
--form file=@/path/to/your/file.pdf

```

- [Upload](/docs/document/operations/post-v2-documents-url) a document from a URL.

```bash
curl --request POST \
--url https://api.signnow.com/v2/documents/url \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
"url": "https://file.com"
}'
```

- [Upload](/docs/document/operations/upload-document-with-text-tags) a document with text tags. This way, your document will contain fields immediately after upload. Otherwise, you need to add fields with a separate request.

```bash
curl --request POST \
--url https://api.signnow.com/document/fieldextract \
--header 'Authorization: Bearer {{access_token}}' \
--form file= \
--form Tags= \
--form 'Tags[]:tag_name='
```

If you are trying to upload a document using Postman Web, you might encounter the **Must upload one file** error.

<details>

<summary>To fix the error</summary>

1. On the bottom right, click **Auto-select agent**.
2. Turn off **Auto select**.
3. Select **Desktop Agent**.
4. Download the Desktop Agent.
5. Open your default Download directory and start the Agent by opening the file.
6. Send the upload document request again.

![Postman upload document request with the "Must upload one file" error and the Select Postman Agent panel with Desktop Agent selected](/reference-assets/images/Documents%2C%20templates%2C%20DGs%20guide/Must_upload_one_file_error.png)


</details>

### Step 2. Add fields

This step is optional. You can send invites for the documents without fields using a [freeform invite](/docs/doc-freeform-invite/operations/post-freeform-document-id-invite). To send documents with fields, use a [field invite](/docs/document-field-invite/operations/post-document-doc-id-invite).

Use the [Edit document](/docs/document/operations/edit-document) request to add fields. In this example, text and signature fields are added to a document. You can also add fields to a template.

```bash
curl --request PUT \
  --url https://api.signnow.com/document/{{document_id}} \
  --header 'Authorization: Bearer {{access_token}}' \
  --data '{
    "fields": [
        {
            "type": "text",
            "required": true,
            "role": "Signer 1",
            "x": 350,
            "y": 170,
            "height": 25,
            "width": 100,
            "page_number": 0
        },
        {
            "type": "signature",
            "required": true,
            "role": "Signer 1",
            "x": 350,
            "y": 210,        
            "height": 25,
            "width": 100,
            "page_number": 0
        }
    ]
}'
```

### Step 3. Create template from document

Create a template when the same document goes to many signers. You prepare the fields and roles once, then generate a fresh document for each signer instead of uploading the file and placing fields every time.

Use the [Create template](/docs/template/operations/create-template) request to create a template from a document.

In the payload, use the ID of the document from which the template is generated. The ID can be found in the [Upload document](/docs/document/operations/upload-document) response.

```bash
curl --request POST \
  --url https://api.signnow.com/template \
  --header 'Authorization: Bearer {{access_token}}' \
  --data '{
  "document_name": "Non-disclosure Agreement",
  "document_id": "3e7a1c85d0b24f69ae53c81b7d40f92c6ba85e13"
}'
```

### Step 4. Generate document from template

Use the [Create document from template](/docs/template/operations/get-template-copy) request to generate a document from the template. `document_name` in the payload is optional. If not added, the document name will be the same as the template name.

```bash
curl --request POST \
  --url https://api.signnow.com/template/{{template_id}}/copy \
  --header 'Authorization: Bearer {{access_token}}' \
  --data '{
  "document_name": "Non-disclosure Agreement HR"
}'
```

### Step 5. Send the document for signature

Templates are masters for generating copies: recipients sign a document generated from the template. Send the document generated in **Step 4**, or the one you uploaded in **Step 1**. To reach many signers from a single template at once, use [Bulk invite](/docs/template/operations/bulk-invite), which generates a document per signer.

<!-- theme: warning -->

> **Note**: The generated document keeps the template's fields, positions, and role names, but its document ID, field IDs, and role IDs are all newly generated and differ from the template's. Because role names are preserved, addressing recipients by `role` avoids a lookup. Build the invite from the ID returned in **Step 4**, and if you prefer `role_id`, take the current IDs from the [Get document](/docs/document/operations/get-document) response for the generated document, not the template.

Use the [Create field invite](/docs/document-field-invite/operations/post-document-doc-id-invite) request to invite recipients by email. For signing order, reminders, expiration, and recipient authentication, see [Send a document for signature](/docs/invite-to-sign#send-a-document-for-signature).

```bash
curl --request POST \
  --url https://api.signnow.com/document/{{document_id}}/invite \
  --header 'Authorization: Bearer {{access_token}}' \
  --data '{
  "to": [
    {
      "email": "signer@email.com",
      "role": "Signer 1",
      "order": 1
    }
  ],
  "from": "sender@email.com",
  "subject": "Please sign the Non-disclosure Agreement",
  "message": "Review the agreement and add your signature."
}'
```

<!-- theme: info -->

> **Note**: `subject` and `message` are optional. Customizing them requires a paid API plan, an API free trial, or a Site License. Without one, the request fails with `Upgrade your subscription plan to personalize invite subject and message.` (code `65582`). Remove both fields to send the invite with the default subject and message. See [API errors](/docs/api-errors).

### Step 6. Create document group

To [create](/docs/document-group/operations/create-document-group) a document group, you need the IDs of all the documents that should be a part of the group. The `group_name` attribute is required.

Every document in the group must:

- be owned by the account creating the group
- not be a template
- not already belong to another document group
- have no active or fulfilled invites

<!-- theme: warning -->

> **Note**: The last condition means you cannot group the document you already sent in **Step 5**. Start the document group track from documents that have not been sent.

```bash
curl --request POST \
  --url https://api.signnow.com/documentgroup \
  --header 'Authorization: Bearer {{access_token}}' \
  --data '{
  "document_ids": [
    "8b0d47e9c2a5416fb93e05d18c7a2f64e0d3b915",
    "c19f6a03e58d47b2814ca7de06f395b8d271ea40"
  ],
  "group_name": "Non-disclosure agreements"
}'
```

### Step 7. Create document group template

A document group template does the same for a set of documents: prepare the group once, then generate a copy of the whole set for each signer.

To [create](/docs/document-group-template/operations/post-v2-document-groups-document-group-uid-document-group-template) a document group template, you need the document group ID, which can be found in the [Create document group](/docs/document-group/operations/create-document-group) response.

`name` in the payload is required and must contain a name for the template. `folder_id` is optional and, if used, must contain the ID of the Templates folder or its subfolder. By default, the document group template is saved to the Templates folder.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/document-groups/{{document_group_id}}/document-group-template \
  --header 'Authorization: Bearer {{access_token}}' \
  --data '{
  "name": "Non-disclosure agreements",
  "folder_id": "5d82b0f4a91c48e7b60d3ac295f17e84c0b6d321"
}'
```

By creating a document group template, you also generate document templates from each document in the group.

### Step 8. Create document group from template

To [create](/docs/document-group-template/operations/post-v2-document-group-templates-unique-id-document-group) a document group from a document group template, you need the template ID. You can find it in the [Get document group templates](/docs/document-group-template/operations/get-user-documentgroup-templates) response or your SignNow account:

1. Open the folder that contains the template.
2. Next to the document group template, click <i class="fa-light fa-square-ellipsis"></i>.
3. Scroll down the options, click **Copy Id**, and click <i class="fa-regular fa-copy"></i>.

`group_name` in the payload is required and must contain a name for the document group.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/document-group-templates/{{dgt_id}}/document-group \
  --header 'Authorization: Bearer {{access_token}}' \
  --data '{
  "group_name": "Non-disclosure Agreements US",
  "client_timestamp": "4562325644",
  "folder_id": "6e13d9a75c0b42f8ae94b12d7c58e03f9a41b6d2"
}'
```

### Step 9. Send the document group for signature

Document group templates work the same way: generate a document group from the template, then send that group. The documents inside the generated group have new IDs, different from the ones in the template, so take them from the **Step 8** response or from [Get document group info](/docs/document-group/operations/get-document-group-info-v2).

Use the [Create group invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group) request. For signing order, SMS delivery, reminders, expiration, and recipient authentication, see [Send a document group for signature](/docs/invite-to-sign#send-a-document-group-for-signature).

```bash
curl --request POST \
  --url https://api.signnow.com/documentgroup/{{document_group_id}}/groupinvite \
  --header 'Authorization: Bearer {{access_token}}' \
  --data '{
  "invite_steps": [
    {
      "order": 1,
      "invite_emails": [
        {
          "email": "signer@email.com",
          "subject": "Please sign the Non-disclosure Agreements",
          "message": "Review the documents and add your signature."
        }
      ],
      "invite_actions": [
        {
          "email": "signer@email.com",
          "role_name": "Signer 1",
          "action": "sign",
          "document_id": "0a5c9e14b7d3428fa6c81e2d5b09f3746ce8d215"
        }
      ]
    }
  ]
}'
```

<!-- theme: info -->

> **Note**: As with the field invite in **Step 5**, custom `subject` and `message` values require a paid API plan, an API free trial, or a Site License. Remove both fields to use the defaults.

## Other ways to send

- [Embedded signing](/docs/guides-embedded-signing): recipients sign inside your own site or app instead of on the SignNow site. [Sign PDFs in WordPress](/docs/sign-pdfs-in-wordpress) walks through the full document group template to embedded signing sequence.
- [Bulk invite](/docs/template/operations/bulk-invite): generate a document per signer from one template and send them all at once.
- [Freeform invite](/docs/doc-freeform-invite/operations/post-freeform-document-id-invite): send a document that has no fields, and let the recipient place their signature.

## Document group history events

Retrieve the full history for a specific document group using [`GET /documentgroup/{{document_group_id}}/historyfull`](/docs/document-group/operations/get-documentgroup-document-group-id-historyfull). 

The response contains information about all events that occurred to the document group.

<details>

**<summary>View the complete list of document group events:</summary>**

| **Event name** | **Meaning** |
| --- | --- |
| `document_group_created` | The document group was created. |
| `document_group_user_logged_in` | A user logged in during interaction with the document group. |
| `document_group_viewed` | The document group was viewed. |
| `document_group_approved` | The document group was approved. |
| `document_group_signed` | The document group was signed. |
| `document_group_sign_owner_attachment_sent` | The completed document group was sent to the owner as an attachment. |
| `document_group_sign_signer_attachment_sent` | The completed document group was sent to the signer as an attachment. |
| `document_group_downloaded` | The document group was downloaded. |
| `document_group_invite_sent` | The document group invite was sent. |
| `document_group_invite_resend` | The document group invite was resent. |
| `document_group_invite_completed` | The document group invite was completed. |
| `document_group_invite_cancelled` | The document group invite was cancelled. |
| `document_group_invite_full_declined` | The document group invite was declined by all recipients. |
| `document_group_invite_approver_full_declined` | The document group invite was declined by all approvers. |
| `document_group_fieldinvite_declined` | The document group field invite was declined. |
| `document_group_freeform_invite_sent` | A freeform invite for the document group was sent. |
| `document_group_freeform_invite_resend` | A freeform invite for the document group was resent. |
| `document_group_freeform_invite_cancelled` | A freeform invite for the document group was cancelled. |
| `document_group_freeform_invite_signed_by_user` | A recipient signed a freeform invite for the document group. |
| `document_group_freeform_invite_completed` | A freeform invite for the document group was completed. |
| `document_group_freeform_sign_owner_attachment_sent` | The document group signed in a freeform invite was sent to the owner. |
| `document_group_freeform_sign_signer_attachment_sent` | The document group signed in a freeform invite was sent to the signer. |
| `document_group_authentication_success` | A document group signer successfully passed authentication. |
| `document_group_authentication_failure` | A document group signer failed to pass authentication. |
| `document_group_approver_authentication_success` | A document group approver successfully passed authentication. |
| `document_group_approver_authentication_failure` | A document group approver failed to pass authentication. |
| `document_group_correction_start` | A correction process started for the document group. |
| `document_group_correction_finish` | A correction process finished for the document group. |

</details>

## Try out in Postman

[Access](https://www.postman.com/signnow-api/signnow-public-collection/collection/xjaao4f/signnow-documents-docgroups-and-templates-test-collection) this flow in Postman, and feel free to use documents, document groups, and templates in your workflows.


---

## Document generation

# Document generation

Generate pre-filled PDF documents from DOCX templates with tags using SignNow API.

**Tags** are placeholders you add to a DOCX template. Tags serve two purposes:

- **Pre-fill the document with data** — tags are automatically replaced with values from a CRM, ERP, database, or other source. The size of each tag adjusts to fit the inserted content, giving the document a uniform appearance and making it dynamic.
- **Add fillable fields** — tags are rendered as highlighted rectangular areas where recipients can enter their own data, such as a signature, initials, or text.

Once a document has been generated from a DOCX template, tags are automatically replaced with the corresponding values or rendered as fillable fields, depending on their type.

## How it works

### Step 1. Create a DOCX template with tags

Add tags directly to your DOCX file to define where data should be inserted or where recipients should fill in information.

> For tag names (the text inside {{}}), only letters, numbers, dots, and underscores are allowed. Tag names should not contain spaces, should not start with a number or a dot, and should not end with a dot.

### Supported tags

| Tag | Syntax example | Usage | Data input |
| --- | --- | --- | --- |
| **Text** | `{{TagName}}` | Inserts text, a number, or a date. Tag names don't need to be unique — multiple tags with the same name are all populated with the same value. | `"TagName": "value"` |
| **If** | `{{if(ConditionFieldName='Value1')}}`<br>Output 1<br>`{{else(ConditionFieldName='Value2')}}`<br>Output 2 <br>`{{endif}}` | Shows or hides paragraphs based on a condition. Must be unique per document. | Not required |
| **for** | `{{for(ListName)}}` <br>`{{ListItem1Name}}`<br>`{{ListItem2Name}}`<br>`{{endfor}}` | Inserts a list with a dynamic number of items. Must be unique per document. | `"ListName": [{"ListItem1Name": "value", "ListItem2Name": "value"}]` |
| **table** | `{{table(TableName)}}`<br>`{{ColumnField1}}`<br>`{{ColumnField2}}`<br>`{{endtable}}` | Inserts a table with a dynamic number of rows. Must be unique per document. | `"TableName": [{"ColumnField1": "value", "ColumnField2": "value"}]` |
| **System variables**\* | `{{numFormat(TagName,'$#,###.00')}}`<br>`{{numFormat(TagName*TagName2,'$#,###.00')}}`<br>`{{$sumabove}}`<br>`{{$total}}`<br>`{{$today}}` | `numFormat` — formats a numeric value or expression with a number format and currency symbol. <br>`$sumabove` — calculates the sum of all numeric values in the cells above this tag in the same table column. <br>`$total` — assigns a value to a variable for use elsewhere in the document, for example in conditional logic. <br>`{{$today}}` – inserts the current date automatically in `MM-DD-YYYY` format. | Not required |

\* This is not a complete list of system variables.

<!-- theme: info -->
> **Quotes in `numFormat`:** The API accepts straight quotes in the format pattern, as shown above. Integration apps might require a different format: in the SignNow apps for Salesforce and HubSpot, the pattern must use Word-style curly quotes, for example `{{numFormat(TotalPrice, ‘$#,###.00’)}}`. Check the guide for your integration.

### Fillable field tags

| Field type | Tag syntax | Notes |
| --- | --- | --- |
| Text field | `{{t:t;r:y;o:"Role name";w:100;h:15;}}` | `t:t` — text field; `r:y` — required; `o` — recipient role name; `w` — width; `h` — height. |
| Signature | `{{t:s;r:y;o:"Role name";w:100;h:15;}}` | `t:s` — signature field; `r:y` — required; `o` — recipient role name; `w` — width; `h` — height. |
| Initials | `{{t:i;r:y;o:"Role name";w:100;h:15;}}` | `t:i` — initials field; `r:y` — required; `o` — recipient role name; `w` — width; `h` — height. |
| Dropdown | `{{t:d;r:y;o:"Role name";w:100;h:15;dd:"Option1, Option2, Option3";}}` | `t:d` — dropdown field; `r:y` — required; `o` — recipient role name; `w` — width; `h` — height; `dd` — comma-separated list of options. |
| Checkbox | `{{t:c;r:y;o:"Role name";w:100;h:15;}}` | `t:c` — checkbox field; `r:y` — required; `o` — recipient role name; `w` — width; `h` — height. |
| Date | `{{t:t;r:y;o:"Role name";w:100;h:15;v:"13435fa6c2a17f83177fcbb5c4a9376ce85befeb";}}` | `t:t` — text field with date validation; `r:y` — required; `o` — recipient role name; `w` — width; `h` — height; `v` — validator ID for the date format (MM/DD/YYYY). |

Both single-brace `{...}` and double-brace `{{...}}` syntax are supported for fillable field tags. For example, `{t:s;r:y;o:"Role name";w:100;h:15;}` and `{{t:s;r:y;o:"Role name";w:100;h:15;}}` are equivalent. All other tags must use double braces.

Learn more about [tags for fillable fields](/docs/text-tags).

### Step 2. Call the API

Use one of the following endpoints to pre-fill the DOCX template with data:

- [`POST /v2/document-generations/url`](/docs/document-generation/operations/post-v2-document-generations-url) — provide a publicly accessible URL to the DOCX file with tags.
- [`POST /v2/document-generations/upload`](/docs/document-generation/operations/post-v2-document-generations-upload) — upload the DOCX file with tags directly.

The `data` object in the request payload maps tag names to their values.

The generated document appears in your SignNow account, where you can send it for signature.

The following sections walk through each supported tag type with DOCX template examples, data object examples, and generated document screenshots.

---

## Generate a pre-filled document

Use **text tags** (`{{TagName}}`) to insert individual values such as names, dates, or numbers.


<!--
type: tab
title: DOCX template
-->
<!--
focus: center
bg: "#FAF0E6"
-->
![Word template with tags for company, invoice and customer data and text tags for the sales manager's signature](/reference-assets/images/Document_generation/docx_tags.png)


<!--
type: tab
title: data object example
-->

```json
{
  "data": {
    "CompanyName": "Acme Corp",
    "CompanyAddress": "123 Main St, New York, NY 10001",
    "InvoiceNumber": "INV-2026-0042",
    "CustomerName": "Jane Smith",
    "CustomerAddress": "456 Oak Ave, Los Angeles, CA 90001"
  }
}
```

<!--
type: tab
title: Generated document
-->
<!--
focus: center
bg: "#FAF0E6"
-->
![Pre-filled invoice generated from the Word template, with signature and text fields for the sales manager](/reference-assets/images/Document_generation/docx_prefilled.png)

<!-- type: tab-end -->

> `$today` is a system tag — it auto-populates with the current date in `MM-DD-YYYY` format and doesn't need to be included in the `data` object. The fillable fields `Sales Manager signature` and `Sales manager` are completed by the recipient after the document is sent for signing.


The example above covers the simplest case — inserting individual values into a document. SignNow document generation also supports more complex scenarios: dynamic tables and lists, and nested structures. The sections below walk through each case.

---

## Generate a dynamic table

Use the **`table` tag** to generate a table with a dynamic number of rows.

In the DOCX template, wrap the row content between `{{table(TableName)}}` and `{{endtable}}`. Each tag in a table cell maps to a key in the `data` object.

In the `data` object, the table tag name becomes the key for an array of objects. Each object represents one row, with keys matching the column tag names. The generated table contains as many rows as there are objects in the array.

`ItemName`, `ItemPrice`, and `ItemQuantity` are the names of the column tags.

> You can use formulas to calculate values across columns. To build a multiplication formula, insert the tag names you want to multiply inside `{{}}` with an asterisk `*` between them — for example, `{{ItemPrice*ItemQuantity}}` outputs the product of those two values in the generated document.

<!--
type: tab
title: DOCX template
-->
<!--
focus: center
bg: "#FAF0E6"
-->

![Word template with tags for a dynamic table](/reference-assets/images/Document_generation/simple_table_tags.png)


<!--
type: tab
title: data object example
-->

```json
{
  "data": {
    "Products": [
      {
        "ItemName": "T-shirt",
        "ItemPrice": "8",
        "ItemQuantity": "10"
      },
      {
        "ItemName": "Belt",
        "ItemPrice": "4",
        "ItemQuantity": "5"
      },
      {
        "ItemName": "Dress",
        "ItemPrice": "20",
        "ItemQuantity": "2"
      }
    ]
  }
}
```

<!--
type: tab
title: Generated document
-->
<!--
focus: center
bg: "#FAF0E6"
-->

![Generated document with the filled dynamic table](/reference-assets/images/Document_generation/simple_table_prefilled.png)

<!-- type: tab-end -->

---

## Generate a dynamic list

Use the **`for` tag** to generate a list with a dynamic number of items.

In the DOCX template, wrap the list item content between `{{for(ListName)}}` and `{{endfor}}`. You can also combine text tags outside the loop with list tags inside it.

In the `data` object, the `for` tag name becomes the key for an array of objects. Each object represents one list item.

<!--
type: tab
title: DOCX template
-->
<!--
focus: center
bg: "#FAF0E6"
-->

![Word template with tags for a dynamic list](/reference-assets/images/Document_generation/list_tags.png)

<!--
type: tab
title: data object example
-->

```json
{
  "data": {
    "ManagerFullName": "Jane Smith",
    "Clients": [
      {
        "ClientFullName": "Robert Brown",
        "DateofInvoice": "01/03/2026"
      },
      {
        "ClientFullName": "Emily Carter",
        "DateofInvoice": "05/03/2026"
      },
      {
        "ClientFullName": "Michael Torres",
        "DateofInvoice": "10/03/2026"
      }
    ]
  }
}
```

<!--
type: tab
title: Generated document
-->
<!--
focus: center
bg: "#FAF0E6"
-->

![Generated document with the filled dynamic list](/reference-assets/images/Document_generation/list_prefilled.png)

<!-- type: tab-end -->

---

## Generate a table with a nested table

You can nest a **table tag** inside another table tag to generate a table where each row contains its own inner table.

In the DOCX template, place the inner `{{table(InnerTableName)}}...{{endtable}}` block inside a cell of the outer table. Each outer row can have a different number of inner rows.

In the `data` object, each object in the outer array contains its own nested array that drives the inner table.

<!--
type: tab
title: DOCX template
-->
<!--
focus: center
bg: "#FAF0E6"
-->

![Employee task list template with tags for an employees table with a nested tasks table](/reference-assets/images/Document_generation/table_nested_tags.png)


<!--
type: tab
title: data object example
-->

```json
{
  "data": {
    "Employees": [
      {
        "EmployeeFullName": "Sarah Collins",
        "Tasks": [
          {
            "TaskName": "Prepare Q2 campaign report",
            "TaskDeadline": "15/04/2026",
            "TaskPriority": "High"
          },
          {
            "TaskName": "Review social media strategy",
            "TaskDeadline": "20/04/2026",
            "TaskPriority": "Medium"
          }
        ]
      },
      {
        "EmployeeFullName": "David Marsh",
        "Tasks": [
          {
            "TaskName": "Fix authentication bug",
            "TaskDeadline": "10/04/2026",
            "TaskPriority": "High"
          },
          {
            "TaskName": "Write unit tests for payment module",
            "TaskDeadline": "18/04/2026",
            "TaskPriority": "Medium"
          }
        ]
      }
    ]
  }
}
```

<!--
type: tab
title: Generated document
-->
<!--
focus: center
bg: "#FAF0E6"
-->

![Generated employee task list with a nested tasks table for each employee](/reference-assets/images/Document_generation/table_nested_prefilled.png)

<!-- type: tab-end -->

---

## Generate a table with a nested list

You can place a **for tag** inside a table cell to generate a list within each table row.

In the DOCX template, add the `{{for(ListName)}}...{{endfor}}` block inside a cell of the `{{table(TableName)}}...{{endtable}}` structure. The other cells in the same row use regular column tags.

In the `data` object, each object in the outer table array contains its own nested array that drives the list inside that row's cell.

<!--
type: tab
title: DOCX template
-->
<!--
focus: center
bg: "#FAF0E6"
-->

![Word template with tags for a table with a nested list](/reference-assets/images/Document_generation/table_nested_list_tags.png)

<!--
type: tab
title: data object example
-->

```json
{
  "data": {
    "Employees": [
      {
        "FullName": "Sarah Collins",
        "Department": "Marketing",
        "Position": "Campaign Manager",
        "Tasks": [
          {
            "TaskName": "Prepare Q2 campaign report",
            "TaskDeadline": "15/04/2026",
            "TaskPriority": "High"
          },
          {
            "TaskName": "Review social media strategy",
            "TaskDeadline": "20/04/2026",
            "TaskPriority": "Medium"
          }
        ]
      },
      {
        "FullName": "David Marsh",
        "Department": "Engineering",
        "Position": "Backend Developer",
        "Tasks": [
          {
            "TaskName": "Fix authentication bug",
            "TaskDeadline": "10/04/2026",
            "TaskPriority": "High"
          },
          {
            "TaskName": "Write unit tests for payment module",
            "TaskDeadline": "18/04/2026",
            "TaskPriority": "Medium"
          }
        ]
      }
    ]
  }
}
```

<!--
type: tab
title: Generated document
-->
<!--
focus: center
bg: "#FAF0E6"
-->

![Generated document with a filled table and nested list](/reference-assets/images/Document_generation/table_nested_list_prefilled.png)

<!-- type: tab-end -->

---

## Generate a list with a nested list

You can nest a **for tag** inside another for tag to generate a list where each item contains its own sub-list.

In the DOCX template, place the inner `{{for(InnerListName)}}...{{endfor}}` block inside the outer `{{for(OuterListName)}}...{{endfor}}` block.

In the `data` object, each object in the outer array contains its own nested array that drives the inner list.

<!--
type: tab
title: DOCX template
-->
<!--
focus: center
bg: "#FAF0E6"
-->

![Word template with tags for a list with a nested list](/reference-assets/images/Document_generation/list_nested_tags.png)

<!--
type: tab
title: data object example
-->

```json
{
  "data": {
    "Managers": [
      {
        "ManagerFullName": "Jane Smith",
        "Clients": [
          {
            "ClientFullName": "Robert Brown",
            "DateofInvoice": "01/03/2026"
          },
          {
            "ClientFullName": "Emily Carter",
            "DateofInvoice": "05/03/2026"
          }
        ]
      },
      {
        "ManagerFullName": "Tom Walker",
        "Clients": [
          {
            "ClientFullName": "Michael Torres",
            "DateofInvoice": "10/03/2026"
          },
          {
            "ClientFullName": "Laura Bennett",
            "DateofInvoice": "14/03/2026"
          }
        ]
      }
    ]
  }
}
```

<!--
type: tab
title: Generated document
-->
<!--
focus: center
bg: "#FAF0E6"
-->

![Generated document with a filled list and nested list](/reference-assets/images/Document_generation/list_nested_prefilled.png)

<!-- type: tab-end -->



---

## Fields

# About fields

Add fields to documents so signers can fill them out. You can add fields only to documents not sent to signers. Depending on your needs, there are multiple [field types](/docs/fields#field-types).

To add fields to a document, use [`PUT /document/{{document_id}}`](/docs/document/operations/edit-document). This endpoint allows adding the following fields to a document:

- Regular fields
- Fields completed by you
- Payment requests
- Conditional fields
- Formulas (calculated fields)
- Smart fields

<!-- theme: warning -->

> If you use this request with a document with fields, new fields will override the old ones.

The required field attributes are the following:

- `type`: field type. Possible values:
  - `text`
  - `signature`
  - `initials`
  - `checkbox`
  - `attachment`
  - `hyperlink`
  - `radio button`
  - `enumeration` (a dropdown menu)
  - `stamp`
- `required`: if a field is required.
- `role`: recipient role.
- `page_number`: page number for the field (starting with 0).
- `x`: a horizontal position of the field.
- `y`: a vertical position of the field.
- `width`: field width.
- `height`: field height.

An optional field attribute:

- `name`: a unique field name. It helps to identify the field quickly when setting up conditions and formulas.

<!-- theme: info -->

> Both position and size fields use pixels. A4 format dimensions are:<br><br>300 DPI resolution: 2480 ⨯ 3508 pixels<br>72 DPI resolution:  595 ⨯ 842 pixels.

**Text field example**

```json
{
    "type": "text",
    "required": true,
    "role": "Signer 1",
    "page_number": 0,
    "x": 217,
    "y": 32,
    "width": 50,
    "height": 20,
    "name": "first_name"
}
```

## Field types

![Signing session with examples of field types: text, signature, initials, checkbox, radio buttons, attachment and dropdown](/reference-assets/images/Fields%20guide/Examples_of_fields.png)

<table style="width:100%">
<thead>
<tr>
<th> Field type </th> <th> Type specific attributes </th> <th style="width:40%"> Example </th>
</tr>
</thead>
<tr>
<td>text</td>
<td>

- `prefilled_text`: editable text that appears in the field when the signer opens the document.
- `lock_to_sign_prefill`: locks the pre-filled text to prevent the signer from editing it. Set to `true` to make the field read-only. Set to `false` to allow the signer to modify the pre-filled value. Default is `false`. Applies to `text` fields and requires a non-empty `prefilled_text` parameter.
- `label`: a hint for a recipient added to the field. When a recipient has filled out a labeled `text` field, all other `text` fields with the same `label` will be automatically filled out with the same data when the recipient clicks on that `text` field.
- `validator_id`: a string that adds format validation, such as date or email address. For a complete list of validators, use a `GET /validator` request or see [Data validators](/docs/fields#data-validators).
- `stretch_mode`: defines how the field is stretched if it's overflowed
  - `fixed` (no changes)
  - `horizontal`
  - `vertical`
  - `auto`
- `max_lines`: maximum number of lines
- `max_chars`: maximum number of characters
- `arrangement`
  - `cells`: fit characters in individual cells. If used, the number of cells is set by `max_chars`
  - `none`
- `bold`
- `italic`
- `underline`
- `font`
  - Arial
  - Times New Roman
  - Courier New
  - Tahoma
  - Comic Sans MS
- `font_size`
- `color`: 6-number HEX color code
- `align`: horizontal alignment
  - `left`
  - `center`
  - `right`
- `valign`: vertical alignment
  - `top`
  - `middle`
  - `bottom`

</td>
<td>

```json
{
    "type": "text",
    "required": true,
    "role": "Signer 1",
    "page_number": 0,
    "x": 217,
    "y": 32,
    "width": 50,
    "height": 20,
    "prefilled_text": "First name",
    "stretch_mode": "horizontal",
    "align": "center"
}
```

</td>
</tr>
<tr>
<td>signature</td>
<td>

`allowed_types`: an array of strings that define how the document can be signed. Possible values:

- `type` (user types the signature)
- `draw` (user draws the signature)
- `upload` (user uploads an image with the signature)

By default, all types are allowed.

</td>
<td>

```json
{
    "type": "signature",
    "required": true,
    "role": "Signer 1",
    "page_number": 0,
    "x": 217,
    "y": 32,
    "width": 50,
    "height": 20,
    "allowed_types": [
        "draw"
    ]
}

```

</td>
</tr>
<tr>
<td>initials</td>
<td>

`allowed_types`: an array of strings that define how the initials can be added. Possible values:

- `type` (user types the signature)
- `draw` (user draws the signature)

By default, all types are allowed.

</td>
<td>

```json

{
    "type": "signature",
    "required": true,
    "role": "Signer 1",
    "page_number": 0,
    "x": 217,
    "y": 32,
    "width": 50,
    "height": 20,
    "allowed_types": [
        "draw"
    ]
}

```

</td>
</tr>
<tr>
<td>checkbox</td>
<td>

- `prefilled_text`: if true, the checkbox is checked. By default, it's false.
- `value`: Value set to the checkbox field.

</td>
<td>

```json

{
    "type": "checkbox",
    "required": true,
    "role": "Signer 1",
    "name": "checkbox_field",
    "value": "Option 1",
    "page_number": 0,
    "x": 217,
    "y": 32,
    "width": 15,
    "height": 15,
    "prefilled_text": 1
}

```

</td>
</tr>
<tr>
<td>attachment</td>
<td>

`label`: a hint in the field. When a dropdown value is selected, the label appears when a signer hovers over the field.

</td>
<td>

```json

{
    "type": "attachment",
    "name": "photo",
    "label": "Your photo",
    "required": true,
    "role": "Signer 1",
    "page_number": 0,
    "x": 217,
    "y": 32,
    "width": 15,
    "height": 15
}

```

</td>
</tr>
<tr>
<td>hyperlink</td>
<td>

**Required**

- `link`: a link that a signer can open.

**Optional**

- `hint`: a hint that appears when a signer hovers over the field.
- `label`: a name of the link in the field. It also appears when a signer hovers over the field.

Note: by default, hyperlink fields are off. To start using them, contact [SignNow support](https://support.signnow.com/).

</td>
<td>

```json

{
    "type": "hyperlink",
    "link": "https://uniquesolutions.com",
    "name": "website",
    "label": "Company website",
    "hint": "For more information, follow the link",
    "required": true,
    "role": "Signer 1",
    "page_number": 0,
    "x": 217,
    "y": 32,
    "width": 40,
    "height": 10
}

```

</td>
</tr>
<tr>
<td>radio button</td>
<td>

**Required**

- `radio`: an array of radio buttons. Each button must have the following attributes:
  - `x`
  - `y`
  - `width`
  - `height`
  - `page_number`
  - `value`

**Optional**

- `prefilled_text`: a value that should be checked. By default, no value is checked.

</td>
<td>

```json

{
    "page_number": 0,
    "type": "radiobutton",
    "name": "US residency",
    "role": "Signer 1",
    "required": true,
    "x": 389,
    "y": 141,
    "width": 23,
    "height": 23,
    "radio": [
        {
            "x": 389,
            "y": 141,
            "width": 23,
            "height": 23,
            "page_number": 0,
            "value": "Yes"
        },
        {
            "x": 389,
            "y": 170,
            "width": 23,
            "height": 23,
            "page_number": 0,
            "value": "No"
        }
    ],
    "prefilled_text": "Yes"
}

```

</td>
</tr>
<tr>
<td>enumeration (dropdown)</td>
<td>

**Required**

- `enumeration_options`: an array of strings with the dropdown options.

**Optional**

- `custom_defined_options`: if true, a signer can type a new option. By default, it's false.
- `label`: a hint in the field. When a dropdown value is selected, the label appears when a signer hovers over the field.

<img src="/reference-assets/images/Fields%20guide/Custom_defined_dropdown.png" alt="Custom defined option example">

</td>
<td>

```json

{
    "fields": [
        {
            "page_number": 0,
            "type": "enumeration",
            "name": "Department",
            "label": "Your department",
            "role": "Signer 1",
            "required": true,
            "custom_defined_option": true,
            "enumeration_options": [
                "HR",
                "IT",
                "Finance"
            ],
            "height": 40,
            "width": 70,
            "x": 100,
            "y": 32
        }
    ]
}

```

</td>
</tr>
<tr>
<td>stamp</td>
<td>
No additional attributes
</td>
<td>

```json

{
    "type": "stamp",
    "required": true,
    "role": "Signer 1",
    "page_number": 0,
    "x": 217,
    "y": 32,
    "width": 100,
    "height": 100,
    "name": "Company stamp"
}

```

</td>
</tr>
</table>

## Data validators

Use data validators to set a field format by adding a validator ID to your tag. For a list of validator IDs, use `GET /validator` or see the table below.

For [payment requests](/docs/reference) with field values, use the following validator IDs:

- US dollars: `150662c7221a6a6ebcbb7c50ca46359d19757f81`
- 12,345.60 format: `7ef095fd94ce63b670b52b2e83457d59ac796a39`
- 12.345,60 format: `824085fd04ce63b670b11b2e83457d59ac796a39`

![Signing session text fields with a data validator format hint](/reference-assets/images/Fields%20guide/Data_validation.png)

![Currency field in the signing session with its format hint](/reference-assets/images/Fields%20guide/Currency%20field.png)

![Date field in the signing session with the date picker open](/reference-assets/images/Fields%20guide/Date%20field.png)

| Format                                         | Example                                                                 | Validator ID                             |
| ---------------------------------------------- | ----------------------------------------------------------------------- | ---------------------------------------- |
| **DD/MM/YYYY**                                 | 27/11/2008                                                              | 059b068ef8ee5cc27e09ba79af58f9e805b7c2b3 | 
| **MM/DD/YYYY**                                 | 09/28/2008                                                              | 13435fa6c2a17f83177fcbb5c4a9376ce85befeb |
| **DD-MON-YYYY**                                | 9-MAY-1981                                                              | 07c1e60f3da1192b60aca6f7e72d9b17a44539e5 |
| **DD/MM/YY**                                   | 31/12/75                                                                | 0b61eb6a696da953910f195b30c86e5131f3ae3e |
| **Mmm dd, yyyy**                               | Jan 1, 2003<br>December 12, 1999                                        | 0f4827a308018f98b11ae3923104685ff0c03070 |
| **Date and time**                              | 9/28/2008 3:49:00 PM<br><br>AM/PM is optional                           | 06448a0d0eb6a71c7c116ec4754bcb04ebf11da5 |
| **Time**                                       | 23:49<br>3:49                                                           | 09d3bb6a5eb6598edb7bfad02b0143d8c68ad788 |
| **Number**                                     | 1234<br>123.40<br>1,234.50<br><br>Comma separators are optional         | 1109cfbbb06311a06a4c7f8d04f1f0d5c44103cb |
| **US phone number**                            | (123) 456-7890                                                          | 13cc1d661da456d27b249b73056ed4d1f2e72d8e |
| **US currency**                                | $1,234.50<br><br>Comma separators and periods for decimals are required | 150662c7221a6a6ebcbb7c50ca46359d19757f81 |
| **US ZIP code**                                | 92663<br>92663-1234                                                     | 1671f4eb87444a24e1e00f149bade8b7cf3af5da |
| **Age**                                        | 59                                                                      | 1a203fa91791b0458608be045a454ba90557fb26 |
| **Positive integer**                           | 123                                                                     | 1f9486ae822d30ba3df2cb8e65303ebfb8c803e8 |
| **Positive or negative integer**               | 123<br>–123                                                             | 23a57c29fa089e22bcf85d601c8091bc9c7da570 |
| **US state**                                   | CA<br>NY                                                                | 3123849de563f9e14acacc2739467e3d30e426b6 |
| **Alphanumeric** (letters and digits only)     | abc123                                                                  | 3859296fffd39cb8efeaffda5899973c014ce42e |
| **Email address**                              | <j.doe@mail.com>                                                        | 7cd795fd64ce63b670b52b2e83457d59ac796a39 |
| **Credit card number**                         | 4932-2712-0994-7177<br>3412-123456-12345                                | 2f1c408bdf2f99fc5d4c342249da88ce5d2a5f02 |
| **Social security number (SSN)**               | 123-456-789<br>123456789                                                | 2cd795fd64ce63b670b52b2e83457d59ac796a39 |
| **Bank routing transit number (RTN)**          | 614321634                                                               | 959b068ef8ee5cc27e09ba79af58f9e805b7c2b3 |
| **Currency amount format 1**                   | 73,234.55                                                               | 7ef095fd94ce63b670b52b2e83457d59ac796a39 |
| **Currency amount format 2**                   | 73.234,55                                                               | 824085fd04ce63b670b11b2e83457d59ac796a39 |
| **Positive integers in US format**             | 200,000                                                                 | 4cf9dfe7e65eb0a2c0c93e199f1ec1cdc23a267d |
| **Positive or negative integers in US format** | 200,000<br>–8,000                                                       | f031b8b63127c6915949bfc55e3cc81edbb12ecc |
| **Positive integers in EU format**             | 100.000                                                                 | 8937f6d0511167d67c6b21fe07c9ccd3a8116126 |
| **Positive or negative integers in EU format** | 100.000<br>–1.000                                                       | e8b7248b323525d1e8d5240ccf87d8c2926622cd |

## Checkbox groups

Use `checkbox_groups` to group checkbox fields and apply validation rules that control how many checkboxes a signer must check.

**Prerequisites**

- All checkbox fields referenced in `checkbox_groups` must be defined in the `fields` array of the same request.
- When `checkbox_groups` is present, every `checkbox` field in the request must belong to exactly one group.
- All checkboxes in a group must have `required` set to `false`.
- All checkboxes in a group must be assigned to the same role.

> `checkbox_groups` is a separate top-level array in the [`PUT /document`](/docs/document/operations/edit-document) request body, not nested inside `fields`.


<table style="width:100%">
<thead>
<tr>
<th> Field</th> <th>Specific attributes </th> <th style="width:40%">Example </th>
</tr>
</thead>
<tr>
<td>Checkbox groups</td>

<td>

- `name` A unique group name within the document.
- `checkbox_names` An array of name values of the checkbox fields to include in the group. Must contain at least one item.
- `validation_type` Validation rule applied to the group. Possible values: `at_least`, `at_most`, `exactly`, `none`.
- `validation_amount` The number of checkboxes that must be checked (between 1 and the total number of checkboxes in the group). Must be null when `validation_type` is `none`.

</td>

<td>

First, define the checkbox fields in `fields`:

```json
{
    "fields": [
        {
            "type": "checkbox",
            "role": "Signer 1",
            "name": "visa",
            "value": "Visa",
            "required": false,
            "x": 100,
            "y": 200,
            "width": 20,
            "height": 20,
            "page_number": 0
        },
        {
            "type": "checkbox",
            "role": "Signer 1",
            "name": "mastercard",
            "value": "Mastercard",
            "required": false,
            "x": 100,
            "y": 230,
            "width": 20,
            "height": 20,
            "page_number": 0
        },
        {
            "type": "checkbox",
            "role": "Signer 1",
            "name": "paypal",
            "value": "PayPal",
            "required": false,
            "x": 100,
            "y": 260,
            "width": 20,
            "height": 20,
            "page_number": 0
        }
    ]
}
```

Then reference them in `checkbox_groups`:

```json
{
    "checkbox_groups": [
        {
            "name": "payment_options",
            "checkbox_names": [
                "visa",
                "mastercard",
                "paypal"
            ],
            "validation_type": "at_least",
            "validation_amount": 1
        }
    ]
}
```

</td>


</td>
</tr>
</table>

## Completed fields

You can add completed fields by adding the following arrays to<br>the [`PUT /document/{{document_id}}`](/docs/document/operations/edit-document) request body:

- `texts`: text fields
- `signatures`: signatures, initials, and stamps
- `checks`: checkmarks
- `lines`: line elements

Unlike empty fields, newly added completed fields don't override existing fields, completed or not.

<table style="width:100%">
<thead>
<tr>
<th> Field type </th> <th> Properties </th> <th style="width:45%"> Example </th>
</tr>
</thead>
<tr>
<td>Text fields</td>
<td>
Required properties:

- `data`
- `x`
- `y`
- `page_number`
- `font`
- `size`

Other formatting properties match the [properties](/docs/fields#field-types) of the regular text field.

</td>
<td>

```json
{
    "texts": [
        {
            "data": "text",
            "x": 450,
            "y": 750,
            "font": "Arial",
            "size": 25,
            "page_number": 0
        }
    ]
}
```

</td>
</tr>
<tr>
<td>Signatures, initials, and stamps</td>
<td>
To add a signature, you need its `data`. Find the `data` attribute by sending a <a href="/docs/document/operations/get-document">GET /document</a> request for a document signed by you. 

`data` is a long string stored in the <samp>signatures</samp> array in the response.

The same applies to initials and stamps.

Required properties:

- `data` of a signature, initials, or stamp
- `x`
- `y`
- `width`
- `height`
- `page_number`

</td>
<td>

```json
{
    "signatures": [
        {
            "data": "iVBORw0KGgoAAAANSUhEUgAAAIAAAAA/CAQAAACCqwjgAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAHdElNRQfoCBQKMTujCdMGAAAGW0lEQVRo3t2ae1BUVRzHPwsIomiIIIYZo6Hh+M7CFDXT...",
            "x": 450,
            "y": 100,
            "width": 50,
            "height": 50,
            "page_number": 0
        }
    ]
}
```

</td>
</tr>
<tr>
<td>Checkmarks</td>
<td>
Required properties:

- `x`
- `y`
- `width`
- `height`
- `page_number`

</td>
<td>

```json
{
    "checks": [
        {
            "x": 450,
            "y": 450,
            "width": 100,
            "height": 100,
            "page_number": 0
        }
    ]
}
```

</td>
</tr>
<tr>
<td>Lines</td>
<td>
Required properties:

- `page_number`
- `subtype`: must be `line`
- `x`
- `y`
- `width`
- `height`
- `control_points`: an array of four numbers defining the start and end points of the line: [x1, y1, x2, y2]
- `fill_color`: line color as a hex color code (without the # prefix)
- `line_width`: stroke width in pixels

</td>
<td>

```json
{
  "lines": [
    {
      "page_number": 0,
      "subtype": "line",
      "x": 20,
      "y": 20,
      "height": 20,
      "width": 20,
      "control_points": [
        265,
        59,
        556,
        57
      ],
      "fill_color": "E15554",
      "line_width": 2
    }
  ]
}
```



</td>
</tr>
</table>

## Conditional fields

Set up fields that appear when other fields are empty or completed. For example, if a team member selects the 'Vacation' checkbox, a text field for vacation dates appears.

Conditional fields support the following operators:

<table>
<tr>
    <td>AND</td>
    <td>Two or more fields fulfill the conditions</td>
</tr>
<tr>
    <td>OR</td>
    <td>At least one field fulfills the condition</td>
</tr>
<tr>
    <td>NOT AND</td>
    <td>None of the fields fulfill the conditions</td>
</tr>
<tr>
    <td>NOT OR</td>
    <td>At least one of the fields doesn't fulfill the condition</td>
</tr>
</table>

**Payload example**

<!--
type: tab
title: Simple condition
-->

If Field 1 is not filled, Field 2 appears

```json
{
    "fields": [
        {
            "page_number": 0,
            "role": "Signer 1",
            "type": "signature",
            "name": "Field 1",
            "required": false,
            "width": 122,
            "height": 34,
            "x": 88,
            "y": 15
        },
        {
            "page_number": 0,
            "role": "Signer 2",
            "type": "signature",
            "name": "Field 2",
            "dependency": {
                "operator": "not",
                "parent": [
                    {
                        "field_name": {
                            "dependency": {
                                "parent": [
                                    {
                                        "field_name": "Field 1"
                                    }
                                ],
                                "operator": "is_true"
                            }
                        }
                    }
                ]
            },
            "required": true,
            "width": 122,
            "height": 34,
            "x": 156,
            "y": 83
        }
    ]
}
```

<!--
type: tab
title: Complex condition
-->

If neither Field 1 nor Field 2 are filled, Field 3 appears

```json
{
    "fields": [
        {
            "page_number": 0,
            "role": "Signer 1",
            "type": "text",
            "name": "Field 1",
            "required": false,
            "x": 70,
            "y": 43,
            "width": 30,
            "height": 15
        },
        {
            "page_number": 0,
            "role": "Signer 1",
            "type": "text",
            "name": "Field 2",
            "required": false,
            "x": 70,
            "y": 83,
            "width": 30,
            "height": 15
        },
        {
            "page_number": 0,
            "role": "Signer 1",
            "type": "text",
            "name": "Field 3",
            "required": true,
            "x": 70,
            "y": 123,
            "width": 30,
            "height": 15,
            "dependency": {
                "operator": "not",
                "parent": [
                    {
                        "field_name": {
                            "dependency": {
                                "operator": "or",
                                "parent": [
                                    {
                                        "field_name": {
                                            "dependency": {
                                                "parent": [
                                                    {
                                                        "field_name": "Field 1"
                                                    }
                                                ],
                                                "operator": "is_true"
                                            }
                                        }
                                    },
                                    {
                                        "field_name": {
                                            "dependency": {
                                                "parent": [
                                                    {
                                                        "field_name": "Field 2"
                                                    }
                                                ],
                                                "operator": "is_true"
                                            }
                                        }
                                    }
                                ]
                            }
                        }
                    }
                ]
            }
        }
    ]
}
```

<!-- type: tab-end -->

## Calculated fields

Set up formulas or calculated fields that automatically calculate values from other fields.

For example, a team member fills in the number of their sick leaves and vacation days in two separate fields. To automatically calculate their time off, add a calculated field that adds up those two fields.

Calculated fields can use values from such sources:

- A text field with numeric [validation](/docs/fields#data-validators)<br>(for example, `validator_id=1109cfbbb06311a06a4c7f8d04f1f0d5c44103cb`)
- A dropdown with number-only options
- Another calculated field

Calculated fields support the following operators:

<table>
<tr>
    <td>Addition (+)</td>
    <td><samp>"operator": “add"</samp></td>
</tr>
<tr>
    <td>Subtraction (-)</td>
    <td><samp>"operator": “sub"</samp></td>
</tr>
<tr>
    <td>Multiplication (*)</td>
    <td><samp>"operator": “mul"</samp></td>
</tr>
<tr>
    <td>Division (/)</td>
    <td><samp>"operator": “div"</samp></td>
</tr>
</table>

Use `calculation_precision` to set a number of decimals after a decimal point. Possible values: 0–15.

<!-- theme: info -->

> Field names in `formula` must be enclosed in curly brackets. For example, `formula = {Field 1} + {Field 2}`.

**Payload example**

<!--
type: tab
title: Simple formula
-->

Field 3 = Field 1 + Field 2

```json
{
    "fields": [
        {
            "page_number": 0,
            "type": "text",
            "name": "Field 1",
            "role": "Signer 1",
            "required": true,
            "height": 40,
            "width": 50,
            "x": 350,
            "y": 47,
            "validator_id": "1109cfbbb06311a06a4c7f8d04f1f0d5c44103cb"
        },
        {
            "page_number": 0,
            "type": "text",
            "name": "Field 2",
            "role": "Signer 1",
            "required": true,
            "height": 40,
            "width": 50,
            "x": 350,
            "y": 100,
            "validator_id": "1109cfbbb06311a06a4c7f8d04f1f0d5c44103cb"
        },
        {
            "page_number": 0,
            "type": "text",
            "name": "Field 3",
            "role": "Signer 1",
            "required": true,
            "formula": "{Field 1} + {Field 2}",
            "calculation_formula": {
                "operator": "add",
                "left": {
                    "term": "Field 1"
                },
                "right": {
                    "term": "Field 2"
                }
            },
            "calculation_precision": 2,
            "height": 40,
            "width": 50,
            "x": 350,
            "y": 160
        }
    ]
}
```

<!--
type: tab
title: Complex formula
-->

Field 4 = (Field 1 + Field 2) \* Field 3

```json
{
    "fields": [
        {
            "page_number": 0,
            "type": "text",
            "name": "Field 1",
            "role": "Signer 1",
            "required": true,
            "height": 20,
            "width": 50,
            "x": 350,
            "y": 40,
            "validator_id": "1109cfbbb06311a06a4c7f8d04f1f0d5c44103cb"
        },
        {
            "page_number": 0,
            "type": "text",
            "name": "Field 2",
            "role": "Signer 1",
            "required": true,
            "height": 20,
            "width": 50,
            "x": 350,
            "y": 80,
            "validator_id": "1109cfbbb06311a06a4c7f8d04f1f0d5c44103cb"
        },
        {
            "page_number": 0,
            "type": "text",
            "name": "Field 2",
            "role": "Signer 1",
            "required": true,
            "height": 20,
            "width": 50,
            "x": 350,
            "y": 120,
            "validator_id": "1109cfbbb06311a06a4c7f8d04f1f0d5c44103cb"
        },
        {
            "page_number": 0,
            "type": "text",
            "name": "Field 4",
            "role": "Signer 1",
            "required": true,
            "formula": "({Field 1} + {Field 2}) * {Field 3}",
            "calculation_formula": {
                "operator": "mul",
                "left": {
                    "term": {
                        "operator": "add",
                        "left": {
                            "term": "{Field 1}"
                        },
                        "right": {
                            "term": "{Field 2}"
                        }
                    }
                },
                "right": {
                    "term": "{Field 3}"
                }
            },
            "calculation_precision": 2,
            "height": 20,
            "width": 50,
            "x": 350,
            "y": 160
        }
    ]
}
```

<!-- type: tab-end -->

## Smart fields

Use smart fields to generate documents from a template and automatically prefill fillable with data from a spreadsheet before sending.

To add smart fields to a template, use [`POST /document/{template_id}/integration_objects`](/docs/smart-fields/operations/add-smart-fields-to-template-integraion-objects).

There are two ways to send an invite with smart fields:

- Using a [signing link](/docs/signing-link/operations/post-v2-document-group-document-group-id-signing-links)
- Using a bulk invite

To use a bulk invite with smart fields, prepare a spreadsheet. It must contain columns for each role and smart field in the template. For each document to be generated, add a row to the spreadsheet.

**Spreadsheet example**

![Spreadsheet with recipient emails and first and last names for smart fields](/reference-assets/images/Fields%20guide/smart_fields_CSV_example.png)

To use a bulk invite with smart fields:

1. Go to your [SignNow account](https://app.signnow.com/) and open the template.
2. Next to the template, click <i class="fa-light fa-square-ellipsis"></i> and click **Bulk Invite**.
3. Click **Upload CSV** and select a spreadsheet with values to prefill documents.
4. Assign roles and smart fields to the column names and click **Done**.
5. Click **Send Invites**.

![Dialog that maps spreadsheet columns to signer roles and smart fields before sending invites](/reference-assets/images/Fields%20guide/smart_fields_mapping.png)

<!-- theme: info -->

> To send a bulk invite with smart fields, you need to have at least one field that's assigned to a role in your template.

## Custom fields

Custom fields, or saved fields, allow users to save time when preparing documents for signature. You can set up the fields once and re-use them in any document or template.

> Creating and configuring custom fields is available using the SignNow UI.

### Create a custom field

You can make custom fields of fillable fields (filled by recipients) and [completed fields](/docs/fields#completed-fields) (filled by yourself).

To make a field custom, click it and select the **Save as a custom field** icon on the panel above the field, or click **Save as a custom field** on the right-hand panel.

![Save as a custom field icon on the panel above a selected field](/reference-assets/images/Fields%20guide/create_custom_field.png)

**What field settings can not be saved?**
- position
- conditional rules
- field name
- assigned role
- payment data
- formula

Also, you can not create a custom smart field.

### Use the custom field

Once the custom field is saved, click the **Custom** tab on the left to view the custom fields.

Drag and drop the field to add it to a document or template.

![Custom tab in the SignNow editor with the saved custom fields, ready to drag onto a document](/reference-assets/images/Fields%20guide/view_custom_fields.png)

[Learn more about custom fields](/docs/custom-fields).

## Add fields to a document

### Step 1. Upload document

If you already have a document in your account, you can skip this step. Otherwise, you can upload one via the API and copy the document ID from the response. SignNow supports the following file formats: .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx, .ps, and .eps.

For more information, see [Upload document](/docs/document/operations/upload-document).

```json
curl -X POST \
https://api.signnow.com/document \
-H 'Authorization: Bearer {{access_token}}' \
-F 'file=@/path/to/your/document/pdf-test.pdf'
```

### Step 2. Add fields

Use the [Edit document](/docs/document/operations/edit-document) request to add fields. In this example, the following fields are added:

- **Field 1**: a text field with number validation.
- **Field 2**: a formula that multiplies the Field 1 value by 10.
- **Field 3**: a signature field that appears if Field 2 is completed.
- **Field 4**: a completed field with the value of 10.

```json
curl --request PUT \
  --url https://api.signnow.com/document/{{document_id}} \
  --header 'Authorization: Bearer {{access_token}}' \
  --data '{
    "fields": [
        {
            "x": 350,
            "y": 170,
            "height": 15,
            "width": 50,
            "type": "text",
            "page_number": 0,
            "required": true,
            "role": "Signer 1",
            "name": "Field 1",
            "validator_id": "1109cfbbb06311a06a4c7f8d04f1f0d5c44103cb"
        },
        {
            "page_number": 0,
            "type": "text",
            "name": "Field 2",
            "role": "Signer 1",
            "required": true,
            "formula": "{Field 1} * 10",
            "calculation_formula": {
                "operator": "mul",
                "left": {
                    "term": "Field 1"
                },
                "right": {
                    "term": 10
                }
            },
            "height": 15,
            "width": 50,
            "x": 350,
            "y": 210
        },
        {
            "page_number": 0,
            "role": "Signer 1",
            "type": "signature",
            "name": "Field 3",
            "dependency": {
                "parent": [
                    {
                        "field_name": "Field 2"
                    }
                ],
                "operator": "is_true"
            },
            "required": true,
            "width": 50,
            "height": 15,
            "x": 350,
            "y": 250
        }
    ],
    "texts": [
        {
            "data": "10",
            "x": 350,
            "y": 130,
            "font": "Arial",
            "size": 18,
            "page_number": 0,
            "name": "Field 4"
        }
    ]
}'
```

## Try out in Postman

[Access](https://www.postman.com/signnow-api/signnow-public-collection/collection/9jspudt/signnow-fields-adding-collection) this feature in Postman, and feel free to make the most out of your integration with different field types.


---

## Custom fields

# Custom fields

Custom fields are pre-defined fillable fields that you save once in the SignNow UI and reuse across documents. Each saved custom field carries its own configuration. The exact set of saved properties depends on the field type. The rest of your team, or your customers in an embedded flow, can drop the field onto a document without re-configuring it.

This guide is for API integrators who use **embedded editor** or **embedded sending** and want to offer their end-users a seamless, focused experience: only the pre-approved Custom fields tab in the sidebar, no Default fields tab, no Element settings button. Once a field is placed on a document, its `field_name` becomes the key that lets you pre-fill values from your own system (CRM, contract platform, HRIS) before the embedded link is opened.

## Use cases

Two scenarios where custom fields shine in an embedded flow:

### 1. Adding fields to documents from third-party sources

Your customer receives files from a third party (contracts forwarded from a partner, vendor agreements, NDAs from outside counsel). These documents have no fillable fields yet, and your customer needs to add them before sending for signature.

With custom fields, you can offer an easy drag-and-drop interface where the sender chooses only from a library of pre-defined fields, already configured with the right type, validation, formatting, and resize behavior. There's no need to think about field properties; the sender just drops them on the page and sends.

### 2. Pre-filling ad-hoc documents before sending

Your customer wants to send a one-off document and have it pre-populated with data from your app (a customer record, a deal, an employee profile) before the recipient sees it.

With custom fields, your customer drags the pre-defined fields onto the document in the embedded editor. Once the fields are placed, there are two ways to pre-fill their values:

- **Via API.** Your backend pre-fills the fields by `field_name` using the SignNow API. Use this when the value comes from your system and changes from one document to the next.
- **Via UI.** The admin saves a static default directly on the custom field using the **Pre-filled Text** property in the editor. Every reuse of that field carries the value automatically, with no API call. Use this when the value is the same across documents. Works for text-type fields (text, date and time, email, and so on). Signature fields don't support a pre-filled value, so they always need to be completed by the signer.

Either way, the recipient opens a document that's already filled in and ready to sign.

## Other benefits

Beyond the two scenarios above, custom fields are useful any time you want consistent, governed field placement and content across many documents:

- **Centralized validation.** Admins attach a `validator_id` to each custom field once (email, SSN, US ZIP, currency, date format, etc.), and every document built from those fields inherits the same validation rules.
- **A focused experience for partners.** Hide the Default fields tab and the Element settings button so embedded users only see the fields you've already vetted, in the form you intend.
- **Reusable libraries instead of rebuilt templates.** New documents can be assembled from the same set of approved fields. Validation, formatting, and resize behavior stay consistent across teams.

## Endpoints at a glance

| Step | Endpoint | Purpose |
| ---- | -------- | ------- |
| 1 | SignNow UI | Create custom fields (no API) |
| 2 | [`POST /document`](/docs/document/operations/upload-document) | Upload each file |
| 2 | [`POST /documentgroup`](/docs/document-group/operations/create-document-group) | Group documents |
| 3 | [`POST /v2/brands`](/docs/general-branding/operations/post-brands) | Create brand |
| 4 | [`PUT /v2/brands/{{brand_id}}/resources/editor`](/docs/general-branding/operations/put-v2-brands-brand-id-editor) | Configure editor UI |
| 5 | [`PUT /v2/document-groups/{{document_group_id}}/brand`](/docs/general-branding/operations/put-v2-document-groups-document-group-id-brand) | Assign brand to group |
| 6 | [`GET /v2/document-groups/{{document_group_id}}`](/docs/document-group/operations/get-document-group-info-v2) | List documents in the group |
| 6 | [`GET /document/{{document_id}}`](/docs/document/operations/get-document) | Read fields (full object) |
| 6 | [`GET /v2/documents/{{document_id}}/fields`](/docs/document/operations/get-v2-documents-document-unique-id-fields) | Read fields (lightweight) |
| 6 | [`PUT /v2/documents/{{document_id}}/prefill-texts`](/docs/document/operations/put-v2-documents-document-id-prefill-texts) | Pre-fill text fields |
| 7 | [`POST /v2/document-groups/{{document_group_id}}/embedded-editor`](/docs/embedded-editor/operations/post-v2-document-groups-document-group-id-embedded-editor) | Generate embedded editor link |
| 7 | [`POST /v2/document-groups/{{document_group_id}}/embedded-sending`](/docs/embedded-sending/operations/post-v2-document-groups-document-group-id-embedded-sending) | Generate embedded sending link |

## End-to-end walkthrough

Here's how to put it all together. Each step builds on the previous one, ending with an embedded link your users can open.

### Step 0. Authorize your requests

Every call in this guide needs an `Authorization` header. You can use either an OAuth 2.0 access token or an API key; pick whichever fits your setup. The options and setup steps are in [Authentication](/docs/authentication).

### Step 1. Add custom fields in the SignNow UI

Custom field creation is UI-only. There's no API to define a new custom field. An admin:

1. Opens any document in the SignNow editor and places a fillable field (text, signature, date, checkbox, etc.).
2. Configures the field's properties. For a text field those typically include **Pre-filled Text**, **Don't allow recipient to edit** (locks the pre-filled value), validation type, font style, character limit, line limit, resize behavior. For a date and time field, the format and the **Automatically fill out with the completion date and/or time** option are also saved. Other field types save the subset that applies to them.
3. Clicks the field and selects **Save as custom field**, or uses the **Save as custom field** action on the left panel.

<!-- theme: info -->

> Setting **Pre-filled Text** on a text-type custom field (text, date and time, email, and so on) before saving makes that value appear automatically whenever the field is reused, without an API call. Signature fields don't support a pre-filled value.

![Adding a custom field with pre-filled text in the SignNow UI](/reference-assets/images/Fields%20guide/custom_fields_guide/custom_fields_1.png)

From that point on, the field appears under the **Custom** tab on the left sidebar of the editor and can be dragged onto any document.

**Saved vs. per-document properties**

For text fields (including date and time, email, and so on):

| Saved on the custom field           | Set per document          |
| ----------------------------------- | ------------------------- |
| **Pre-filled Text**                 | Position (x, y, page)     |
| Validation type / `validator_id`    | Field name (auto-generated) |
| Font style                          | Assigned role             |
| Character limit, line limit         | Conditional rules         |
| Resize behavior                     | Payment data              |
| Date and time format and auto-fill  | Formula                   |
| **Don't allow recipient to edit** lock |                        |

Signature fields save only the allowed signature types — typed, drawn, or uploaded image. Per-document properties are the same for every field type.

> You cannot create a custom smart field.

For this guide, assume the admin has saved the following custom fields: `Customer name`, `Customer email`, `Effective date`, and `Signature`. The `Customer email` field has `Email address` validation, and the `Effective date` field has `MM/DD/YYYY` validation.

### Step 2. [Create a document group](/docs/document-group/operations/create-document-group)

Upload your documents first ([`POST /document`](/docs/document/operations/upload-document) for each file), then group them.

<!--
type: tab
title: Request example
-->

```bash
curl --request POST \
  --url https://api.signnow.com/documentgroup \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
    "document_ids": [
      "7a3f1e8c92b04d6f5a8e3b7c1d2f4e5a6b8c9d0e",
      "9b8c7d6e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c"
    ],
    "group_name": "Service agreement package"
  }'
```

<!--
type: tab
title: Response example
-->

```json
{
  "id": "e1d2c3b4a5f6071829304a5b6c7d8e9f0a1b2c3d"
}
```

<!-- type: tab-end -->

Keep the returned `id`. You'll use it as the `document_group_id` in step 5, step 6, and step 7.

### Step 3. [Create a brand](/docs/general-branding/operations/post-brands)

The brand is the container for all your customer-facing UI overrides. You only need to do this once per branded experience.

<!--
type: tab
title: Request example
-->

```bash
curl --request POST \
  --url https://api.signnow.com/v2/brands \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
    "title": "Custom-fields brand"
  }'
```

<!--
type: tab
title: Response example — 201 Created
-->

```json
{
  "id": "4cbe9d4ea4b649ecb77205e7c3a96d5d38968587"
}
```

<!-- type: tab-end -->

Save the `id`. You'll use it as the `brand_id` in step 4 and step 5.

### Step 4. [Configure the editor brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-editor)

Hide the Default fields tab and the Element settings button in the editor so end-users only see your curated custom fields. With both visibility flags set to `false`, the embedded user sees just the **Custom** tab in the left sidebar and no Element settings button in the header.

**What the two flags do**

| Flag                          | Default  | What `false` does                                                                                                                                |
| ----------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `field-settings.visibility`   | `true`   | Hides the Element settings button on the right side of the header so end-users can't reconfigure field properties.                               |
| `default-fields.visibility`   | `true`   | Hides the Default fields tab in the left sidebar. The Custom fields tab becomes the only tab and the Default / Custom fields tab switcher disappears. |

`field-settings` and `default-fields` apply to both embedded editor and embedded sending.

Adjust the color palette and settings to match your brand and the surface area you want your end-users to see.

<!--
type: tab
title: Request example
-->

```bash
curl --request PUT \
  --url https://api.signnow.com/v2/brands/{{brand_id}}/resources/editor \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "settings": {
      "visibility": true
    },
    "accessibility": {
      "visibility": true,
      "color": "#1E1B4B",
      "background": "#FFFFFF",
      "border": "#A5B4FC",
      "hover-color": "#1E1B4B",
      "hover-background": "#EEF2FF",
      "hover-border": "#A5B4FC",
      "active-color": "#1E1B4B",
      "active-background": "#C7D2FE",
      "active-border": "#818CF8",
      "enabled": true
    },
    "navigation": {
      "visibility": false
    },
    "progress-bar": {
      "default-color": "#E0E7FF",
      "completed-color": "#4F46E5"
    },
    "sidebar": {
      "visibility": false
    },
    "complete-footer": {
      "visibility": false
    },
    "support-chat": {
      "visibility": false
    },
    "sender-info": {
      "visibility": false
    },
    "close-button": {
      "visibility": true
    },
    "decline-button": {
      "visibility": false
    },
    "download-button": {
      "visibility": false
    },
    "document-name": {
      "visibility": true
    },
    "request-payment": {
      "visibility": false
    },
    "continue-button": {
      "visibility": true
    },
    "step-progress-bar": {
      "visibility": true
    },
    "toolbar": {
      "visibility": false
    },
    "preview-button": {
      "visibility": true
    },
    "thumbnails-button": {
      "visibility": false
    },
    "editing-tools": {
      "background": "#F5F3FF"
    },
    "manage-recipients": {
      "visibility": false
    },
    "signing-settings": {
      "auto-apply-signatures-and-initials-to-document-fields": true,
      "guide-signers-only-through-required-fields": true
    },
    "field-settings": {
      "visibility": false
    },
    "default-fields": {
      "visibility": false
    }
  }'
```

<!--
type: tab
title: Response example — 204 No Content
-->

`204 No Content`

<!-- type: tab-end -->

Learn more about [branding](/docs/guides-branding).

### Step 5. [Assign the brand to the document group](/docs/general-branding/operations/put-v2-document-groups-document-group-id-brand)

This call links the brand to the document group so the embedded editor and sending flows pick up your branding when the link is opened.

<!--
type: tab
title: Request example
-->

```bash
curl --request PUT \
  --url https://api.signnow.com/v2/document-groups/{{document_group_id}}/brand \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "brand_id": "4cbe9d4ea4b649ecb77205e7c3a96d5d38968587"
  }'
```

<!--
type: tab
title: Response example — 204 No Content
-->

`204 No Content`

<!-- type: tab-end -->

A brand can also be assigned at other scopes. Pick whichever matches the surface you want branded:

- A single [document](/docs/general-branding/operations/put-v2-documents-document-id-brand).
- An entire [application](/docs/general-branding/operations/put-v2-applications-application-id-brand).

The request body is the same in every case: a single `brand_id`.

### Step 6 (optional). Pre-fill custom field values via API

<!-- theme: info -->

> Step 6 assumes the documents already have custom fields placed, either pre-placed in a template or added in a prior embedded editor session.

Before generating the embedded link, you can pre-fill values on the text-type fields the sender placed on the documents in the group.

Field names are not saved on the custom field. SignNow generates them automatically when the field is placed on a document (`Text Field 1`, `Text Field 2`, `Date and Time 1`, `Date and Time 2`, `Signature 1`, and so on). You have to read each document's fields and use the names that come back. If a custom field has a `label` set, it's returned alongside the auto-generated `name` and can help you identify which field is which when several share the same type.

That makes pre-fill for a document group a three-call flow. Step 2 and step 3 are alternatives for reading field names; pick whichever fits your use case:

| If you need...                                                  | Use endpoint                                                                                                  |
| --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| Full field metadata (positions, validators, styling) and signatures | [`GET /document/{{document_id}}`](/docs/document/operations/get-document) (step 2)              |
| Just field names for pre-fill — text-type fields only           | [`GET /v2/documents/{{document_id}}/fields`](/docs/document/operations/get-v2-documents-document-unique-id-fields) (step 3) |

**1. [List the documents in the group](/docs/document-group/operations/get-document-group-info-v2)**

<!--
type: tab
title: Request example
-->

```bash
curl --request GET \
  --url https://api.signnow.com/v2/document-groups/{{document_group_id}} \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Accept: application/json'
```

<!--
type: tab
title: Response example
-->

```json
{
  "data": {
    "id": "a99a207dad724a13bef6089aa7f5b95965b301dc",
    "name": "Service agreement package",
    "state": "created",
    "documents": [
      {
        "id": "596d07c497b5456b9325e5305fb0e22a47d6de7d",
        "document_name": "sample-service-agreement",
        "has_fields": true,
        "page_count": 1
      }
    ]
  }
}
```

<!-- type: tab-end -->

Collect each `data.documents[].id` for the next call.

**2. [Get each document's fields](/docs/document/operations/get-document)**

For every document ID from step 1, request the document and read its `fields` array. The `field_name` you'll pass to the pre-fill call is each field's `json_attributes.name`, the auto-generated value.

<!--
type: tab
title: Request example
-->

```bash
curl --request GET \
  --url https://api.signnow.com/document/{{document_id}} \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Accept: application/json'
```

<!--
type: tab
title: Response example
-->

```json
{
  "id": "596d07c497b5456b9325e5305fb0e22a47d6de7d",
  "parent_id": "ed55e1f4789149ccbaaca42712dbaeb9b18497eb",
  "user_id": "574dc73f30de456e80212f2333cb14293cc92fca",
  "document_name": "sample-service-agreement",
  "page_count": "1",
  "created": "1778584240",
  "updated": "1778593772",
  "original_filename": "sample-service-agreement.pdf",
  "owner": "owner@email.com",
  "owner_name": "Document Owner",
  "template": false,
  "document_group_info": {
    "document_group_id": "a99a207dad724a13bef6089aa7f5b95965b301dc",
    "document_group_name": "Service agreement package",
    "invite_id": null,
    "invite_status": null,
    "sign_as_merged": false,
    "doc_count_in_group": 1,
    "state": "created"
  },
  "roles": [
    {
      "unique_id": "be616d202b3d4c36a65b0fb8042ccc95549f0ecb",
      "signing_order": "1",
      "name": "Recipient 1"
    }
  ],
  "fields": [
    {
      "id": "021b4a4cc4d34918826ee2d2690294e4c35737c5",
      "type": "text",
      "role_id": "be616d202b3d4c36a65b0fb8042ccc95549f0ecb",
      "role": "Recipient 1",
      "json_attributes": {
        "name": "Text Field 1",
        "page_number": 0,
        "x": 196,
        "y": 95,
        "width": 194,
        "height": 23,
        "required": true,
        "color": "000000",
        "align": "left",
        "font": "Arial",
        "font_size": 10,
        "max_lines": 0,
        "max_chars": 0,
        "stretch_mode": "fixed"
      }
    },
    {
      "id": "56d02e0290614ce5978d4b2318de4122109c214b",
      "type": "text",
      "role_id": "be616d202b3d4c36a65b0fb8042ccc95549f0ecb",
      "role": "Recipient 1",
      "json_attributes": {
        "name": "Text Field 2",
        "label": "email",
        "page_number": 0,
        "x": 196,
        "y": 126,
        "width": 194,
        "height": 23,
        "required": true,
        "validator_id": "7cd795fd64ce63b670b52b2e83457d59ac796a39",
        "max_chars": 99,
        "max_lines": 1,
        "font": "Arial",
        "font_size": 10
      }
    },
    {
      "id": "491149598ec543909e9149a8716c928f5cd16528",
      "type": "text",
      "role_id": "be616d202b3d4c36a65b0fb8042ccc95549f0ecb",
      "role": "Recipient 1",
      "json_attributes": {
        "name": "Date and Time 1",
        "label": "Date",
        "page_number": 0,
        "x": 196,
        "y": 158,
        "width": 194,
        "height": 21,
        "required": true,
        "lock_to_sign_date": false,
        "validator_id": "13435fa6c2a17f83177fcbb5c4a9376ce85befeb",
        "max_chars": 10,
        "max_lines": 1
      }
    },
    {
      "id": "7e5b04c8a92d4e7193f0b8a3c5d1e6f7a02b9c4d",
      "type": "text",
      "role_id": "be616d202b3d4c36a65b0fb8042ccc95549f0ecb",
      "role": "Recipient 1",
      "json_attributes": {
        "name": "Date and Time 2",
        "label": "Date",
        "page_number": 0,
        "x": 196,
        "y": 190,
        "width": 194,
        "height": 21,
        "required": true,
        "lock_to_sign_date": false,
        "validator_id": "13435fa6c2a17f83177fcbb5c4a9376ce85befeb",
        "max_chars": 10,
        "max_lines": 1
      }
    },
    {
      "id": "21e54d4184b94e518aff02af8438875ce2f3ced2",
      "type": "signature",
      "role_id": "be616d202b3d4c36a65b0fb8042ccc95549f0ecb",
      "role": "Recipient 1",
      "json_attributes": {
        "name": "Signature 1",
        "page_number": 0,
        "x": 81,
        "y": 631,
        "width": 169,
        "height": 23,
        "required": true,
        "allowed_types": [
          "type",
          "draw",
          "upload"
        ]
      }
    }
  ],
  "field_validators": [
    {
      "id": "7cd795fd64ce63b670b52b2e83457d59ac796a39",
      "name": "Email address (simple e.g. john@gmail.com)",
      "description": "Please enter an email address (e.g. john@gmail.com)",
      "scope": "system",
      "error_message": "Please enter valid email address"
    },
    {
      "id": "13435fa6c2a17f83177fcbb5c4a9376ce85befeb",
      "name": "Date Only (e.g. 09/28/2008)",
      "description": "Please enter a date mm/dd/yyyy.",
      "scope": "system",
      "error_message": "Please enter a date (mm/dd/yyyy)."
    }
  ]
}
```

<!-- type: tab-end -->

Pick the `json_attributes.name` value from each text-type field you want to pre-fill (`Text Field 1`, `Text Field 2`, `Date and Time 1`, `Date and Time 2`, and so on). If the same custom field is dragged onto the document more than once, each instance gets its own auto-incremented name, so you can pre-fill each instance independently.

**3. [Get field name attributes](/docs/document/operations/get-v2-documents-document-unique-id-fields) (alternative to step 2)**

A lighter-weight option that returns only each field's `id`, `name`, `type`, and `value`. Use it when you don't need positions, validators, or styling and just want the names to pass to the pre-fill call.

This endpoint returns text-type fields only (text, date and time, email, and so on). Signature fields are not included in the response, which is fine for this flow since signature fields can't be pre-filled anyway.

<!--
type: tab
title: Request example
-->

```bash
curl --request GET \
  --url https://api.signnow.com/v2/documents/{{document_id}}/fields \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Accept: application/json'
```

<!--
type: tab
title: Response example
-->

```json
{
  "data": [
    {
      "id": "021b4a4cc4d34918826ee2d2690294e4c35737c5",
      "name": "Text Field 1",
      "type": "text",
      "value": null
    },
    {
      "id": "56d02e0290614ce5978d4b2318de4122109c214b",
      "name": "Text Field 2",
      "type": "text",
      "value": null
    },
    {
      "id": "491149598ec543909e9149a8716c928f5cd16528",
      "name": "Date and Time 1",
      "type": "text",
      "value": null
    },
    {
      "id": "7e5b04c8a92d4e7193f0b8a3c5d1e6f7a02b9c4d",
      "name": "Date and Time 2",
      "type": "text",
      "value": null
    }
  ],
  "meta": {
    "pagination": {
      "total": 4,
      "count": 4,
      "per_page": 15,
      "current_page": 1,
      "total_pages": 1,
      "links": []
    }
  }
}
```

<!-- type: tab-end -->

Use each `data[].name` as the `field_name` in the pre-fill call. The `value` is `null` until a signer completes the field.

**4. [Pre-fill text fields by `field_name`](/docs/document/operations/put-v2-documents-document-id-prefill-texts)**

<!--
type: tab
title: Request example
-->

```bash
curl --request PUT \
  --url https://api.signnow.com/v2/documents/{{document_id}}/prefill-texts \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "fields": [
      {
        "field_name": "Text Field 1",
        "prefilled_text": "Acme, Inc."
      },
      {
        "field_name": "Text Field 2",
        "prefilled_text": "billing@acme.example"
      },
      {
        "field_name": "Date and Time 1",
        "prefilled_text": "06/01/2026"
      },
      {
        "field_name": "Date and Time 2",
        "prefilled_text": "06/01/2026"
      }
    ]
  }'
```

<!--
type: tab
title: Response example — 204 No Content
-->

`204 No Content`

<!-- type: tab-end -->

Repeat the field-name lookup (step 2 or step 3) and the pre-fill call (step 4) for every document returned by step 1.

### Step 7. Create the embedded link for the document group

This generates a URL your customer opens to start using the branded experience. Pick the endpoint that fits your flow:

| Flow             | Endpoint                                                                                                              | When to use                                                              |
| ---------------- | --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| Embedded editor  | [`POST /v2/document-groups/{{document_group_id}}/embedded-editor`](/docs/embedded-editor/operations/post-v2-document-groups-document-group-id-embedded-editor)   | User opens the documents to place custom fields from your curated library, then reviews or fills values. No invite is sent from the editor. |
| Embedded sending | [`POST /v2/document-groups/{{document_group_id}}/embedded-sending`](/docs/embedded-sending/operations/post-v2-document-groups-document-group-id-embedded-sending) | User sends the document group to signers from inside your app.           |

This guide uses the document-group endpoints because Step 2 created a group, and documents inside a group can only be opened in the embedded editor or sender through the doc-group endpoints. For a single-document flow, skip the grouping step and use [`POST /v2/documents/{{document_id}}/embedded-editor`](/docs/embedded-editor/operations/post-v2-documents-document-unique-id-embedded-editor) or [`POST /v2/documents/{{document_id}}/embedded-sending`](/docs/embedded-sending/operations/post-v2-documents-document-id-embedded-sending) instead.

#### [Embedded editor](/docs/embedded-editor/operations/post-v2-document-groups-document-group-id-embedded-editor)

<!--
type: tab
title: Request example
-->

```bash
curl --request POST \
  --url https://api.signnow.com/v2/document-groups/{{document_group_id}}/embedded-editor \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
    "redirect_uri": "https://your.app.example/after-edit",
    "redirect_target": "blank",
    "link_expiration": 45
  }'
```

<!--
type: tab
title: Response example
-->

```json
{
  "data": {
    "url": "https://app.signnow.com/documentgroup/e1d2c3b4a5f6071829304a5b6c7d8e9f0a1b2c3d/edit?access_token={{access_token}}&redirect_uri=https%3A%2F%2Fyour.app.example%2Fafter-edit&embedded=1&redirect_target=blank"
  }
}
```

<!-- type: tab-end -->

#### [Embedded sending](/docs/embedded-sending/operations/post-v2-document-groups-document-group-id-embedded-sending)

<!--
type: tab
title: Request example
-->

```bash
curl --request POST \
  --url https://api.signnow.com/v2/document-groups/{{document_group_id}}/embedded-sending \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
    "type": "edit",
    "redirect_uri": "https://your.app.example/after-send",
    "redirect_target": "blank",
    "link_expiration": 45
  }'
```

<!--
type: tab
title: Response example
-->

```json
{
  "data": [
    {
      "url": "https://app.signnow.com/webapp/documentgroup/e1d2c3b4a5f6071829304a5b6c7d8e9f0a1b2c3d/setup_invite?access_token={{access_token}}&redirect_uri=https%3A%2F%2Fyour.app.example%2Fafter-send&redirect_target=blank"
    }
  ]
}
```

<!-- type: tab-end -->

## What the end-user sees

When your user opens the link from step 7, the document group loads in the editor with:

- The **Custom** tab as the only tab in the left sidebar. No Default fields, no Default / Custom tab switcher.
- No **Element settings** button in the editor header. Field properties are already set, so there's nothing to configure.
- Every custom field rendered with the validation, label, and (where set) pre-filled value you wrote in step 6.
- The brand styling applied across the editor or sending flow.

The result is a smooth, focused embedded experience: admins curate the field library, your backend handles the data, and end-users get straight to placing fields and sending the document.

**Embedded editor experience with custom fields**

![Embedded editor with custom fields](/reference-assets/images/Fields%20guide/custom_fields_guide/custom_fields_3.png)

**Embedded sending experience with pre-filled custom fields**

![Embedded sending page with pre-filled custom fields](/reference-assets/images/Fields%20guide/custom_fields_guide/custom_fields_2.png)

---

## Text tags

# Text tags

Add fields to a .doc, .docx, or .pdf file before upload with simple or complex text tags that SignNow turns into fillable fields.

## About text tags

Text tags allow adding fields to a document before the document is uploaded to SignNow.

Text tags can be added to a document in two ways:

- **Simple text tags**: all the field details are added to a document.
- **Complex text tags**: fields are added to a document, and their properties are sent in a request body.

To upload a document with simple or complex text tags, use [Upload document with tags](/docs/document/operations/upload-document-with-text-tags). Only .doc, .docx, and .pdf formats are supported.

## Simple text tags

Simple text tags are combinations of keys and values that define field properties and must be correctly ordered. A simple text tag is added to a document in the place where a field should appear.

<details>

<summary>Simple text tags video tutorial</summary>

<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>

[Simple text tags video tutorial](https://youtu.be/iopDT5_4-Co?si=xZShbVlslPNkMi5f)

</details>

To upload a document with simple text tags, use [Upload document with tags](/docs/document/operations/upload-document-with-text-tags). Only .doc, .docx, and .pdf formats are supported.

<!--
type: tab
title: Request
-->

```bash
curl --request POST \
  --url https://api.signnow.com/document/fieldextract \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'file=@/path/to/FILE_NAME.pdf'
```

<!--
type: tab
title: Response
-->

```json
{
	"id":"519f97b02da37a411d624e758c631cb64c9d9eb6"
}
```

<!-- type: tab-end -->

<!-- theme: warning -->

> The format of tags is positional, so their properties must be correctly ordered. The order of simple text tags is the following:
>
> **{Type of the field}{Required}{Role}**{Label}{Prefilled text}{Text horizontal alignment}{Text vertical alignment}{Lock signing date}{Height multiplier}{Dropdown}{Width}{Height}{Validator ID value}{Radio name}{Radio value}{Checked}{Link}{Hyperlink hint}
>
> The properties in bold are required. 

**Simple text tag example**

<table>
<tr>
<td>A required signature field for the role 'CEO': width '100', and height '15'</td>
<td>{{t:s;r:y;o:"CEO";w:100;h:15;}}</td>
</tr>
</table>

The tag can have multiple lines with page breaks before or after a colon or semicolon.

> Both single-brace `{...}` and double-brace `{{...}}` syntax are supported. For example, `{t:s;r:y;o:"CEO";w:100;h:15;}` and `{{t:s;r:y;o:"CEO";w:100;h:15;}}` are equivalent.

> Make sure to use double quotes (") inside the tag syntax.

### Simple text tag parameters

| Property                       | Key       | Values                                                                                                                                                                                                                                                                                       | When to use                                                       |
| ------------------------------ | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| Field type                     | `t`       | `s` - signature<br>`i` - initials<br>`t` - text<br>`d` - dropdown<br>`c` - checkbox<br>`f` - attachment<br>`r` - radio button<br>`h` - hyperlink<br>`cc` - text field for cc email<br>`e` - instant invite. [See Invite text tags](/docs/text-tags#invite-text-tags)<br><br>Example: `t:s;`    | Always                                                            |
| Required                       | `r`       | `y` - required<br>`n` - optional<br><br>Example: `r:y;`                                                                                                                                                                                                                                      | Always                                                            |
| Role                           | `o`       | String with a role name. Allowed symbols: letters, digits, and `',.`.<br><br>Example: `o:"CEO";`                                                                                                                                                                                             | Always                                                            |
| Label                          | `l`       | String with a field label. Allowed symbols: letters, digits, and `',./\$`.<br><br>Example: `l:"Signature";`                                                                                                                                                                                  | Only with text, dropdown, and file fields                         |
| Prefilled text                 | `p`       | String with a prefilled text. Allowed symbols: letters, digits, and `',./\`.<br><br>Example: `p:"John Doe";`                                                                                                                                                                     | Only with text fields                                             |
| Text horizontal alignment      | `al`      | `l` - left<br>`c` - center<br>`r` - right<br><br>Example: `al:c;`                                                                                                                                                                                                                            | Only with text fields                                             |
| Text vertical alignment        | `vl`      | `t` - top<br>`m` - middle<br>`b` - bottom<br><br>Example: `vl:b;`                                                                                                                                                                                                                            | Only with text fields                                             |
| Lock signing date              | `lsd`     | Whether to set the current date of signing by default.<br>`y` - set the default date<br>`n` - no restrictions on the date<br><br>Example: `lsd:y;`                                                                                                                                           | Only with text fields                                             |
| Height multiplier              | `i`       | If height = 20 and i = 3, the SignNow field is 60 points high.<br><br>Example: `i:3;`                                                                                                                                                                                                        | Only with text fields                                             |
| Dropdown                       | `dd`      | Dropdown options separated by commas. Allowed symbols: letters, digits, and `',.`.<br><br>Example: `dd:"Option1, Option2, Option3";`                                                                                                                                                         | Only with dropdown fields                                         |
| Width                          | `w`       | Field width in pixels.<br><br>Example: `w:12;`                                                                                                                                                                                                                                               | Any field type. If not indicated, the field is of the tag width.  |
| Height                         | `h`       | Field height in pixels.<br><br>Example: `h:12;`                                                                                                                                                                                                                                              | Any field type. If not indicated, the field is of the tag height. |
| Validator ID                   | `v`       | Use to validate filled data against certain formats. For possible values, see [Data validators](/docs/fields#data-validators).<br><br>Example: `v:"13435fa6c2a17f83177fcbb5c4a9376ce85befeb";`                                                                                       | Only with text fields                                             |
| Name of the radio button group | `rn`      | String with a name for a group of radio buttons. Allowed symbols: letters, digits, and `',.-`.<br><br>Example: `rn:"Select your department";`                                                                                                                                                | Only with radio buttons                                           |
| Radio button value             | `rv`      | String with the value of a radio button. To create a group of radio buttons, create a tag for each radio button with the same group name and different values. For more information, see [Radio buttons]().<br><br>Allowed symbols: letters, digits, and `',.-$`.<br><br>Example: `rv:"HR";` | Only with radio buttons                                           |
| Checked                        | `checked` | `1` - checked<br>Any other number - unchecked<br><br>Example: `checked: 1;`                                                                                                                                                                                                                  | With radio buttons and checkboxes                                         |
| Link                           | `lk`      | Hyperlink.<br><br>Example: `lk:"https://signnow.com";`<br><br>To use a hyperlink text tag, a corresponding organization setting must be enabled. To update the settings, contact SignNow [support](https://support.signnow.com/).                                                            | Only with hyperlinks                                              |
| Hyperlink hint                 | `ht`      | String with a hyperlink hint that appears in the field. Allowed symbols: letters, digits, and `,.$`.<br><br>Example: `lk:"https://yourlink.com";`                                                                                                                                            | Only with hyperlinks                                              |
| CC email                       | `cc`      | Add a CC recipient of the document.<br><br>Example: `{{t:cc;e:"j.doe@email.com";}}`                                                                                                                                                                                                          | Only with `cc` fields                                             |

### Radio buttons

Radio buttons are created using the following tags:

- `rn` - a name of the group of radio buttons. Several radio buttons related to one question comprise a radio button group. To add a radio button group, add several text tags with the same `rn`.
- `rv` - a radio button value. Create a separate text tag for each value.
- `checked` - determines whether the button is checked by default. Possible values: 0 - unchecked, 1 - checked.

Example:

`{{t:r;r:y;o:"Customer";rn:"Select a color";rv:"Red";}}`

`{{t:r;r:y;o:"Customer";rn:"Select a color";rv:"Green";}}`

`{{t:r;r:y;o:"Customer";rn:"Select a color";rv:"Blue";}}`

> Allowed symbols for `rn`: letters, digits, and `',.-`.<br>
> Allowed symbols for `rv`: letters, digits, and `',.-$`.

## Invite text tags

Use invite text tags to send an invite to sign immediately after uploading a document. This way, you won't need to send a separate `POST /document/invite` request.

To use an invite tag:

1. Add one or more simple text tags to your document to create fields.
2. Add a tag with the following structure: `{{t:e;o:"Role1";e:"signer@mail.com";}}` to your document.

**Invite tag for a document with two signatures**

<!-- theme: none -->

> `{{t:s;r:y;o:"Manager";}}`
> `{{t:s;r:y;o:"Client";}}`
>
> `{{t:e;o:"Manager";e:"<signer1@mail.com>";order:1;}}`
> `{{t:e;o:"Client";e:"<signer2@mail.com>";order:2;}}`

`order` indicates signing order and is optional.

## Complex text tags

Complex text tags have two parts: tag names in a document and an array of tag parameters in the request body.
To upload a document with complex text tags, add the tag names in double curly braces to the document. Then, send a request to [`POST /document/fieldextract`](/docs/document/operations/upload-document-with-text-tags) with an array of tag parameters in the request body. Only .doc, .docx, and .pdf formats are supported.

> The following syntax is supported for wrapping tag names in the document: `{{tagName}}`, `{tagName}`, `[[tagName]]`, and `[tagName]`.

<details>

<summary>Complex text tags video tutorial</summary>

<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>

[Complex text tags video tutorial](https://www.youtube.com/watch?v=V0YWL2T8F-o)

</details>

### Complex tag parameters

- `tag_name` (required): a tag name used in the document.
- `type` (required): a field type. Possible values:
- `text`
- `signature`
- `initials`
- `checkbox`
- `attachment`
- `hyperlink`
- `radio button`
- `enumeration` (a dropdown menu)
- `role` (required): a role the field is assigned to.
- `required` (required): if true, the field is mandatory.
- `prefilled_text`: editable text that appears in the field when the signer opens the document.
- `label`: a hint in the field, for example, first_name. A value entered in the first field automatically appears in other fields with the same label, if any. If a field has prefilled text, the label appears when a signer hovers over the field.
- `validator_id` (optional): format validation for the field. For possible values, see [Data validators](/docs/fields#data-validators).
- `width`: field width in pixels.
- `height`: field height in pixels.
- `lock_to_sign_date`: a boolean. If `true`, the date field is automatically pre-filled with the signing (completion) date. Defaults to `false`.
- `enumeration_options`: an array of dropdown options.
- `custom_defined_option`: if true, allows a signer to enter their option in a dropdown.
- `radio`: an array of radio buttons.
- `value`: radio button value.
- `checked`: set to `1` to check the checkbox or radio button; set to `0` to leave it unchecked. If not specified, the field is unchecked.
- `x-offset`: a number that allows radio buttons to be aligned horizontally.
- `y-offset`: a number that allows radio buttons to be aligned vertically.
- `name`: for radio buttons, sets the group name. For hyperlinks, sets the name of the field.
- `hint`: a hyperlink hint that appears in the field.

<!-- theme: note -->

> To use a hyperlink text tag, a corresponding organization setting must be enabled. To update the settings, contact SignNow [support](https://support.signnow.com/).

### Complex tag examples

<table>
<thead>
<tr><th>Tag</th><th>Example</th></tr>
</thead>
<tr>
<td>Text tag</td>
<td>

```json
{
    "tag_name": "EmployeeName",
    "role": "Employee",
    "label": "Your name",
    "required": true,
    "type": "text",
    "width": 100,
    "height": 20
}
```

</td>
</tr>
<tr>
<td>Text tag with date validation</td>
<td>

```json
{
    "tag_name": "BirthDate",
    "role": "Role1",
    "label": "Your date of birth",
    "required": true,
    "type": "text",
    "height": 15,
    "width": 100,
    "validator_id": "13435fa6c2a17f83177fcbb5c4a9376ce85befeb"
}
```

</td>
</tr>
<tr>
<td>Initials tag</td>
<td>

```json
{
    "tag_name": "ClientInitials",
    "role": "Client",
    "required": true,
    "type": "initials",
    "height": 15,
    "width": 40
}
```

</td>
</tr>
<tr>
<td>Signature tag</td>
<td>

```json
{
    "tag_name": "Signature",
    "role": "Client",
    "required": true,
    "type": "signature",
    "height": 15,
    "width": 200
}
```

</td>
</tr>
<tr>
<td>Dropdown tag</td>
<td>

```json
{
    "tag_name": "Citizenship",
    "role": "Client",
    "label": "Your citizenship",
    "required": true,
    "type": "enumeration",
    "height": 15,
    "width": 100,
    "custom_defined_option": false,
    "enumeration_options": [
        "US",
        "Non-US"
    ]
}
```

</td>
</tr>
<tr>
<td>Attachment tag</td>
<td>

```json
{
    "tag_name": "Photo",
    "role": "Client",
    "label": "Your photo",
    "required": true,
    "type": "attachment",
    "width": 100,
    "height": 20
}
```

</td>
</tr>
<tr>
<td>Checkbox tag</td>
<td>

```json
{
    "tag_name": "ConsentCheckbox",
    "role": "Client",
    "required": true,
    "type": "checkbox",
    "height": 12,
    "width": 12,
    "checked": 1
}
```

</td>
</tr>
<tr>
<td>Radio button tag</td>
<td>

```json
{
    "tag_name": "Citizenship",
    "role": "Employee",
    "required": true,
    "x": 36,
    "y": 246,
    "width": 340,
    "height": 13,
    "radio": [
        {
            "x": 36,
            "y": 246,
            "width": 13,
            "height": 13,
            "checked": 0,
            "value": "Yes",
            "x-offset": 0,
            "y-offset": 0
        },
        {
            "x": 36,
            "y": 246,
            "width": 13,
            "height": 13,
            "checked": 1,
            "value": "No",
            "x-offset": 0,
            "y-offset": 14
        }
    ],
    "name": "Citizenship",
    "type": "radiobutton"
}
```

</td>
</tr>
<tr>
<td>Hyperlink tag.<br><br>A corresponding organization setting must be enabled to use a hyperlink text tag. To update the settings, contact SignNow support.</td>
<td>

```json
{
    "tag_name": "URL",
    "role": "Client",
    "type": "hyperlink",
    "name": "hyperlink_unique_id",
    "required": true,
    "width": 118,
    "height": 33,
    "link": "https://google.com",
    "label": "Website link",
    "hint": "https://yourwebsite.com"
}
```

</td>
</tr>
</table>

## Send an invite to sign with complex text tags

### Step 1. Create a document

Create a document with tag names. Let's create a document with three tags:

```
Name: {{employee name}}
Date {{date}}
Signature: {{signature}}
```

### Step 2. Create an array of tags

Create an array of tags for the request body. Use the tag names specified in the document.

```json
[
    {
        "tag_name": "employee name",
        "role": "employee",
        "label": "name",
        "required": true,
        "type": "text",
        "width": 100,
        "height": 15
    },
    {
        "tag_name": "date",
        "role": "employee",
        "label": "date",
        "required": true,
        "type": "text",
        "width": 100,
        "height": 15,
        "validator_id": "059b068ef8ee5cc27e09ba79af58f9e805b7c2b3"
    },
    {
        "tag_name": "signature",
        "role": "employee",
        "label": "signature",
        "required": true,
        "type": "signature",
        "width": 100,
        "height": 30
    }
]
```

### Step 3. Upload a document with tags

Send a request with your document and array of tags to [`POST /document/fieldextract`](/docs/document/operations/upload-document-with-text-tags).

```bash
curl --request POST \
  --url https://api.signnow.com/document/fieldextract \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: multipart/form-data' \
  --form file=@/path/to/your/file.pdf \
  --form 'Tags="[
    {
        \"tag_name\": \"name\",
        \"role\": \"employee\",
        \"label\": \"name\",
        \"required\": true,
        \"type\": \"text\",
        \"width\": 100,
        \"height\": 15
    },
    {
        \"tag_name\": \"date\",
        \"role\": \"employee\",
        \"label\": \"date\",
        \"required\": true,
        \"type\": \"text\",
        \"width\": 100,
        \"height\": 15,
        \"validator_id\": \"059b068ef8ee5cc27e09ba79af58f9e805b7c2b3\"
    },
    {
        \"tag_name\": \"signature\",
        \"role\": \"employee\",
        \"label\": \"signature\",
        \"required\": true,
        \"type\": \"signature\",
        \"width\": 100,
        \"height\": 30
    }
 ]"'
```

## Try out in Postman

[Access](https://www.postman.com/signnow-api/signnow-public-collection/request/ppnonf2/upload-document-with-tags?action=share\&source=copy-link\&creator=29919567\&ctx=documentation) this feature in Postman, and optimize your workflows with automatic field generation.


---

## Invite to sign

# About Invite to sign

Using the SignNow API, you can invite people to sign one document or multiple documents as a document group. The SignNow API allows you to work with different types of invites.

## Types of paid signature invites and how they are charged

| Invite type                 | Description                 | Charging |
| --------------------------- | --------------------------- | -----|
| [**Document field invite**](/docs/document-field-invite/operations/post-document-doc-id-invite)<br><br>[Document group field invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group) | An Invite to sign a document is sent via email. The document has fields that need to be completed. The invite is role-based: you can set up a multi-step process with different people processing a document at different steps. | Charging applies per invite sent. If multiple signers are included in one invite, it counts as a single invite. |
| [**Document freeform invite**](/docs/doc-freeform-invite/operations/post-freeform-document-id-invite)<br><br>[Document group freeform invite](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites) | An Invite to sign a document is sent via email. The document doesn’t have fields and signers can add their signature anywhere in the document. |  **For a document**: You can add one signer per invite. Charging applies per invite sent. If you send a freeform invite to multiple signers, each invite is charged separately.<br>**For a document group**: You can add multiple signers in a single invite. Charging applies per invite sent. |
| [**Document invite via SMS**](/docs/document-field-invite/operations/post-document-document-id-for-sms-invite-send-invite-via-sms)<br><br>[Document group invite via SMS](/docs/doc-group-field-invite/operations/invite-to-sign-document-group) | An Invite to sign a document or a document group is sent via SMS. The SMS contains a link to the document or document group. Different signers of one invite can receive it by email or SMS.<br><br>See also: [SMS invite guide](/docs/sms-invite) | Charging applies per invite sent. If multiple signers are included in one invite, it counts as a single invite. |
| [**Document signing link**](/docs/signing-link/operations/post-v2-document-group-document-group-id-signing-links)<br><br>[Document group signing link](/docs/signing-link/operations/post-v2-document-group-document-group-id-signing-links) | A link to the document that needs a signature is generated. | Charging applies when the last signer completes the signing process (if there is more than one signer). |
| [**Bulk invite**](/docs/template/operations/bulk-invite) | Invites to sign a document are sent to multiple signers simultaneously. The document is generated from a [template](/docs/template/operations/create-template). | Charging applies per invite sent (for each record in the CSV file, which contains signers' roles, emails, and document names).|
| [**Document embedded invite**](/docs/document-embedded-signing/operations/create-embedded-signing-invite)<br><br>[Document group embedded invite](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group) | A link to sign a document is generated and you can embed it into your website.<br><br>See also: [Embedded signing guide](/docs/guides-embedded-signing) | Charging applies per invite sent (via a link or email), even if multiple signers are included in one invite. |

> Check your application's signature invite usage in the [API dashboard](https://app.signnow.com/webapp/api-dashboard/plan-usage/invite-logs).

In this guide, we will walk you through the process of sending your first [**document field invite**](/docs/document-field-invite/operations/post-document-doc-id-invite) and a **[document group field invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group)** via the API.

## Send a document for signature

We will send the purchase agreement to three recipients with different roles:
- Buyer (can sign the agreement)
- Seller (can sign the agreement)
- Approver (can review and approve the agreement)

## Before you begin

Before creating your field invite to sign a document, make sure that you have the following data:

- **Document ID** or **template ID**: you can find it in the [SignNow UI](https://app.signnow.com/webapp/documents). Next to the document or template, click the three-dotted button and **click Copy ID**. Document ID and template ID are 40 characters long and consist of lower-case letters and digits. Example: c4aff212145b40888cd75e3c73c978484258c043.
- **Signer email address** or addresses: who needs to sign a document.
- **Role**: a unique role name that can be found in the response of the [Get document](/docs/document/operations/get-document) endpoint. Example: <br />Signer 1.
- **Role ID**: a unique role identifier that can be found in the response of the [Get document](/docs/document/operations/get-document) endpoint. Role ID is 40 characters long and consists of lower-case letters and digits. Example: 6e9580fa76ba4edca18fa6e680a36d10a6bab503. You need either a role or role ID but you can use both. If you use both, make sure that role and role ID correspond.
- **Order**: an integer that defines the order of signing in a document. The first recipient will have ‘order=1’, the second will have ‘order=2’, and so on. Several recipients can have the same order of signing. In this case, they will receive invites at the same time, and all of them need to sign the document before the invites for the next step are sent.

- **From**: an email address of the API account from which you sent an invite.

If you want to customize other settings of an invite, you may need more data. For more information, see [Send field invite request body](/docs/document-field-invite/operations/post-document-doc-id-invite).

### Step 1. Authentication

Get a Basic Authorization Token from the [API Dashboard](/docs/account) and request a Bearer token. To get authorization for other requests, you’ll need to use your Bearer token.
For more information, see [Authentication](/docs/authentication).

```bash
curl -- POST \
--url https://api.signnow.com/oauth2/token \
--header 'Authorization: Basic {{basic_authorization_token}}' \
--header 'content-type: multipart/form-data' \
--header 'username=username@signnow.com' \
--header 'password=testpass' \
--header 'grant_type=password' \
--header 'scope=*'
```

### Step 2. Upload document

If you already have a document in your account, you can skip this step. Otherwise, you can upload one via the API and copy the document ID from the response. SignNow supports the following file formats: .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx, .ps, and .eps.

<!-- theme: info -->

> **Note**: You can send your Invite to sign a document only if you own the document.

For more information, see [Upload document](/docs/document/operations/upload-document).

```bash
curl --request POST \
--url https://api.signnow.com/document \
--header 'Authorization: Bearer {{access_token}}' \
--header 'content-type: multipart/form-data' \
--form 'file=@/path/to/your/document/Purchase_agreement.pdf'
```

### Step 3. Add roles and fields

Next, you need to add fields to your document. 

In this example, we will add two text fields and two signature fields to the document: one text field and one signature field for the seller; one text field and one signature field for the buyer.  We will set specific locations for the fields.

To create a field, you need to include the following data in the request:

- Coordinates of the field position on a page.
- Number of the page.
- Width and height of the field.
- Field label.
- Role that is associated with the field.
- Field type (signature, text, enumeration (dropdown), radio button, checkbox, initials, attachment, hyperlink, and stamp).
- Pre-filled text that appears in the field when the signer opens the document.
- Whether the field is required or not.

For more information, see [Edit document](/docs/document/operations/edit-document).

```bash
curl --request PUT \
--url https://api.signnow.com/document/{{document_id}} \
--header 'Authorization: Bearer {{access_token}}'\
--header 'Content-Type: application/json' \
--data '{
  "fields": [
    {
      "type": "text",
      "role": "Buyer",
      "page_number": 0,
      "x": 11,
      "y": 691,
      "width": 83,
      "height": 11,
      "required": true,
      "name": "buyer_name",
      "color": "000000",
      "bold": false,
      "italic": false,
      "underline": false,
      "align": "left",
      "font": "Arial",
      "max_lines": 0,
      "max_chars": 0,
      "arrangement": "none",
      "size": 12,
      "valign": "top",
      "font_size": 8
    },
    {
      "type": "signature",
      "role": "Buyer",
      "page_number": 0,
      "x": 125,
      "y": 708,
      "width": 83,
      "height": 11,
      "required": true,
      "name": "signature_buyer",
      "allowed_types": [
        "type",
        "draw",
        "upload"
      ]
    },
    {
      "type": "text",
      "role": "Seller",
      "page_number": 0,
      "x": 111,
      "y": 648,
      "width": 83,
      "height": 11,
      "required": true,
      "name": "seller_name",
      "color": "000000",
      "bold": false,
      "italic": false,
      "underline": false,
      "align": "left",
      "font": "Arial",
      "max_lines": 0,
      "max_chars": 0,
      "arrangement": "none",
      "size": 12,
      "valign": "top",
      "font_size": 8
    },
    {
      "type": "signature",
      "role": "Seller",
      "page_number": 0,
      "x": 125,
      "y": 664,
      "width": 83,
      "height": 11,
      "required": true,
      "name": "signature_seller",
      "allowed_types": [
        "type",
        "draw",
        "upload"
      ]
    }
  ]
}'
```

### Step 4. Get roles

Make a [Get document](/docs/document/operations/get-document) request to retrieve existing roles in the document.

Role names and role IDs are listed in the `roles` array (for signers); `viewer_roles` for viewers, and `approver_roles` for approvers.

You need either a role or role ID but you can use both. If you use both, make sure that the role and role ID correspond.


```json
{
  "roles": [
    {
      "unique_id": "XXXXebd3947e418fb7fac25909a9733c2d44927a",
      "signing_order": "1",
      "name": "Buyer"
    },
    {
      "unique_id": "XXXXfc5a63b84784a634f5a7f45ddb3c0dcb5a18",
      "signing_order": "2",
      "name": "Seller"
    }
  ],
  "viewer_roles": [],
  "approver_roles": [
    {
      "unique_id": "XXXXebd3947e418fb7fac25909a9733c2d44929a",
      "signing_order": "3",
      "name": "Approver"
    }
  ]
}
```

<!-- theme: info -->

> **Note**: All roles in the document must be assigned to recipients in the invite. 

> The approver and viewer roles are displayed only when the document has been sent for signature.

### Step 5. Create and send an Invite to sign a document

In this example, we will send an invite to:

- Buyer (can fill out and sign the document)
- Seller (can fill out and sign the document)
- Approver (can review and approve/decline the document)

When sending an invite, assign actions to roles. 
- Recipients in the `to` array can fill out and sign the document.
- Recipients in the `approvers` array can review and approve/decline the document.
- Recipients in the `viewers` array can review the document.

> The approver role requires the signing order to be enabled. If the approver declines the document, it will not proceed to the next recipient. The approver cannot be assigned to the same step as other recipients.

For request body details, see [Send field invite](/docs/document-field-invite/operations/post-document-doc-id-invite).

```bash
curl --request POST \
--url https://api.signnow.com/document/{{document_id}}/invite \
--header 'Authorization: Bearer {{access_token}}'\
--header 'Content-Type: application/json' \
--data '{
  "to": [
    {
      "email": "buyer@email.com",
      "role": "Buyer",
      "order": 1,
      "prefill_signature_name": "Enter your name",
      "force_new_signature": 1,
      "reassign": "0",
      "decline_by_signature": "0",
      "reminder": {
        "remind_after": 3,
        "remind_repeat": 7
      },
      "expiration_days": 30,
      "authentication_type": "password",
      "password": "123456",
      "subject": "Review and sign the agreement",
      "message": "Hi, this is an invite to sign the purchase agreement.",
      "redirect_uri": "https://example.com",
      "decline_redirect_uri": "https://signnow.com",
      "close_redirect_uri": "https://close-redirect-uri.com",
      "redirect_target": "blank"
    },
    {
      "email": "seller@email.com",
      "role": "Seller",
      "order": 2,
      "prefill_signature_name": "Enter your name",
      "force_new_signature": 1,
      "reassign": "0",
      "decline_by_signature": "0",
      "reminder": {
        "remind_after": 3,
        "remind_repeat": 7
      },
      "expiration_days": 30,
      "authentication_type": "password",
      "password": "123457",
      "subject": "Review and sign the agreement",
      "message": "Hi, this is an invite to sign a purchase agreement.",
      "redirect_uri": "https://example.com",
      "decline_redirect_uri": "https://signnow.com",
      "close_redirect_uri": "https://close-redirect-uri.com",
      "redirect_target": "blank"
    }
  ],
  "from": "sender@email.com",
  "cc": [
    "cc_recipient1@email.com",
    "cc_recipient2@email.com"
  ],
  "approvers": [
    {
      "email": "approver@email.com",
      "role": "Approver",
      "order": 3,
      "expiration_days": 30,
      "authentication_type": "password",
      "password": "123458",
      "subject": "Review and approve the agreement",
      "message": "Hi, this is an invite to review and approve the purchase agreement.",
      "redirect_uri": "https://example.com",
      "redirect_target": "blank"
    }
  ]
}'
```

### Try out in Postman

[Access](https://www.postman.com/signnow-api/signnow-public-collection/collection/2uoz4az/signnow-invite-to-sign-test-collection) this flow in Postman, and feel free to use field-based invites to sign a document in your workflow.


## Send a document group for signature

Now, we will send a document group (containing the purchase agreement and invoice) to four recipients:

- Buyer (can `sign` the purchase agreement)
- Seller (can `sign` the purchase agreement)
- Approver (can review and `approve` the purchase agreement and invoice )
- Viewer (can `view` the purchase agreement)

We will start with creating a document group.

### Step 1. Create a document group

Use the [Create a document group](/docs/document-group/operations/create-document-group) request to organize documents in your SignNow account into a group.

In the example, we will add two documents to the group: the purchase agreement and the invoice. Add the document IDs to the request body. 

```bash
curl --request POST \
--url https://api.signnow.com/documentgroup \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
    "document_ids": [
        "XXXXXX6dc7d3430ba89514667ce4f32da7b33f76",
        "YYYY37a5dc3d47c4ba574a86b573a0562a07cc77"
    ],
    "group_name": "Purchase agreement package"
}'
```

The response retrieves the document group ID.

<!-- theme: success -->

> You can retrieve the document IDs in your SignNow account by clicking **More** **(...)** next to the document and selecting **Copy Id** in the dropdown. Alternatively, retrieve the document ID from the response when [uploading the document](/docs/document/operations/upload-document).

### Step 2. Add roles and fields to documents

Add fields to each document from the group and assign fields to roles using the [Edit document](/docs/document/operations/edit-document) request as described in [Step 3](/docs/invite-to-sign#step-3-add-roles-and-fields) for the document invite.


### Step 3. Get roles

You can assign roles to document recipients and define the action each role can perform in the document.

The available actions are:
- `sign`: The recipient can sign or fill out the document.
- `approve`: The recipient can review the document to approve or decline it.
- `view`: The recipient can only review the document without making changes.

Use the [Get doc group info](/docs/document-group/operations/get-document-group-info-v2) or [Get doc group recipients](/docs/doc-group-field-invite/operations/get-v2-document-groups-document-group-id-recipients) request to retrieve existing roles in the document group.

You can create new roles and assign action to each role in the next step.

### Step 4. Create and send an Invite to sign a document group

We will send the document group to four recipients using the [Invite to sign doc group](/docs/doc-group-field-invite/operations/invite-to-sign-document-group) request.

Among recipients are:

- Buyer (can `sign` the purchase agreement)
- Seller (can `sign` the purchase agreement)
- Approver (can review and `approve` the purchase agreement and invoice )
- Viewer (can `view` the purchase agreement)

Use the `invite_actions` array to define what action each recipient can perform with the document (`sign`, `approve`, `view`).

<!-- theme: info -->

> **Note**: Recipients can also receive the document group invite by SMS, and you can combine email and SMS recipients in a single invite. For more information, see the [SMS invite guide](/docs/sms-invite).

For request body details, see [Invite to sign doc group](/docs/doc-group-field-invite/operations/invite-to-sign-document-group).

> The approver role requires the signing order to be enabled. If the approver declines the document, it will not proceed to the next recipient. The approver cannot be assigned to the same step as other recipients. Approve action must be assigned to all documents in the document group. 

```bash
curl --location 'https://api.signnow.com/documentgroup/{{document_group_id}}/groupinvite' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "invite_steps": [
    {
      "order": 1,
      "invite_emails": [
        {
          "email": "buyer@email.com",
          "subject": "Review and sign documents",
          "message": "Please reach out with any questions.",
          "expiration_days": 30,
          "reminder": {
            "remind_after": 3,
            "remind_repeat": 7,
            "remind_before": 5
          }
        }
      ],
      "invite_actions": [
        {
          "email": "buyer@email.com",
          "role_name": "Buyer",
          "action": "sign",
          "document_id": "XXXXXX6dc7d3430ba89514667ce4f32da7b33f76",
          "allow_reassign": "0",
          "decline_by_signature": "0",
          "redirect_uri": "https://example.com",
          "decline_redirect_uri": "https://signnow.com",
          "close_redirect_uri": "https://close-redirect-uri.com",
          "redirect_target": "blank",
          "allow_forwarding": false,
          "i_am_recipient": false,
          "show_decline_button": true,
          "authentication": {
            "type": "password",
            "value": "1233456"
          }
        }
      ]
    },
    {
      "order": 2,
      "invite_emails": [
        {
          "email": "seller@email.com",
          "subject": "Review and sign documents",
          "message": "Please reach out with any questions.",
          "expiration_days": 30,
          "reminder": {
            "remind_after": 3,
            "remind_repeat": 7,
            "remind_before": 5
          }
        }
      ],
      "invite_actions": [
        {
          "email": "seller@email.com",
          "role_name": "Seller",
          "action": "sign",
          "document_id": "XXXXXX6dc7d3430ba89514667ce4f32da7b33f76",
          "allow_reassign": "0",
          "decline_by_signature": "0",
          "redirect_uri": "https://example.com",
          "decline_redirect_uri": "https://signnow.com",
          "close_redirect_uri": "https://close-redirect-uri.com",
          "redirect_target": "blank",
          "allow_forwarding": false,
          "i_am_recipient": false,
          "show_decline_button": true,
          "authentication": {
            "type": "password",
            "value": "1233456"
          }
        }
      ]
    },
    {
      "order": 3,
      "invite_emails": [
        {
          "email": "approver@email.com",
          "subject": "Review and approve documents",
          "message": "Please reach out with any questions.",
          "expiration_days": 30
        }
      ],
      "invite_actions": [
        {
          "email": "approver@email.com",
          "role_name": "Approver",
          "action": "approve",
          "document_id": "XXXXXX6dc7d3430ba89514667ce4f32da7b33f76",
          "authentication": {
            "type": "password",
            "value": "1233456"
          }
        },
        {
          "email": "approver@email.com",
          "role_name": "Approver",
          "action": "approve",
          "document_id": "YYYY37a5dc3d47c4ba574a86b573a0562a07cc77",
          "authentication": {
            "type": "password",
            "value": "1233456"
          }
        }
      ]
    },
    {
      "order": 4,
      "invite_emails": [
        {
          "email": "viewer@email.com",
          "subject": "Review documents",
          "message": "Please reach out with any questions."
        }
      ],
      "invite_actions": [
        {
          "email": "viewer@email.com",
          "role_name": "Viewer",
          "action": "view",
          "document_id": "XXXXXX6dc7d3430ba89514667ce4f32da7b33f76"
        }
      ]
    }
  ],
  "completion_emails": [],
  "sign_as_merged": true,
  "cc": [
    "cc_recipient1@email.com",
    "cc_recipient2@email.com"
  ],
  "cc_subject": "Review documents",
  "cc_message": "Please reach out with any questions."
}'
```

The successful request sends the document group to recipients in the defined order.

### Try out in Postman

[Access](https://www.postman.com/signnow-api/signnow-public-collection/folder/aq00hn5/document-group-invite?action=share&source=copy-link&creator=23914423&ctx=documentation) this flow in Postman, and feel free to use field-based invites to sign a document group in your workflow.


---

## Embedded sending

# About embedded sending

API users can embed SignNow to allow customers to **send signature requests without leaving a website** or app. You may also enable customers to add fields to the document or document group before sending a signature request.

No additional registration or email is required, and the workflow built into your app will continue running uninterrupted.

To embed the SignNow sending into your app, complete the following steps:

- [Upload](/docs/document/operations/upload-document) a document.
- Generate a link to the [document](/docs/embedded-sending/operations/post-v2-documents-document-id-embedded-sending) or [document group](/docs/embedded-sending/operations/post-v2-document-groups-document-group-id-embedded-sending).
- Use the **iFrame tag** with the link to embed the document or document group sending into your app or website.

See also:

- [Embedded signing guide](/docs/guides-embedded-signing)
- [Embedded editor guide](/docs/guides-embedded-editor)

## Before you begin

Before creating a link, make sure that:

- You are the owner of the document or document group.
- No invites to sign this document were sent (the document does not have a _pending_ or _signed_ status).

## Embedded sending features

Embedded sending is available for [documents](/docs/embedded-sending/operations/post-v2-documents-document-id-embedded-sending) and [document groups](/docs/embedded-sending/operations/post-v2-document-groups-document-group-id-embedded-sending).

For the embedded sending, you can customize the following:

- `link_expiration`: Number of minutes until the link expires. The allowed range is 15 (default) to 45 minutes for standard users. If your flow requires an expiration time of more than 45 minutes, please reach out to our support team at **api@signnow.com**.

- `redirect_uri`: When a user selects **Send Invite**, they are redirected to this URI.

- `redirect_target`: Defines how the `redirect_uri` opens. Possible values:
  - `self`:  `redirect_uri` opens in the same browser tab (default).
  - `blank`: `redirect_uri` opens in a new tab.

- `from_email`: Use this attribute to customize the email address that appears: 1) [part before @] on the Send Invite page (**From**, **Invite Email Subject**, and **Invite Email Message**) 2) in the invite and reassign emails: [part before @] in email subject and email body; when clicking **Contact Sender** and in **Reply-to**; 3) in the signing session: as the email in **From** in the header and on the detailed **From** card; when clicking the **Contact Sender** button in the **More Actions** menu and on the detailed **From** card.

<details>

**<summary>From email in the UI</summary>**

![Send Invite page with the custom sender email address (from_email)](/reference-assets/images/Embedded_sending/from_email/from_email_send_invite.png)

![Invite email in Gmail with the from_email address and a Contact sender message addressed to it](/reference-assets/images/Embedded_sending/from_email/from_email_invite_email_contact_sender.png)

![Reply to a SignNow invite email in Gmail, addressed to the from_email address](/reference-assets/images/Embedded_sending/from_email/from_email_reply_to.png)

![Signing session with the sender's from_email address and the Contact Sender button](/reference-assets/images/Embedded_sending/from_email/from_email_ss_from.png)

![Signing session More actions menu with Contact Sender, opening an email to the from_email address](/reference-assets/images/Embedded_sending/from_email/from_email_ss_contact_sender.png)

</details>  

- `from_name`: Use this attribute to customize the name that appears: 1) on the Send Invite page (**From**, **Invite Email Subject**, and **Invite Email Message**); 2) in the invite and reassign emails: in email **subject** and email **body**; 3) in the signing session: as the name in **From** in the header and on the detailed **From** card.

<details>

**<summary>From name in the UI</summary>**

![Send Invite page with the custom sender name (from_name)](/reference-assets/images/Embedded_sending/from_name/from_name_send_invite.png)

![Invite email with the custom sender name](/reference-assets/images/Embedded_sending/from_name/from_name_invite_email.png)

![Signing session with the sender name from from_name and the Contact Sender button](/reference-assets/images/Embedded_sending/from_name/from_name_ss.png)

</details>

#### Explore the three scenarios of passing `from_name` and `from_email`:

**When both `from_email` and `from_name` are passed:**

The custom `from_name` appears:

- on the Send Invite page: **From**, **Invite Email Subject**, and **Invite Email Message**.
- in the invite and reassign emails: in **Email Subject** and **Email Body**.
- in the signing session: **From** in the header and on the detailed **From** card.

The custom `from_email` appears:

- in the invite and reassign emails: when clicking **Contact Sender** and in **Reply-to**.
- in the signing session: on the detailed **From** card, when clicking **Contact Sender** in the **More Actions** menu and on the detailed **From** card.

---
**When only `from_email` is passed:**

The custom `from_email` appears:

- in the signing session: when clicking **Contact Sender** in the **More Actions** menu and on the detailed **From** card; as the email in **From** in the header and on the detailed **From** card.
- in the invite and reassign emails: when clicking **Contact Sender** and in **Reply-to**.

The part of `from_email` (before `@`) appears:

- on the Send Invite page: **From**, **Invite Email Subject**, and **Invite Email Message**.
- in the invite and reassign emails: in **Email Subject** and **Email Body**.

---
**When only `from_name` is passed**:

The custom `from_name` appears:

- on the Send Invite page: **From**, **Invite Email Subject**, and **Invite Email Message**.
- in the invite and reassign emails: in email **subject** and email **body**.

The default (owner’s) `from_email` appears:

- in the invite and reassign emails: when clicking **Contact Sender** and in **Reply-to**.
- in the signing session: as the email in **From** in the header and on the detailed **From** card, and when clicking **Contact Sender** in the **More Actions** menu and on the detailed **From** card.

> The priority for customizing sender's email address and name is as follows:<br> 1. `from_email`/`from_name`<br> 2. Invite settings<br> 3. Branding at document / document group / application / user level<br> 4. Generic<br> 5. Branding at organization level

<!-- theme: success -->
> Get the existing `from_email` and `from_name` attributes using the [Get document](/docs/document/operations/get-document) (in `document_attributes`) request, or [Get document group](/docs/document-group/operations/get-documentgroup), [Get document group info](/docs/document-group/operations/get-document-group-info-v2) (in `document_group_attributes`) requests.

### Attributes specific to document embedded sending

For the document embedded sending, you can also customize the actions a sender of the invite can perform using the `type` parameter. Possible values:

- `document`: a sender can add fields to the document and send the invite.

- `invite`: a sender cannot add new fields and sends an invite with the fields that were added before. If no fields were added, a [freeform invite](/docs/doc-freeform-invite/operations/post-freeform-document-id-invite) without fields is sent.

### Attributes specific to document group embedded sending

For embedded document group sending, you can add the `type` parameter to the payload to specify the sending step at which the embedded link should open and to control what actions the sender can perform.
- `manage`: The link opens on the Add documents to document group page (default).
- `edit`: The link opens in the editor, allowing the sender to add fields and send the invite.
- `send-invite`: The link opens on the Send Invite page.

#### Pre-filling document group parameters for embedded sending

You can customize the document group embedded sending for users by pre-filling these parameters:

- Recipient roles (`role` and `action`) in the editor and on the Send Invite page.
- Recipient emails in the editor and on the Send Invite page.
- CC recipient emails in the editor and on the Send Invite page.
- The invite email subject and message on the Send Invite page.

Learn more about [pre-filling the document group parameters](/docs/guides-embedded-sending#step-5-pre-fill-parameters-for-embedded-sending) for embedded sending.

## Document embedded sending

Let’s create a link to embed the sending of a document.

### Step 1. Upload a document

First, add the document you need for the embedded sending. There are three ways to upload a document:

- [Upload a document from your computer](/docs/document/operations/upload-document)

```bash
curl --request POST \
  --url https://api.signnow.com/document \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: multipart/form-data' \
  --form file=@/path/to/your/file.pdf
```

- [Upload a document from a URL](/docs/document/operations/post-v2-documents-url)

```bash
curl --request POST \
  --url https://api.signnow.com/v2/documents/url \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "https://file.com"
  }'
```

- [Upload a document with text tags](/docs/document/operations/upload-document-with-text-tags)

```bash
curl --request POST \
  --url https://api.signnow.com/document/fieldextract \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: multipart/form-data' \
  --form file= \
  --form Tags= \
  --form 'Tags[]:tag_name='
```

### Step 2. Generate a link to the document embedded sending

Now let’s generate a link that expires in 15 minutes. By setting the `type` parameter to `document`, we will enable the user to add fields to the document before sending an invite. After completion, the sender is redirected to the SignNow website in a new tab.

All the fields in the request body are optional. For more information, see [Create embedded sending link](/docs/embedded-sending/operations/post-v2-documents-document-id-embedded-sending).

```bash
curl --request POST \
  --url https://api.signnow.com/v2/documents/{{document_id}}/embedded-sending \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "type": "document",
    "redirect_uri": "https://signnow.com",
    "link_expiration": 15,
    "redirect_target": "blank",
    "from_email": "sender@email.com",
    "from_name": "Anna Green"
  }'
```

You can use a template instead of the document. To do so, [create](/docs/template/operations/create-template) a template and use its ID as the `document_id` path parameter.

## Document group embedded sending

As an example, let's customize the document group embedded sending. 
- Create and assign a logo for the document group
- Pre-fill the document group invite parameters

### Step 1. Upload documents

Before creating a document group, upload the documents to your SignNow account.

Follow the same flow described in [Step 1](/docs/guides-embedded-sending#step-1-upload-a-document) of the document embedded sending.

### Step 2. Add fields to documents

Let's add fields to the documents that will form the document group in **Step 3**.

Use [`PUT /document/{{document_id}}`](/docs/document/operations/edit-document) endpoint.

> You can retrieve the document IDs in your SignNow account by clicking **More (...)** next to the document and selecting **Copy Id** in the dropdown. Alternatively, retrieve the document ID from the response when [uploading the document](/docs/guides-embedded-sending#step-1-upload-a-document).

We will add five text and two signature fields to the first document – Service agreement, and one text field and one signature field to the second document – Invoice.


<!--
type: tab
title: Adding fields to Service agreement
-->
```bash
curl --request PUT \
  --url https://api.signnow.com/document/{{document_id}} \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --data '{
      "fields": [
          {
              "type": "text",
              "role": "Client",
              "page_number": 0,
              "x": 108,
              "y": 105,
              "width": 177,
              "height": 19,
              "required": false,
              "name": "client_name",
              "color": "000000",
              "bold": false,
              "italic": false,
              "underline": false,
              "align": "left",
              "font": "Arial",
              "max_lines": 0,
              "max_chars": 0,
              "arrangement": "none",
              "size": 12,
              "valign": "top",
              "font_size": 8
          },
          {
              "type": "text",
              "role": "Sales manager",
              "page_number": 0,
              "x": 267,
              "y": 65,
              "width": 177,
              "height": 11,
              "required": true,
              "name": "sales_text1",
              "color": "000000",
              "bold": false,
              "italic": false,
              "underline": false,
              "align": "left",
              "font": "Arial",
              "max_lines": 0,
              "max_chars": 0,
              "arrangement": "none",
              "size": 14,
              "valign": "top",
              "stretch_mode": "fixed",
              "font_size": 9
          },
          {
              "type": "text",
              "role": "Sales manager",
              "page_number": 0,
              "x": 355,
              "y": 65,
              "width": 177,
              "height": 11,
              "required": true,
              "name": "sales_text2",
              "color": "000000",
              "bold": false,
              "italic": false,
              "underline": false,
              "align": "left",
              "font": "Arial",
              "max_lines": 0,
              "max_chars": 0,
              "arrangement": "none",
              "size": 14,
              "valign": "top",
              "stretch_mode": "fixed",
              "font_size": 9
          },
          {
              "type": "text",
              "role": "Sales manager",
              "page_number": 0,
              "x": 430,
              "y": 65,
              "width": 177,
              "height": 11,
              "required": true,
              "name": "sales_text3",
              "color": "000000",
              "bold": false,
              "italic": false,
              "underline": false,
              "align": "left",
              "font": "Arial",
              "max_lines": 0,
              "max_chars": 0,
              "arrangement": "none",
              "size": 14,
              "valign": "top",
              "stretch_mode": "fixed",
              "font_size": 9
          },
          {
              "type": "text",
              "role": "Service provider",
              "page_number": 0,
              "x": 111,
              "y": 85,
              "width": 177,
              "height": 12,
              "required": true,
              "name": "provider_name",
              "color": "000000",
              "bold": false,
              "italic": false,
              "underline": false,
              "align": "left",
              "font": "Arial",
              "max_lines": 0,
              "max_chars": 0,
              "arrangement": "none",
              "size": 14,
              "valign": "top",
              "stretch_mode": "fixed",
              "font_size": 9
          },
          {
              "type": "signature",
              "role": "Client",
              "page_number": 0,
              "x": 187,
              "y": 517,
              "width": 177,
              "height": 22,
              "required": false,
              "name": "signature_client",
              "allowed_types": [
                  "type",
                  "draw",
                  "upload"
              ]
          },
          {
              "type": "signature",
              "role": "Service provider",
              "page_number": 0,
              "x": 187,
              "y": 553,
              "width": 177,
              "height": 22,
              "required": false,
              "name": "signature_provider",
              "allowed_types": [
                  "type",
                  "draw",
                  "upload"
              ]
          }
      ]
  }'
```
<!--
type: tab
title: Adding fields to Invoice
-->
```bash
curl --request PUT \
  --url https://api.signnow.com/document/{{document_id}} \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --data '{
      "fields": [
          {
              "type": "text",
              "role": "Sales manager",
              "page_number": 0,
              "x": 251,
              "y": 569,
              "width": 56,
              "height": 12,
              "required": true,
              "name": "name_manager",
              "color": "000000",
              "bold": false,
              "italic": false,
              "underline": false,
              "align": "left",
              "font": "Arial",
              "max_lines": 0,
              "max_chars": 0,
              "arrangement": "none",
              "size": 14,
              "valign": "top",
              "stretch_mode": "fixed",
              "font_size": 10
          },
          {
              "type": "signature",
              "role": "Sales manager",
              "page_number": 0,
              "x": 318,
              "y": 532,
              "width": 83,
              "height": 21,
              "required": true,
              "name": "signature_manager",
              "allowed_types": [
                  "type",
                  "draw",
                  "upload"
              ]
          }
      ]
  }'
```
<!-- type: tab-end -->

### Step 3. Create a document group

Use the [`POST /documentgroup`](/docs/document-group/operations/create-document-group) endpoint to create a document group.

Add the document IDs in the payload. 

```bash
curl --request POST \
  --url https://api.signnow.com/documentgroup \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
      "document_ids": [
          "XXXX93743e954e92beafca9460ce5f83b87db885",
          "XXXXe6daa0354d22997abef44232d7fbc60683e6"
      ],
      "group_name": "Service agreement document group"
  }'
```
The successful request retrieves the document group ID.

### Step 4. Add a company logo for the document group

Create a brand with a logo and assign it to the document group. When the sender opens the link for the embedded sending, the logo will appear in the editor and on the Send Invite page. 

Learn more about the [embedded sending branding](/docs/branding-logo-resource#customize-the-logo-for-the-embedded-sending-mode).

#### Create a brand

Use the [`POST /v2/brands`](/docs/general-branding/operations/post-brands) endpoint.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/brands \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
      "title": "logo_for_embedded_dg"
  }'
```

The successful request retrieves the brand ID.

#### Create a logo brand resource

Next, we will upload a logo using the brand ID.

Use the [`POST /v2/brands/{{brand_id}}/resources/logo`](/docs/general-branding/operations/post-v2-brands-brand-id-logo) endpoint.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/brands/{{brand_id}}/resources/logo \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: multipart/form-data' \
  --form 'logo=@"<path_to_logo_file>"'
```

#### Assign the brand with a logo to the document group

Use the [`PUT /v2/document-groups/{{document_group}}/brand`](/docs/general-branding/operations/put-v2-document-groups-document-group-id-brand) endpoint to assign the logo brand to the document group.

```bash
curl --request PUT \
  --url https://api.signnow.com/v2/document-groups/{{document_group}}/brand \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
      "brand_id": "XXXX4bf49c174b3aac1c8e377a6750da6b2afadc"
  }'
```

### Step 5. Pre-fill parameters for embedded sending

Use the endpoint [`PUT /v2/document-groups/{{document_group_id}}/recipients`](/docs/doc-group-field-invite/operations/put-v2-document-groups-document-group-id-recipients) to pre-fill parameters for embedded sending.

Let's pre-fill recipients `email`, `role`, `action`, `message`, and `subject` fields.
Also, add email addresses of CC recipients to the `cc` array.

> Pre-filling works correctly only if `name`=`role`.

<!-- theme: success -->
> You can use `{fullName}` and `{documentName}` placeholders for invite email `subject` and `message`.

```bash
curl --request PUT \
  --url https://api.signnow.com/v2/document-groups/{{document_group_id}}/recipients \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data-raw '{
      "recipients": [
          {
              "name": "Client",
              "email": "client@email.com",
              "order": 1,
              "documents": [
                  {
                      "id": "XXXX93743e954e92beafca9460ce5f83b87db885",
                      "role": "Client",
                      "action": "sign"
                  },
                  {
                      "id": "XXXXe6daa0354d22997abef44232d7fbc60683e6",
                      "role": "Client",
                      "action": "view"
                  }
              ],
              "attributes":{
                  "message": "Review and sign the service agreement",
                  "subject": "Service agreement"

              }
          },
          {
              "name": "Service provider",
              "email": "provider@email.com",
              "order": 1,
              "documents": [
                  {
                      "id": "XXXXe6daa0354d22997abef44232d7fbc60683e6",
                      "role": "Service provider",
                      "action": "view"
                  },
                  {
                      "id": "XXXX93743e954e92beafca9460ce5f83b87db885",
                      "role": "Service provider",
                      "action": "sign"
                  }
              ],
              "attributes":{
                  "message": "Review and sign the service agreement",
                  "subject": "Service agreement"

              }
          },
          {
              "name": "Sales manager",
              "email": "manager@email.com",
              "order": 1,
              "documents": [
                  {
                      "id": "XXXXe6daa0354d22997abef44232d7fbc60683e6",
                      "role": "Sales manager",
                      "action": "sign"
                  },
                  {
                      "id": "XXXX93743e954e92beafca9460ce5f83b87db885",
                      "role": "Sales manager",
                      "action": "sign"
                  }
              ],
              "attributes":{
                  "message": "Review and sign the service agreement",
                  "subject": "Service agreement"

              }
          }
      ],
      "cc": [
          "test1@test.com",
          "test2@test.com",
          "test3@test.com"
      ]
  }'
```

<!-- theme: success -->

> The priority for pre-filling the invite email subject and message is as follows:<br> - Values specified in the API request<br> - Customer's default values<br> - Common default values</br>

### Step 6. Generate a link to the document group embedded sending

Create a link for the embedded sending. Use the [`POST /v2/document-groups/{{document_group_id}}/embedded-sending`](/docs/embedded-sending/operations/post-v2-document-groups-document-group-id-embedded-sending) endpoint.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/document-groups/{{document_group_id}}/embedded-sending \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --data '{
      "redirect_uri": "https://example.com",
      "link_expiration": 15,
      "redirect_target": "self",
      "type": "send-invite"
  }'
```

The successful request retrieves the link for the embedded sending mode.

> Users can edit all pre-filled parameters when sending the embedded invite.

The embedded sending with the assigned logo and pre-filled parameters appears as follows:

**In the editor**

![Add recipients dialog in embedded sending with the pre-filled role, email, action and CC values labeled](/reference-assets/images/Embedded_sending/embedded_sending_prefill_editor.png)

**On the Send Invite page**

![Send Invite page in embedded sending with the pre-filled logo, role, email, subject, message and CC values labeled](/reference-assets/images/Embedded_sending/embedded_sending_prefill_invite.png)

## Try out in Postman

Access the [document embedded sending](https://www.postman.com/signnow-api/signnow-public-collection/folder/qriana2/embedded-sending?action=share&source=copy-link&creator=18977589&ctx=documentation) and [document group embedded sending](https://www.postman.com/signnow-api/signnow-public-collection/folder/53fruu5/embedded-sending-dg?action=share&source=copy-link&creator=18977589&ctx=documentation) flows in Postman, and feel free to embed the document sending into your system.


---

## Embedded editor

# Embedded editor

Let customers edit and prepare documents in a SignNow iFrame inside your app, with your branding and pre-filled fields, no account needed.

## About embedded editor

Embed the SignNow editor to allow your customers to edit documents without leaving your app — no registration or email required. The editor supports branding customization and document pre-filling, keeping your workflow running uninterrupted.

To embed the SignNow editor into your app, add a link that opens a document in a SignNow iFrame directly in the app. Complete two steps:

1. [Upload](/docs/document/operations/upload-document) a document
2. [Generate](/docs/embedded-editor/operations/post-v2-documents-document-unique-id-embedded-editor) a link to the editor that can be built into your app.

See also: [Embedded signing](/docs/guides-embedded-signing).

### Before you begin

Before creating a link, make sure that:

- You are the owner of the document or document group.
- The document/document group has not been sent for signature or signed.
- The document/document group is not deleted or archived

## Embedded editor features

Embedded editor is available for [documents](/docs/embedded-editor/operations/post-v2-documents-document-unique-id-embedded-editor) and [document groups](/docs/embedded-editor/operations/post-v2-document-groups-document-group-id-embedded-editor).

For the embedded editor, you can customize the following:

| Parameter | Description |
|---|---|
| `link_expiration` | Number of minutes until the link expires. From 15 minutes (by default) to 45 minutes. |
| `redirect_uri` | When the user closes the editor, they are redirected to this URI. |
| `redirect_target` | Defines whether the `redirect_uri` opens in a new tab or in the same browser tab. Use `self` for the same tab, and `blank` for a new tab. |

## Create a link to the embedded editor

Let’s create a link to the embedded editor for a document. For the document group embedded editor, see [Create embedded editor link for doc group](/docs/embedded-editor/operations/post-v2-document-groups-document-group-id-embedded-editor).


### Step 1. Upload a document

First, add the document that you’d like to open in the embedded editor. There are three ways to upload a document:

- [Upload a document from your computer](/docs/document/operations/upload-document)

```bash
curl --request POST \
--url https://api.signnow.com/document \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: multipart/form-data' \
--form file=@/path/to/your/file.pdf
```

- [Upload a document from a URL](/docs/document/operations/post-v2-documents-url)

```bash
curl --request POST \
--url https://api.signnow.com/v2/documents/url \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
"url": "https://file.com"
}'
```

- [Upload a document with text tags](/docs/document/operations/upload-document-with-text-tags)

```bash
curl --request POST \
--url https://api.signnow.com/document/fieldextract \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: multipart/form-data' \
--form file= \
--form Tags= \
--form 'Tags[]:tag_name='
```

### Step 2. Generate a link to the embedded editor

Now, let’s generate a link to the document editor that expires in 15 minutes. After completion, the person editing is redirected to the SignNow website in a new tab.

All the fields in the request body are optional. For more information, see [Create embedded editor link for document](/docs/embedded-editor/operations/post-v2-documents-document-unique-id-embedded-editor).

```bash
curl --request POST \
  --url https://api.signnow.com/v2/documents/{{document_id}}/embedded-editor \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
  "redirect_uri": "https://signnow.com",
  "link_expiration": 15,
  "redirect_target": "blank"
}'
```

## Troubleshooting

### Link generation fails

The API returns an error and does not generate the link in the following cases:

| Condition | Details | What to do |
|---|---|---|
| Document/document group has a pending signing invite | A freeform or role-based invite has been sent for the document or document group. | Cancel the invite before generating the link. |
| Document/document group has been signed | Documents/document groups with existing signatures cannot be edited. | Use a new document/document group without existing signatures. |
| Insufficient subscription | Your plan does not include the API editor feature. | Contact your account manager or support to upgrade your subscription. |
| Document/document group is owned by another user | The access token must belong to the document/document group owner. | Use the document/document group you own. |
| Document is part of a document group | Documents that are part of a document group must be edited via the document group endpoint. | Use the [Create link for doc group](/docs/embedded-editor/operations/post-v2-document-groups-document-group-id-embedded-editor) request. |
| Document/document group is deleted or archived | Deleted or archived documents/document groups cannot be edited. | Restore the document/document group before generating the link. |

### Editor opens in View Only mode

If a signing invite is created for the document or document group after the embedded editor link is generated, or the document has been signed, the editor opens in View Only mode.

## Try out in Postman

[Access](https://www.postman.com/signnow-api/signnow-public-collection/collection/rjhft8k/signnow-embedded-editor-test-collection) this flow in Postman, and feel free to embed the document editor into your system.


---

## Embedded signing

# About embedded signing

API users can embed SignNow into their website or app to allow their customers to sign documents without sending them emails, and without leaving the website. No additional registration required, no email, no interruptions to the workflow built in your app.

Embedding SignNow into your application allows you to add a link that opens a document in a SignNow iFrame directly within the app. The process consists of two steps:

1. Prepare a document for signature by creating an embedded invite to sign.
2. Generate a link for the invite to build into your app.

**Before you begin**

Before composing your request, make sure that:

- you are the owner of the document or document group
- you are about to create an invite for a document, not a template
- your document contains [fields](/docs/fields)
- your document is not in _pending_ or _signed_ status
- all the roles or role IDs in the document are assigned to signers of the invite

---

## Signing features

Embedded signing is available for [documents](/docs/document-embedded-signing/operations/create-embedded-signing-invite) and [document groups](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group). It can be set up for multiple signers who must sign the document in a specific order just like in a regular [invite to sign in SignNow](/docs/document-field-invite/operations/post-document-doc-id-invite). Different fields in the document can be assigned to separate signer roles. The information provided in the fields can be used to generate a name for a signed copy automatically before saving it. Signers may verify their identity via three different methods of authentication.

### Recipient roles

An embedded invite can include three recipient types:

- **Signer**: signs the document and fills in the assigned fields.
- **Viewer**: opens the document in read-only mode without signing or filling fields. Available for the [document group embedded invite](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group).
- **Approver**: reviews and approves the document without signing or filling fields. Use it when someone needs to confirm content before or after signers act on it.

The structure differs by endpoint:

- For [document embedded invites](/docs/document-embedded-signing/operations/create-embedded-signing-invite), approvers are added in a separate `approvers` array alongside `invites`.
- For [document group embedded invites](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group), approvers and viewers are entries inside the shared `signers` array, distinguished by `action: approve` on each document.

_Example 1. Create document embedded invite payload_

```json
{
  "name_formula": "document_name|signer1_name|signer2_name|signer3_name|date",
  "invites": [
    {
      "email": "signer_1_@email.com",
      "role_id": "role_id_1",
      "order": 1,
      "auth_method": "none",
      "first_name": "Jane",
      "last_name": "Doe",
      "prefill_signature_name": "Jane Doe",
      "force_new_signature": 1,
      "redirect_uri": "https://example.com",
      "delivery_type": "email", 
      "subject": "Sign the document",
      "message": "Please review the document and sign it at your earliest convenience.",
      "authentication": {
        "type": "password",
        "password": "password123"
      }
    },
    {
      "email": "signer_2_@email.com",
      "role_id": "role_id_2",
      "order": 1,
      "auth_method": "none",
      "first_name": "John",
      "last_name": "Doe",
      "authentication": {
        "type": "phone",
        "method": "phone_call",
        "phone": "+1XXX-XXXXXXX"
      }
    },
    {
      "email": "signer_3_@email.com",
      "role_id": "role_id_3",
      "order": 2,
      "auth_method": "none",
      "first_name": "Jane",
      "authentication": {
        "type": "phone",
        "method": "sms",
        "phone": "+1XXX-XXXXXXX",
        "sms_message": "Your custom sample message with {password}"
      }
    }
  ],
  "approvers": [
    {
      "email": "approver_1_@email.com",
      "role": "Approver 1",
      "order": 3,
      "auth_method": "none",
      "first_name": "Sarah",
      "last_name": "Williams",
      "authentication": {
        "type": "password",
        "password": "approverpass456"
      }
    }
  ],
  "from_email": "anna.green@email.com",
  "from_name": "Anna Green"
}
```

### Recipient authentication during the signing session

There are three identity verification methods you can add to an embedded document or document group invite. When recipients open the document or document group in your application, they must complete authentication before signing. 

**Authentication type: `phone`**

**Method: `sms`**

This type of authentication requires a signer to provide the password sent via SMS to their phone number. When using this type in the invite, you can set up the text message which contains a {password} placeholder.

```json
{
  "authentication": {
    "type": "phone",
    "method": "sms",
    "phone": "+1XXXXXXXXX",
    "sms_message": "Custom test message with {password}"
  }
}
```

**Authentication type: `phone`**

**Method: `phone_call`**

This type of authentication is used to verify the signer’s identity with a password delivered through a phone call.

```json
{
  "authentication": {
    "type": "phone",
    "method": "phone_call",
    "phone": "+1XXXXXXXXX"
  }
}
```

**Authentication type: `password`**

This type of authentication requires a signer to provide a password to the document for signature.

```json
{
  "authentication": {
    "type": "password",
    "password": "abc123"
  }
}
```

_Example: Authentication type password_

![Document password page asking the signer to enter the password to unlock the document](/reference-assets/images/Embedded%20signing%20guide/enter-password.png)

### Authentication methods used in the integrated application

The `auth_method` parameter is defined by the application owner to specify the method used to authenticate the signer within the integrated application.

Possible values are: `password`, `email`, `mfa`, `biometric`, `social`, `other`, `none`. 

The `auth_method` parameter is saved to the document history along with a client ID. You can retrieve the predefined `auth_method` with [`GET /document/{{doc_id}}/historyfull`](/docs/document/operations/get-document-historyfull) request.

<!-- theme: danger -->
> The `auth_method` parameter does not influence the signer's authentication method during the signing session. Use the `authentication` parameter to configure the signer's authentication for the signing session.

### Name generation (name_formula)

Embedded signing provides an option of generating the **signed document name** using the `name_formula` parameter. 

To create a formula combine any text (this part would be a text prefix) with **field names** from your document. SignNow extracts contents from the given fields and uses them in the name generation. Contents of the fields must be provided by the signer, so the name generation **starts only when the document has been completed**.

#### Formula syntax

Use pipes `|` to separate the prefix and the field names.

#### Example

**Formula**: `text_prefix|signer_name|signed_date`

**Text prefix:** Contract

**Document field 1**: (`signer_name`): User enters `John Smith`

**Document field 2**: (`signed_date`): User enters `20.01.2026`

Resulting document name: `Contract John Smith 20.01.2026`

> You cannot use signature fields for `name_formula`.

### Options for adding a signature

```json
{
  "email": "signer@email.com",
  "role_id": "c89f7258d12a290da9cfd6dc7d993f16bfc26155",
  "order": 1,
  "auth_method": "none",
  "prefill_signature_name": "Jane Doe",
  "required_preset_signature_name": "Jane Doe",
  "force_new_signature": 0
}
```

| Parameter | Description |
|-----------|-------------|
| `prefill_signature_name` | The text displayed in the Signature field. The signer can edit this value. |
| `required_preset_signature_name` | The text displayed in the Signature field. The signer **cannot** edit this value. Cannot be used simultaneously with `prefill_signature_name` or `force_new_signature` for the same role. |
| `force_new_signature` | Defines whether the signer can use their saved signature. `0` — signer can use a saved signature; `1` — signer must add a new signature. |


![Signature field pre-filled with the signer's name, which the signer can't edit](/reference-assets/images/Embedded%20signing%20guide/prefilled-for-signer.png)


### Redirect URIs and language parameters

In the embedded invite, you can also specify a page that opens after the document has been completed. To do so, add a link to the selected page in the `redirect_uri` parameter. You can set up different links for different signer actions, such as a separate page for when a signer declines to sign or closes the signing session.

```json
{
      "email": "signer@email.com",
      "role_id": "c89f7258d12a290da9cfd6dc7d993f16bfc26155",
      "order": 1,
      "auth_method": "none",
      "language": "en", 
      "redirect_uri": "https://signnow.com",
      "decline_redirect_uri": "https://airslate.com",
      "close_redirect_uri": "https://blog.signnow.com/category/developers",
      "redirect_target": "self"
    }
```

| Parameter | Description |
|-----------|-------------|
| `redirect_uri` | When all requested fields are completed and signed, the signer is redirected to this URI. |
| `decline_redirect_uri` | The link that opens when the signer declines to sign the document. |
| `close_redirect_uri` | The link that opens when a signer clicks **Save Progress and Finish Later** during a signing session or **Close** in view mode. |
| `redirect_target` | Defines how redirect URIs are opened. `blank` — opens in a new browser tab; `self` — opens in the same tab. |
| `language` | Sets the language of the signing session. Possible values: `en` (English), `es` (Spanish), `fr` (French). |

> Note that redirect parameters are not supported for approvers.

### Invite email settings

If you send the embedded invite with recipients by email, you can customize the email subject and message. Note that `subject`,`message`, `session_expiration`, and `link_expiration` are available when `delivery_type` is set to `email`.

```json
{
    "invites": [
        {
            "email": "signer@email.com",
            "role_id": "c89f7258d12a290da9cfd6dc7d993f16bfc26155",
            "order": 1,
            "auth_method": "none",
            "delivery_type": "email",
            "subject": "Review and sign the document.",
            "message": "Please review the document and sign it at your earliest convenience.",
            "link_expiration": 43200,
            "session_expiration": 1440

        }
    ]
}
```

#### Link and session expiration

- `link_expiration` — how long the email invite link remains valid before it expires. Ranges from 15 to 43,200 minutes (30 days). 15 minutes by default.
- `session_expiration` — how long the signing session stays active once opened. Ranges from 15 to 1,440 minutes (24 hours). Resets each time a new signing link is generated.

<!-- theme: danger -->
> **Session expiration and auto-completion**<br>When `session_expiration` runs out, the signing session ends automatically. Documents without required signing fields are marked as completed, and the `document_group.complete` webhook fires — even if not all documents with signing fields have been signed.

Note that the session expiration timer resets each time a new signing link is generated for the invite.

> For large document groups (10+ documents), set `session_expiration` to 60 minutes or higher (maximum 1,440 minutes). After receiving the `document_group.complete` webhook, always verify the actual completion status with [`GET /documentgroup/{{document_group_id}}`](/docs/document-group/operations/get-documentgroup) or [`GET /v2/document-groups/{{document_group_id}}`](/docs/document-group/operations/get-document-group-info-v2) before processing.

### Sender's email address and name

Using the `from_email` and `from_name` parameters, customize the appearance of the sender's email address and name.

```json
{
  "from_email": "anna.green@email.com",
  "from_name": "Anna Green"
}
```

`from_email`: Use this attribute to customize the email address that appears: 1) in the invite, reassign, reminder, and complete emails: in email **subject** (part before @) and email **body;** when clicking **Contact Sender**, and in **Reply-to**; 2) in the signing session: when clicking **Contact Sender** in the **More Actions** menu.

<details>

**<summary>from_email in the UI</summary>**

![Invite email with the from_email address](/reference-assets/images/Embedded%20signing%20guide/from_email_invites.png)

![Invite email in Gmail with a Contact Sender message and a reply both addressed to the from_email address](/reference-assets/images/Embedded%20signing%20guide/from_email_invites_contact_replyto.png)

![Signing session More actions menu with Contact Sender, opening an email to the from_email address](/reference-assets/images/Embedded%20signing%20guide/from_email_ss.png)

</details>

`from_name`: Use this attribute to customize the name that appears in email **subject** of the invite, reassign, reminder, and completed emails.

<details>

**<summary>from_name in the UI</summary>**

![Invite email with the from_name value](/reference-assets/images/Embedded%20signing%20guide/from_name_invites.png)

</details>

> Both parameters are optional and are applied only when `delivery_type` = `email`.

Explore the three scenarios of passing the `from_name` and `from_email` parameters:

#### When both `from_email` and `from_name` are passed:

The custom `from_name` appears:

- in email subject of the invite, reassign, reminder, and completed emails.

The custom `from_email` appears:

- in email body of the invite, reassign, reminder, and completed emails.
- when clicking **Contact Sender** and in **Reply-to** in the emails.
- in the signing session: when clicking **Contact Sender** in the **More Actions** menu.

---

#### When only `from_email` is passed:

The part of `from_email` (before `@`) appears:

- in email subject of the invite, reassign, reminder, and completed emails.

The custom `from_email` appears:

- in email body of the invite, reassign, reminder, and completed emails.
- when clicking **Contact Sender** and in **Reply-to** in the emails.
- in the signing session: when clicking **Contact Sender** in the **More Actions** menu.

---

#### When only `from_name` is passed:

The custom `from_name` appears:

- in email subject of the invite, reassign, reminder, and completed emails.

The default (owner’s) `from_email` appears:

- in email body of the invite, reassign, reminder, and completed emails.
- when clicking **Contact Sender** and in **Reply-to** in the emails.
- in the signing session: when clicking **Contact Sender** in the **More Actions** menu.

> The priority for customizing the sender's email address and name is as follows:<br> 1. `from_email`/`from_name`<br> 2. Invite settings<br> 3. Branding at document / document group / application / user level<br> 4. Generic<br> 5. Branding at organization level

<!-- theme: success -->
> Get the existing `from_email` and `from_name` attributes using the [Get document](/docs/document/operations/get-document) (in `document_attributes`) request, or [Get document group](/docs/document-group/operations/get-documentgroup), [Get document group info](/docs/document-group/operations/get-document-group-info-v2) (in `document_group_attributes`) requests.

## Brand customization

If you want to personalize the signing session (colors, logo, element visibility) you can do so with [SignNow branding](/docs/guides-branding).

## Embedded link in your system

Once all the settings have been applied and the embedded invite is created, the invite object itself remains in the SignNow application. To build it into your website, [generate a link to this invite](/docs/document-embedded-signing/operations/generate-link-for-embedded-invite).

_Example of the request for link generation_

```bash
curl --request POST \
  --url https://api.signnow.com/v2/documents/{{document_id}}/embedded-invites/{{field_invite_id}}/link/ \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
  "auth_method": "none",
  "link_expiration": 15
}'
```

## Embedded in iFrame

If you use an iFrame for an embedded signing, then be sure to set the iFrame dimensions to 100% by 100%. This is necessary so that the signing session and user experience will be correct for the signer, especially on mobile devices.

## Create embedded signature invite

### Step 1. Upload a document

First, add the document that you’d like to have signed. There are three options to do so:

- [Upload a document](/docs/document/operations/upload-document)

```bash
curl --request POST \
--url https://api.signnow.com/document \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: multipart/form-data' \
--form file=@/path/to/your/file.pdf
```

- [Upload a document from URL](/docs/document/operations/post-v2-documents-url)

```bash
curl --request POST \
--url https://api.signnow.com/v2/documents/url \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
"url": "https://file.com"
}'
```

- [Upload a document which contains the text tags](/docs/document/operations/upload-document-with-text-tags)

```bash
curl --request POST \
--url https://api.signnow.com/document/fieldextract \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: multipart/form-data' \
--form file= \
--form Tags= \
--form 'Tags[]:tag_name='
```

### [Step 2. Add fields](/docs/document/operations/edit-document)

Let's add one signature field and two text fields.

```bash
curl --location --request PUT 'https://api.signnow.com/document/{{document_id}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--data '{
  "fields": [
    {
      "page_number": 1,
      "type": "signature",
      "name": "signature_1",
      "role": "Signer 1",
      "required": true,
      "height": 40,
      "width": 50,
      "x": 260,
      "y": 60
    },
    {
      "page_number": 0,
      "type": "text",
      "name": "signer_name",
      "role": "Signer 1",
      "required": true,
      "height": 40,
      "width": 50,
      "x": 217,
      "y": 32
    },
    {
      "page_number": 0,
      "type": "text",
      "name": "signed_date",
      "role": "Signer 1",
      "required": true,
      "height": 40,
      "width": 50,
      "x": 260,
      "y": 80
    }
  ]
}'
```

### [Step 3. Get the role id or name](/docs/document/operations/get-document)

Make a [Get document](/docs/document/operations/get-document) request to extract the role ID or role name. You can find it in the roles array.

```json
 "roles": [
        {
            "unique_id": "26fde8d8febea5066849c2d7974a2232d4f3006f",
            "signing_order": "1",
            "name": "Signer 1"
        }
    ]
```

### [Step 4. Create embedded invite for document](/docs/document-embedded-signing/operations/create-embedded-signing-invite)


```bash
curl --request POST \
  --url https://api.signnow.com/v2/documents/{{document_id}}/embedded-invites \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
  "name_formula": "Contract|signer_name|signed_date",
  "invites": [
    {
      "email": "signer@email.com",
      "role_id": "26fde8d8febea5066849c2d7974a2232d4f3006f",
      "order": 1,
      "auth_method": "none",
      "first_name": "John",
      "last_name": "Doe"
    }
  ],
  "approvers": [
    {
      "email": "approver@email.com",
      "role": "Approver 1",
      "order": 2,
      "auth_method": "none",
      "first_name": "Sarah",
      "last_name": "Williams"
    }
  ]
}'
```

_Response_

```json
{
  "data": [
    {
      "id": "1357bd8d6e21d5ff1008986a271e42906f23fe26",
      "email": "signer@email.com",
      "role_id": "26fde8d8febea5066849c2d7974a2232d4f3006f",
      "order": 1,
      "status": "pending"
    },
    {
      "id": "a7f63568686ac225670ccf0398781bbd0840adc7",
      "email": "approver@email.com",
      "role_id": "44d0ae7b432140381cd3f7679801f40c09a1bbfd",
      "order": 2,
      "status": "created"
    }
  ]
}
```

> Learn more about [name_formula parameter](/docs/guides-embedded-signing#name-generation-name_formula). 

### [Step 4b. Create embedded invite for a document group](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group)

For a document group embedded invite, approvers go into the same `signers` array as signers, distinguished by `action: "approve"` on each document. Approver-step rules:

- Only one approver is allowed per invite step.
- A step that contains an `approve` action must not include any other actions (no mixing with `sign` or `view` in the same step).
- The approver must reference every document ID in the document group.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/document-groups/{{document_group_id}}/embedded-invites \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
  "invites": [
    {
      "order": 1,
      "signers": [
        {
          "email": "approver@email.com",
          "auth_method": "none",
          "first_name": "Sarah",
          "last_name": "Williams",
          "documents": [
            {
              "id": "193da8af5649ead43e67fa50da6d868b96247dc9",
              "role": "Approver 1",
              "action": "approve"
            },
            {
              "id": "066c1d3f77675a145b4788d524faa4da2bccf15e",
              "role": "Approver 1",
              "action": "approve"
            }
          ]
        }
      ]
    },
    {
      "order": 2,
      "signers": [
        {
          "email": "signer@email.com",
          "auth_method": "none",
          "first_name": "John",
          "last_name": "Doe",
          "documents": [
            {
              "id": "193da8af5649ead43e67fa50da6d868b96247dc9",
              "role": "Signer 1",
              "action": "sign"
            }
          ]
        }
      ]
    }
  ]
}'
```

_Response_

```json
{
  "data": {
    "id": "0cac76a09088bbe2b5acf7862dfe76863fd574c4"
  }
}
```

### [Step 5. Generate signing link](/docs/document-embedded-signing/operations/generate-link-for-embedded-invite)

Use the embedded invite ID from the **Step 4** response to create a signing link.

> For document groups, replace `/documents/` with `/document-groups/` in the URL.

> The `auth_method` should match the one used when creating the embedded invite.

> `link_expiration` sets how long the generated signing link remains valid: from 15 to 45 minutes, 15 minutes by default.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/documents/{{document_id}}/embedded-invites/{{embedded_invite_id}}/link/ \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
  "auth_method": "none",
  "link_expiration": 45
}'
```

### Step 6. Open the embedded link

Here is how a signer will go through the signing process via an embedded link.

![Animation of a signer completing an embedded signing session](/reference-assets/images/Embedded%20signing%20guide/embedded_signing.gif)

## Reuse the same documents for many signers

If every signer completes the same documents, prepare them once instead of uploading files and placing fields for each signing session. Create a copy per signer from a template, then run the embedded invite steps against that copy. The template stays untouched as the master version, and each signer works on an isolated copy.

There are two entry points, depending on how many documents each signer receives:

| Start from | Create the copy with | Then run |
|---|---|---|
| A document group template | [Create doc group from template](/docs/document-group-template/operations/post-v2-document-group-templates-unique-id-document-group) | **Step 4b** and **Step 5** |
| A document template | [Create document from template](/docs/template/operations/get-template-copy) | **Step 3**, **Step 4**, and **Step 5** |

Both are covered in [Documents, doc groups, and templates](/docs/entities), at **Step 8** and **Step 4** respectively. The [Sign PDFs in WordPress](/docs/sign-pdfs-in-wordpress) guide walks through the document group route end to end, from building the group to embedding the signing link in a page.

<!-- theme: warning -->

> **Note**: The copy keeps the template's fields and role names, but its document IDs, field IDs, and role IDs are all newly generated. Take the document IDs from the response that created the copy, and the role IDs from [Get document](/docs/document/operations/get-document) for that copy. Never reuse the template's IDs.

You cannot create an embedded invite for a template. Templates are masters for generating documents: create a document or document group from the template first, then invite recipients to that copy.

## Troubleshooting

| Error | Likely cause | What to do |
|---|---|---|
| 400 on **Finish** button | The signing session expired during the signing process. | Increase the `session_expiration` value. |
| CORS or network errors | Your domain is not allowed or a corporate firewall is blocking SignNow API calls. | Verify your domain is allowed and check firewall settings. |
| Unexpected behavior during signing | A browser extension is interfering with the signing session. | Test in incognito mode to rule out browser extension conflicts. |
| `The field invite is not pending or fulfilled.` (code `19001028`) when generating a signing link | The signer's invite is not in `pending` status: it was already signed, declined, or canceled, or an earlier signer in the signing order hasn't completed their step yet. | Check the invite status in the `field_invites` array of the [document details](/docs/document/operations/get-document) and request the link for a signer whose invite is `pending`. |
| `The current and field invite auth method is not the same.` (code `19015001`) when generating a signing link | The `auth_method` in the link request differs from the one set when the embedded invite was created. | Use the same `auth_method` value in both requests. |
| `Role {role_id} was not specified in any invite. All roles must be used.` when creating an embedded invite | The embedded invite must cover every role defined on the document. | Include an invite for each role in the request, or remove unused roles from the document or template. |
| `Cannot send invites for templates.` (code `19001003`) when creating an embedded invite | The ID in the request belongs to a template, not a document. | Create a document or document group from the template, then create the embedded invite for that copy. See [Reuse the same documents for many signers](/docs/guides-embedded-signing#reuse-the-same-documents-for-many-signers). |
| `Document not found` (code `19002001`) when creating an embedded invite | The ID doesn't identify a document available to the account that made the request. | Use the document IDs returned when you created the document or document group for this session, and authorize the request with the document owner's access token. |

## Try out in Postman

[Access](https://www.postman.com/signnow-api/signnow-public-collection/collection/ejfvdp9/signnow-embedded-signing-test-collection) this flow in Postman, and feel free to embed signing sessions into your system.

For more information, watch the video tutorial

https://youtu.be/8gVwWhTCWRU?si=msOprnj5ZKBOPghu.



---

## Sign PDFs in WordPress

# Sign PDFs in WordPress

This guide shows how to add document signing to a WordPress page using the SignNow API. Signers complete and sign the document right on your site, without registering, waiting for an email, or leaving the page, so the workflow stays inside your brand.

You will build a document group, save it as a reusable document group template, create a fresh document group from that template for each signing session, generate an embedded signing link, and paste that link into a WordPress page. The whole flow relies on the SignNow REST API and the built in WordPress Custom HTML block, so no extra plugin is required.

The walkthrough is built around **document groups** and **document group templates**. A document group lets you send one or several documents to signers as a single package. A group can contain a single document, so this approach works equally well for one PDF or many.

Saving the prepared group as a template lets you reuse it: instead of rebuilding fields for every visitor, you create a new document group from the template on demand. Each signer gets an isolated copy, while the template stays untouched as the master version. This is the practical pattern for a WordPress page where many visitors sign the same document.

## How it works

The flow splits into two parts. You do the **one-time setup** once, then repeat the **per signing session** steps for every visitor who signs.

One-time setup:

1. Create a document group from one or more uploaded documents.
2. Add fields (signature, text, and so on) to the documents in the group.
3. Save the document group as a document group template.

Per signing session:

4. Create a new document group from the template for the signing session.
5. Create an embedded signing invite for that document group.
6. Generate an embedded signing link for the recipient.
7. Add the link to a WordPress page inside a Custom HTML block.

## Before you begin

Make sure that:

- you have a SignNow account with API access and valid authorization credentials (see [Authentication](/docs/authentication))
- you have already [uploaded the documents](/docs/document/operations/upload-document) you want signed and have their document IDs
- you are the owner of those documents
- the documents are not in _pending_ or _signed_ status

> All requests below use the base URL `https://api.signnow.com` and must be authorized. The examples use an access token (`Authorization: Bearer {{access_token}}`), but you can authorize with an API key instead. See [Authentication](/docs/authentication) for the available methods.

## One-time setup

Prepare the documents, fields, and template once. You repeat these three steps only when the documents or fields change.

> You can also create the document group template in the SignNow UI instead of through **Step 1** to **Step 3**. If you already have a template, skip ahead to [Per signing session](/docs/sign-pdfs-in-wordpress#per-signing-session) and start from **Step 4**. To get its ID, call [Get doc group templates](/docs/document-group-template/operations/get-user-documentgroup-templates), or copy it from the UI: open **My Templates**, open the template, and take the ID from the page URL.

### Step 1. Create a document group

Combine your documents into a single group with [Create document group](/docs/document-group/operations/create-document-group). Pass the document IDs and a group name.

```bash
curl --request POST \
  --url https://api.signnow.com/documentgroup \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "document_ids": ["9f2c7b1e4d8a4f0c9b3e6a1d5c8f2b7e0a4d6c19", "e4a91c7d2b6f4083a5c1e9d7b0f3a86c2d5e4f19"],
    "group_name": "Client Service Agreement"
  }'
```

The response returns the `id` of the new document group. Save it for the next steps.

```json
{
  "id": "7b3e1a9c5d2f48609a1c7e4b2d8f6a0c3e5b9d17"
}
```

> The `group_name` is visible to signers, so choose a name that tells them what they are signing.

### Step 2. Add fields to the documents

Signers can only sign where you place fields. Add fields to each document in the group using [Edit a document](/docs/document/operations/edit-document). Assign every field to a role (for example, `Signer 1`) so you can address it when you create the invite. The example below adds three fields for the signer: a text field for their full name, a signature field, and a text field for the signing date.

> To get the IDs of the documents in the group, use [Get document group info](/docs/document-group/operations/get-document-group-info-v2).

Add the fields to the first document (Client Service Agreement):

```bash
curl --request PUT \
  --url https://api.signnow.com/document/{{document_id_1}} \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "fields": [
      {
        "type": "text",
        "role": "Signer 1",
        "required": true,
        "page_number": 0,
        "x": 100,
        "y": 650,
        "width": 200,
        "height": 28,
        "name": "full_name",
        "label": "Full name"
      },
      {
        "type": "signature",
        "role": "Signer 1",
        "required": true,
        "page_number": 0,
        "x": 100,
        "y": 690,
        "width": 200,
        "height": 40,
        "name": "signature"
      },
      {
        "type": "text",
        "role": "Signer 1",
        "required": true,
        "page_number": 0,
        "x": 100,
        "y": 745,
        "width": 120,
        "height": 28,
        "name": "date_signed",
        "label": "Date signed"
      }
    ]
  }'
```

Then add the same three fields to the second document (Statement of Work):

```bash
curl --request PUT \
  --url https://api.signnow.com/document/{{document_id_2}} \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "fields": [
      {
        "type": "text",
        "role": "Signer 1",
        "required": true,
        "page_number": 0,
        "x": 100,
        "y": 650,
        "width": 200,
        "height": 28,
        "name": "full_name",
        "label": "Full name"
      },
      {
        "type": "signature",
        "role": "Signer 1",
        "required": true,
        "page_number": 0,
        "x": 100,
        "y": 690,
        "width": 200,
        "height": 40,
        "name": "signature"
      },
      {
        "type": "text",
        "role": "Signer 1",
        "required": true,
        "page_number": 0,
        "x": 100,
        "y": 745,
        "width": 120,
        "height": 28,
        "name": "date_signed",
        "label": "Date signed"
      }
    ]
  }'
```

If your document runs to more than one page, set `page_number` to the index of the page that holds the signature block. For the full list of field types and options, see the [Fields](/docs/fields) guide.

### Step 3. Save the document group as a template

Turn the prepared group into a reusable template with [Create doc group template from doc group](/docs/document-group-template/operations/post-v2-document-groups-document-group-uid-document-group-template). The template stores the documents, fields, and roles so you can spin up identical groups later.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/document-groups/{{document_group_id}}/document-group-template \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "Client Service Agreement template"
  }'
```

This request is processed asynchronously and returns `202 Accepted` with an empty body. Retrieve the new template ID with [Get doc group templates](/docs/document-group-template/operations/get-user-documentgroup-templates).

```json
{
  "document_group_templates": [
    {
      "template_id": "3c8f0a2e6b1d47598c3a5e9b7d0f2a4c6e8b1d39",
      "template_name": "Client Service Agreement template"
    }
  ]
}
```

## Per signing session

Run these steps for each visitor who signs. Each session gets its own document group created from the template, so signers never touch the master version.

### Step 4. Create a document group from the template

For each signing session, create a fresh document group from the template with [Create doc group from template](/docs/document-group-template/operations/post-v2-document-group-templates-unique-id-document-group). This gives every signer an isolated copy while the template stays intact.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/document-group-templates/{{document_group_template_id}}/document-group \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "group_name": "Client Service Agreement"
  }'
```

The response returns the new document group in `data.unique_id`, along with the documents it contains and their roles. Use these values in the next step.

```json
{
  "data": {
    "unique_id": "b6d2f4a8c0e3475991a7c5e3b9d1f0a24c6e8b35",
    "name": "Client Service Agreement",
    "state": "created",
    "documents": [
      {
        "id": "0c5a9e3b7d1f42869c4a2e8b6d0f3a7c1e5b9d24",
        "document_name": "Client Service Agreement",
        "roles": ["Signer 1"]
      },
      {
        "id": "5d1e8b3a7c2f49608b4a1e6d9c0f3a75b2e4d68c",
        "document_name": "Statement of Work",
        "roles": ["Signer 1"]
      }
    ]
  }
}
```

> The document IDs in the new group differ from the originals. Use the `id` and `roles` returned here, not the IDs from **Step 1**, when you build the invite.

### Step 5. Create an embedded invite for the document group

Create an embedded signing invite with [Create embedded invite](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group). Group recipients into ordered steps. Each signer lists the documents they act on, the role they hold in each document, and the action (`sign`, `view`, or `approve`). Use the document group and document IDs returned in **Step 4**.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/document-groups/{{document_group_id}}/embedded-invites \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "invites": [
      {
        "order": 1,
        "signers": [
          {
            "email": "signer1@email.com",
            "auth_method": "none",
            "redirect_uri": "https://your-wordpress-site.com/thank-you",
            "redirect_target": "self",
            "documents": [
              {
                "id": "0c5a9e3b7d1f42869c4a2e8b6d0f3a7c1e5b9d24",
                "role": "Signer 1",
                "action": "sign"
              },
              {
                "id": "5d1e8b3a7c2f49608b4a1e6d9c0f3a75b2e4d68c",
                "role": "Signer 1",
                "action": "sign"
              }
            ]
          }
        ]
      }
    ]
  }'
```

The response returns an embedded invite ID. Save it for the next step.

```json
{
  "data": {
    "id": "a2d6c19e4f8b40739c1e5a2d8b6f0c3e7d5b9a14"
  }
}
```

### Step 6. Generate the embedded signing link

Generate the link the recipient will open with [Generate embedded invite link](/docs/doc-group-embedded-signing/operations/generate-link-for-embedded-invite-document-group). The `email` and `auth_method` must match the values you set when creating the invite.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/document-groups/{{document_group_id}}/embedded-invites/{{embedded_invite_id}}/link \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "email": "signer1@email.com",
    "auth_method": "none",
    "link_expiration": 45
  }'
```

The response contains the signing link:

```json
{
  "data": {
    "link": "https://app.signnow.com/document_group/01f3a9c7d2b64e8091a5c3e7b9d0f2a46c8e1b53"
  }
}
```

> `link_expiration` accepts 15 to 45 minutes. The link is single use and short lived, so generate it at the moment the signer needs it (for example, from your server when the WordPress page loads) rather than hardcoding it into the page.

### Step 7. Add the signing link to a WordPress page

Open the signing link inside an iframe on any WordPress page, such as a contact page or a dedicated signing page.

1. In the WordPress admin panel, open the page where you want the signing form and click **Edit**.
2. Click the **+** (Add block) button where you want the form to appear.
3. Search for **Custom HTML** and add the block.
4. Paste the iframe below, replacing the `src` with the link from **Step 6**.

```html
<iframe
  src="https://app.signnow.com/document_group/01f3a9c7d2b64e8091a5c3e7b9d0f2a46c8e1b53"
  width="100%"
  height="800"
  frameborder="0">
</iframe>
```

![WordPress Custom HTML block with the iframe code for the SignNow signing link](/reference-assets/images/use_cases_all/sn_wordpress.png)

Click **Preview** to check how the form looks, then save the page. Your visitors can now sign the document directly on your WordPress site. After they finish, they are sent to the `redirect_uri` you configured in **Step 5**.

> To customize the look of the embedded signing session (your logo, colors, and other styling), see the [Branding](/docs/guides-branding) and [White-labeled signing](/docs/white-labeled-signing) guides.

Because embedded signing links expire, most integrations generate the link on the server (for example, in a small PHP snippet or plugin) and inject it into the iframe `src` when the page is requested, rather than pasting a fixed link into the block.

## More embedding options

Embedded signing is one of several ways to bring SignNow into your site or app:

- [Embedded signing](/docs/guides-embedded-signing): let recipients sign documents and document groups inside your site, as described in this guide.
- [Embedded sending](/docs/guides-embedded-sending): let your users prepare a document, add fields, and send it for signature from within your site.
- [Embedded editor](/docs/guides-embedded-editor): let your users open a document or document group in the SignNow editor to add or adjust fields before sending.

## Conclusion

With a few API calls and the standard WordPress Custom HTML block, you can offer PDF document signing on your WordPress site without any third party plugin. Building the flow on a document group template lets you prepare the documents and fields once, then create a fresh document group for every signer, which keeps your integration aligned with how SignNow handles signing whether you send one document or many. From here you can extend the experience with signer authentication, redirects, branding, and the other embedded options above to match your site's look and workflow.


---

## Kiosk Mode

# Kiosk Mode

**Kiosk Mode** is a signing mode used to collect signatures on the spot from unregistered users, typically on mobile devices. For example, Kiosk Mode is commonly used at event registrations to collect signatures on participant waiver forms.

API users can set up Kiosk Mode for their customers using [embedded signing](/docs/guides-embedded-signing).

Let’s walk through creating an embedded signature invite with Kiosk Mode settings.

## Prerequisites

1. Create an application in the [API dashboard](https://app.signnow.com/webapp/api-dashboard/).

2. Authorize your application to send API requests. Learn more about [authentication](/docs/authentication).

## Step 1. Upload a waiver form with fields

Send the [`POST /document/fieldextract`](/docs/document/operations/upload-document-with-text-tags) request to upload the waiver form with fields to SignNow.

> Define which fields should be added during upload using the `parse_type` parameter. If `parse_type` is not specified, the default behavior is to parse both simple and complex tags as well as fillable fields.

**Request example**

```bash
curl --request POST \
  --url https://api.signnow.com/document/fieldextract \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=@"/Users/Downloads/Waiver form.pdf"' \
  --form 'parse_type="default"'
```

The successful response retrieves a document ID, which you’ll use in subsequent requests.

## Step 2. Create a brand

We will customize the signing experience for event participants. First, let's create a brand using the [`POST /v2/brands`](/docs/general-branding/operations/post-brands) request.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/brands \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "title": "brand_waiver_form"
}'
```

Now we have a brand ID.

## Step 3. Upload a logo

Use the brand ID from the previous step response to upload a logo brand resource with the [`POST /v2/brands/{{brand_id}}/resources/logo`](/docs/general-branding/operations/post-v2-brands-brand-id-logo) request. Signers will see this logo during the signing session and on the document completion page.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/brands/{{brand_id}}/resources/logo \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: multipart/form-data' \
  --form 'logo=@"./logo_download.jpeg"'
```

## Step 4. Create and customize a general brand resource

Next, let's customize the general branding for the signing session.

Send the [`PUT /v2/brands/{{brand_id}}/resources/general`](/docs/general-branding/operations/put-v2-brands-brand-id-general) request to customize the following:

- The welcome message.

- We will use the default SignNow colors for buttons, icons, and background.

> The Help center button is not visible for embedded signing by default.

```bash
curl --request PUT \
  --url https://api.signnow.com/v2/brands/{{brand_id}}/resources/general \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "welcome-message": {
      "visibility": true,
      "body-text": {
        "en": "Fill out and sign the waiver form."
      },
      "header-text": {
        "en": "Welcome!"
      }
    }
  }'
```

## Step 5. Create and customize an editor brand resource

Customize the participant's signing experience and the completion page further.

Send the [`PUT /v2/brands/{{brand_id}}/resources/editor`](/docs/general-branding/operations/put-v2-brands-brand-id-editor) request to configure the following:

- Hide the settings dropdown
- Hide the accessibility icon
- Hide the navigation icons
- Hide the sidebar
- Customize the completion footer text
- Customize the completion page (header and body text shown after document signing, hide the SignNow registration page, hide the download completed document button, hide the Go to SignNow button)
- Hide the Decline button during the signing session
- Set the default page dimension during the signing session

> The Support chat button is not visible for embedded signing by default.

```bash
curl --request PUT \
  --url https://api.signnow.com/v2/brands/{{brand_id}}/resources/editor \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "settings": {
      "visibility": false
    },
    "accessibility": {
      "visibility": false
    },
    "navigation": {
      "visibility": false
    },
    "sidebar": {
      "visibility": false
    },
    "complete-footer": {
      "visibility": true,
      "custom-text": {
        "en": "Thank you!"
      }
    },
    "complete-page": {
      "success": {
        "header-text": {
          "en": "Great!"
        },
        "body-text": {
          "en": "The waiver form has been signed."
        }
      },
      "registration": {
        "visibility": false
      },
      "button-to-signnow": {
        "visibility": false
      },
      "button-download": {
        "visibility": false
      },
      "page-dimension": {
        "percent": 150
      },
      "decline-button": {
        "visibility": false
      }
    }
  }'
```

## Step 6. Assign a brand to the waiver form

Send the [`PUT /v2/documents/{{document_id}}/brand`](/docs/general-branding/operations/put-v2-documents-document-id-brand) request to assign the brand with all settings to the waiver form.

Retrieve the document ID from the **Step 1** response.

> You can also assign branding to a document group, application, and organization.

```bash
curl --request PUT \
--url 'https://api.signnow.com/v2/documents/{{document_id}}/brand' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
  "brand_id": "{{brand_id}}"
}'
```

Now we can create the embedded invite for the waiver form.

## Step 7. Create an embedded invite for the waiver form

Send the [`POST /v2/documents/{{document_id}}/embedded-invites`](/docs/document-embedded-signing/operations/create-embedded-signing-invite) request to create an embedded invite to sign the waiver form.

Retrieve the role name using the [`GET /document/{{document_id}}`](/docs/document/operations/get-document) request (in the `roles` array).

**Useful settings for the Kiosk Mode**

- To use the invite for the Kiosk Mode, set the `force_new_signature` parameter to `1`. With the setting, a signer will not see previously saved signatures during the signing session.

- Add the `redirect_url` and `redirect_target`= `blank` to open the organizer's website in a new tab once the waiver form has been signed.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/documents/{{document_id}}/embedded-invites \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "invites": [
      {
        "email": "signer1@email.com",
        "role": "Role 1",
        "order": 1,
        "auth_method": "none",
        "redirect_uri": "https://example.com",
        "redirect_target": "blank",
        "force_new_signature": 1
      }
    ]
  }'
```

The successful response retrieves the embedded invite ID. We will use it for the next request.

## Step 8. Create a link for the embedded invite

Send the [`POST /v2/documents/{{document_id}}/embedded-invites/{{field_invite_id}}/link`](/docs/document-embedded-signing/operations/generate-link-for-embedded-invite) request to create the link to the waiver form.

Use the `link_expiration` and `session_expiration` parameters to configure the link's lifetime and the duration of the signing session.

> Note that the recipient's `auth_method` for the integrated application in the request must be the same as when creating an embedded invite. Learn more about the [authentication methods](/docs/guides-embedded-signing#authentication-methods-used-in-the-integrated-application) used in the integrated application.

```bash
curl --request POST \
  --url 'https://api.signnow.com/v2/documents/{{document_id}}/embedded-invites/{{invite_id}}/link' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --data '{
    "auth_method": "none",
    "link_expiration": 45,
    "session_expiration": 15
}'
```

The successful response retrieves the link to the branded waiver form.

## Step 9. Embed the invite link

Embed the link into your website's iframe to provide a seamless experience for event participants.

A participant can open and sign the waiver form on a mobile device.

### See how it works for the signer

![Animation of a signer completing a document in kiosk mode](/reference-assets/images/Kiosk_mode/kiosk_mode.gif)


---

## Extended signing session features

# Extended signing session features

Add identity checks, SMS delivery, qualified signatures, and custom redirects to the invites you send with the SignNow API.

Use these features to control how recipients receive, open, and complete documents. Each page lists the invite types the feature supports.

- [Qualified electronic signature](/docs/qualified-electronic-signature): request signatures backed by a qualified digital certificate and identity verification, with the legal weight of a handwritten signature.
- [SMS invite](/docs/sms-invite): send the signing link by text message instead of email. Signers of one invite can get it by email or SMS.
- [Invite with redirects](/docs/redirects-configuration): open your own pages after a signer signs, closes, or declines a document.
- [Two-factor authentication](/docs/two-factor-authentication): require recipients to enter a password or a code sent by SMS or phone call before they can open the document.


---

## Qualified electronic signature

# Qualified electronic signature

Request signatures backed by a qualified certificate and identity check, with the legal weight of a handwritten signature.

## About qualified electronic signature

A **qualified electronic signature** (QES) is an electronic signature with a qualified digital certificate. It provides the highest level of assurance with face-to-face identity verification. The law recognizes such signatures as carrying the same legal weight as handwritten ones.

SignNow supports two QES certificate providers:

* **eID Easy**
    * Digest-based flow (the document doesn’t leave SignNow)
    * Non-digest-based flow (the document is handled by a third party with no changes to the user experience)
* **Edicom** (required in Mexico)

With SignNow, you can send the following types of invites to sign with QES:

* [Document field invite](/docs/document-field-invite/operations/post-document-doc-id-invite)
* [Document group field invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group)
* [Bulk invite](/docs/template/operations/bulk-invite)
* [Embedded document invite](/docs/document-embedded-signing/operations/create-embedded-signing-invite)
* [Embedded document group invite](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group)


<!-- theme: info -->

> To use qualified electronic signature, a sender's user must be in the organization with the corresponding setting enabled. To enable the setting, [contact](https://support.signnow.com/) SignNow support.

## Signing process

1.  A signer receives an email with an invitation to sign a document or document group. Alternatively, they can access the document or document group via a link (for embedded invites) or through their SignNow account.
2. The signer **completes all required fields**.
3. If using Edicom, skip this step. If using **eID Easy**, the signer is requested to choose their country of residence and **verify their identity** to obtain a QES certificate.
4. The signer sees the instructions specific to each QES provider and **verifies their identity**, usually using designated apps or devices.
5. If the invitation includes a **payment**, it is requested after the signer verifies their identity.

After completing this process, the signer can download the document or document group with a QES certificate or receive those by email.

A PDF document signed with QES can be validated using Adobe Reader or an online validator.

## Before you begin

* A sender of an invite must be in an organization with QES settings enabled.
  1. [Contact](https://support.signnow.com/) SignNow support to connect QES to your organization.
  2. In your SignNow [account](https://app.signnow.com/), go to **Organization Settings** > **Send to Sign Settings** and switch the toggle next to **Qualified Electronic Signature (QES)**.
* Your document or document group must have at least one signer with a set-up field or fields.
* Each signing step must have no more than one signer.
* Each signer must use QES to sign a document or document group and use the same certificate provider (eID Easy or Edicom).

## Signing link for template

In your SignNow [account](https://app.signnow.com/), you can use QES with a [signing link](/docs/signing-link/operations/post-v2-document-group-document-group-id-signing-links) for a template. The template must contain at least one field with no email address assigned.

To create a signing link from a template with QES:

1. Next to the template, click **Create Invite Link**.
2. Under **Signature Type**, select the QES type.
3. Click **Copy Link**.
4. Click **Done**.

![Create Invite Link dialog for a template with the PDF-based Qualified Electronic Signature type](/reference-assets/images/QES%20guide/QES_signing-link_UI.png)

The signing link is created and can be used to request a signature with QES authentication.


## API: Send an invite to sign with QES

### Step 1. Authentication

[Generate](/docs/authentication) a bearer token to authenticate further requests.

### Step 2. Upload document

[Upload](/docs/entities) a document to be signed.

### Step 3. Add role and signature field

[Add](/docs/fields) fields to the document.

### Step 4. Get role ID

Make a [Get document](/docs/document/operations/get-document) request to extract the role or role ID.

```json

curl -X GET \
https://api.signnow.com/document/{{document_id}} \
-H 'Authorization: Bearer {{access_token}}' \

```

The roles array lists role names and IDs. You need either a role or role ID, but you can use both. If you use both, ensure the roles and IDs correspond.

```json

"roles": [
    {
        "unique_id": "6e9580fa76ba4edca18fa6e680a36d10a6bab503",
        "signing_order": "1",
        "name": "Signer 1"
        }
]

```

<!-- theme: info -->

> **Note**: In the invite, all the roles from the document must be assigned to signers.

### Step 5. Send invite with QES

To demand QES from signers, each object in the `to` attribute of the field invite payload must contain a `signature` object. Possible values of `signature.type` are the following:

* `eideasy`: eID Easy digest-based flow (the document doesn’t leave SignNow). 
* `eideasy-pdf`: eID Easy with the document handled by a third party and no changes to the user experience.
* `nom151`: Edicom.

All signers must sign the document with QES, and the signature type must be the same for all of them.

For other request body details, see [Send field invite](/docs/document-field-invite/operations/post-document-doc-id-invite).

```json
curl -X POST \
https://api.signnow.com/document/{{document_id}}/invite \
-H 'Authorization: Bearer {{access_token}}'\
-H 'Content-Type: application/json' \
-d '{
    "document_id": "c4aff212145b40888cd75e3c73c978484258c043",
    "to": [
        {
            "email": "signer1@email.com",
            "role_id": "6e9580fa76ba4edca18fa6e680a36d10a6bab503",
            "role": "Signer 1",
            "order": 1,
            "signature": {
                "type": "eideasy"
            },

            "prefill_signature_name": "Jane Doe",
            "force_new_signature": 1,
            "reassign": "0",
            "decline_by_signature": "0",
            "reminder": 0,
            "expiration_days": 30,
            "subject": "You’ve got a new signature request",
            "message": "Hi, this is an invite to sign a document from sender@email.com."
        }
    ],
    "from": "sender@email.com",
    "mail_provider": "sender@gmail.com"
}'
```

### Step 5.1 Send an embedded invite with QES

To request QES from signers using an embedded invite, each object in the `invite` array (for a document embedded invite) or the `signers` array (for a document group embedded invite) must contain a `signature` object. Possible values of signature.type are the following:

- `eideasy`: eID Easy digest-based flow (the document doesn’t leave SignNow).
- `nom151`: Edicom.

> All signers must sign the document with QES, and the signature type must be the same for all signers. You can add no more than one signer per step.

For other request body details, see [Create embedded document invite](/docs/document-embedded-signing/operations/create-embedded-signing-invite) or [Create embedded document group invite](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group).

***Create an embedded document invite example***

```json
curl --request POST \
  --url https://api.signnow.com/v2/documents/{{document_id}}/embedded-invites \
  --header "Accept: application/json" \
  --header "Authorization: Bearer {{access_token}}" \
  --header "Content-Type: application/json" \
  --data '{
    "name_formula": "Contract|signer_name|signed_date",
    "invites": [
      {
        "signature": {
          "type": "eideasy"
        },
        "email": "signer1@email.com",
        "role_id": "6e9580fa76ba4edca18fa6e680a36d10a6bab503",
        "order": 1,
        "auth_method": "email",
        "first_name": "Jane",
        "last_name": "Doe",
        "redirect_uri": "https://example.com",
        "decline_redirect_uri": "https://signnow.com",
        "redirect_target": "blank"
      }
    ]
  }'
```

***Create an embedded document group invite example***

```json
curl --request POST \
  --url https://api.signnow.com/v2/document-groups/{{document_group_id}}/embedded-invites \
  --header "Accept: application/json" \
  --header "Authorization: Bearer {{access_token}}" \
  --header "Content-Type: application/json" \
  --data '{
  "invites": [
    {
      "order": 1,
      "signers": [
        {
          "signature": {
            "type": "eideasy"
          },
          "email": "signer1@email.com",
          "auth_method": "none",
          "first_name": "John",
          "last_name": "Doe",
          "redirect_uri": "https://example.com",
          "decline_redirect_uri": "https://signnow.com",
          "redirect_target": "blank",
          "delivery_type": "email",
          "link_expiration": 30,
          "documents": [
            {
              "id": "6e9580fa76ba4edca18fa6e680a36d10a6bab503",
              "role": "Signer 1",
              "action": "sign"
            }
          ]
        }
      ]
    }
  ]
}'
```


## Try out in Postman

[Access](https://www.postman.com/signnow-api/signnow-public-collection/collection/65kpga4/signnow-extended-signing-session-features) this flow in Postman, and feel free to use signing invites with qualified electronic signatures.


---

## SMS invite

# About SMS invite

Apart from using email, you can also invite people to sign documents by SMS. A recipient gets a message with a link to a document or document group.

SMS signature request is available for a [document field invite](/docs/document-field-invite/operations/post-document-document-id-for-sms-invite-send-invite-via-sms) and [document group field invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group). Different signers of one invite can receive their invites by email or SMS. In a document field invite, signers receive the invite by SMS, and viewers and approvers receive it by email. In a document group field invite, recipients with any action can receive the invite by SMS.

> [!NOTE]
> SMS invites require the **Require login to sign** and CFR organization settings to be off, and cannot be combined with `sso_login` recipient authentication. See the full list of errors in [Invite to sign via SMS](/docs/document-field-invite/operations/post-document-document-id-for-sms-invite-send-invite-via-sms).

## Send a document field invite by SMS

### Step 1: Authentication

[Authenticate](/docs/authentication) your application for further requests.

### Step 2: Upload document

[Upload](/docs/entities) a document to be signed.

### Step 3: Add fields

[Add](/docs/fields) fields to the document.

### Step 4. Get role ID

Make a [Get document](/docs/document/operations/get-document) request to retrieve the role or role ID.

```bash
curl --request GET \
  --url https://api.signnow.com/document/{{document_id}} \
  --header "Authorization: Bearer {{access_token}}"
```

- The `roles` array lists the role names and IDs of recipients who can sign the document.

You need either a role or role ID, but you can use both. If you use both, ensure the roles and IDs correspond.

```json
{
  "roles": [
    {
      "unique_id": "6e9580fa76ba4edca18fa6e680a36d10a6bab503",
      "signing_order": "1",
      "name": "Signer 1"
    }
  ]
}
```

> [!NOTE]
> In the invite, all the roles from the document must be assigned to signers.

> The `approver_roles` and `viewer_roles` are populated only after the field invite is created.

### Step 5: Send document invite by SMS

Send a [document field invite](/docs/document-field-invite/operations/post-document-document-id-for-sms-invite-send-invite-via-sms) by SMS.

Required SMS invite fields:

- `to`: array of recipients
- `phone_invite`: phone number to send an SMS to.
- `role` (or `role_id`): recipient's role or role ID. Can be found in the [Get document](/docs/document/operations/get-document) response.
- `order`: recipient's order.
- `from`: sender's email address. Must be the email address associated with your SignNow account.

Find optional parameters in the [request body](/docs/document-field-invite/operations/post-document-document-id-for-sms-invite-send-invite-via-sms) of the SMS invite. To customize the SMS text, add the `sms_message` field: max 230 characters, GSM-7 characters only. Use the `{sender_email}` placeholder to add the sender's email address. The link to the document and an opt-out notice are automatically added at the end of the SMS. The `subject` and `message` fields apply only to recipients invited by email.

If a custom message is not added, the recipient gets the default message: "sender@email.com has sent you a document. Follow the link to view the document", followed by the link.

```bash
curl --request POST \
  --url https://api.signnow.com/document/{{document_id}}/invite \
  --header "Authorization: Bearer {{access_token}}" \
  --header "Content-Type: application/json" \
  --data '{
    "to": [
      {
        "phone_invite": "+12124567890",
        "role": "Signer 1",
        "role_id": "6e9580fa76ba4edca18fa6e680a36d10a6bab503",
        "order": 1,
        "sms_message": "Hi, here is an invoice for signature from {sender_email}"
      }
    ],
    "from": "sender@email.com"
  }'
```

### Combine email and SMS recipients

Different signers of one invite can receive it by email or SMS. Identify each recipient by `email` or `phone_invite` — only one of these parameters at a time.

In this example, Signer 1 receives the invite by email, and Signer 2 receives it by SMS with SMS authentication:

```bash
curl --request POST \
  --url https://api.signnow.com/document/{{document_id}}/invite \
  --header "Authorization: Bearer {{access_token}}" \
  --header "Content-Type: application/json" \
  --data '{
    "to": [
      {
        "email": "signer1@email.com",
        "role": "Signer 1",
        "role_id": "6e9580fa76ba4edca18fa6e680a36d10a6bab503",
        "order": 1,
        "subject": "You have got a new signature request",
        "message": "Hi, this is an invite to sign a document."
      },
      {
        "phone_invite": "+12124567890",
        "role": "Signer 2",
        "role_id": "7f0691fb87cb5fedb29fb7f791b47e21b7cbc604",
        "order": 2,
        "sms_message": "Hi, here is a document for signature from {sender_email}",
        "authentication_type": "phone",
        "method": "sms",
        "phone": "+12124567890",
        "authentication_sms_message": "Enter the password to unlock the document: {password}"
      }
    ],
    "from": "sender@email.com"
  }'
```

## Try out in Postman

[Access](https://www.postman.com/signnow-api/signnow-public-collection/collection/65kpga4/signnow-extended-signing-session-features) this flow in Postman and use SMS invites to ensure all your signers receive signature requests.

## Send a document group field invite by SMS

### Step 1: Authentication

[Authenticate](/docs/authentication) your application for further requests.

### Step 2: Upload documents

[Upload](/docs/entities#step-1-upload-document) documents to your SignNow account.

### Step 3: Add fields

[Add](/docs/fields) fields to the documents.

### Step 4. Create a document group

Use the document IDs from **Step 2** response to [create a document group](/docs/entities#step-6-create-document-group).

### Step 5. Get roles

You can retrieve document roles in two ways:

- Make a [Get document](/docs/document/operations/get-document) request for each document in a document group to retrieve the role and role ID.
- Make a [Get document group](/docs/document-group/operations/get-document-group-info-v2) request to retrieve role names in the document group. 

> Recipients with `approve` and `view` actions appear only after the field invite is created.

### Step 6. Send document group invite by SMS

Send a [document group field invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group) via SMS.

As an example, send an SMS invite to three recipients in sequence: **Recipient 1** and **Recipient 2** need to sign the documents in the group, while **Recipient 3** needs to approve two documents in the group.

Required SMS invite fields:

- `invite_steps`: array of steps for the document group invite.
  - `order`: sequence number of the step.
- `invite_actions`: array of recipient phone numbers, roles, and document actions.
  - `phone_invite`: phone number to send an SMS to.
  - `role_name` (or `role_id`): recipient's role name. Can be found in the [Get document group](/docs/document-group/operations/get-document-group-info-v2) response.
  - `action`: recipient's action on a specific document.
  - `document_id`: ID of the document.

Use the `invite_sms` array to customize the SMS invite for each recipient within a step:

- `sms_message`: custom text of the SMS invite, max 230 characters, GSM-7 characters only. Use the `{sender_email}` placeholder to automatically add the sender's email address. The link to the document group and an opt-out notice are automatically added at the end of the SMS. If a custom message is not added, the recipient gets the default message: "sender@email.com has sent you a document. Follow the link to view the document", followed by the link.
- `expiration_days`: number of days before the invite expires.
- `reminder`: settings for automatic reminders.

Different recipients of one invite can receive it by email or SMS: use `invite_emails` and `email` in one step, and `invite_sms` and `phone_invite` in another.

Find optional parameters (such as recipient authentication, redirects, decline, and reassign options) in the [request body of the document group field invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group).

```bash
curl --request POST \
 --url https://api.signnow.com/documentgroup/{{document_group_id}}/groupinvite \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "invite_steps": [
      {
        "order": 1,
        "invite_sms": [
          {
            "phone_invite": "+14075985199",
            "sms_message": "Hi, here is a document for signature from {sender_email}",
            "expiration_days": 30,
            "reminder": {
              "remind_after": 1,
              "remind_before": 2,
              "remind_repeat": 3
            }
          }
        ],
        "invite_actions": [
          {
            "phone_invite": "+14075985199",
            "role_name": "Recipient 1",
            "action": "sign",
            "document_id": "bbbb274c788444d39f75e7d01713f1eaf62ff2c0"
          }
        ]
      },
      {
        "order": 2,
        "invite_sms": [
          {
            "phone_invite": "+14075985197",
            "expiration_days": 30,
            "reminder": {
              "remind_after": 1,
              "remind_before": 2,
              "remind_repeat": 3
            }
          }
        ],
        "invite_actions": [
          {
            "role_name": "Recipient 2",
            "phone_invite": "+14075985197",
            "action": "sign",
            "document_id": "bbbb274c788444d39f75e7d01713f1eaf62ff2c0"
          }
        ]
      },
      {
        "order": 3,
        "invite_sms": [
          {
            "phone_invite": "+12075985197",
            "expiration_days": 30,
            "reminder": {
              "remind_after": 1,
              "remind_before": 2,
              "remind_repeat": 3
            }
          }
        ],
        "invite_actions": [
          {
            "role_name": "Recipient 3",
            "phone_invite": "+12075985197",
            "action": "approve",
            "document_id": "fffff1dab3634c4f84526d9d43244185829a7623"
          },
          {
            "role_name": "Recipient 3",
            "phone_invite": "+12075985197",
            "action": "approve",
            "document_id": "bbbb274c788444d39f75e7d01713f1eaf62ff2c0"
          }
        ]
      }
    ]
  }'
```


### Combine email and SMS recipients in a document group invite

You can combine email and SMS recipients in a single document group invite: use `invite_emails` and `email` for one recipient, and `invite_sms` and `phone_invite` for another.

In this example, Recipient 1 receives the invite by SMS with SMS authentication, and Recipient 2 receives it by email:

```bash
curl --request POST \
 --url https://api.signnow.com/documentgroup/{{document_group_id}}/groupinvite \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "invite_steps": [
      {
        "order": 1,
        "invite_sms": [
          {
            "phone_invite": "+14075985199",
            "sms_message": "Hi, here is a document for signature from {sender_email}",
            "expiration_days": 30
          }
        ],
        "invite_actions": [
          {
            "phone_invite": "+14075985199",
            "role_name": "Recipient 1",
            "action": "sign",
            "document_id": "bbbb274c788444d39f75e7d01713f1eaf62ff2c0",
            "authentication": {
              "type": "phone",
              "method": "sms",
              "phone": "+14075985199",
              "message": "Enter the password to unlock the document: {password}"
            }
          }
        ]
      },
      {
        "order": 2,
        "invite_emails": [
          {
            "email": "signer2@email.com",
            "subject": "You have got a new document group invite",
            "message": "Hi, this is an invite to sign a document group.",
            "expiration_days": 30
          }
        ],
        "invite_actions": [
          {
            "email": "signer2@email.com",
            "role_name": "Recipient 2",
            "action": "sign",
            "document_id": "bbbb274c788444d39f75e7d01713f1eaf62ff2c0"
          }
        ]
      }
    ]
  }'
```


---

## Invite with redirects

# Invite with redirects

Send invites that open your own pages after a signer signs, closes, or declines a document, in the same browser tab or in a new one.

## About redirects configuration

Set up pages that open for signers upon signing, closing, or declining an invite.

Use `redirect_target` to define how the redirect link is opened:

- `self`: in the same tab.
- `blank`: in a new tab.

| Invite type                                                                                                                                                                                                                                       | Redirect types                                                                                                                                                                                                                                                                                                                                                                           |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Field invite (both [document](/docs/document-field-invite/operations/post-document-doc-id-invite) and [document group](/docs/doc-group-field-invite/operations/invite-to-sign-document-group))                                  | <ul><li>`redirect_uri`: a recipient completes a document or document group and clicks **Finish**.</li><li>`close_redirect_uri`: a recipient clicks **Save progress and finish later** or **Close**.</li><li>`decline_redirect_uri`: a recipient clicks **Do Not Consent** or **Decline**.</li></ul>For a document field invite, you can set a separate `close_redirect_uri` for viewers. |
| Freeform invite (both [document](/docs/document-field-invite/operations/post-document-doc-id-invite) and [document group](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites)                     | <ul><li>`redirect_uri`: a recipient clicks **Done**.</li><li>`close_redirect_uri`: a recipient clicks **Close**.</li></ul>                                                                                                                                                                                                                                                               |
| Embedded invite (both [document](/docs/document-embedded-signing/operations/create-embedded-signing-invite) and [document group](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group)) | <ul><li>`redirect_uri`: a recipient completes a document or document group and clicks **Finish**.</li><li>`close_redirect_uri`: a recipient clicks **Save progress and finish later** or **Close**.</li><li>`decline_redirect_uri`: a recipient clicks **Do Not Consent** or **Decline**.</li></ul>                                                                                      |
| Embedded sending (both [document](/docs/embedded-sending/operations/post-v2-documents-document-id-embedded-sending) and [document group](/docs/embedded-sending/operations/post-v2-document-groups-document-group-id-embedded-sending))                 | <ul><li>`redirect_uri`: a recipient clicks **Send invite** or **Save and Close**.</li></ul>                                                                                                                                                                                                                                                                                              |
| Embedded editor (both [document](/docs/embedded-editor/operations/post-v2-documents-document-unique-id-embedded-editor) and [document group](/docs/embedded-editor/operations/post-v2-document-groups-document-group-id-embedded-editor))                      | <ul><li>`redirect_uri`: a recipient clicks **Save and Close**.</li></ul>                                                                                                                                                                                                                                                                                                                 |

## Send a document field invite with redirects

### Step 1: Authentication

[Generate](/docs/authentication) a bearer token to authenticate further requests.

### Step 2: Upload document

[Upload](/docs/entities) a document to be signed.

### Step 3: Add fields

[Add](/docs/fields) fields to the document.

### Step 4. Get role ID

Make a [Get document](/docs/document/operations/get-document) request to extract the role or role ID.

```json

curl -X GET \
https://api.signnow.com/document/{{document_id}} \
-H 'Authorization: Bearer {{access_token}}' \

```

The roles array lists role names and IDs. You need either a role or role ID, but you can use both. If you use both, ensure the roles and IDs correspond.

```json

"roles": [
    {
        "unique_id": "6e9580fa76ba4edca18fa6e680a36d10a6bab503",
        "signing_order": "1",
        "name": "Signer 1"
        }
]

```

<!-- theme: info -->

> **Note**: In the invite, all the roles from the document must be assigned to signers.

### Step 5: Send invite with redirects

Send a [document field invite](/docs/document-field-invite/operations/post-document-doc-id-invite) redirect settings for a signer and a viewer.

```json
curl -X POST \
https://api.signnow.com/document/{{document_id}}/invite \
-H 'Authorization: Bearer {{access_token}}'\
-H 'Content-Type: application/json' \
-d '{
    "to": [
        {
            "email": "signer@email.com",
            "role": "Signer 1",
            "role_id": "6e9580fa76ba4edca18fa6e680a36d10a6bab503",
            "order": 1,
            "redirect_uri": "https://unique-solutions.com",
            "decline_redirect_uri": "https://unique-solutions.com",
            "close_redirect_uri": "https://unique-solutions.com",
            "redirect_target": "blank",
            "subject": "New document",
            "message": "You've got a new document to sign."
        }
    ],
    "from": "sender@email.com",
    "viewers": [
        {
            "email": "viewer@email.com",
            "role": "Viewer 1",
            "order": 1,
            "close_redirect_uri": "https://unique-solutions.com",
            "redirect_target": "blank",
            "subject": "New document",
            "message": "You've got a new document to review."
        }
    ]
}'
```

## Try out in Postman

[Access](https://www.postman.com/signnow-api/signnow-public-collection/collection/65kpga4/signnow-extended-signing-session-features) this flow in Postman and customize your signature experience using redirects.


---

## Two-factor authentication

# Two-factor authentication

Require recipients to enter a password or a code received by SMS or phone call before they can view and sign a document.

## About two-factor authentication

Two-factor authentication requires recipients to enter a password or a code before viewing and signing a document.

There are three ways to authenticate a recipient:

- Password
- Code:
  - Received in SMS
  - Received by phone call

Invite authentication is available for the following invite types:

- [Document field invite](/docs/document-field-invite/operations/post-document-doc-id-invite)
- [Document group field invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group)
- [Document embedded signing](/docs/document-embedded-signing/operations/create-embedded-signing-invite)

<!-- theme: warning -->

> **Note**: Phone-based two-factor authentication (SMS code and phone call code) requires a paid API plan, an API free trial, or a Site License. It is not available on accounts without an active subscription. Customizing the authentication SMS message (`authentication_sms_message`) has the same requirement.

**Examples of authentication for a document field invite**

<!--
type: tab
title: Password
-->

```json
"authentication_type": "password",
"password": "P@$$word123!"
```

<!--
type: tab
title: Phone call code
-->

```json
"authentication_type": "phone",
"method": "phone_call",
"phone": "+12124567890"
```

<!--
type: tab
title: SMS code
-->

```json
"authentication_type": "phone",
"method": "sms",
"phone": "+12124567890",
"authentication_sms_message": "Your one-time code is {password}"
```

<!-- type: tab-end -->

For SMS authentication, `authentication_sms_message` is optional. You can use it for a custom message with a maximum of 140 symbols. The `{password}` placeholder is required and is automatically populated with a one-time code that a signer needs to enter.

## Send a document field invite with two-factor authentication

### Step 1: Authentication

[Generate](/docs/authentication) a bearer token to authenticate further requests.

### Step 2: Upload document

[Upload](/docs/entities) a document to be signed.

### Step 3: Add fields

[Add](/docs/fields) fields to the document.

### Step 4. Get role ID

Make a [Get document](/docs/document/operations/get-document) request to extract the role or role ID.

```json

curl -X GET \
https://api.signnow.com/document/{{document_id}} \
-H 'Authorization: Bearer {{access_token}}' \

```

The roles array lists role names and IDs. You need either a role or role ID, but you can use both. If you use both, ensure the roles and IDs correspond.

```json

"roles": [
    {
        "unique_id": "6e9580fa76ba4edca18fa6e680a36d10a6bab503",
        "signing_order": "1",
        "name": "Signer 1"
        }
]

```

<!-- theme: info -->

> **Note**: In the invite, all the roles from the document must be assigned to signers.

### Step 5: Send invite with SMS authentication

Send a [document field invite](/docs/document-field-invite/operations/post-document-doc-id-invite) with SMS authentication.

```json
curl -X POST \
https://api.signnow.com/document/{{document_id}}/invite \
-H 'Authorization: Bearer {{access_token}}'\
-H 'Content-Type: application/json' \
-d '{
    "to": [
        {
            "email": "signer@email.com",
            "role": "Signer 1",
            "role_id": "6e9580fa76ba4edca18fa6e680a36d10a6bab503",
            "order": 1,
            "subject": "New document",
            "message": "You've got a new document to sign.",
            "authentication_type": "phone",
            "method": "sms",
            "phone": "+12124567890",
            "authentication_sms_message": "Your one-time code is {password}"
        }
    ],
    "from": "sender@email.com"
}'
```

## Try out in Postman

[Access](https://www.postman.com/signnow-api/signnow-public-collection/collection/65kpga4/signnow-extended-signing-session-features) this flow in Postman and use the two-factor authentication to secure your data.


---

## Branding

# About branding

**Branding** (white-labeling) lets you tailor the signing, sending, and viewing experience, as well as email notifications, to match your company’s style.

SignNow allows API users to customize every step of the signer and sender journey:

- Email notifications with an invite to sign.
- How the editor looks during the signing session and when viewing the document afterward.
- How the editor looks when sending a document or document group for signing (embedded sending).
- How the editor looks in embedded editor mode.
- How the editor looks in embedded view mode.
- The **Send Invite** page for embedded sending.
- The completion page shown after signing a document.
- Other email notifications related to signing.

> [!NOTE]
> To create brands from an application in development mode, the account needs a paid API plan, an API free trial, or a Site License. Without one, [Create brand](/docs/general-branding/operations/post-brands) returns `403` with code `25002354`.


## Customization level

Branding can be used with a single document, document group, application, or organization.

> [!NOTE]
> A signing session is an editing and viewing experience that a recipient enters when opening a document in the SignNow editor.

<table style="width:100%">
<thead>
<tr>
<th> Customization level </th> <th> What is customized </th> <th style="width:45%"> When to use </th>
</tr>
</thead>

<tr>
<td><a href="/docs/general-branding/operations/put-v2-applications-application-id-brand"><b>Application</b></a></td>
<td> Signing session for all invites, embedded sending, embedded editor, embedded view links, and emails sent within an application.</td>
<td> Use if all your invites need to look the same way. </td>
</tr>

<tr>
<td><a href="/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id"><b>Organization</b></a></td>
<td><li> Signing session for all invites, embedded sending, embedded editor, embedded view links sent by users who belong to the organization. </li><li>All emails sent regarding those invites.</li></td>
<td> Use if you need to have different groups of invites customized differently. </td>
</tr>

<tr>
<td><a href="/docs/general-branding/operations/put-v2-documents-document-id-brand"><b>Document</b></a></td>
<td><li> Signing session for document invites (field invite, embedded invite, signing link, and FreeForm invite) and emails sent regarding the invites.</li><li>Document embedded sending experience.</li><li>Document embedded editor experience.</li><li>Document embedded view experience.</li> </td>
<td><ul><li> Use to make exceptions from the application brand or organization brand. </li><li> Use to customize specific invites. </li></ul></td>
</tr>

<tr>
<td><a href="/docs/general-branding/operations/put-v2-document-groups-document-group-id-brand"><b>Document group</b></a></td>
<td><li> Signing session for document group invites (field invite, embedded invite, signing link, and FreeForm invite) and emails sent regarding the invites.</li><li>Document group embedded sending experience.</li><li>Document group embedded editor experience.</li><li>Document group embedded view experience.</td>
<td><ul><li> Use to make exceptions from the application brand or organization brand. </li><li> Use to customize specific invites. </li></ul></td>
</tr>

</table>

## Brand ownership

Each brand has an `owner_type` field that defines who owns it and what access is allowed. There are three ownership types:

| `owner_type` | Description |
|---|---|
| `common` | System default SignNow brand. Read-only — cannot be edited or customized. Appears in the brand list, but any modification attempt returns a "No access to brand" error. |
| `organization` | Custom brand owned by the organization. Full access for organization admins. This is the brand type you should create and use for customization. |
| `user` | Custom brand owned by an individual user. |

> [!WARNING]
> If you receive a "No access to brand" error, check the `owner_type` of the brand via the [Get all brands](/docs/general-branding/operations/get-v2-brands) or [Get organization brands](/docs/organization-branding/operations/get-v2-organizations-organization-id-brands) endpoint. If it is `common`, the brand is read-only and cannot be edited. Create an organization or user brand instead.

## What you can customize

To customize the signing, sending, and viewing experiences, add resources to the brand. Brands consist of the following resources:

* [General resource](/docs/general-branding/operations/put-v2-brands-brand-id-general): customize the color scheme, consent text, welcome message, and help center menu option visibility of the signing session; the color scheme for the embedded editor, embedded sending, and embedded view experiences.
* [Editor resource](/docs/general-branding/operations/put-v2-brands-brand-id-editor): customize the look of the editor, button text and visibility on the completion page, and text on the authentication page. 
* [Send Invite resource](/docs/general-branding/operations/put-v2-brands-brand-id-resources-send-invite): customize the **Send Invite** page for the embedded sending experience.
* [Logo resource](/docs/general-branding/operations/post-v2-brands-brand-id-logo): customize the logo for the signing session, completion and authentication page, embedded sending and embedded view experience.
* Email resources:
  * [Email general](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-general): customize general settings of email notifications.
  * [Email logo](/docs/general-email-branding/operations/post-v2-brands-brand-id-email-logo): customize the logo that appears in the emails.
  * [Email invite](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-invite): customize the email text that notifies a signer that they have a pending invite.
  * [Email reassign](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-invite-reassign): customize the email text that notifies a new signer that an invite to sign was reassigned to them.
  * [Email canceled](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-invite-canceled): customize the email that notifies a signer that a sender canceled their invite.
  * [Email completed](/docs/general-email-branding/operations/put-v2-brands-brand-id-resources-email-invite-completed): customize the email that notifies a signer that their invite was completed.
  * [Email reminder](/docs/general-email-branding/operations/put-v2-brands-brand-id-resources-email-invite-reminder): customize the email that reminds a signer about a pending invite.
* CC email resources:
  * [CC email for invite](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite): customize CC emails sent with invite emails.
  * [CC email for reassign](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-reassign): customize CC emails sent with reassign emails.
  * [CC email for step completed](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-step-completed): customize CC emails sent when a step of an invite is completed.
  * [CC email FreeForm signed](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-signed): customize CC emails sent when a FreeForm invite is signed.
  * [CC email completed](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-completed): customize CC emails sent when an invite to sign is completed.
  
You can add the resources you need and omit those you don’t. The same applies to attributes within resources. If you don’t customize a part of the signing, sending, or viewing experience, it will use the default SignNow branding.

See the full list of attributes for each resource in its respective section.

## Branding and web settings configuration priority

SignNow resolves branding configurations based on a specific order of importance. Higher level branding configurations override lower level ones.

| Priority | Level | Scope | Notes |
| --- | --- | --- | --- |
| 1 (Highest) | Invite /Document/Document group | Specific document or group | Overrides all other branding configurations. |
| 2 | Application | API application | Overrides organization (workspace) branding. |
| 3 (Lowest) | Organization | Organization (workspace) | Applies to all organization (workspace) members.<br> **Note:** If **Disable branding setup** is enabled in **Workspace Settings,** members will be prohibited from setting up, editing, or sending invites with a custom branding. |

> [!NOTE]
> Generally, API-configured branding overrides UI settings when the invite is sent via API. When the invite is sent via the SignNow web app — including via an embedded sending link — UI settings override API-configured branding. In both cases, parameters passed directly at the invite level take the highest priority, overriding both API-configured branding and UI settings.
> 

See the examples below for more details.

---

## **Example 1: Invite email subject and message with embedded sending and invite to sign**

This example shows how API-configured branding interacts with UI-configured settings depending on the sending method.

**Setup**

- Via API, an [email invite brand resource](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-invite) is created with the email subject `Signature request from ACME company` and message `Please review and sign the contract from ACME company`, and assigned to the document group.

**Request example**

```bash
curl --request PUT \ 
--url https://api.signnow.com/v2/brands/{{brand_id}}/resources/email-invite \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
    "en": {
        "subject": "Signature request from ACME company",
        "body_header": "Review and sign the contract",
        "body_message": "Please review and sign the contract from ACME company"
    }
}'
```

- Via the SignNow web app, the user has set a custom email subject `Urgent: Signature Required` and message `Invoice needs your signature` in **Account Settings > Default Invite Settings**.

**Scenario 1: Embedded sending**

The user creates an embedded sending link for the document group with email branding configured via API.

**Result**

The embedded sending link opens the **Send Invite** page with the pre-filled email subject: `Urgent: Signature Required` and message: `Invoice needs your signature`.

The UI invite settings override the API-configured branding.

**Scenario 2: API invite to sign / embedded signing**

The user sends the document group for signature via API or creates an embedded signing link.

**A.** The user passes the `subject:Review and sign documents` and `message: Please contact for any questions`  parameters in the request.

**Request example**

```bash
curl -- request POST \
--url https://api.signnow.com/documentgroup/{{document_group_id}}/groupinvite \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "invite_steps": [
        {
            "order": 1,
            "invite_emails": [
                {
                    "email": "recipient@email.com",
                    "subject": "Review and sign documents",
                    "message": "Please contact for any questions"
                }
            ],
            "invite_actions": [
                {
                    "email": "recipient@email.com",
                    "role_name": "Recipient 1",
                    "action": "sign",
                    "document_id": "XXXXX61886d64cbcb308d22a14fb7378ad1081ba"
                }
            ]
        }
    ]
}'
```

**Result A**

The recipient receives an invite email with the subject `Review and sign documents` and message `Please contact for any questions`.

The invite-level parameters passed directly in the API request override both API-configured branding and UI invite settings.

**B.** The user does not pass `subject` and `message` parameters in the request.

**Result B**

The recipient receives an invite email with the subject `Signature request from ACME company` and message `Please review and sign the contract from ACME company`.

The API-configured branding overrides the UI invite settings.

---

## **Example 2: `from_name` and `from_email` with embedded sending and embedded signing**

This example shows how API-configured branding interacts with UI-configured settings for `from_name` and `from_email` in embedded sending and embedded signing.

The following priority order applies specifically to the sender's name and email address. It provides a more granular breakdown within the broader priority framework described above:

1. `from_name` / `from_email`
2. Invite settings
3. Branding at document, document group, or application level
4. Generic
5. Branding at organization (workspace) level

**Setup**

- Via API, an email invite brand resource is created with `from: John Smith` and assigned to the document group.

**Request example**

```bash
curl --location --request PUT 'https://api.signnow.com/v2/brands/{{brand_id}}/resources/email-invite' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
    "en": {
        "subject": "Signature request from ACME company",
        "body_header": "Review and sign the contract",
        "body_message": "Please review and sign the contract from ACME company",
        "from": "John Smith"
    }
}'
```

- Via the SignNow web app, the user has set a custom email subject `Urgent: Signature Request from {Sender name}` in **Account Settings > Default Invite Settings**. `{Sender name}` will be replaced by `Anna Green`.

**Scenario 1: Embedded sending**

The user creates an embedded sending link for the document group with email branding configured via API and passes the `from_name: Michael Stone` parameter.

**Result**

The embedded sending link opens the **Send Invite** page with the pre-filled email subject: `Urgent: Signature Request from Michael Stone`.

Regarding the sender name: the `from_name` parameter overrides both the API-configured branding (`John Smith`) and the UI invite settings (`Anna Green`).

Regarding the email subject and message: the UI invite settings override the API-configured subject and message in the email invite brand resource.

See also: [other scenarios](/docs/guides-embedded-signing#senders-email-address-and-name) of passing `from_name` and `from_email` for embedded sending.

**Scenario 2: Embedded signing**

The user creates an embedded signing link for the document group and passes the `from_name: Michael Stone` parameter (`delivery_type=email`). 

**Result**

The recipient receives an invite email with `from: Michael Stone`, email subject `Signature request from ACME company`, and email message `Please review and sign the contract from ACME company`.

Regarding the sender name: the `from_name` parameter overrides both the API-configured branding (`John Smith`) and the UI invite settings (`Anna Green`).

Regarding the email subject and message: the API-configured email invite branding overrides the UI invite settings.

See also: [other scenarios](/docs/guides-embedded-signing#senders-email-address-and-name) of passing `from_name` and `from_email` for embedded signing.

> [!NOTE]
> To reset the invite email message and subject in the web app:
> 
> 1. Go to https://app.signnow.com/webapp/my-account/settings
> 2. Locate the **Default Invite Settings** section.
> 3. Next to the **Invite Email Subject** or **Invite Email Message** setting, click **Change**.
> 4. In the panel that opens, click **Reset to Default**.

---

### Configuration matrix

The table below details customizable items at each level and the specific API or web paths to configure them.

| Feature | Organization (workspace) | Application | Invite / Document / Document group | Account Settings |
|---|---|---|---|---|
| Add/Change logo | **API:** [Org logo brand resource](/docs/organization-branding/operations/post-v2-organizations-organization-id-brands-brand-id-resources-logo)<br>**Web:** Workspace Settings > Workspace logo | **API:** [Logo brand resource](/docs/general-branding/operations/post-v2-brands-brand-id-logo) | **API:** [Logo brand resource](/docs/general-branding/operations/post-v2-brands-brand-id-logo)<br>**Web:** On the **Send Invite** page > Branding Theme | |
| Auto-apply signature and initials | **API:** `auto-apply-signatures-and-initials-to-document-fields` parameter in [Org editor brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-editor)<br>**Web:** Workspace Settings > Signing Settings | **API:** `auto-apply-signatures-and-initials-to-document-fields` parameter in [Editor brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-editor) | **API:** `auto-apply-signatures-and-initials-to-document-fields` parameter in [Editor brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-editor) | |
| Hide **Decline to Sign** | **API:** `decline-button` parameter in [Org editor brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-editor)<br>**Web:** Workspace Settings > Signing Settings | **API:** `decline-button` parameter in [Editor brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-editor) | **API:**<br>• `decline-button` parameter in [Editor brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-editor)<br>• `decline_by_signature` in API invite requests | |
| Guide signers through fields | **API:** `guide-signers-only-through-required-fields` parameter in [Org editor brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-editor)<br>**Web:** Workspace Settings > Signing Settings | **API:** `guide-signers-only-through-required-fields` parameter in [Editor brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-editor) | **API:** `guide-signers-only-through-required-fields` parameter in [Editor brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-editor) | |
| Set button colors for signing session | **API:** `buttons.primary.color` and `texts.color` parameters in [Org general brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-general)<br>**Web:** Workspace Settings > Branding and Customization | **API:** `buttons.primary.color` and `texts.color` parameters in [General brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-general) | **API:** `buttons.primary.color` and `texts.color` parameters in [General brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-general)<br>**Web:** On the **Send Invite** page > Branding Theme | |
| Set header colors for signing session | **API:** <br>•`header.background`, `texts.color`, `icons` parameters in [Org general brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-general) <br>•`progress-bar` object in [Org editor brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-editor)<br>**Web:** Workspace Settings > Branding and Customization | **API:** <br>•`header.background`, `texts.color`, `icons` parameters in [General brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-general) <br>•`progress-bar` object in [Editor brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-editor) | **API:** <br>•`header.background`, `texts.color`, `icons` parameters in [General brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-general) <br>•`progress-bar` object in [Editor brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-editor)<br>**Web:** On the **Send Invite** page > Branding Theme | |
| Set recipient redirects | **Web:** Workspace Settings > Redirect recipients |  | **API:**<br>• `redirect` parameters in API invite requests<br>**Web:** On the **Send Invite** page > More > Advanced Options > Actions On Completion | |
| Document completion attachments | **Web:** Workspace Settings > Email Settings |  | **Web:** On the **Send Invite** page > More > Advanced Options > Actions On Completion | |
| Disable payment request setup | **API:** `request-payment` parameter in [Org editor brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-editor)<br>**Web:** Workspace Settings > Additional Settings > Disable payment request setup | **API:** `request-payment` parameter in [Editor brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-editor) or [Send Invite brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-resources-send-invite) | **API:** `request-payment` parameter in [Editor brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-editor) or [Send Invite brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-resources-send-invite) | |
| Add email logo | **Web:** Workspace Settings > Branding and Customization | **API:** [Email logo brand resource](/docs/general-email-branding/operations/post-v2-brands-brand-id-email-logo) | **API:** [Email logo brand resource](/docs/general-email-branding/operations/post-v2-brands-brand-id-email-logo)<br>**Web:** On the **Send Invite** page > Branding Theme | |
| Logo position | **API:** `logo.position` parameter in [Org email general brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-general)<br>**Web:** Workspace Settings > Branding and Customization | **API:** `logo.position` parameter in [Email general brand resource](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-general) | **API:** `logo.position` parameter in [Email general brand resource](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-general)<br>**Web:** On the **Send Invite** page > Branding Theme | |
| Button colors | **API:** `buttons` parameter in [Org email general brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-general)<br>**Web:** Workspace Settings > Branding and Customization | **API:** `buttons` parameter in [Email general brand resource](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-general) | **API:** `buttons` parameter in [Email general brand resource](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-general)<br>**Web:** On the **Send Invite** page > Branding Theme | |
| Email headline | **API:** `body_header` parameter in [Org email invite brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-invite)<br>**Web:** Workspace Settings > Branding and Customization | **API:** `body_header` parameter in [Invite email brand resource](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-invite) | **API:** `body_header` parameter in [Invite email brand resource](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-invite)<br>**Web:** On the **Send Invite** page > Branding Theme | |
| Subject and message | **API:** `subject`, `body_message` parameters in [Org email invite brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-invite)<br>**Web:** Workspace Settings > Branding and Customization | **API:** `subject`, `body_message` parameters in [Invite email brand resource](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-invite) | **API:**<br>• `subject`, `body_message` parameters in [Invite email brand resource](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-invite)<br>• `subject`, `message` parameters in API invite requests<br>**Web:**<br>• On the **Send Invite** page > Branding Theme<br>• On the **Send Invite** page > Customize Message | **Web:** Account Settings > Default Invite Settings |
| Sender email (Reply-to) | **API:** `sender_email` parameter in [Org email general brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-general)<br>**Web:** Workspace Settings > Branding and Customization | **API:** `sender_email` parameter in [Email general brand resource](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-general) | **API:**<br>• `sender_email` parameter in [Email general brand resource](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-general)<br>• `from_email` parameter in embedded sending or embedded signing requests<br>**Web:** On the **Send Invite** page > Branding Theme | |
| Sender name | **API:** `from` parameter in [Org email invite brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-invite)<br>**Web:** Workspace Settings > Branding and Customization | **API:** `from` parameter in [Email invite brand resource](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-invite) | **API:**<br>• `from_name` parameter in embedded sending or embedded signing requests<br>• `from` parameter in [Email invite brand resource](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-invite) | **Web:** Account Settings > Default Invite Settings |
| Footer text | **API:** `footer_message` parameter in [Org email invite brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-invite)<br>**Web:** Workspace Settings > Branding and Customization | **API:** `footer_message` parameter in [Email invite brand resource](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-invite) | **API:** `footer_message` parameter in [Email invite brand resource](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-invite)<br>**Web:** On the **Send Invite** page > Branding Theme | |
| Remove SignNow references | **API:** `signnow_references` parameter in [Org email general brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-general)<br>**Web:** Workspace Settings > Branding and Customization | **API:** `signnow_references` parameter in [Email general brand resource](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-general) | **API:** `signnow_references` parameter in [Email general brand resource](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-general)<br>**Web:** On the **Send Invite** page > Branding Theme | |


---

## General resource

# General resource

With the general brand resource, API users can customize the signing session, the embedded editor, embedded sending, and embedded view experiences.

> [!NOTE]
> A signing session is an editing and viewing experience that a recipient enters when opening a document in the SignNow editor.

## Brand elements for the signing session

![Signing session header and toolbar with the brand properties labeled](/reference-assets/images/Branding%20guide/General/general_editor_signing_upd.png)

![Signing session with the general.main-background, general.icons and general.buttons.primary properties labeled](/reference-assets/images/Branding%20guide/General/general_editor_icons_upd.png)

![Signing session welcome message with the brand properties labeled](/reference-assets/images/Branding%20guide/General/general_welcome_message_new.png)

![Signing session welcome message with the general.welcome-message header and body text properties labeled](/reference-assets/images/Branding%20guide/General/general_welcome_message_2_new.png)

![Add Attachment dialog with the general.buttons primary, secondary and default properties labeled](/reference-assets/images/Branding%20guide/General/buttons.png)

## Brand elements for embedded editor, embedded view*, signing session for the FreeForm invite*

![Document group editor with the general.buttons, general.icons and general.hyperlink properties labeled](/reference-assets/images/Branding%20guide/General/general_buttons_constructor.png)

![Document group editor with the general.texts, general.header.background and general.main-background properties labeled](/reference-assets/images/Branding%20guide/General/general_elements_constructor_upd.png)

![Document group editor right sidebar with the general.texts property labeled](/reference-assets/images/Branding%20guide/General/general_right_sidebar_constructor_upd.png)

**Manage document recipients**

![Add recipients dialog for a document with the general.texts, general.icons and general.buttons properties labeled](/reference-assets/images/Branding%20guide/General/general_setup_recipients_constructor_doc.png)

**Manage document group recipients**

![Add recipients dialog for a document group with the brand properties labeled](/reference-assets/images/Branding%20guide/General/general_setup_recipients_constructor.png)

![Unsaved Changes dialog in the recipients setup with the general.texts and general.buttons properties labeled](/reference-assets/images/Branding%20guide/General/general_setup_recipients_unsaved_changes_constructor.png)

*Some elements are available

## Brand elements for embedded sending (Send Invite page)

![Send Invite page in embedded sending with the button brand properties labeled](/reference-assets/images/Branding%20guide/General/general_send_invite_buttons.png)

![Send Invite page settings in embedded sending with the brand properties labeled](/reference-assets/images/Branding%20guide/General/general_send_invite_settings_upd.png)

![Send Invite preview panel with the general.icons, general.texts and general.main.background properties labeled](/reference-assets/images/Branding%20guide/General/general_send_invite_preview_panel_upd.png)

![Actions On Completion panel on the Send Invite page with the general.texts and general.buttons properties labeled](/reference-assets/images/Branding%20guide/General/general_send_invite_completion.png)

![Send Invite page for a document with the general.texts and general.buttons.dropdown properties labeled](/reference-assets/images/Branding%20guide/General/general_send_invite_doc.png)


<table style="width:100%">
<thead>
<tr>
<th> UI element </th> <th> Customization options </th> <th style="width:45%"> Attributes with values </th>
</tr>
</thead>
<tr>
<td> Header background</td>
<td> The header background color in the editor and on the Send Invite page.<br><br>Can be customized for the signing session, embedded sending, embedded editor, and embedded view.</td>
<td>
    
```json

"header": {
  "background": "#0050A0"
}

```

</td>
</tr>
<tr>
<td> Main background</td>
<td> The page background color in the editor, on the Send Invite page (including the preview sidebar).<br><br>Can be customized for the signing session, embedded sending, embedded editor, and embedded view.</td>
<td>
    
```json

"main-background": "#FF0000"

```

</td>
</tr>
<tr>
<td> Text color</td>
<td> Text color in the editor: document name in the header, document name on the page, text in left sidebar, text in right sidebar; text on the manage recipients pop up.<br><br>Text color on the Send Invite page: text on the main page, text on the preview sidebar, text on the Actions on Completion sidebar, text on the settings sidebar.<br><br>Can be customized for the signing session, embedded sending, embedded editor, and embedded view.</td>
<td>
    
```json

"texts": {
  "color": "#2C2C2C"
}

```

</td>
</tr>
<tr>
<td> Icons </td>
<td>Colors of the icons in the editor and on the Send Invite page (across pop-ups, sidebars, and toolbars) in default state and when hovered over.<br><br>Can be customized for the signing session, embedded sending, embedded editor, and embedded view.</td>
<td>
    
```json
"icons": {
  "color": "#2C2C2C",
  "background": "#FFFFFF",
  "border": "#FFFFFF",
  "hover-background": "#F6F8FB",
  "hover-color": "#2C2C2C",
  "hover-border": "#F6F8FB"
}
```

</td>
</tr>
</tr>
<tr>
<td>Dropdown colors</td>
<td>
<li>Colors of the dropdowns in the editor and on the Send Invite page (across pop-ups, sidebars, and toolbars).</li>
<li>Colors of the dropdowns when opened, an option is hovered over, and an option is clicked.</li>
<br>Can be customized for the signing session, embedded sending, embedded editor, and embedded view.
</td>
</td>
<td>
    
```json
"buttons": {
  "dropdown": {
    "color": "#2C2C2C",
    "background": "#FFFFFF",
    "border": "#D6D9DC",
    "hover-background": "#F6F8FB",
    "hover-color": "#2C2C2C",
    "hover-border": "#D6D9DC",
    "active-background": "#E6E9EC",
    "active-color": "#2C2C2C",
    "active-border": "#D6D9DC"
  }
}
```

</td>
</tr>
<tr>
<td> Buttons color</td>
<td>Colors of the primary, secondary, and default buttons in the editor and on the Send Invite page (across pop-ups, sidebars, and toolbars).<br><br>Can be customized for the signing session, embedded sending, embedded editor, and embedded view. <br><br>Buttons on emails are customized in the <a href="/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-general">email general resource.</a>
<td>
    
```json
"buttons": {
  "primary": {
    "color": "#ffffff",
    "background": "#0777cf",
    "border": "#0777cf",
    "hover-background": "#348fd7",
    "hover-color": "#ffffff",
    "hover-border": "#348fd7",
    "active-background": "#076dbd",
    "active-color": "#ffffff",
    "active-border": "#003458"
  },
  "secondary": {
    "color": "#38424b",
    "background": "#e3e6e9",
    "border": "#e3e6e9",
    "hover-background": "#f1f2f4",
    "hover-color": "#38424b",
    "hover-border": "#f1f2f4",
    "active-background": "#d5dade",
    "active-color": "#38424b",
    "active-border": "#d5dade"
  },
  "default": {
    "color": "#546470",
    "background": "#ffffff",
    "border": "#ffffff",
    "hover-background": "#f1f2f4",
    "hover-color": "#546470",
    "hover-border": "#f1f2f4",
    "active-background": "#ffffff",
    "active-color": "#546470",
    "active-border": "#ffffff"
  }
}
```

</td>
</tr>
<tr>
<td>Welcome message</td>
<td>Show or hide a welcome message when a user opens an invite.
<li>Welcome message text with {sender_email} placeholder.</li>
<li>Header text with {signer_email} placeholder.</li>
<br><br>Can be customized for the signing session (field invite and embedded invite).</td>
<td>
    
```json
"welcome-message": {
  "visibility": true
  "body-text": {
    "en": "{sender_email} has invited you to fill out and sign this in one place.",
    "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
    "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
  },
  "header-text": {
    "en": "Hi, {signer_email}",
    "es": "Hola, {signer_email}",
    "fr": "Bonjour, {signer_email}"
  }
}
```

</td>
</tr>
<tr>
<td>Consent text</td>
<td>Consent text with {sender_email} placeholder shown when a user opens an invite.<br><br>Can be customized for the signing session (field invite and embedded invite).</td>
<td>
    
```json
"consent-text": {
  "en": "{sender_email} has invited you to fill out and sign this in one place.",
  "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
  "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
}
```

</td>
</tr>

<tr>
<td>Help center</td>
<td>Show or hide the Help Center option on the More Actions dropdown menu.<br><br>Can be customized for the signing session (except embedded invite: always 'false').</td>
<td>
    
```json
"help-center": {
  "visibility": true
}
```

</td>
</tr>
<tr>
<td>Hyperlink</td>
<td>Color of the hyperlinks in the editor (Manage Recipients) and on the Send Invite page (Add Payment Request).<br><br>Can be customized for the embedded sending and embedded editor.</td>
<td>
    
```json
  "hyperlink": {
  "color": "#0777CF",
  "hover-color": "#005BB5",
  "active-color": "#003F85"
}
```

</td>
</tr>
</table>




---

## Editor resource

# Editor resource

With the editor brand resource, API users can customize the signing session, the embedded editor, embedded sending, and embedded view experiences.

## Brand elements for the signing session

![Signing session with the editor progress bar, settings, sidebar, support chat and footer properties labeled](/reference-assets/images/Branding%20guide/Editor/editor.png)

![Signing session More Actions menu with the editor close button, decline button and sender info properties labeled](/reference-assets/images/Branding%20guide/Editor/editor_dropdown_signing.png)

![Decline dialog in the signing session with the editor.decline-invite-text property labeled](/reference-assets/images/Branding%20guide/Editor/decline%20pop-up.png)

![Decline confirmation in the signing session with the editor.decline-invite-text property labeled](/reference-assets/images/Branding%20guide/Editor/second%20decline%20pop-up.png)

![Completion page after successful signing, with the editor.complete-page properties and support chat labeled](/reference-assets/images/Branding%20guide/Editor/success%20completion%20page.png)

![Completion page after the signer declines, with the editor.complete-page properties labeled](/reference-assets/images/Branding%20guide/Editor/decline%20completion%20page.png)

![Authentication page with the logo, header, PIN request text and primary button properties labeled](/reference-assets/images/Branding%20guide/Editor/auth_page_request_pin_header.png)

![Document password page for a password sent by voice call or SMS, with the editor.auth-page.check-pin.phone.body-text property labeled](/reference-assets/images/Branding%20guide/Editor/auth_page_check_pin_phone.png)

![Document password page with the editor.auth-page.check-pin.password.body-text property labeled](/reference-assets/images/Branding%20guide/Editor/auth_page_check_pin_password.png)

![View mode with the download button, document name and close button properties labeled](/reference-assets/images/Branding%20guide/Editor/download_button_view_mode_2_upd.png)

![Signing session More Actions menu with the download button and document name properties labeled](/reference-assets/images/Branding%20guide/Editor/download_button_signing_session_upd.png)

![Signing session More Actions menu with the signing settings properties labeled](/reference-assets/images/Branding%20guide/Editor/signing_settings_new.png)

## Brand elements for embedded editor, embedded sending, signing session for the FreeForm invite*

![Document group editor with the editor toolbar, settings, continue button and manage recipients properties labeled](/reference-assets/images/Branding%20guide/Editor/editor_buttons_constructor_upd.png)

![Document group editor with the editor sidebar, fields, navigation and preview button properties labeled](/reference-assets/images/Branding%20guide/Editor/editor_elements_constructor_upd.png)

![Editor with the editor.close-button.title.editor property labeled](/reference-assets/images/Branding%20guide/Editor/editor_close_button_construction.png)

![Editor with the field settings and default fields visibility properties labeled](/reference-assets/images/Branding%20guide/Editor/editor_field_settings_default.png)

*Some elements are available

<table style="width:100%">
<thead>
<tr>
<th> UI element </th> <th> Customization options </th> <th style="width:45%"> Attributes with values </th>
</tr>
</thead>

<tr>
<td> Progress bar</td>
<td>
  <li>Progress bar color when in progress.</li>
  <li>Progress bar color when the document is completed.</li>
  <br><br> Can be customized for the signing session (field invite and embedded invite).
</td>
<td>
    
```json
"progress-bar": {
  "default-color": "#232323",
  "completed-color": "#232323"
}
```

</td>
</tr>
<tr>
<td>Accessibility option</td>
<td>
  <li>Show or hide the accessibility option in the More Actions dropdown menu.</li>
  <li>Icon, background, and border colors in a default state, when hovered over, and activated.</li>
  <li>Enable accessibility by default.</li><br><br> Can be customized for the signing session (field invite and embedded invite).
</td>
<td>
    
```json
"accessibility": {
  "visibility": true,
  "color": "#546470",
  "background": "#ffffff",
  "border": "#ffffff",
  "hover-color": "#546470",
  "hover-background": "#f1f2f4",
  "hover-border": "#f1f2f4",
  "active-color": "#546470",
  "active-background": "#dadee2",
  "active-border": "#dadee2",
  "enabled": false
  }
```

</td>
</tr>

<tr>
<td>Navigation panel</td>
<td>Show or hide the navigation panel in the footer.<br>The panel contains page navigation controls and page dimension options.</td>

<td>
    
```json
"navigation": {
  "visibility": true
}
```

</td>
</tr>

<tr>
<td>More actions button</td>
<td>Show or hide the More Actions button.<br><br> Can be customized for the signing session (field invite and embedded invite).</td>
<td>
    
```json
"settings": { 
  "visibility": "true"
}
```

</td>
</tr>
<tr>
<td>Decline pop-up</td>
<td>Text in the modals that open when a signer declines an invite to sign:
  <ol>
   <li>The modal that opens when a signer clicks Decline.</li>
   <li>The modal that opens when a signer fills in a decline reason and clicks Decline to Sign.</li>
  </ol>Can be customized for the signing session (field invite and embedded invite).
</td>
<td>
    
```json
"decline-invite-text": { 
  "en": "Custom message in English about {document-name} from {invite_owner_email}",
  "fr": "Custom message in French about {document-name} from {invite_owner_email}",
  "es": "Custom message in Spanish about {document-name} from {invite_owner_email}"
}
```

</td>
</tr>
<tr>
<td> Sidebar</td>
<td>
  <li>Show or hide the sidebar in the signing session.</li>
  <li>Sidebar background color.</li><br>Can be customized for the signing session, embedded editor, embedded sending, and embedded view.
</td>
<td>
    
```json
"sidebar": {
  "background": "#ffffff",
  "visibility": true
}
```

</td>
</tr>
<tr>
<td>Signing session footer</td>
<td>
  <li>Show the footer when a signer completes all required fields.</li>
  <li>Text of the footer.</li><br>Can be customized for the signing session (field invite and embedded invite).
<td>
    
```json
"complete-footer": {
   "visibility": true,
   "custom-text": {
     "en": "custom text in English",
     "es": "custom text in Spanish",
     "fr": "custom text in French"
   }
}
```

</td>
</tr>
<tr>
<td>Support chat button</td>
<td>Show or hide the Support chat button on the signing session and on the completion page. <br><br> Can be customized for the signing session (except embedded invite: always 'false').</td>
<td>
    
```json
"support-chat": {
  "visibility": true
}
```

</td>
</tr>
<tr>
<td>Contact sender</td>
<td>Signers can contact the sender by selecting the Contact Sender option on the More Actions dropdown menu.
  <li>Show or hide the Contact Sender option.</li>
  <li>An email address and name preset for an email draft that opens when a signer clicks Contact Sender.</li><br>Can be customized for the signing session (field invite and embedded invite).
</td>
<td>
    
```json
"sender-info":{
    "visibility": true,
    "contact-email": "contact@email.com",
    "contact-name": "Contact Name"
}
```

</td>
</tr>
<tr>
<td>Page dimension</td>
<td>Default page dimension in percent. <br><br>Can be customized for the signing session, embedded editor, embedded sending, and embedded view.</td>
<td>
    
```json
"page-dimension":{
    "percent": 100
}
```

</td>
</tr>
<tr>
<td>Close button</td>
<td><li>Show or hide the Close button (in view mode) or Save progress and Finish Later option (in the More Actions menu during the signing session).</li>

<li>Custom text for the closing option during the signing session.</li>
<li>Custom text for the Save and Close button in embedded editor and embedded sending experiences. <br>Note: Close button text customization is not supported in view mode.</li>
<td>
    
```json
"close-button": {
  "visibility": true,
  "title": {
    "signing": {
      "en": "Save Progress and Finish Later",
      "fr": "Enregistrer la progression et terminer plus tard",
      "es": "Guardar progresos y terminar más tarde"
    },
    "editor": {
      "en": "Save and Close",
      "fr": "Enregistrer et fermer",
      "es": "Guardar y cerrar"
    }
  }
}
```

</td>
</tr>

<tr>
<td>Decline button</td>
<td>Show or hide the Decline option in the More Actions menu.<br><br>Can be customized for the signing session (field invite and embedded invite).</td>
<td>
    
```json
"decline-button":{
    "visibility": true
}
```

</td>
</tr>
<tr>
<td>Completion page success</td>
<td>Text for the completion page that opens when a signer completes a document:
  <li>Custom header text up to 300 symbols.</li>
  <li>Custom body text up to 900 symbols.</li><br>Can be customized for the signing session (field invite and embedded invite).<td>
    
```json
"complete-page": {
  "success": {
    "header-text": {
      "en": "success header text in English",
      "fr": "success header text in French",
      "es": "success header text in Spanish"
    },
  "body-text": {
      "en": "success body text in English",
      "fr": "success body text in French",
      "es": "success body text in Spanish"
    }
  }
}
```

</td>
</tr>
<tr>
<td>Completion page decline</td>
<td>Text for the completion page that opens when a signer declines a document:
  <li>Custom header text up to 300 symbols</li>
  <li>Custom body text up to 900 symbols</li><br>Can be customized for the signing session (field invite and embedded invite).<td>
    
```json
"complete-page": {
  "decline": {
    "header-text": {
      "en": "decline header text in English",
      "fr": "decline header text in French",
      "es": "decline header text in Spanish"
    },
  "body-text": {
      "en": "decline body text in English",
      "f-r": "decline body text in French",
      "es": "decline body text in Spanish"
    }
  }
}
```

</td>
</tr>
<tr>
<td>Go to SignNow button</td>
<td>Show or hide the Go to SignNow button on the success completion page. <br><br>Can be customized for the signing session (field invite and embedded invite).</td>
<td>
    
```json
"complete-page": {
  "button-to-signnow": {
    "visibility": true
  }
}
```

</td>
</tr>
<tr>
<td>Download Document button</td>
<td>Show or hide the Download Document button on the completion page (both success and decline).<br><br>Can be customized for the signing session (field invite and embedded invite).</td>
<td>
    
```json
"complete-page": {
  "button-download": {
    "visibility": true
  }
}
```

</td>
</tr>
<tr>
<td>Registration section for new users</td>
<td>Show or hide the registration section for new users on the completion page. <br><br>Can be customized for the signing session (field invite and embedded invite).</td>
<td>
    
```json
"complete-page": {
  "registration": {
    "visibility": true
  }
}
```

</td>
</tr>
<tr>
<td>Authentication page</td>
<td>The authentication page displayed to signers when opening an invite protected with two-factor authentication (phone call, SMS, or password).
<li>Custom header text up to 300 characters with {sender_email} and {document_name} placeholders.</li>
<li>Custom instructions up to 900 characters for obtaining a password by a voice call or SMS.</li>
<li>Custom text up to 900 characters requesting to enter a password sent by voice call or SMS.</li>
<li>Custom text up to 900 characters requesting to enter a password set by a sender.</li><br><br>Can be customized for the signing session (field invite and embedded invite).</td>
<td>

```json
"auth-page": {
  "header-text": {
    "en": "{sender_email} invited you to sign {document_name}",
    "es": "{sender_email} te ha invitado a firmar {document_name}",
    "fr": "{sender_email} vous a invité à signer {document_name}"
  },
  "request-pin": {
    "body-text": {
      "en": "Press the button bellow to have the password sent to you by voice call or sms message.",
      "es": "Pulsa el botón de abajo para que te envíen la contraseña por llamada de voz o mensaje sms.",
      "fr": "Appuyez sur le bouton ci-dessous pour que le mot de passe vous soit envoyé par appel vocal ou sms."
    }
  },
  "check-pin": {
    "phone": {
      "body-text": {
        "en": "Enter the document password sent you by voice call or sms.",
        "es": "Introduce la contraseña del documento que te ha enviado por llamada de voz o sms.",
        "fr": "Entrez le mot de passe du document que vous avez reçu par appel vocal ou sms."
      }
    },
    "password": {
      "body-text": {
        "en": "Enter the document password below to unlock the document.",
        "es": "Introduce la contraseña del documento a continuación para desbloquear el documento.",
        "fr": "Entrez le mot de passe du document ci-dessous pour déverrouiller le document."
      }
    }
  }
}
```

</td>
</tr>

<tr>
<td>Download button</td>
<td>Show or hide the Download and History buttons during the signing session, and Download, Download With History and Document History buttons in view mode. <br><br>Can be customized for the signing session, embedded editor, embedded sending, and embedded view.</td>
<td>

```json
"download-button": {
  "visibility": true
}
```

</td>
</tr>

<tr> 
<td>Document name</td> <td>Show or hide the document name in the header.<br><br>Can be customized for the signing session, embedded editor, embedded sending, and embedded view.</td> 
<td>

```json
"document-name": { 
  "visibility": true 
}
```
</td>
</tr>

<tr> <td>Toolbar</td> 
<td><li>Show or hide the top toolbar.</li><li>Set up the toolbar background color.</li><br>Can be customized for the embedded editor and embedded sending.</td> 
<td>

```json
"toolbar": { 
  "visibility": true, 
  "background": "#ffffff" 
}
```
</td>
</tr>

<tr>
<td>Editing tools</td>
<td>
The background color of the editing tools panel on the left.<br><br>Can be customized for the signing session (FreeForm invite), embedded editor, and embedded sending.
</td>
<td>

```json
"editing-tools": {
  "background": "#ffffff"
}
```
</td>
</tr>

<tr>
<td>Manage recipients</td>
<td>Show or hide the Manage Recipients link on the editing tools panel.<br><br>Can be customized for the embedded sending and embedded editor.</td>
<td>
    
```json
"manage-recipients": {
  "visibility": true
}
```
</td> 
</tr>

<tr>
<td>Preview</td>
<td>Show or hide the Preview button.<br><br>Can be customized for the embedded sending and embedded editor.</td>
<td>
    
```json
"preview-button": {
  "visibility": true
}
```
</td> 
</tr>

<tr>
<td>Thumbnails</td>
<td>Show or hide the Thumbnails button.<br><br>Can be customized for the embedded sending and embedded editor.</td>
<td>
    
```json
"thumbnails-button": {
  "visibility": true
}
```
</td> 
</tr>

<tr>
<td>Request payment</td>
<td>Show or hide the Payment Request option in the settings (…) dropdown.<br><br>Can be customized for the embedded sending and embedded editor.</td>
<td>
    
```json
"request-payment": {
  "visibility": true
}
```
</td> 
</tr>

<tr>
<td>Continue</td>
<td>Show or hide the Continue button.<br><br>Can be customized for the embedded sending.</td>
<td>
    
```json
"continue-button": {
  "visibility": true
}
```
</td> 
</tr>

<tr>
<td>Step progress bar</td>
<td>Show or hide the step progress bar in the header.<br><br>Can be customized for the embedded sending and embedded editor.</td>
<td>

<tr>
<td>Signing settings</td>
<td><li>Prompt a signer to automatically apply signature and initials to all corresponding empty fields in a document after filling out the first field. `true` – the signer will be prompted to automatically fill all empty signature and initials fields after completing the first one; `false` – the signer will need to fill each signature and initials field individually; no prompt will be shown.</li>.
<li>Control how signers will be guided through document fields. `true` - the Go Through Required Fields checkbox is checked in More Actions; the signer will be guided only through required fields; `false` – the Go Through Required Fields checkbox is not checked in More Actions; the signer will be guided through all fields.</li>.
<br><br>Can be customized for all signing experiences.</td>
<td>
    
```json
"signing-settings": {
  "auto-apply-signatures-and-initials-to-document-fields": true,
  "guide-signers-only-through-required-fields": true
}
```
</td> 
</tr>

<tr>
<td>Fields</td>
<td>Show or hide the signature, text, date, initials, fullname, email, checkbox, radiobutton, attachment, dropdown, stamp, formula, hyperlink fields in the left-side panel.<br><br>Can be customized for the embedded sending, embedded editor, and signing session for the FreeForm invite (signature, initials, stamp, text, checkbox, date fields available).</td>
<td>
    
```json
"fields": {
  "signature": {
    "visibility": true
  },
  "text": {
    "visibility": true
  },
  "date": {
    "visibility": true
  },
  "initials": {
    "visibility": true
  },
  "fullname": {
    "visibility": true
  },
  "email": {
    "visibility": true
  },
  "checkbox": {
    "visibility": true
  },
  "radiobutton": {
    "visibility": true
  },
  "attachment": {
    "visibility": true
  },
  "dropdown": {
    "visibility": true
  },
  "stamp": {
    "visibility": true
  },
  "formula": {
    "visibility": true
  },
  "hyperlink": {
    "visibility": true
  }
}
```
</td> 
</tr>

<tr>
<td>Field settings</td>
<td>Show or hide the Element settings button on the right side of the header. The Element settings allows users to customize field settings. <br><br> Can be customized for the embedded sending and embedded editor.</td>
<td>
    
```json
"field-settings":{
  "visibility": true
}
```
</td> 
</tr>

</td> 
</tr>

<tr>
<td>Default fields</td>
<td>Show or hide the Default fields tab in the left sidebar. <br><br> Can be customized for the embedded sending and embedded editor.</td>
<td>
    
```json
"default-fields":{
  "visibility": true
}
```
</td> 
</tr>

</table>


---

## Logo resource

# Logo resource

With the logo branding resource, API users can customize the logo for the signing session, the view mode after signing the document, embedded sending, and embedded view experiences.

## Add a custom logo

There are two ways to add a custom logo:

* By [uploading](/docs/general-branding/operations/post-v2-brands-brand-id-logo) an image from your computer.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/brands/{{brand_id}}/resources/logo \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: multipart/form-data' \
  --form 'logo=@"/path/to/file"'
```

* By [uploading](/docs/general-branding/operations/put-v2-brands-brand-id-resources-logo) an image from a URL.

```bash
curl --request PUT \
  --url https://api.signnow.com/v2/brands/{{brand_id}}/resources/logo \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "https://logo-file.com"
}'
```

Once the logo is added, you can replace the default logo and customize the signer and sender experience.

### Customize the logo for the signing session and the completion page

![Signing session header with the logo.url property labeled](/reference-assets/images/Branding%20guide/Logo/logo%20on%20signing%20session.png)

![Completion page with the logo.url property labeled](/reference-assets/images/Branding%20guide/Logo/logo%20on%20completion%20page.png)


### Customize the logo for the embedded sending mode

Add a custom logo for the sender on the following pages:

* Send Invite page for a document or document group

![Send Invite page for a document with the logo.url property labeled](/reference-assets/images/Branding%20guide/Logo/embedded_sending_doc_invite_page.png)

* Add documents to Document Group page

![Add documents to Document Group page with the logo.url property labeled](/reference-assets/images/Branding%20guide/Logo/embedded_sending_dg_add_documents.png)

* Document Group page after the document group invite has been sent

![Document Group page after the invite is sent, with the logo.url property labeled](/reference-assets/images/Branding%20guide/Logo/general_dg_page_embedded_logo.png)

* View mode on the editor page after the document or document group invite has been sent 

![View mode of a document group after the invite is sent, with the logo.url property labeled](/reference-assets/images/Branding%20guide/Logo/embedded_sending_dg_view_mode.png)

> [!NOTE]
> For a document, the view mode is available only if the `document` type is selected when creating the [embedded sending link](/docs/embedded-sending/operations/post-v2-documents-document-id-embedded-sending).

The logo on emails can be customized using the [email logo resource](/docs/general-email-branding/operations/post-v2-brands-brand-id-email-logo).


---

## Send invite resource

# Send invite resource

With the send invite resource, API users can customize the embedded sending experience.

![Send Invite page with the send-invite visibility properties and preview panel labeled](/reference-assets/images/Branding%20guide/Send-invite/send_invite_main_upd.png)

![Advanced Options panel on the Send Invite page with the settings panel background and request payment properties labeled](/reference-assets/images/Branding%20guide/Send-invite/send_invite_advanced_options_upd.png)

![Send Invite page with the send-invite.settings-panel.background property labeled](/reference-assets/images/Branding%20guide/Send-invite/send_invite_settings_panel_bg_upd.png)

![Recipients and document preview on the Send Invite page with the settings panel background labeled](/reference-assets/images/Branding%20guide/Send-invite/send_invite_preview_upd.png)


<table style="width:100%">
<thead>
<tr>
<th> UI element </th> <th> Customization options </th> <th style="width:45%"> Attributes with values </th>
</tr>
</thead>

<tr>
<td>Header</td>
<td>Show or hide the header.</td>
<td>
    
```json
"header": {
  "visibility": true
}
```

</td>
</tr>

<tr>
<td>From field</td>
<td>Show or hide the From field.</td>
<td>
    
```json
"from": {
  "visibility": true
}
```

</td>
</tr>

<tr>
<td>Settings</td>
<td>Show or hide the settings (gear icon).</td>
<td>
    
```json
"settings": {
  "visibility": true
}
```

</td>
</tr>

<tr>
<td>Customize message</td>
<td>Show or hide the Customize Message button.</td>
<td>
    
```json
"customize-message": {
  "visibility": true
}
```

</td>
</tr>

<tr>
<td>Request payment</td>
<td>Show or hide the Add Payment Request link on the page and the Request a Payment toggle in Advanced Options (More > Advanced Options).</td>
<td>
    
```json
"request-payment": {
  "visibility": true
}
```

</td>
</tr>

<tr>
<td>CC recipients</td>
<td>Show or hide the CC recipients field.</td>
<td>
    
```json
"cc-recipients": {
  "visibility": true
}
```

</td>
</tr>

<tr>
<td>Settings panel</td>
<td>Set the background color of the settings panel.</td>
<td>
    
```json
"settings-panel": {
  "background": "#ffffff"
}
```

</td>
</tr>

<tr>
<td>Preview panel</td>
<td>
<li>Show or hide the preview panel.</li>
<li>Set the background color of the preview panel.</li>
</td>
<td>
    
```json
"preview-panel": { 
  "visibility": true, 
  "background": "#f6f8fb" 
}
```

</td>
</tr>

</table>


---

## Email and CC email resources

# Email resources and CC email resources

Customize the logo, buttons, texts, and languages of invite, reminder, completion, and CC emails sent for your brand.

## Email resources

![Invite email with the email-invite and email-general properties labeled](/reference-assets/images/Branding%20guide/Email/email%20example.png)

![Email with the download instructions and app store links, labeled with the email-general properties](/reference-assets/images/Branding%20guide/Email/mobile%20references%20and%20download%20instructions.png)

![Invite email with the email-general properties, including the Contact sender block, labeled](/reference-assets/images/Branding%20guide/Email/email_general_new.png)

### Email general 

All these elements are customizable for every email or email type. These include an email invitation to sign a document or an email about the completion of a document. You can also add texts in three languages: English, Spanish, and French.

> [!NOTE]
> These resources allow the branding of primary emails. For CC email branding, see [CC email resources](#cc-email-resources).

<table style="width:100%">
<thead>
<tr>
<th> UI element </th> <th> Customization options </th> <th style="width:45%"> Attributes with values </th>
</tr>
</thead>
<tr>
<td>Logo</td>
<td>Logo position. Possible values: left, middle, or right</td>
<td>
    
```json
"logo": {
  "position": "middle"
}
```

</td>
</tr>
<tr>
<td>View Document button</td>
<td>The text color and background color of the button</td>
<td>
    
```json
"buttons": {
  "color": "#38424b",
  "background": "#e3e6e9"
}
```

</td>
</tr>
<tr>
<td>Contact Sender button</td>
<td>The text color and background color of the button</td>
<td>
    
```json
"secondary_buttons": {
  "color": "#38424b",
  "background": "#e3e6e9"
}
```

</td>
</tr>
<tr>
<td>Sender email</td>
<td>An email address preset for an email draft that opens when a signer clicks the Contact Sender button</td>
<td>
    
```json
"sender_email": "sender@email.com"
```

</td>
</tr>
<tr>
<td>Links to SignNow mobile apps</td>
<td>Hide or show the links to SignNow mobile apps at the bottom of the email</td>
<td>
    
```json
"signnow_references": true
```

</td>
</tr>
<tr>
<td>Instructions on how to download the completed document</td>
<td>Hide or show the instructions on how to download the completed document</td>
<td>
    
```json
"hide_download_image": true
```

</td>
</tr>
</td>
</tr>
<tr>
<td>Contact Sender section</td>
<td>Hide or show the Contact Sender section in the emails</td>
<td>

```json
"contact_sender": {
  "visibility": false
}
```
</td>
</tr>
<tr>
<td>CCD section</td>
<td>Hide or show the list of CCD emails in the invite emails</td>
<td>

```json
"ccd": {
  "visibility": false
}
```
</td>
</tr>
</table>
</table>

### Email logo

Update the logo on the emails. There are two ways to customize a logo:

* By [uploading](/docs/general-email-branding/operations/post-v2-brands-brand-id-email-logo) an image from your computer.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/brands/brand_id/resources/email-logo \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: multipart/form-data' \
  --form 'logo=@"/path/to/file"'
```

* By [uploading](/docs/general-email-branding/operations/put-v2-brands-brand-id-resources-email-logo) an image from a URL.

```bash
curl --request PUT \
  --url https://api.signnow.com/v2/brands/brand_id/resources/email-logo \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "https://logo-file.com"
}'
```

The logo on the signing session and completion page can be customized using the [logo resource](/docs/general-branding/operations/post-v2-brands-brand-id-logo).

### Email invite, reassign, canceled, completed, and reminder resources

<table style="width:100%">
<thead>
<tr>
<th style="width:25%">Resources</th><th>UI element</th><th style="width:30%">Customization options</th><th>Attributes with values</th>
</tr>
</thead>
<tr>
<td>
  <li>Invite</li>
  <li>Reassign</li>
  <li>Canceled</li>
  <li>Completed</li>
  <li>Reminder</li>
</td>
<td>Language</td>
<td>You can set texts in English, Spanish, and French. The texts need to be translated before adding to the branding resource. For more information, see <a href="#language-branding">Language branding</a>.</td>
<td>

```json
"en": {
  "subject": "Needs your signature",
  "body_header": "You were invited to review and sign a document"
},
"fr": {
  "subject": "A besoin de votre signature",
  "body_header": "Vous avez été invité à vérifier et signer un document"
},
"es": {
  "subject": "Necesita tu firma",
  "body_header": "Te han invitado a revisar y firmar un documento"
}

```

</td>
</tr>
<tr>
<td>
  <li>Invite</li>
  <li>Reassign</li>
  <li>Canceled</li>
  <li>Completed</li>
  <li>Reminder</li>
</td>
<td>Subject</td>
<td>Custom subject text up to 300 symbols. Placeholder {document_name} is available</td>
<td>

```json
"en": {
  "subject": "My custom subject {document_name}"
}
```

</td>
</tr>
<tr>
<td>
  <li>Invite</li>
  <li>Reassign</li>
  <li>Canceled</li>
  <li>Completed</li>
  <li>Reminder</li>
</td>
<td>Body header</td>
<td>Custom email header text up to 300 symbols</td>
<td>

```json
"en": {
  "body_header": "Body header message"
}
```

</td>
</tr>
<tr>
<td>
  <li>Invite</li>
  <li>Reassign</li>
  <li>Canceled</li>
  <li>Completed</li>
  <li>Reminder</li>
</td>
<td>Body message</td>
<td>Custom email body text up to 300 characters, including HTML tags. Placeholder {document_name} is available. You can format the text with basic HTML, see <a href="#format-text-with-html">Format text with HTML</a>.</td>
<td>

```json
"en": {
  "body_message": "Body message {document_name}"
}
```

</td>
</tr>
<tr>
<td>
  <li>Invite</li>
  <li>Reassign</li>
  <li>Canceled</li>
  <li>Completed</li>
  <li>Reminder</li>
</td>
<td>Footer message</td>
<td>Custom email footer text up to 4096 characters, including HTML tags. You can format the text with basic HTML, see <a href="#format-text-with-html">Format text with HTML</a>.</td>
<td>

```json
"en": {
  "footer_message": "Footer message"
}
```

</td>
</tr>
<tr>
<td>
  <li>Invite</li>
  <li>Reassign</li>
  <li>Canceled</li>
  <li>Completed</li>
  <li>Reminder</li>
</td>
<td>Sender</td>
<td>Custom text indicating sender up to 300 symbols</td>
<td>

```json
"en": {
  "from": "From user user@mail.com"
}
```

</td>
</tr>
<tr>
<td>
  <li>Invite</li>
  <li>Reassign</li>
  <li>Reminder</li>
</td>
<td>Expiration message</td>
<td>Custom text about email expiration up to 300 symbols. Placeholder {days} is available: data from the invite expiration_days parameter is used</td>
<td>

```json
"en": {
  "expiration": "Expiration message {days}"
}
```

</td>
</tr>
<tr>
<td>Reassign</td>
<td>Forward message</td>
<td>Email message from a signer who forwarded the invite up to 300 symbols. Placeholder {email_from} is available</td>
<td>

```json
"en": {
  "forward_message": "Forward message {email_from}"
}
```

</td>
</tr>
</table>

### Language branding

SignNow supports three languages for email notifications: English, Spanish, and French. The language is determined by the `language` parameter in the [Document field invite](/docs/document-field-invite/operations/post-document-doc-id-invite) payload. If the parameter is not set and for other invite types, the language is determined by the language of the sender's SignNow account.

Default email notifications are automatically sent in the needed language. However, if you are branding your notifications, you need to add the translated texts.

**Payload example for the email-invite brand resource**

```json

{
      "en": {
        "subject": "Needs your signature",
        "body_header": "You were invited to review and sign a document",
        "body_message": "You've been invited to fill out and sign the {document_name} document.",
        "expiration": "This invite will expire in {days} days"
      },
      "fr": {
        "subject": "A besoin de votre signature",
        "body_header": "Vous avez été invité à vérifier et signer un document",
        "body_message": "Vous invite à compléter et signer le document {document_name}.",
        "expiration": "Cette invitation expirera dans {days} jours"
      },
      "es": {
        "subject": "Necesita tu firma",
        "body_header": "Te han invitado a revisar y firmar un documento",
        "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
        "expiration": "Esta invitación dejará de ser válida en {days} días"
      }
    }

```

If you assign a brand with this resource to a document and then send a field invite for this document with `language=es`, the email invitation will contain Spanish texts.

## Format text with HTML

You can format the body message and footer message of email and CC email resources with basic HTML. Recipients see bold text, lists, and headings instead of plain text.

The following tags are available:

| Tags | Use for |
|---|---|
| `b`, `strong` | Bold text |
| `i`, `em` | Italic text |
| `u` | Underlined text |
| `s` | Strikethrough text |
| `p`, `br` | Paragraphs and line breaks |
| `ul`, `ol`, `li` | Bulleted and numbered lists |
| `hr` | Horizontal line |
| `h1`–`h6` | Headings |

Follow these rules:

- Use only the tags in the table. Any other tag is rejected, including common ones such as `<a>`, `<img>`, `<span>`, `<div>`, `<table>`, and `<sup>`.
- Use tags without attributes. For example, use `<p>`, not `<p style="color:red">`.
- Close every tag and nest tags correctly: `<b><i>text</i></b>`.
- Count tags toward the length limit: 300 characters for the body message and 4096 for the footer message.
- Use placeholders inside tags if needed, for example `<b>{document_name}</b>`.
- To add a symbol such as ®, type the character itself: `<b>Acme®</b>`.

The API saves the text exactly as you send it. If the text contains any other tag, an attribute, or an HTML comment, the request returns `400` and nothing is saved. The same rules apply to the email resources in a brand template file uploaded with [Create brand from template file](/docs/general-branding/operations/post-v2-brands-upload-file): the brand isn't created. The error message names the first problem it found. For the codes, see [API errors](/docs/api-errors#branding-errors).

```json
"en": {
  "body_message": "<p>Please sign <b>{document_name}</b>.</p><ul><li>Review the terms</li><li>Sign page 2</li></ul>",
  "footer_message": "<p><b>Acme®</b> Insurance</p>"
}
```

The email header (`body_header`) and subject are plain text: tags in them appear in the email as typed.

## CC email resources
You can brand CC emails separately from the primary emails. The following CC emails can be customized for certain invite types:

| Email type | Description | Invite types |
|------------|-------------|--------------|
| [Invite CC email](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite) | Customize CC emails that are sent with invite emails. | <li>[Document field invite](/docs/document-field-invite/operations/post-document-doc-id-invite)</li><li>[Document group field invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group)</li><li>[Document freeform invite](/docs/doc-freeform-invite/operations/post-freeform-document-id-invite)</li> <li>[Document group freeform invite](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites)</li> |
| [Reassign CC email](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-reassign) | Customize CC emails that are sent with reassign emails. | <li>[Document field invite](/docs/document-field-invite/operations/post-document-doc-id-invite)</li><li>[Document group field invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group)</li> |
| [Step completed CC email](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-step-completed) | Customize CC emails that are sent when a step of an invite is completed. | [Document field invite](/docs/document-field-invite/operations/post-document-doc-id-invite) |
| [Freeform signed CC email](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-signed) | Customize CC emails that are sent when a freeform invite is signed. If an invite has multiple signers, the CC email is sent every time a document or document group is signed. | <li>[Document freeform invite](/docs/doc-freeform-invite/operations/post-freeform-document-id-invite)</li><li>[Document group freeform invite](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites)</li> |
| [Invite completed CC email](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-completed) | Customize CC emails that are sent when an invite to sign is completed. | <li>[Document field invite](/docs/document-field-invite/operations/post-document-doc-id-invite)</li><li>[Document group field invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group)</li><li>[Document freeform invite](/docs/doc-freeform-invite/operations/post-freeform-document-id-invite)</li><li>[Document group freeform invite](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites)</li> |

### Customizable elements

For all CC emails, you can customize the following email elements:

<table style="width:100%">
<thead>
<tr>
<th>Element </th><th>Description</th><th style="width:45%">Example</th>
</tr>
</thead>
<tr>
<td>Language</td>
<td>You can set texts in English, Spanish, and French. The texts need to be translated before adding to the branding resource. For more information, see <a href="#language-branding">Language branding</a>. </td>
<td>
    
```json
"en": {
  "subject": "Needs your signature"
},
"fr": {
  "subject": "A besoin de votre signature"
},
"es": {
  "subject": "Necesita tu firma"
}
```
</td>
</tr>
<tr>
<td>Subject</td>
<td>Custom subject text up to 300 symbols. The following placeholders are available:<br>

`{sender_email}`
- [Invite](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite) CC emails<br>
- [Reassign](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-reassign) CC emails

`{document_name}`<br>
- [step completed](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-step-completed) CC emails<br>
- [invite completed](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-completed) CC emails

`{signer_email}` for [freeform signed](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-signed) CC emails.</td>
<td>
    
```json
"en": {
  "subject": "My custom subject {document_name}"
}
```
</td>
</tr>
<tr>
<td>Body header</td>
<td>Custom email header text up to 300 symbols. The following placeholders are available:<br>

`{sender_email}` for [invite](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite) CC emails


`{step_number}` for [step completed](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-step-completed) CC emails


`{signer_email}` for [freeform signed](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-signed) CC emails


`{document name}` for [invite completed](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-completed) CC emails</td>

<td>
    
```json
"en": {
  "body_header": "Body header message {sender_email}"
}
```
</td>
</tr>
<tr>
<td>Body message</td>
<td>Custom email body text up to 300 symbols. The following placeholders are available:<br>

`{sender_email}` and `{document_name}`<br> 
- [Invite](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite)
- [Reassign](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-reassign)
- [Freeform signed](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-signed)
- [Invite completed](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-completed)


`{signer_email}` 
- [Invite](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite)
- [Freeform signed](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-signed)


`{step_number}` for [step completed](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-step-completed) CC emails


`{old_signer_email}` and `{new_signer_email}` for [reassign](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-reassign) CC emails

You can format the text with basic HTML, see [Format text with HTML](#format-text-with-html).</td>
<td>
    
```json
"en": {
  "body_message": "Body message {document_name}"
}
```
</td>
</tr>
<tr>
<td>Footer message</td>
<td>Custom email footer text up to 4096 characters, including HTML tags. You can format the text with basic HTML, see <a href="#format-text-with-html">Format text with HTML</a>.</td>
<td>
    
```json
"en": {
  "footer_message": "Footer message"
}
```
</td>
</tr>
<tr>
<td>Sender</td>
<td>Custom text indicating sender up to 300 symbols.</td>
<td>
    
```json
"en": {
  "from": "From user user@mail.com"
}
```
</td>
</tr>
<tr>
<td>CC message</td>
<td>Custom CC message text up to 300 symbols. Placeholder `{cc_emails}` is available. It lists other recipients of CC emails and can be used with all types of CC emails.</td>
<td>
    
```json
"en": {
  "ccd_message": "CC message {cc_emails}
}
```
</td>
</tr>
</table>


---

## Organization branding and brand template

# Organization branding and brand template

Create a brand from a JSON template and apply it to every invite sent by members of your organization.

## Create brand from brand template

To quickly create a brand, use our brand template. A brand template is a JSON file with all branding resources and customizable options.

To create a brand from a template:

1. **Download the template** by sending a [Get brand template file](/docs/general-branding/operations/get-v2-brands-template-file) request.
2. **Change properties** for the options you want to customize and delete properties you want to leave as they are.
3. **Create a brand** by sending a request to [Create brand from template](/docs/general-branding/operations/post-v2-brands-upload-file).

Now you can assign the brand to the needed [customization level](/docs/guides-branding#customization-level).

## Organization branding

Organizations can have their own brands. If you assign a brand to an organization, all invites sent by users from the organization will be branded.

To use an organization brand:

1. [Create](/docs/organization-branding/operations/post-v2-organizations-organization-id-brands) an organization brand. Only organization administrators and moderators can create and update organization brands.
2. Add resources to the organization brand:
    * [Logo](/docs/organization-branding/operations/post-v2-organizations-organization-id-brands-brand-id-resources-logo)
    * [General](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-general)
    * [Editor](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-editor)
    * [Email general](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-general)
    * [Email invite](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-invite)
    * [Email reassign](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-invite-reassign)
    * [Email reminder](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-invite-reminder)
    * [Email canceled](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-invite-canceled)
    * [Email completed](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-invite-completed)
3. [Assign](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id) the organization brand to the organization.

Organization brands are overridden by regular brands assigned to documents, document groups, or applications.

> [!NOTE]
> A regular brand cannot be assigned to an organization, and an organization brand cannot be assigned to a document, document group, or application. To work with organization brands, use the [organization branding](/docs/organization-branding/operations/get-v2-organizations-organization-id-brands) endpoints.


---

## Create branding invite

# Create branding signature invite

Create your first branding invite to sign a document or a document group.

## Step 1. Create a brand

[Create](/docs/general-branding/operations/post-brands) a brand with a title. 

```bash
curl --request POST \
  --url https://api.signnow.com/v2/brands \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "title": "HR documents"
}'
```

## Step 2. Add a logo

We have created an empty brand. Use the `brand_id` from the response in the previous step to add resources that will customize the signing and sending experience. First, we [customize](/docs/general-branding/operations/post-v2-brands-brand-id-logo) the logo for the signing session and completion page.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/brands/{{brand_id}}/resources/logo \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: multipart/form-data' \
  --form 'logo=@"/path/to/file.png"'
```

## Step 3. Customize color scheme for the signing session

Now, we [create](/docs/general-branding/operations/put-v2-brands-brand-id-general) a general resource to customize the colors of the signing session:

* Header background color
* Document background color
* Complete button colors
* Decline button colors
* Close button colors
* Color of the text on the sidebar and progress bar
* Header icons colors

```bash
curl --request PUT \
  --url https://api.signnow.com/v2/brands/{{brand_id}}/resources/general \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "header": {
        "background": "#E8501F"
    },
    "main-background": "#DBD8CE",
    "buttons": {
        "primary": {
            "color": "#000000",
            "background": "#FF9000",
            "border": "#FF9000",
            "hover-background": "#FF9000",
            "hover-color": "#000000",
            "hover-border": "#FF9000",
            "active-color": "#000000",
            "active-background": "#FF9000",
            "active-border": "#FF9000"
        },
        "secondary": {
            "color": "#FF9000",
            "background": "#E3E6E9",
            "border": "#E3E6E9",
            "hover-background": "#E3E6E9",
            "hover-color": "#FF9000",
            "hover-border": "#E3E6E9",
            "active-color": "#FF9000",
            "active-background": "#E3E6E9",
            "active-border": "#E3E6E9"
        },
        "default": {
            "color": "#000000",
            "background": "#E8501F",
            "border": "#FF9000",
            "hover-background": "#E8501F",
            "hover-color": "#000000",
            "hover-border": "#FF9000",
            "active-color": "#000000",
            "active-background": "#E8501F",
            "active-border": "#FF9000"
        }
    },
    "texts": {
        "color": "#000000"
    },
    "icons": {
        "color": "#E3E6E9",
        "background": "#E8501F",
        "border": "#E8501F",
        "hover-background": "#E8501F",
        "hover-color": "#E3E6E9",
        "hover-border": "#E8501F"
    }
}'
```

## Step 4. Hide More Actions button for signers and customize completion page

[Create](/docs/general-branding/operations/put-v2-brands-brand-id-editor) an editor resource to customize the completion page and hide the More Actions button.

```bash
curl --request PUT \
  --url https://api.signnow.com/v2/brands/{{brand_id}}/resources/editor \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "settings": {
        "visibility": false
    },
    "complete-page": {
        "success": {
            "header-text": {
                "en": "Document signed"
            },
            "body-text": {
                "en": "Thank you for doing business with us."
            }
        },
        "decline": {
            "header-text": {
                "en": "Decline to sign"
            },
            "body-text": {
                "en": "You declined to sign the document."
            }
        }
    }
}'
```

## Step 5. Customize general email settings

[Create](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-general) an email general resource to customize the emails that signers receive.

* Customize logo position
* Set the text color and background color of the View Document button
* Change the Contact Sender email
* Hide the links to SignNow mobile apps

```bash
curl --request PUT \
  --url https://api.signnow.com/v2/brands/{{brand_id}}/resources/email-general \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "logo": {
        "position": "middle"
    },
    "buttons": {
        "color": "#000000",
        "background": "#FF9000"
    },
    "sender_email": "hr-team@email.com",
    "signnow_references": false
}'
```

## Step 6. Customize text of the email invite

[Create](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-invite) an email invite resource to customize the text of the email with an invite to sign.

```bash
curl --request PUT \
  --url https://api.signnow.com/v2/brands/{{brand_id}}/resources/email-invite \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "en": {
        "subject": "Welcome to our company",
        "from": "hr-team@email.com",
        "body_header": "Your first document in our team",
        "body_message": "We are happy to start working with you",
        "footer_message": "Best regards, HR team"
    }
}'
```

## Step 7. Upload a document

[Upload](/docs/document/operations/upload-document) a document to be signed.

```bash
curl --request POST \
  --url https://api.signnow.com/document \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: multipart/form-data' \
  --form file=/path/to/your/file.pdf
```

In the response, you get a `document_id`.

Repeat the request to upload more documents.

## Step 8. Create a document group (optional)

[Create](/docs/document-group/operations/create-document-group) a document group using the document IDs. 

```bash
curl --request POST \
  --url https://api.signnow.com/documentgroup \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
    "document_ids": [
      "{{document_id1}}",
      "{{document_id2}}"
    ],
    "group_name": "Onboarding package"
  }'
```

## Step 9a. Assign brand to the document

[Assign](/docs/general-branding/operations/put-v2-documents-document-id-brand) your brand to the document using the `document_id` from the response in the previous step.

```bash
curl --request PUT \
  --url https://api.signnow.com/v2/documents/{{document_id}}/brand \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "brand_id": {{brand_id}}
  }'
```

## Step 9b. Assign brand to the document group

[Assign](/docs/general-branding/operations/put-v2-document-groups-document-group-id-brand) your brand to the document group using the `document_group_id`.

```bash
curl --request PUT \
  --url https://api.signnow.com/v2/document-groups/{{document_group_id}}/brand \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "brand_id": "{{brand_id}}"
  }'
```

## Step 10. Add fields to the document

[Add](/docs/document/operations/edit-document) the fields to the document.

```bash
curl --request PUT \
  --url https://api.signnow.com/document/{{document_id}} \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "fields": [
        {
            "x": 358,
            "y": 171,
            "width": 177,
            "height": 50,
            "type": "signature",
            "page_number": 0,
            "required": true,
            "role": "Signer 1",
            "custom_defined_option": false,
            "name": "signature1"
        }
    ],
    "client_timestamp": 1684123907
}'
```

## Step 11. Get roles

### Get roles for a document

Send a [Get document](/docs/document/operations/get-document) request to extract the role or role ID.

```bash
curl --request GET \
  --url https://api.signnow.com/document/{{document_id}} \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}'
```

- Signer roles and role IDs are listed in the `roles` array. 
- Viewer roles and role IDs are listed in the `viewer_roles` array.
- Approver roles and role IDs are listed in the `approver_roles` array.
You need either a role or role ID but you can use both. If you use both, ensure that the role and role ID correspond. 

> [!NOTE]
> In the invite, all the signer and approver roles from the document must be assigned to recipients.

```json
{
  "roles": [
    {
      "unique_id": "XXXX9433f6874839a212f748e298ea24b5b16182",
      "signing_order": "1",
      "name": "Signer 1"
    }
  ],
  "viewer_roles": [],
  "approver_roles": []
}
```

### Get roles for a document group

Send a [Get document group](/docs/document-group/operations/get-documentgroup) request to extract the roles.

```bash
curl --request GET \
  --url https://api.signnow.com/v2/document-groups/{{document_group_id}} \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Accept: application/json'
```

Role names are listed within the `documents` array in `roles`. 

```json
{
  "documents": [
    {
      "roles": [
        "Signer 1"
      ]
    }
  ]
}
```

## Step 12. Send a branded invite

### Send a branded document invite

Finally, [send](/docs/document-field-invite/operations/post-document-doc-id-invite) an invite to sign.

```bash
curl --request POST \
  --url https://api.signnow.com/document/{{document_id}}/invite \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "document_id": "{{document_id}}",
    "to": [
        {
            "email": "signer1@email.com",
            "role": "Signer 1",
            "role_id": "{{role_id}}",
            "order": 1,
            "reassign": "1",
            "decline_by_signature": "0",
            "reminder": {
                "remind_after": 1
            },
            "expiration_days": 15
        }
    ],
    "from": "sender@email.com"
}'
```

### Send a branded document group invite

Alternatively, [send](/docs/doc-group-field-invite/operations/invite-to-sign-document-group) a document group for signature.

```bash
curl --request POST \
  --url https://api.signnow.com/documentgroup/{{document_group_id}}/groupinvite \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "invite_steps": [
      {
        "order": 1,
        "invite_emails": [
          {
            "email": "signer1@email.com",
            "expiration_days": 15,
            "reminder": {
              "remind_after": 1
            }
          }
        ],
        "invite_actions": [
          {
            "email": "signer1@email.com",
            "role_name": "Signer 1",
            "action": "sign",
            "document_id": "{{document_id}}",
            "allow_reassign": "0",
            "decline_by_signature": "0",
            "redirect_uri": "https://example.com/thank-you",
            "allow_forwarding": false,
            "show_decline_button": true,
            "authentication": {
              "type": "password",
              "value": "123456"
            }
          }
        ]
      }
    ],
    "sign_as_merged": true
  }'
```


## Try out in Postman
[Access](https://www.postman.com/signnow-api/signnow-public-collection/collection/41s4ios/signnow-branding-test-collection) this flow in Postman, and feel free to add branding to your signing sessions.


---

## White-labeling guide

# White-labeling guide

SignNow empowers API users to deliver a seamless white-labeled experience, granting control over the application's visual appearance and user flow. You can custom-brand the entire document lifecycle, including the editor, sending workflows, signing sessions, and email notifications, keeping the SignNow service invisible to your customers.

This guide walks you through creating an end-to-end white-labeled experience:

**[Editing](/docs/white-labeled-editor)**: Customizing the embedded editor to match your application's UI for document creation.

**[Sending](/docs/white-labeled-sending)**: Styling the document sending page for a consistent distribution experience.

**[Signing](/docs/white-labeled-signing)**: Adapting the signing session to blend seamlessly with your platform.

## Before you begin

- [Create an application](/docs/account#create-an-application) in your API dashboard. Your first application is created automatically.
- [Authenticate API requests](/docs/authentication) using your preferred authentication method.

> You can create multiple brands in your account and assign different brands to applications, document, document groups, and Organizations (Workspaces).

---

Discover how embedded signing, the embedded editor, and embedded sending work using our [sample apps](https://www.signnow.com/developers/sample-applications).



---

## White-labeled signing

# White-labeled signing

This guide focuses on customizing the experience for the **recipient** (the signer). It covers branding the signing session, customizing completion and authentication pages, white-labeling emails, and setting up webhooks.

## Step 1. Upload a document

Upload a document to SignNow. We will upload the DOCX Purchase agreement with text tags. When a signer opens the document for signature, the text tags will convert to fillable fields.

Learn more about [text tags](/docs/text-tags).

Use the [`POST /document/fieldextract`](/docs/document/operations/upload-document-with-text-tags) request.

**Request example**

```bash
curl --request POST \
--url https://api.signnow.com/document/fieldextract \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: multipart/form-data' \
--form 'file=@"/Users/user/Downloads/Purchase agreement.docx"'
```

The successful response retrieves the document ID.

Learn about other options to [upload a document](/docs/entities#step-1-upload-document).

## Step 2. Customize the application branding

To provide a seamless experience, you will create a brand and assign specific resources to your application. This ensures the SignNow interface matches your platform's look and feel.

**Logo**: Your company logo on the signing, completion, and authentication pages.

**General resource**: The color scheme, consent text, welcome message, and help center visibility.

**Editor resource**: The specific UI elements of the signing interface (buttons, toolbars, etc.).

### 2.1 Create a brand

Use the [`POST /v2/brands`](/docs/general-branding/operations/post-brands) request to create a brand container.

**Request example**

```bash
curl --request POST \
--url https://api.signnow.com/v2/brands \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
    "title": "brand_for_application"
}'
```

A successful response retrieves the brand ID.

### 2.2 Add a logo

Upload your logo using the [`POST /v2/brands/{{brand_id}}/resources/logo`](/docs/general-branding/operations/post-v2-brands-brand-id-logo) request.

**Request example**

```bash
curl --request POST \
--url https://api.signnow.com/v2/brands/{{brand_id}}/resources/logo \
--header 'Authorization: Bearer {{access_key}}' \
--header 'Content-Type: multipart/form-data' \
--form 'logo=@"/logo.jpeg"'
```

Learn more about [the logo resource](/docs/branding-logo-resource).

### 2.3 Add branding to the signing session

Customize the session using the General resource (for colors) and the Editor resource (for UI components).

### **General resource**

The General resource controls the global color scheme, as well as the welcome and consent messages shown to the signer.

Use the [`PUT /v2/brands/{{brand_id}}/resources/general`](/docs/general-branding/operations/put-v2-brands-brand-id-general) request to customize:

- Background colors (header and main background)
- Appearance of primary, secondary, default buttons, and dropdown menus
- Text and icon colors
- Consent and welcome messages

**Request example**

```bash
curl --request PUT \
--url https://api.signnow.com/v2/brands/{{brand_id}}/resources/general \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
  "main-background": "#f3f4f6",
  "header": {
    "background": "#ffffff"
  },
  "buttons": {
    "primary": {
      "color": "#ffffff",
      "background": "#0f172a",
      "border": "#0f172a",
      "hover-background": "#334155",
      "hover-color": "#ffffff",
      "hover-border": "#334155",
      "active-background": "#1e293b",
      "active-color": "#ffffff",
      "active-border": "#1e293b"
    },
    "secondary": {
      "color": "#0f172a",
      "background": "#e2e8f0",
      "border": "#cbd5e1",
      "hover-background": "#cbd5e1",
      "hover-color": "#0f172a",
      "hover-border": "#94a3b8",
      "active-background": "#94a3b8",
      "active-color": "#0f172a",
      "active-border": "#64748b"
    },
    "default": {
      "color": "#475569",
      "background": "#ffffff",
      "border": "#e2e8f0",
      "hover-background": "#f8fafc",
      "hover-color": "#1e293b",
      "hover-border": "#cbd5e1",
      "active-background": "#f1f5f9",
      "active-color": "#0f172a",
      "active-border": "#94a3b8"
    },
    "dropdown": {
      "color": "#334155",
      "background": "#ffffff",
      "border": "#e2e8f0",
      "hover-background": "#f1f5f9",
      "hover-color": "#1e293b",
      "hover-border": "#cbd5e1",
      "active-background": "#e2e8f0",
      "active-color": "#0f172a",
      "active-border": "#94a3b8"
    }
  },
  "texts": {
    "color": "#334155"
  },
  "icons": {
    "color": "#64748b",
    "background": "#ffffff",
    "border": "#e2e8f0",
    "hover-background": "#f8fafc",
    "hover-color": "#475569",
    "hover-border": "#cbd5e1"
  },
  "consent-text": {
    "en": "ACME company has invited you to fill out and sign the purchase agreement."
  },
  "welcome-message": {
    "visibility": true,
    "body-text": {
      "en": "ACME company has invited you to fill out and sign the purchase agreement."
    },
    "header-text": {
      "en": "Dear customer"
     }
  }
}'
```

Learn more about the [general resource](/docs/branding-general-resource).

### **Editor resource**

The Editor resource allows you to toggle specific UI elements within the signing interface.

Use the [`PUT /v2/brands/{{brand_id}}/resources/editor`](/docs/general-branding/operations/put-v2-brands-brand-id-editor) to customize parameters such as:

- Visibility of the **More Actions** button
- Accessibility options
- Visibility of the navigation panel
- Decline invite text
- Sidebar settings
- Visibility of the completion footer
- Contact sender options
- Page dimension
- Visibility of the **Close** button (in view mode) or **Save progress and Finish Later** option (in the More Actions menu during the signing session) + custom text for the closing option during the signing session
- Visibility of the decline option in the **More Actions** menu
- Completion page for success and decline
- Authentication page
- Visibility of the **Download** button
- Visibility of the document name in the header

**Request example**

```bash
curl --request PUT \
--url https://api.signnow.com/v2/brands/{{brand_id}}/resources/editor \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
    "settings": {
        "visibility": false
    },
    "accessibility": {
        "visibility": false
    },
    "navigation": {
        "visibility": false
    },
    "progress-bar": {
        "default-color": "#cbd5e1",
        "completed-color": "#0f172a"
    },
    "sidebar": {
        "visibility": false
    },
    "decline-invite-text": {
        "en": "You are about to decline to sign the purchase agreement. Note that all the changes you have made to this document will be lost."
    },
    "complete-footer": {
        "visibility": false
    },
    "support-chat": {
        "visibility": false
    },
    "complete-page": {
        "success": {
            "header-text": {
                "en": "Agreement successfully signed"
            },
            "body-text": {
                "en": "Thank you for doing business with us."
            }
        },
        "decline": {
            "header-text": {
                "en": "You have declined the Electronic Signature Disclosure agreement"
            },
            "body-text": {
                "en": "You did not consent to do business electronically with the sender. The Electronic Signature Disclosure can still be accepted before the sender cancels the invite. The invite can be found in your inbox and signNow account. You can still download the document if you would like to. Contact the sender to find out what to do next."
            }
        },
        "registration": {
            "visibility": false
        },
        "button-to-signnow": {
            "visibility": false
        },
        "button-download": {
            "visibility": false
        }
    },
    "sender-info": {
        "visibility": false
    },
    "page-dimension": {
        "percent": 150
    },
    "close-button": {
        "visibility": true,
        "title": {
            "signing": {
                "en": "Save Agreement and Finish Later"
            }
        }
    },
    "decline-button": {
        "visibility": true
    },
    "download-button": {
        "visibility": false
    },
    "auth-page": {
        "header-text": {
            "en": "Acme company invited you to sign {document_name}"
        },
        "request-pin": {
            "body-text": {
                "en": "Press the button below to have the password sent to you by voice call or sms message."
            }
        },
        "check-pin": {
            "phone": {
                "body-text": {
                    "en": "Enter the document password sent you by voice call or sms."
                }
            },
            "password": {
                "body-text": {
                    "en": "Enter the document password below to unlock the document."
                }
            }
        }
    },
    "document-name": {
        "visibility": true
    }
}'
```

Learn more about the [editor resource](/docs/branding-editor-resource).

### 2.4 Assign brand to the application

Once your brand resources are ready, assign them to your application using the [`PUT /v2/applications/{{application_id}}/brand`](/docs/general-branding/operations/put-v2-applications-application-id-brand) request.

> Once assigned, these branding resources will apply to all signature invites sent via this application.<br> Retrieve the `application_id` from the application page in the [API dashboard](https://app.signnow.com/webapp/api-dashboard/keys/).

In the request body, use the `brand_id` from **Step 2.1**.

**Request example**

```bash
curl --request PUT \
--url https://api.signnow.com/v2/applications/{{application_id}}/brand \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
    "brand_id": "a455a1d985ea4df081ff1223f1e3620e461176e6"
}'
```

> You can assign branding to a specific document or document group.


## Step 3. Create an embedded signing link

Next, create an embedded signature invite.

### 3.1. Create an embedded invite

Create a document embedded invite using the [`POST /v2/documents/{{document_id}}/embedded-invites`](/docs/document-embedded-signing/operations/create-embedded-signing-invite) request.

The purchase agreement has two roles: buyer and seller. Retrieve role information using [`GET /document/{{document_id}}`](/docs/document/operations/get-document).

Customize the invite with the following parameters:

- `authentication`: Authorize the buyer via password and the seller via SMS.

- `redirect_uri`: The URL where the signer is forwarded after completing the document.

- `decline_redirect_uri`: The URL where the signer is forwarded if they decline to sign.

- `redirect_target`: Set to blank to open the redirect URLs in a new tab.

<!--
type: tab
title: Request example
-->

```bash
curl --request POST \
--url https://api.signnow.com/v2/documents/{{document_id}}/embedded-invites \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "invites": [
    {
      "email": "buyer@email.com",
      "role": "Buyer",
      "order": 1,
      "auth_method": "none",
      "redirect_uri": "https://example.com",
      "close_redirect_uri": "https://example.com",
      "decline_redirect_uri": "https://signnow.com",
      "redirect_target": "blank",
      "authentication": {
        "type": "password",
        "password": "12345"
      }
    },
    {
      "email": "seller@email.com",
      "role": "Seller",
      "order": 2,
      "auth_method": "none",
      "redirect_uri": "https://example.com",
      "close_redirect_uri": "https://example.com",
      "decline_redirect_uri": "https://example.com",
      "redirect_target": "blank",
      "authentication": {
        "type": "phone",
        "method": "sms",
        "phone": "+1234567890",
        "sms_message": "Enter the password {password} to unlock your document."
      }
    }
  ]
 }'

```

<!--
type: tab
title: Response example
-->

```json
{
    "data": [
        {
            "id": "86f97f9f02bc4093a2b9d686385229458a3b6307",
            "email": "buyer@email.com",
            "role_id": "d7f5b25a40ee4817be0eb76cb27f631ae7521c50",
            "order": 1,
            "status": "pending"
        },
        {
            "id": "ed5693abd6c64a9bb43debe099e4db1913ba1d44",
            "email": "seller@email.com",
            "role_id": "183e1d65cefe4b45957d086d56429ac5a73c1443",
            "order": 2,
            "status": "created"
        }
    ]
}
```

<!-- type: tab-end -->

The successful request retrieves the invite IDs for both roles.

### 3.2 Create a link for the embedded invite

Use the [`POST /v2/documents/{{document_id}}/embedded-invites/{{field_invite_id}}/link`](/docs/document-embedded-signing/operations/create-embedded-signing-invite) request to generate a link for the document embedded invite. You must generate a separate link for each role.

<!--
type: tab
title: Request example
-->

```bash
curl --request POST \
--url https://api.signnow.com/v2/documents/{{document_id}}/embedded-invites/{{field_invite_id}}/link \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
    "auth_method": "none",
    "link_expiration": 45
}'
```

<!--
type: tab
title: Response example
-->

```json
{
    "data": {
        "link": "{{generated link}}"
    }
}
```

<!-- type: tab-end -->

## Step 4. Subscribe to webhook events

To automate workflow, subscribe to the events associated with the document using the [`POST /v2/events`](/docs/basic-auth/operations/create-event-subscription).

For example, subscribe to the `document.complete` event. Your application will receive a notification once the document has been signed.

**Request example**

```bash
curl --request POST \
--url https://api.signnow.com/v2/event-subscriptions \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
    "event": "document.complete",
    "entity_id": "18fcfdc76bbb46fdabbaeaa71f074adbeaa21848",
    "attributes": {
        "callback": "https://webhook.site/61967603-7635-4569-b3d9-6321d87fbc16",
        "use_tls_12": true,
        "docid_queryparam": true,
        "headers": {
            "string_head": "test",
            "int_head": 12,
            "bool_head": false,
            "float_head": 12.24
        },
        "include_metadata": true,
        "secret_key": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
    }
}'
```

Your application receives webhook data as soon as the document has been completed.

**Tip:** Configure your email system to send email notifications to signers once the application receives a webhook event data.

**Here’s an example of the `document.complete` event data.**

```json
{
  "meta": {
    "timestamp": 1747235714,
    "event": "document.complete",
    "environment": "https://api.signnow.com",
    "callback_url": "https://webhook.site/61967603-7635-4569-b3d9-6321d87fbc16?Param={\\"docId\\":\\"891ecdc76bbb46fdabbaeaa71f074adbeaa00000\\"}",
    "access_token": "{{access_token}}",
    "initiator_id": "{{id}}",
    "metadata": []
  },
  "content": {
    "document_id": "891ecdc76bbb46fdabbaeaa71f074adbeaa00000",
    "document_name": "Purchase agreement",
    "user_id": "0000003f30de456e80212f2333cb14293c23b859"
  }
}
```

## Step 5. Embed the links

Display the document to your users by embedding the signing link in an iframe on your webpage.

**HTML Example**

```
<!DOCTYPE html>
<html>
<body>

<h2>Sign the agreement</h2>

<iframe src="{{generated signing link}}" height="1200" width="900" title="Sign the agreement"></iframe>

</body>
</html>

```

## Step 6. White-label email notifications

To keep SignNow invisible, do **not** use the default SignNow email delivery system. Instead, trigger your own emails using your SMTP server.

- **Extract data:** Before sending the email, you can retrieve the document's field data to personalize your message.
- **Send email:** Use the signing link generated in **Step 5.2** and include it in your own custom HTML email template.

- (Optional) Customize the email template sent to signers by adding data from fillable fields.

Retrieve data from the filled-in fields using the [`GET /v2/documents/{{document_id}}/fields`](/docs/document/operations/get-v2-documents-document-unique-id-fields) request.

<!--
type: tab
title: Request example
-->

```bash
curl --request GET \
--url https://api.signnow.com/v2/documents/{{document_id}}/fields \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
```

<!--
type: tab
title: Response example
-->

```json
{
    "data": [
        {
            "id": "50eccf98668448ffaea17a97728321016483f294",
            "name": "",
            "type": "text",
            "value": "David Brown"
        },
        {
            "id": "1e7a12752acb404cb1dff22f1f233b19d75d337f",
            "name": "",
            "type": "text",
            "value": "buyer@email.com"
        },
        {
            "id": "5de45c3a52e04e40a8303d7d5b157728e2b69906",
            "name": "",
            "type": "text",
            "value": "David Brown"
        },
        {
            "id": "0d20ff8a0c1b4aa983160b2cc0b0a66b16d8b23d",
            "name": "",
            "type": "text",
            "value": "Emily Stone"
        },
        {
            "id": "1f49adb3fa3d4becbcd024fc5fa56a5734fce342",
            "name": "",
            "type": "text",
            "value": "seller@email.com"
        },
        {
            "id": "a82442eb2afc42ae9151f1501765e6bd47adce5b",
            "name": "",
            "type": "text",
            "value": "Emily Stone"
        }
    ],
    "meta": {
        "pagination": {
            "total": 6,
            "count": 6,
            "per_page": 15,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}
```

<!-- type: tab-end -->

The information recipients added are in the `value` fields.

Use your email service to send notifications to recipients.

## Step 7. Download the completed document

Once the `document.complete` event occurs, download the signed agreement.

Use the [`GET /document/{{document_id}}/download`](/docs/document/operations/download-document) request.

**Request example**

```bash
curl --request GET \
--url https://api.signnow.com/document/{{document_id}}/download \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/pdf' \
```

### Watch a demo of the white-labeled signing for the first recipient

![Animation of white-labeled signing for the first recipient](/reference-assets/images/Whitelabeling_guide/white_labeling_embedded_signing_1.gif)

---
## Next steps:

- Create a [white-labeled sending experience](/docs/white-labeled-sending).
- Create a [white-labeled editor experience](/docs/white-labeled-editor).


---

## White-labeled sending

# White-labeled sending

This guide focuses on customizing the experience for the document sender. It covers branding the document editing and sending interfaces to match your platform's identity.

## Step 1. Upload a document

Start by uploading a document to SignNow. We will upload the DOCX Purchase agreement with text tags. When a signer opens the document for signature, the text tags will convert to fillable fields.

Learn more about [text tags](/docs/text-tags).

Use the [`POST /document/fieldextract`](/docs/document/operations/upload-document-with-text-tags) request.

**Request example**

```bash
curl --request POST \
--url https://api.signnow.com/document/fieldextract \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: multipart/form-data' \
--form 'file=@"/Users/user/Downloads/Purchase agreement.docx"'
```

The successful response retrieves the document ID.

Learn about other options to [upload a document](/docs/entities#step-1-upload-document).

## Step 2. Customize the application branding

To provide a seamless sending experience, you will create a brand and assign specific resources to your application:

- **Logo**: The logo displayed on the **Send Invite** page.

- **General resource**: The color scheme for the **Send Invite** page and the embedded editor.

- **Editor resource**: Controls the visibility of toolbars, buttons, and specific form fields in the editor.

- **Send Invite resource**: The specific UI elements (buttons, fields) on the **Send Invite** page.

### 2.1 Create a brand

Use the [`POST /v2/brands`](/docs/general-branding/operations/post-brands) request to create a brand container.

**Request example**

```bash
curl --request POST \
--url https://api.signnow.com/v2/brands \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
    "title": "brand_for_application"
}'
```

The successful response retrieves the brand ID.

### 2.2 Add a logo

Upload your company logo using the [`POST /v2/brands/{{brand_id}}/resources/logo`](/docs/general-branding/operations/post-v2-brands-brand-id-logo) request.

**Request example**

```bash
curl --request POST \
--url https://api.signnow.com/v2/brands/{{brand_id}}/resources/logo \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: multipart/form-data' \
--form 'logo=@"/logo.jpeg"'
```

Learn more about the [logo resource](/docs/branding-logo-resource).

### 2.3 Add branding to the sending experience

### General resource

Use the General resource to define the color scheme for the embedded sending experience.

Use the [`PUT /v2/brands/{{brand_id}}/resources/general`](/docs/general-branding/operations/put-v2-brands-brand-id-general) request to customize:

- Background colors (header and main background)
- Appearance of primary, secondary, default buttons, and dropdown menus
- Text and icon colors
- Hyperlink styles

**Request example**

```bash
curl --request PUT \
--url https://api.signnow.com/v2/brands/{{brand_id}}/resources/general \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
  "main-background": "#f8fafc",
  "header": {
    "background": "#ffffff"
  },
  "buttons": {
    "primary": {
      "color": "#ffffff",
      "background": "#7c3aed",
      "border": "#7c3aed",
      "hover-background": "#6d28d9",
      "hover-color": "#ffffff",
      "hover-border": "#6d28d9",
      "active-background": "#5b21b6",
      "active-color": "#ffffff",
      "active-border": "#4c1d95"
    },
    "secondary": {
      "color": "#5b21b6",
      "background": "#ede9fe",
      "border": "#ddd6fe",
      "hover-background": "#ddd6fe",
      "hover-color": "#4c1d95",
      "hover-border": "#c4b5fd",
      "active-background": "#c4b5fd",
      "active-color": "#4c1d95",
      "active-border": "#a78bfa"
    },
    "default": {
      "color": "#4b5563",
      "background": "#ffffff",
      "border": "#e5e7eb",
      "hover-background": "#f3f4f6",
      "hover-color": "#1f2937",
      "hover-border": "#d1d5db",
      "active-background": "#e5e7eb",
      "active-color": "#111827",
      "active-border": "#9ca3af"
    },
    "dropdown": {
      "color": "#4b5563",
      "background": "#ffffff",
      "border": "#e5e7eb",
      "hover-background": "#f9fafb",
      "hover-color": "#1f2937",
      "hover-border": "#d1d5db",
      "active-background": "#f3f4f6",
      "active-color": "#111827",
      "active-border": "#9ca3af"
    }
  },
  "texts": {
    "color": "#1f2937"
  },
  "icons": {
    "color": "#6b7280",
    "background": "#ffffff",
    "border": "#e5e7eb",
    "hover-background": "#f3f4f6",
    "hover-color": "#374151",
    "hover-border": "#d1d5db"
  },
  "hyperlink": {
    "color": "#7c3aed",
    "hover-color": "#6d28d9",
    "active-color": "#5b21b6"
  }
}'
```

Learn more about the [general resource](/docs/branding-general-resource).

### **Editor resource**

Use the Editor resource to customize the UI elements within the document editor.

> The embedded editor is available when the embedded sending link `type` is set to `document` (or `edit` for a document group).
  
Use the [`PUT /v2/brands/{{brand_id}}/resources/editor`](/docs/general-branding/operations/put-v2-brands-brand-id-editor) to customize these parameters:

- Sidebar settings
- Page dimension
- Custom text for the **Save and Close** button
- Visibility of the **Download** button
- Visibility of the document name in the header
- Top toolbar settings
- Background color of the editing tools panel on the left
- Visibility of the **Manage Recipients** link on the editing tools panel
- Visibility of the **Preview** button
- Visibility of the **Thumbnails** button
- Visibility the **Payment Request** option in the settings (**…**) dropdown
- Visibility of the **Continue** button
- Visibility of the step progress bar in the header
- Visibility of fillable fields

> The default visibility for all parameters is `true`.

**Request example**

```bash
curl --request PUT \
--url https://api.signnow.com/v2/brands/{{brand_id}}/resources/editor \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
  "sidebar": {
    "background": "#ffffff",
    "visibility": true
  },
  "page-dimension": {
    "percent": 150
  },
  "close-button": {
    "visibility": true,
    "title": {
      "editor": {
        "en": "Save and Close"
      }
    }
  },
  "download-button": {
    "visibility": true
  },
  "document-name": {
    "visibility": true
  },
  "toolbar": {
    "visibility": true,
    "background": "#ffffff"
  },
  "editing-tools": {
    "background": "#ffffff"
  },
  "manage-recipients": {
    "visibility": false
  },
  "preview-button": {
    "visibility": true
  },
  "thumbnails-button": {
    "visibility": false
  },
  "request-payment": {
    "visibility": false
  },
  "continue-button": {
    "visibility": true
  },
  "step-progress-bar": {
    "visibility": true
  },
  "fields": {
    "signature": {
      "visibility": true
    },
    "text": {
      "visibility": true
    },
    "date": {
      "visibility": true
    },
    "initials": {
      "visibility": true
    },
    "fullname": {
      "visibility": true
    },
    "email": {
      "visibility": true
    },
    "checkbox": {
      "visibility": true
    },
    "radiobutton": {
      "visibility": true
    },
    "attachment": {
      "visibility": true
    },
    "dropdown": {
      "visibility": true
    },
    "stamp": {
      "visibility": true
    },
    "formula": {
      "visibility": true
    },
    "hyperlink": {
      "visibility": true
    }
  }
}'
```

Learn more about the [editor resource](/docs/branding-editor-resource).

### Send Invite resource

With the Send Invite resource, you can customize the Send Invite page.

Use the [`PUT /v2/brands/{{brand_id}}/resources/send-invite`](/docs/general-branding/operations/put-v2-brands-brand-id-resources-send-invite) request to customize the following on the Send Invite page:

- Visibility of header
- Visibility of **From** field
- Visibility of settings (gear icon)
- Visibility of the **Customize Message** button
- Visibility of the **Add Payment Request** link on the page and the **Request a Payment** toggle in **Advanced Options** (More > Advanced Options)
- Visibility of the **CC recipients** field
- Background color of the settings panel
- Appearance of the preview panel

**Request example**

```bash
curl --request PUT \
--url https://api.signnow.com/v2/brands/{{brand_id}}/resources/send-invite \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
  "header": {
    "visibility": false
  },
  "from": {
    "visibility": true
  },
  "settings": {
    "visibility": false
  },
  "customize-message": {
    "visibility": false
  },
  "request-payment": {
    "visibility": false
  },
  "cc-recipients": {
    "visibility": true
  },
  "settings-panel": {
    "background": "#ffffff"
  },
  "preview-panel": {
    "visibility": true,
    "background": "#f3f4f6"
  }
}'
```

### 2.4 Assign brand to the application

Once your brand resources are ready, assign them to your application using the [`PUT /v2/applications/{{application_id}}/brand`](/docs/general-branding/operations/put-v2-applications-application-id-brand) request.

> Once assigned, these branding resources will apply to all signature invites sent via this application.<br> Retrieve the `application_id` from the application page in the [API dashboard](https://app.signnow.com/webapp/api-dashboard/keys/).

In the request body, use the `brand_id` from **Step 2.1**.

**Request example**

```bash
curl --request PUT \
--url https://api.signnow.com/v2/applications/{{application_id}}/brand \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
    "brand_id": "XXXXa1d985ea4df081ff1223f1e3620e4611YYYY"
}'
```

> You can assign branding to a specific document or document group.

## Step 3. Create embedded sending link

Use the [`POST /v2/documents/{document_id}/embedded-sending`](/docs/embedded-sending/operations/post-v2-documents-document-id-embedded-sending) request to create a link for the embedded document sending.

```bash
curl --request POST \
--url https://api.signnow.com/v2/documents/{{document_id}}/embedded-sending \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "type": "invite",
    "redirect_uri": "https://example.com",
    "link_expiration": 15,
    "redirect_target": "blank",
    "from_name": "Anna Green"
}'
```

Learn about `from_name` and `from email` [parameters](/docs/guides-embedded-sending#step-5-pre-fill-parameters-for-embedded-sending).

## Step 4. Embed the sending link

Finally, display the interface to your user by embedding the link into an iframe on your application page.

**HTML example**

```
<!DOCTYPE html>
<html>
<body>

<h2>Click here to send the agreement</h2>

<iframe src="{{generated sending link}}" height="1200" width="900" title="Send the agreement"></iframe>

</body>
</html>
```

---

## Next steps:

- Create a [white-labeled signing experience](/docs/white-labeled-signing).
- Create a [white-labeled editor experience](/docs/white-labeled-editor).



---

## White-labeled editor

# White-labeled editor

This guide focuses on the document creator. It covers branding and embedding the document editor, allowing users to prepare documents directly within your application.

## Step 1. Upload a document

Upload a document to SignNow. We will upload the DOCX Purchase agreement with text tags. When a signer opens the document for signature, the text tags will convert to fillable fields.

Learn more about [text tags](/docs/text-tags).

Use the [`POST /document/fieldextract`](/docs/document/operations/upload-document-with-text-tags) request.

**Request example**

```bash
curl --request POST \
--url https://api.signnow.com/document/fieldextract \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: multipart/form-data' \
--form 'file=@"/Users/user/Downloads/Purchase agreement.docx"'
```

The successful response retrieves the document ID.

Learn about other options to [upload a document](/docs/entities#step-1-upload-document).

## Step 2. Customize the application branding

To provide a consistent editing environment, create a brand and assign specific resources to your application:

- **General resource**: Defines the color scheme for the embedded editor.

- **Editor resource**: Controls the visibility of toolbars, buttons, and specific form fields.

### 2.1 Create a brand

Use the [`POST /v2/brands`](/docs/general-branding/operations/post-brands) request to create a brand container.

**Request example**

```bash
curl --request POST \
--url https://api.signnow.com/v2/brands \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
    "title": "brand_for_application"
}'
```

The successful response retrieves the brand ID.

### 2.2 Add branding to the editor

Use the `general` and `editor` resources to hide standard SignNow elements and customize the editor appearance.

### **General resource**

Use the General resource to define the color palette.

Use the [`PUT /v2/brands/{{brand_id}}/resources/general`](/docs/general-branding/operations/put-v2-brands-brand-id-general) request to customize:

- Background colors (header and main background)
- Appearance of primary, secondary, default buttons, and dropdown menus
- Text and icons colors
- Hyperlink styling

**Request example**

```bash
curl --request PUT \
--url https://api.signnow.com/v2/brands/{{brand_id}}/resources/general \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
  "main-background": "#f8fafc",
  "header": {
    "background": "#ffffff"
  },
  "buttons": {
    "primary": {
      "color": "#ffffff",
      "background": "#0e7490",
      "border": "#0e7490",
      "hover-background": "#155e75",
      "hover-color": "#ffffff",
      "hover-border": "#155e75",
      "active-background": "#164e63",
      "active-color": "#ffffff",
      "active-border": "#164e63"
    },
    "secondary": {
      "color": "#0e7490",
      "background": "#ecfeff",
      "border": "#a5f3fc",
      "hover-background": "#a5f3fc",
      "hover-color": "#155e75",
      "hover-border": "#67e8f9",
      "active-background": "#67e8f9",
      "active-color": "#155e75",
      "active-border": "#22d3ee"
    },
    "default": {
      "color": "#3f3f46",
      "background": "#ffffff",
      "border": "#e4e4e7",
      "hover-background": "#f4f4f5",
      "hover-color": "#27272a",
      "hover-border": "#d4d4d8",
      "active-background": "#e4e4e7",
      "active-color": "#18181b",
      "active-border": "#a1a1aa"
    },
    "dropdown": {
      "color": "#3f3f46",
      "background": "#ffffff",
      "border": "#e4e4e7",
      "hover-background": "#fafafa",
      "hover-color": "#27272a",
      "hover-border": "#d4d4d8",
      "active-background": "#f4f4f5",
      "active-color": "#18181b",
      "active-border": "#a1a1aa"
    }
  },
  "texts": {
    "color": "#27272a"
  },
  "icons": {
    "color": "#52525b",
    "background": "#ffffff",
    "border": "#e4e4e7",
    "hover-background": "#f4f4f5",
    "hover-color": "#3f3f46",
    "hover-border": "#d4d4d8"
  },
  "hyperlink": {
    "color": "#0e7490",
    "hover-color": "#155e75",
    "active-color": "#164e63"
  }
}'
```

Learn more about the [general resource](/docs/branding-general-resource).

### **Editor resource**

Use the Editor resource to configure the functional elements of the editor interface.

Use the [`PUT /v2/brands/{{brand_id}}/resources/editor`](/docs/general-branding/operations/put-v2-brands-brand-id-editor) to customize these parameters:

- Sidebar settings
- Page dimension
- Custom text for the **Save and Close** button
- Visibility of the **Download** button
- Visibility of the document name in the header
- Top toolbar settings
- Background color of the editing tools panel on the left
- Visibility of the **Manage Recipients** link on the editing tools panel
- Visibility of the **Preview** button
- Visibility of the **Thumbnails** button
- Visibility of the **Payment Request** option in the settings (**…**) dropdown
- Visibility of the step progress bar in the header
- Visibility of fillable fields

**Request example**

```bash
curl --request PUT \
--url https://api.signnow.com/v2/brands/{{brand_id}}/resources/editor \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
  "sidebar": {
    "background": "#ffffff",
    "visibility": true
  },
  "page-dimension": {
    "percent": 150
  },
  "close-button": {
    "visibility": true,
    "title": {
      "editor": {
        "en": "Save and Close"
      }
    }
  },
  "download-button": {
    "visibility": true
  },
  "document-name": {
    "visibility": true
  },
  "toolbar": {
    "visibility": true,
    "background": "#ffffff"
  },
  "editing-tools": {
    "background": "#ffffff"
  },
  "manage-recipients": {
    "visibility": false
  },
  "preview-button": {
    "visibility": true
  },
  "thumbnails-button": {
    "visibility": true
  },
  "request-payment": {
    "visibility": false
  },
  "step-progress-bar": {
    "visibility": false
  },
  "fields": {
    "signature": {
      "visibility": true
    },
    "text": {
      "visibility": true
    },
    "date": {
      "visibility": true
    },
    "initials": {
      "visibility": true
    },
    "fullname": {
      "visibility": true
    },
    "email": {
      "visibility": true
    },
    "checkbox": {
      "visibility": true
    },
    "radiobutton": {
      "visibility": true
    },
    "attachment": {
      "visibility": true
    },
    "dropdown": {
      "visibility": true
    },
    "stamp": {
      "visibility": true
    },
    "formula": {
      "visibility": true
    },
    "hyperlink": {
      "visibility": true
    }
  }
}'
```

Learn more about the [editor resource](/docs/branding-editor-resource).

### 2.3 Assign brand to the application

Once your brand resources are ready, assign them to your application using the [`PUT /v2/applications/{{application_id}}/brand`](/docs/general-branding/operations/put-v2-applications-application-id-brand) request.

> Once assigned, these branding resources will apply to all signature invites sent via this application.<br> Retrieve the `application_id` from the application page in the [API dashboard](https://app.signnow.com/webapp/api-dashboard/keys/).

In the request body, use the `brand_id` from **Step 2.1**.

**Request example**

```bash
curl --request PUT \
--url https://api.signnow.com/v2/applications/{{application_id}}/brand \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
    "brand_id": "XXXXa1d985ea4df081ff1223f1e3620e4611YYYY"
}'
```

> You can assign branding to a specific document or document group.

## Step 3. Create an embedded editor link

Use the [`POST /v2/documents/{{document_id}}/embedded-editor`](/docs/embedded-editor/operations/post-v2-documents-document-unique-id-embedded-editor) request to generate a link that will open the document in the embedded editor.

**Request example**

```bash
curl --request POST \
--url https://api.signnow.com/v2/documents/{{document_id}}/embedded-editor \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
    "redirect_uri": "https://example.com",
    "link_expiration": 45,
    "redirect_target": "blank"
}'
```

## Step 4. Embed the editor link

Embed the editor link into your application using an iframe.

**HTML example**

```
<!DOCTYPE html>
<html>
<body>

<h2>Edit the agreement</h2>

<iframe src="{{generated editor link}}" height="1200" width="900" title="Edit the agreement"></iframe>

</body>
</html>
```

---

## Next steps:

- Create a [white-labeled signing experience](/docs/white-labeled-signing).
- Create a [white-labeled sending experience](/docs/white-labeled-sending).


---

## Webhooks

# Webhooks

Subscribe to SignNow user, document, and document group events to get real-time callbacks on your server instead of polling the API.

## About Webhooks

**Webhooks** or **Event Subscriptions** are one of a few ways SignNow can communicate with your system using callbacks based on subscribe SignNow events. It allows you to receive and handle a real-time data from SignNow to your system.

When you add a webhook, you choose which events you want to subscribe to. To limit the number of HTTP requests to your server, you should only subscribe to the specific events that you plan on handling.

> [!NOTE]
> In SignNow, Webhooks and Event Subscriptions mean the same thing. They are available with an API free trial, an active API subscription, or a Site License.

### What's the use for webhooks?

Being notified about an event allows you to build automated workflows with various documents being sent for signature in a specific order to specific recipients.

## Entity types

### How do I set up the scope of info I'd like to receive?

SignNow uses `entity types` to mark the amount of information about the event that you'd like to filter out. This means you can be triggered only by events regarding one of the entity types.  So:

**Entity type** - an object in SignNow API that limits the scope of webhook callbacks.

**Available entity types**: `user`, `document`, `document_group`.

| Entity type        | Meaning                                                                  | Example                                                                                                                                                                                                                                                                 |
| ------------------ | ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **User**           | Is used to subscribe to events happening with a specific user.          | For example, an invite has been sent to multiple users, and one user has declined to sign it. You'll receive a callback only about the event of declining to sign because this was the action of the user you've specified as your entity type.                         |
| **Document**       | Is used to subscribe to events happening with a specific document.       | For example: a document has been modified and sent for signature. Some people signed it, some declined to sign it. You'll receive callbacks about all of these events because all these actions happened to the entity type you've specified: this particular document. |
| **Document group** | Is used to subscribe to events happening with a specific document group. | For example: a document group has been sent for signature and signed by all the recipients. You'll receive callbacks about all of these events because all these actions happened to the entity type you've specified: the document group.                              |

## Entity events

### What kind of events can trigger the webhook?

**Entity events** - create, update, delete actions that might occur with a specific entity type.

### User events

| Event type        | Meaning                         |
| ----------------- | ------------------------------- |
| **User document events** ||
| `user.document.create` | This user created a document |
| `user.document.open` | This user's document was opened |
| `user.document.update` | This user's document was edited |
| `user.document.complete` | All the required fields on this user's document were filled in |
| `user.document.delete` | This user's document was deleted |
| `user.template.copy` | This user created a document from template |
| `user.document.generated` | This user generated a document from a DOCX template |
| `user.document.fieldinvite.create` | This user created a document field invite |
| `user.document.fieldinvite.sent` | This user sent a document field invite |
| `user.document.fieldinvite.signed` | A document field invite sent by this user was signed |
| `user.document.fieldinvite.reassign` | A signer reassigned a document field invite for this user's document |
| `user.document.fieldinvite.decline` | A document field invite sent by this user was declined |
| `user.document.fieldinvite.resend` | This user resent a document field invite |
| `user.document.fieldinvite.replace` | This user replaced a signer of a document field invite |
| `user.document.fieldinvite.delete` | This user deleted a document field invite |
| `user.document.freeform.create` | This user created a document freeform invite |
| `user.document.freeform.signed` | A document freeform invite sent by this user was signed |
| `user.document.freeform.resend` | This user resent a document freeform invite |
| `user.document.freeform.cancel` | This user canceled a document freeform invite |
| `user.document.fieldinvite.consent.agreed` | A signer agreed to this user's terms within a document field invite |
| `user.document.fieldinvite.consent.declined` | A signer declined their consent to this user's terms within a document field invite |
| `user.document.fieldinvite.consent.withdrawn` | A signer withdrew their consent to this user's terms within a document field invite |
| `user.document.fieldinvite.authentication.failed` | A signer's authentication failed for this user's document field invite |
| `user.document.fieldinvite.email.delivery.failed` | An email with the document field invite from this user was not delivered |
| `user.document.sms_optout` | A signer opted out of SMS notifications for an invite to this user's document |
| `user.invite.expired` | A field invite sent by this user expired (applies to both document and document group) |
| **User document group events** ||
| `user.document_group.create` | This user created a document group |
| `user.document_group.open` | This user opened a document group |
| `user.document_group.update` | This user updated a document group |
| `user.document_group.complete` | All the required fields on this user's document group were filled in, or the invite has expired |
| `user.document_group.copy` | This user copied a document group |
| `user.document_group.generated` | This user generated a document group from a DOCX template |
| `user.document_group.delete` | This user deleted a document group |
| `user.document_group.invite.create` | This user created a document group field invite |
| `user.document_group.invite.sent` | This user sent a document group field invite |
| `user.document_group.invite.signed` | A document in a document group field invite sent by this user was signed |
| `user.document_group.invite.signer.complete` | All documents in a document group field invite sent by this user were completed by a specific signer |
| `user.document_group.invite.reassign` | A signer reassigned a document field invite for this user's document group |
| `user.document_group.invite.declined` | A document group field invite sent by this user was declined |
| `user.document_group.invite.resend` | This user resent a document group field invite |
| `user.document_group.invite.update` | This user updated a document group field invite |
| `user.document_group.invite.cancel` | This user canceled a document group field invite |
| `user.document_group.invite.expired` | A document group field invite sent by this user expired |
| `user.document_group.freeform.create` | This user created a document group freeform invite |
| `user.document_group.freeform.signed` | A document group freeform invite sent by this user was signed |
| `user.document_group.freeform.resend` | This user resent a document group freeform invite |
| `user.document_group.freeform.cancel` | This user canceled a document group freeform invite |
| `user.document_group.invite.consent.agreed` | A signer agreed to this user's terms within a document group field invite |
| `user.document_group.invite.consent.declined` | A signer declined their consent to this user's terms within a document group field invite |
| `user.document_group.invite.consent.withdrawn` | A signer withdrew their consent to this user's terms within a document group field invite |
| `user.document_group.invite.authentication.failed` | A signer's authentication failed for this user's document group field invite |
| `user.document_group.invite.email.delivery.failed` | An email with the document group field invite from this user was not delivered |
| `user.document_group.sms_optout` | A signer opted out of SMS notifications for an invite to this user's document group |

### Document events

| Event type | Meaning     |
| ---------- | ----------- |
| `document.open` | This document was opened |
| `document.update` | This document was edited |
| `document.complete` | All the required fields on this document were filled in |
| `document.delete` | This document was deleted |
| `template.copy` | A document was generated from this template |
| `document.fieldinvite.create`| A field invite for this document was created  |
| `document.fieldinvite.sent` | A field invite for this document was sent |
| `document.fieldinvite.signed` | A field invite for this document was signed |
| `document.fieldinvite.reassign` | A signer reassigned a field invite for this document |
| `document.fieldinvite.decline` | A field invite for this document was declined |
| `document.fieldinvite.resend` | A field invite for this document was resent |
| `document.fieldinvite.replace` | A sender replaced a signer of the field invite for this document |
| `document.fieldinvite.delete` | A field invite for this document was deleted |
| `document.freeform.create` | A freeform invite for this document was created |
| `document.freeform.signed` | A freeform invite for this document was signed |
| `document.freeform.resend` | A freeform invite for this document was resent |
| `document.freeform.cancel` | A freeform invite for this document was canceled |
| `document.fieldinvite.consent.agreed` | A signer agreed to the terms within a field invite with this document |
| `document.fieldinvite.consent.declined` | A signer declined their consent to the terms within a field invite with this document |
| `document.fieldinvite.consent.withdrawn` | A signer withdrew their consent to the terms within a field invite with this document |
| `document.fieldinvite.authentication.failed` | A signer's authentication failed for a field invite with this document |
| `document.fieldinvite.email.delivery.failed` | An email with a field invite with this document was not delivered |
| `document.sms_optout` | A signer opted out of SMS notifications for a field invite with this document |

### Document group events

| Event type                     | Meaning                                                 |
| ------------------------------ | ------------------------------------------------------- |
| `document_group.open`          | This document group was opened                   |
| `document_group.update`        | This document group was updated                  |
| `document_group.complete`      | All the required fields on this document group were filled in, or the invite has expired |
| `document_group.copy`      | This document group was copied |
| `document_group.delete`        | This document group was deleted                     |
| `document_group.invite.create` | A field invite for this document group was created |
| `document_group.invite.sent`   | A field invite for this document group was sent   |
| `document_group.invite.signed` | A document in this document group field invite was signed |
| `document_group.invite.signer.complete` | All documents in this document group field invite were completed by a specific signer |
| `document_group.invite.reassign` | A field invite for this document group was reassigned |
| `document_group.invite.declined` | A field invite for this document group was declined |
| `document_group.invite.resend` | A field invite for this document group was resent |
| `document_group.invite.update` | A field invite for this document group was updated |
| `document_group.invite.cancel` | A field invite for this document group was canceled |
| `document_group.freeform.create` | A freeform invite for this document group was created |
| `document_group.freeform.signed` | A freeform invite for this document group was signed |
| `document_group.freeform.resend` | A freeform invite for this document group was resent to the same signer |
| `document_group.freeform.cancel` | A freeform invite for this document group was canceled |
| `document_group.invite.consent.agreed` | A signer agreed to the terms within a field invite with this document |
| `document_group.invite.consent.declined` | A signer declined their consent to the terms within a field invite with this document group |
| `document_group.invite.consent.withdrawn` | A signer withdrew their consent to the terms within a field invite with this document group |
| `document_group.invite.authentication.failed` | A signer's authentication failed for a field invite with this document group |
| `document_group.invite.email.delivery.failed` | An email with a field invite with this document group was not delivered |
| `document_group.sms_optout` | A signer opted out of SMS notifications for a field invite with this document group |

## Additional options for webhooks

### HMAC security

SignNow allows API users to verify callbacks from SignNow API using HMAC Security algorithm. Once the HMAC secret key is configured for an event subscription, a new header is included in every callback URL. This verifies that the message has been sent using SignNow and has been delivered exactly the same as it was at the moment of sending.

#### HMAC mechanism setup

To setup HMAC mechanism for webhooks, please set the `secret_key` parameter when creating a webhook event. This key will be used to generate a specific signature header for each response from a triggered webhook in SignNow. (See Example 1. Create event subscription with HMAC secret key)

> [!IMPORTANT]
> SignNow doesn't issue the HMAC secret key: you create it yourself. Via API, pass any string of your choice (up to 300 characters) as `secret_key`. In the API Dashboard, enter your own key or click **Generate New Key**. Copy and save the key: you'll need it to verify the signature of incoming callbacks.

The signature header contains the original message body hashed with the HMAC key. To verify an event, the application validates the HMAC header using the provided `secret_key` and re-create the original message.

<!--
type: tab
title: Example 1. Create event subscription with HMAC secret key
-->

```json
curl --request POST \
  --url https://api.signnow.com/v2/event-subscriptions \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "event": "document.fieldinvite.sent",
    "entity_id": "63c43ae8c6ea00aae8c516fd16decf8aa7bb2854",
    "attributes": {
      "callback": "https://some.callback.url/",
      "use_tls_12": true,
      "docid_queryparam": true,
      "headers": {
        "string_head": "test",
        "int_head": 12,
        "bool_head": false,
        "float_head": 12.24
      },
      "secret_key": "MySecretKey" // It enables HMAC security logic.
    }
  }'
```
<!-- type: tab-end -->

[`GET /v2/event-subscriptions`](/docs/manage-event-subscriptions/operations/get-v2-dashboard-event-subscriptions) request can be used to view the value of configured `secret_key`.

#### HMAC webhook verification

Once the event is created with a `secret_key` parameter, this secret key will be used to hash the webhook response body using HMAC algorithm. The hash value will be sent in `X-SignNow-Signature` HTTP header with each callback.

When the callback is received at your servers, you can use the `secret_key` to compute the HMAC hash value of the callback payload and compare it against the HMAC hash value in `X-SignNow-Signature` HTTP header to verify that the request was sent by SignNow. (See Example 2: Verification of the HMAC hash)

<!--
type: tab
title: Example 2. Verification of the HMAC hash
-->

```json
<?php
class HMAC_Service
{
    /*
     * Compute HMAC hash 
     * Useful reference: https://www.php.net/manual/en/function.hash-hmac.php
     */
    public static function ComputeHash($secret,$payload)
    {
        $hexHash = hash_hmac('sha256',$payload,utf8_encode($secret));
        $base64Hash = base64_encode(hex2bin($hexHash));
        return $base64Hash;
    }
    public static function HashIsValid($secret,$payload,$verify)
    {
        return hash_equals($verify, self::ComputeHash($secret,$payload));
    }
}
?>
```

<!-- type: tab-end -->

### Retries

Each callback delivery attempt has a 20-second timeout. If a callback returns an error, we will either email you or try sending a callback again, depending on the error type.

| Error type | Description | What we do |
|---|---|---|
| Unreachable host | We don't know if the error can be fixed soon. It may take several days or may never be fixed. | 1. We send 5 retries, 10 seconds apart.<br> 2. We send up to 2 more retries, each 4 hours apart.<br> 3. Before the last retry, we send you a warning email.<br> 4. If that retry also fails, we unsubscribe you from the webhook and send you a cancellation email. |
| 4xx HTTP error | The host is accessible but responds with a 4xx HTTP error status. There are no retries for 4xx errors — each new event triggers a new delivery attempt. If errors persist, we unsubscribe you from the webhook. | 1. If we get 10 or more errors within 10 minutes, we send you a warning email. The warning is sent once per subscription.<br> 2. If we get 30 or more errors within 60 minutes, we unsubscribe you from the webhook and send you a cancellation email. |
| 5xx HTTP error | 5xx HTTP errors can often be fixed quickly. We never unsubscribe you from the webhook for 5xx errors. | 1. We send 5 retries, 10 seconds apart. <br> 2. We send 5 more retries, each 4 hours apart. |

When creating a webhook, you can limit the number of retries for 5xx errors. To do so, use the `retry_count` attribute in the payload of the [Create event subscription request](/docs/manage-event-subscriptions/operations/create-event-subscription-2). The maximum number of retries is 10, and the minimum is 1.

**Example**

```json
{
  "event": "document.complete",
  "entity_id": "0f7848d0cfadeb2cdd230e4ad433efbca2423d8f",
  "attributes": {
    "callback": "https://example.com",
    "retry_count": 3
    }
}
```

### Webhook recovery

Even with retries in place, webhooks can occasionally be missed — for example, due to extended downtime, a misconfigured endpoint, or network issues on your side. Use the following best practices to keep your integration in sync.

- **Check your callback log.** Use [`GET /v2/event-subscriptions/{{subscription_id}}/callbacks`](/docs/callbacks-info/operations/get-v2-dashboard-event-history) to retrieve the list of callbacks sent for a specific subscription and verify which events were delivered.
- **Build reconciliation logic.** Compare received webhooks against expected events based on the current document status to identify and handle any gaps.
- **Log all incoming webhooks with timestamps.** Maintain a log of received callbacks for auditing and debugging purposes.
- **Contact support to retrigger specific callbacks.** If a critical webhook was missed and cannot be recovered through polling, reach out to SignNow support to have the callback retriggered for a specific event.

### Metadata in webhooks

Webhooks can transmit metadata attached to documents and document groups. The metadata is invisible to signers.

To use metadata with webhooks:

1. Add metadata to the [document](/docs/document/operations/put-document-document-id-metadata) or [document group](/docs/document-group/operations/put-v2-document-groups-document-group-id-metadata).
2. [Create](/docs/manage-event-subscriptions/operations/create-event-subscription-2) a webhook and include metadata to the payload by setting `include_metadata` to true.

When the event specified in the webhook is triggered and affects the document or document group, the payload will contain the metadata.

**Example**

<!--
type: tab
title: Add metadata
-->

```json

{
    "sales_rep": "Jane Doe",
    "source": "webhook"
}

```

<!--
type: tab
title: Webhook payload (document)
-->

```json
{
    "meta": {
        "timestamp": 1728310375,
        "event": "user.document.open",
        "environment": "https://app.signnow.com/api",
        "callback_url": "https://webhook.site/ba2650c4-f8a3-4664-a42f-a1ea40b17bbc?Param={\"docId\":\"3cd9758f093545089954894be9da90af210741b0\"}",
        "access_token": "********",
        "initiator_id": "646a5e78f4154a0880a596b11c21a95866ee66e2",
        "metadata": {
            "sales_rep": "Jane Doe",
            "source": "webhook"
        }
    },
    "content": {
        "document_id": "3cd9758f093545089954894be9da90af210741b0",
        "document_name": "Sales Agreement",
        "user_id": "646a5e78f4154a0880a596b11c21a95866ee66e2"
    }
}
```
<!--
type: tab
title: Webhook payload (document group)
-->

```json
{
    "meta": {
        "timestamp": 1728310412,
        "event": "document_group.invite.signer.complete",
        "environment": "https://app.signnow.com/api",
        "callback_url": "https://webhook.site/ba2650c4-f8a3-4664-a42f-a1ea40b17bbc?Param={\"groupId\":\"a4f2c81e6b394d5fa07c93e2b1d8f6054e39c7a2\"}",
        "access_token": "********",
        "initiator_id": "c9e1a47f35b84d02ae6f1c83d95b20e7f4a61d38",
        "metadata": {
            "sales_rep": "Jane Doe",
            "source": "webhook"
        }
    },
    "content": {
        "group_id": "a4f2c81e6b394d5fa07c93e2b1d8f6054e39c7a2",
        "group_invite_id": "b7d3e05a92c84f61bd28a7c4e0f39b51d6a84c73",
        "status": "fulfilled",
        "step_order": 1,
        "signer_unique_id": "c9e1a47f35b84d02ae6f1c83d95b20e7f4a61d38",
        "signer_email": "signer@example.com",
        "document_ids": [
            "d1b8f36c724e49a5bc03e97f2a61d840c5e73b96"
        ]
    }
}
```
<!-- type: tab-end -->

> [!IMPORTANT]
> When the entity has metadata attached, `meta.metadata` is an object of key-value pairs. When it has none, the field is an empty array (`[]`). Handle both shapes when you parse the payload.

You can also view metadata attached to [documents](/docs/document/operations/get-document-document-id-metadata) and [document groups](/docs/document-group/operations/get-v2-document-groups-document-group-id-metadata).

### Callback delay

You can set up the delay between the event being triggered and a notification being sent. To do so, use the `delay` attribute in the payload of the  [Create event subscription](/docs/basic-auth/operations/create-event-subscription) request. The maximum delay time is 100 seconds.

**Example**

```json
{
  "event": "document.complete",
  "entity_id": "0f7848d0cfadeb2cdd230e4ad433efbca2423d8f",
  "attributes": {
    "callback": "https://example.com",
    "delay": 30
    }
}
```

## Troubleshooting

This section covers the most common webhook issues and how to diagnose them.

> [!WARNING]
> An API subscription is separate from your SignNow business plan: an active Business or Enterprise plan does not automatically include API access. If the API Dashboard shows an upgrade screen when you create a webhook even though your API plan is active, contact API support at **api@signnow.com** to have your API subscription status checked.

### Where to check webhook logs

If a webhook didn't arrive or behaves unexpectedly, start with the logs:

- **API Dashboard**. Go to [API Dashboard > Webhooks > Events History](https://app.signnow.com/webapp/api-dashboard/web-hooks) to see every callback attempt for your subscriptions. Filter by event, entity type, response status code, or start time. Click an event entry to open **Event details** with the **Response status code** and **Response content** (error `code` and `message`) returned by your callback URL. For details, see [API Dashboard | SignNow](/docs/account#events-history).
- **Via API**. Use [`GET /v2/event-subscriptions/{{subscription_id}}/callbacks`](/docs/callbacks-info/operations/get-v2-dashboard-event-history) to retrieve the list of callbacks sent for a specific subscription. You can filter results by response status code, event, and date.

### Common issues

| Issue | Likely cause | What to do |
|---|---|---|
| Callbacks stopped arriving | SignNow unsubscribed you because your callback URL kept failing: an unreachable host after all [retries](/docs/guides-webhooks#retries), or 30+ `4xx` errors within 60 minutes. `5xx` errors never cause unsubscribing. A warning email is sent before, and a cancellation email after (see [API email notifications](/docs/account#api-email-notifications)). | Go to **API Dashboard** > **Webhooks** > **Subscriptions** and filter by **Status**. Fix your endpoint, reactivate or recreate the subscription, then recover missed events: see [Webhook recovery](/docs/guides-webhooks#webhook-recovery) and manual [Retries](/docs/account#retries). |
| Callbacks stopped arriving, subscriptions look active | Your API subscription became inactive or expired. API requests return `403` errors `80001003`, `80001005`, or `80001002`. | Check [API Dashboard > Plan usage](/docs/account#plan-usage). If your plan should be active, contact API support at **api@signnow.com**. |
| A specific event fails while others work | Each event is a separate subscription: one (for example, `document.fieldinvite.sent`) can be deactivated or unsubscribed while the rest keep working. Your endpoint may also fail on that event's payload structure. | Filter **Subscriptions** by event name and check the status. Review the response codes in **Events History** for that subscription. To isolate the issue, temporarily point the subscription to an online webhook test tool (for example, [Webhook.site](https://webhook.site)). |
| Duplicate callbacks | Multiple active subscriptions share the same entity and event (up to 20 are allowed with different callback URLs), or retries and manual resends delivered the same callback again. | Filter **Subscriptions** by event and entity ID and remove the extras. Make your handler idempotent: deduplicate incoming callbacks using the `meta.timestamp`, event name, and entity ID from the payload. |
| Can't manage a webhook (management actions are unavailable) | On a Site License, webhooks can only be managed by the user who created them. The subscription owner sees all webhooks but can't activate, deactivate, unsubscribe, or resend those owned by other users. See [Webhook ownership on a Site License](/docs/account#webhook-ownership-on-a-site-license). | Check the **Owner** column on the **Subscriptions** page. Ask the webhook owner to make the change, or create your own subscription for the same event. |

### Errors when creating a subscription

| Error | Code | What it means | What to do |
|---|---|---|---|
| `Active subscriptions are limited to 20 subscriptions with this combination of entityId and eventName.` | `15006044` | You've reached the maximum of 20 active subscriptions for the same entity and event. | Delete unused subscriptions for this entity and event, then retry. |
| `Active subscriptions must have different combinations of entityId, eventName, and callbackUrl.` | `15006045` | A subscription with the same entity, event, and callback URL already exists. | Use the existing subscription, or delete it first if you want to recreate it. |
| `You have reached the limit of event subscriptions.` | `80001006` | Accounts without an active API subscription (or a Site License) are limited to 10 active webhooks. | Delete or deactivate webhooks you no longer need, or upgrade to a paid API plan. |
| `Event subscription already exists.` | `15006002` | An identical subscription already exists. | Use the existing subscription. |
| `Host is not allowed.` | `15006001` | The callback URL points to a host that isn't accepted, for example `localhost` or a private IP address. | Use a publicly reachable callback URL. |
| `Unknown callback host or callback host unreachable.` | `15007029` | SignNow couldn't reach the callback host when validating the URL. | Verify the URL resolves publicly and your server or firewall accepts incoming requests from SignNow. |
| `Subscription to event is not allowed` | `15006009` | The bearer token doesn't belong to the user in `entity_id`, or the user is not the owner of the document or document group. | Create the subscription with the entity owner's access token. |
| `Your API subscription is inactive.` / `Your API subscription has expired.` | `80001003` / `80001005` | Webhooks require an active API subscription. | Check your plan in [API Dashboard > Plan usage](/docs/account#plan-usage). If your plan is active, contact API support at **api@signnow.com**. |
| `Not found entity with id = {entity_id}` | — | The user, document, or document group in `entity_id` doesn't exist or isn't available to this account. | Verify the entity ID. |

## Set up webhook at API Dashboard

You can create event subscriptions in bulk using the API Dashboard. Go to [API Dashboard / Webhooks](https://app.signnow.com/webapp/api-dashboard/web-hooks/subscriptions) and select **Create Webhook**. For more information, see [API Dashboard | SignNow](/docs/account#webhooks).

## Create webhook via API 

### Step 0. Before you begin

In order to create a subscription for user's event, first you need to:

- [Generate an access token](/docs/oauth2/operations/post-oauth2-token)

```json
curl --request POST \
  --url https://api.signnow.com/oauth2/token \
  --header 'Accept: application/json' \
  --header 'Authorization: Basic {{basic_authorization_token}}' \
  --header 'Content-Type: multipart/form-data' \
  --form 'username=username@signnow.com' \
  --form 'password=testpass' \
  --form 'grant_type=password' \
  --form 'scope=*'
```

- [Retrieve user ID](/docs/user/operations/get-user-info) of the user that will trigger the webhooks

```json
curl --request GET \
  --url https://api.signnow.com/user \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
```

- Create a publicly available **callback URL**.  This is the URL where your webhook listener will receive the event messages sent by SignNow when the webhook is triggered. For an end-to-end example, including a runnable callback server that verifies and processes the payload, see [Handling SignNow event callbacks](/docs/guides-handling-signnow-event-callbacks).

> [!TIP]
> For test purposes, you can use a URL from an online webhook test tool to receive and check the payload. You can use the tool like [Webhook.site](https://webhook.site/#!/5ce0f84e-7e51-4499-8458-aa33055d4371). Simply copy the automatically generated “Your unique URL” and insert in the payload of your POST request.

- Pick the event name from the list of entity events.

### [Step 1. Create webhooks for the most used events associated with the user](/docs/manage-event-subscriptions/operations/create-event-subscription-2)

Let's create a subscription for two different events:

> [!NOTE]
> Each event subscription is a separate POST request.

- `user.document.fieldinvite.sent` - commonly used when you need to track that the invite has been sent for signature.

```json
curl --request POST \
  --url https://api.signnow.com/v2/event-subscriptions \
  --header 'Accept: application/json, ' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
  "event": "user.document.fieldinvite.sent",
  "entity_id": "{{user_id}}",
  "attributes": {
    "callback": "{{callbak_url}}"
  }
}'
```

- `user.document.fieldinvite.signed`- commonly used when you need to create a workflow regarding a signed invite.

```json
curl --request POST \
 --url https://api.signnow.com/v2/event-subscriptions \
 --header 'Accept: application/json, ' \
 --header 'Authorization: Bearer {{access_token}}' \
 --header 'Content-Type: application/json' \
 --data '{
  "event": "user.document.fieldinvite.signed",
  "entity_id": "{{user_id}}",
  "attributes": {
    "callback": "{{callbak_url}}"
  }
}'
```

### [Step 2. Get the list of webhook event subscriptions](/docs/manage-event-subscriptions/operations/get-v2-dashboard-event-subscriptions)

Get the list of webhook events subscriptions that you had subscribed to.

```json
curl --request GET \
  --url https://api.signnow.com/v2/event-subscriptions \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json'
```

**Response example**

```json
{
    "data": [
        {
            "id": "b3c6c745f0628e6d61c31a413c117716008e5c8d",
            "entity_type": "user",
            "event": "user.document.fieldinvite.sent",
            "entity_id": 126390148,
            "entity_unique_id": "b2a752a914915a1a2fcfeb4002a7c9988e5cbd0a",
            "request_method": "post",
            "action": "callback",
            "active": true,
            "json_attributes": {
                "use_tls_12": false,
                "docid_queryparam": false,
                "callback_url": "http://example.com/"
            },
            "application_name": "Sample App",
            "version": 2,
            "created": 1688128984
        }
    ],
    "meta": {
        "pagination": {
            "total": 3,
            "count": 3,
            "per_page": 15,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}
```

### [Step 3. Send and sign the field invite to test the event](/docs/document-field-invite/operations/post-document-doc-id-invite)

Create a field invite to test the event `user.document.fieldinvite.sent`. After you receive the signature request, open the email and sign the field invite via web UI.

```json
curl --request POST \
  --url https://api.signnow.com/document/{{document_id}}/invite \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "document_id": "{{document_id}}",
    "to": [
      {
        "email": "{{signer}}",
        "role": "Signer 1",
        "role_id": "{{role_id_1}}",
        "order": 1,
        "reassign": "1",
        "decline_by_signature": "0",
        "reminder": {
          "remind_after": 1
        },
        "expiration_days": 15
      }
    ],
    "from": "{{user}}",
    "cc_step": []
  }'
```

### Step 4. Check the webhook request at your Callback URL

You should receive two callbacks with the event payloads.

**Example 1 with `user.document.fieldinvite.sent`**:

```json
{
  "meta": {
    "timestamp": 1661430933,
    "event": "user.document.fieldinvite.sent",
    "environment": "https://example.com",
    "callback_url": "http://example.com/handle?hash=XXXXXXXX&Param={\"docId\":\"b95ee86c607ac4dbee6b1ce3d37d3b8a4687733a\"}",
    "access_token": "********",
    "initiator_id": "b2a752a914915a1a2fcfeb4002a7c9988e5cbd0a"
  },
  "content": {
    "document_id": "b95ee86c607ac4dbee6b1ce3d37d3b8a4687733a",
    "document_name": "Sample document",
    "user_id": "b2a752a914915a1a2fcfeb4002a7c9988e5cbd0a"
  }
}
```

**Example 2 with `user.document.fieldinvite.signed`**:

```json
{
  "meta": {
    "timestamp": 1661430936,
    "event": "user.document.fieldinvite.signed",
    "environment": "https://example.com",
    "callback_url": "http://example.com/handle?hash=XXXXXXXX&Param={\"docId\":\"b95ee86c607ac4dbee6b1ce3d37d3b8a4687733a\"}",
    "access_token": "********",
    "initiator_id": "b2a752a914915a1a2fcfeb4002a7c9988e5cbd0a"
  },
  "content": {
    "document_id": "b95ee86c607ac4dbee6b1ce3d37d3b8a4687733a",
    "document_name": "Sample document",
    "user_id": "b2a752a914915a1a2fcfeb4002a7c9988e5cbd0a"
  }
}
```

Another way to get the callbacks and their payloads is by sending an [API request](/docs/callbacks-info/operations/get-v2-dashboard-event-history).

```json
curl --request GET \
  --url https://api.signnow.com/v2/event-subscriptions/{{subscription_id}}/callbacks \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json'
```

### [Step 5. Delete event subscription](/docs/manage-event-subscriptions/operations/delete-v2-event-subscriptions-subscription-id)

To finish working with the test data, unsubscribe from the webhook.

```json
curl --request DELETE \
  --url https://api.signnow.com/v2/event-subscriptions/{{subscription_id}}  \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' 
```

### [Step 6. Check your webhook event log at the API Dashboard/Webhooks](/docs/account#webhooks)

At the **API Dashboard** -> **Webhooks** -> **Events History** page, you can see subscription information and the list of all events under selected Webhook. To get detailed information for the event (Event details) click on its line. Check you webhook subscription [here](https://app.signnow.com/webapp/api-dashboard/web-hooks).


### Try out in Postman

[Access](https://www.postman.com/signnow-api/signnow-public-collection/collection/hmkmkxw/signnow-webhooks-test-collection) this flow in Postman, and feel free to add event subscriptions to your workflow.

For more information, check out our video tutorial.

https://youtu.be/Knd_3VeqtJc?si=Udco07jZOe9yt_0C


---

## Handling SignNow event callbacks

# Handling SignNow event callbacks

This guide explains how to keep your own system in sync with signing activity in SignNow. You subscribe to the events relevant to your workflow, then deploy a server that receives SignNow callbacks and processes them.

It has two parts:

1. **Subscribe to SignNow events**: tell SignNow which events to notify you about and where to send them.
2. **Receive callbacks on your server**: build an endpoint that accepts the callback, verifies it, and runs your business logic.

Part 2 includes a complete, runnable example server you can copy and test before wiring it into production.

## The use case

A common integration requirement is to keep an external system in sync with signing activity in SignNow. When your system sends documents to SignNow for signature but is not otherwise connected to it, it has no direct way to know when a document is signed or by whom, and must be notified of these events to update its own records.

SignNow provides **event subscriptions** (also called webhooks) for this purpose. You subscribe to a specific event, and whenever that event occurs, SignNow sends an HTTP request (a callback) to a URL you control. Your server then applies the appropriate logic, such as updating a record, writing to an audit trail, notifying another system, or triggering post-processing of the signed document. SignNow is responsible for delivering the callback; providing the callback URL and implementing its logic are your responsibility.

> [!NOTE]
> In SignNow, webhooks and event subscriptions mean the same thing. They are available with an API free trial, an active API subscription, or a Site License.

Here is the end to end flow:

```mermaid
sequenceDiagram
    participant Sys as Your system
    participant SN as SignNow
    participant Signer as Signer
    participant CB as Callback server

    Sys->>SN: 1. Create event subscription (event + entity_id + callback URL)
    Sys->>SN: 2. Send document for signature
    SN->>Signer: 3. Invite to sign
    Signer->>SN: 4. Sign the document
    SN->>CB: 5. POST callback (event payload)
    CB->>CB: 6. Verify signature, run business logic
    CB-->>SN: 7. Respond 200 OK (acknowledge receipt)
    CB->>Sys: 8. Update your data
```

## Part 1. Subscribe to SignNow events

A subscription answers three questions: **which event**, **on which entity**, and **where to send the callback**.

### Choose the entity level

An **entity type** limits the scope of what you get notified about. You subscribe at the level that matches how you track work in your own system.

| Entity level | Subscribe on | Example event | You are notified about |
| --- | --- | --- | --- |
| **User** | `user_id` | `user.document.complete` | Any document of that user reaching completion |
| **Document** | `document_id` | `document.complete` | One specific document reaching completion |
| **Document group** | `document_group_id` | `document_group.complete` | One specific document group reaching completion |

Subscribing at the user level is the widest net: you get callbacks for every document that user handles. Subscribing at the document or document group level is precise: you get callbacks for just that one entity. Pick the narrowest level that still covers what you need, so your server handles fewer requests.

For the full list of events at each level, see the [Webhooks guide](/docs/guides-webhooks#entity-events).

### Create the subscription

Before you begin, you need a way to authorize your API requests, the ID of the entity you are subscribing on, and a publicly reachable callback URL (Part 2 covers how to build and expose one). For authorization, you can use either an API key from the [API Dashboard](/docs/account#api-keys) or an OAuth 2.0 access token; pick whichever fits your setup. For details, see [Authentication](/docs/authentication). The examples below pass this value in the `Authorization` header after `Bearer`.

Create one subscription per event with a [POST request](/docs/manage-event-subscriptions/operations/create-event-subscription-2). The `callback` attribute is where SignNow will send the event.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/event-subscriptions \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "event": "document_group.complete",
    "entity_id": "4c442866d7d2fea14f0935bd350213fb55ec5a6c",
    "attributes": {
      "callback": "https://your-domain.com/signnow/callback"
    }
  }'
```

You can attach optional attributes to control delivery and security:

- **`secret_key`**: enables HMAC verification. SignNow signs each callback with this key so your server can confirm the request is authentic. You choose the value (any string up to 300 characters). Save it: you need the same value on your server.
- **`include_metadata`**: set to `true` to receive any metadata attached to the document or document group in the payload.
- **`retry_count`**: limits how many times SignNow retries when your callback URL returns a `5xx` error (1 to 10).
- **`delay`**: delays the callback by up to 100 seconds after the event.

```bash
curl --request POST \
  --url https://api.signnow.com/v2/event-subscriptions \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "event": "document_group.complete",
    "entity_id": "4c442866d7d2fea14f0935bd350213fb55ec5a6c",
    "attributes": {
      "callback": "https://your-domain.com/signnow/callback",
      "secret_key": "MySecretKey",
      "include_metadata": true
    }
  }'
```

For the complete attribute reference, see [Create event subscription](/docs/manage-event-subscriptions/operations/create-event-subscription-2).

For a full step-by-step walkthrough of creating, listing, testing, and deleting subscriptions, see [Create webhook via API](/docs/guides-webhooks#create-webhook-via-api) in the Webhooks guide.

## Part 2. Receive callbacks on your server

When a subscribed event fires, SignNow sends a `POST` request to your callback URL. Your job is to accept it, confirm it really came from SignNow, and act on it.

### What the callback looks like

The body is JSON with two objects: `meta` (what happened, who did it, when) and `content` (the entity it happened to). The following is an example payload for a document group event:

```json
{
  "meta": {
    "timestamp": 1661430933,
    "event": "document_group.invite.signer.complete",
    "environment": "https://api.signnow.com",
    "callback_url": "https://your-domain.com/signnow/callback",
    "access_token": "********",
    "initiator_id": "5db6a09799744e6d2f14f0f34bcba467d78fd6fc"
  },
  "content": {
    "group_id": "61b5beea67b13271b4381653c1f95c48def03151",
    "group_invite_id": "de9a87a29eb47714e1c11c1da697f1cd89577c3c",
    "status": "fulfilled",
    "step_order": 1,
    "signer_unique_id": "5db6a09799744e6d2f14f0f34bcba467d78fd6fc",
    "signer_email": "signer@example.com",
    "document_ids": [
      "660d3bf027730b6f90026385969fb9f1f05673a1"
    ]
  }
}
```

The most useful `meta` fields are the same for every event: `event` (what happened), `initiator_id` (who triggered it), and `timestamp` (when). The `content` fields depend on the entity type: document group events carry `group_id` along with signer details such as `signer_email` and `status`, while document and user events carry `document_id` (and `user_id` for user events) instead.

### What your server must do

Inside your callback route, follow this sequence:

```mermaid
flowchart TD
    A["Receive POST at callback route"] --> B{"Valid HMAC signature?"}
    B -- "No" --> R1["Respond 401 and stop"]
    B -- "Yes" --> C{"Already handled this callback?"}
    C -- "Yes" --> R2["Respond 200 and skip"]
    C -- "No" --> D["Parse event, initiator, entity IDs"]
    D --> E["Run your business logic"]
    E --> F["Respond 200 OK within 20s"]
```

1. **Verify the request.** If you set a `secret_key`, SignNow includes an `X-SignNow-Signature` header: the payload hashed with HMAC-SHA256 using your key, base64 encoded. Recompute it over the raw body and compare. Reject with `401` if it does not match. For details, see [HMAC security](/docs/guides-webhooks#hmac-security).
2. **Deduplicate.** Retries and overlapping subscriptions can deliver the same callback more than once. Build an idempotency key from the event, entity ID, and timestamp, and skip anything you have already handled.
3. **Read the event.** Pull `event`, `initiator_id`, `timestamp`, and the entity IDs.
4. **Run your logic.** Update your record, write an audit entry, call another system, or start post-processing. This part is entirely yours.
5. **Acknowledge fast.** Return a `2xx` within the 20-second timeout. If your processing is slow, handle it asynchronously (queue it) and respond immediately: a request that times out or returns an error is treated as a failed delivery and retried, as described in [Retries](/docs/guides-webhooks#retries).

### Example callback server

The example below is a complete, runnable Express server that implements all five steps. Copy it into a file named `server.js`.

```javascript
const express = require('express');
const crypto = require('crypto');

const app = express();
const PORT = process.env.PORT || 3000;
const SECRET_KEY = process.env.SIGNNOW_SECRET_KEY || '';

const entityStatus = new Map(); // mock DB: entityId -> last event
const seenCallbacks = new Set();  // idempotency keys already handled

// Keep the raw body so the HMAC is computed over the exact bytes SignNow signed.
app.use(express.json({
  verify: (req, _res, buf) => { req.rawBody = buf; },
}));

function isValidSignature(rawBody, signatureHeader) {
  if (!SECRET_KEY) return true;          // verification disabled
  if (!signatureHeader) return false;
  const expected = crypto
    .createHmac('sha256', SECRET_KEY)
    .update(rawBody)
    .digest('base64');
  const a = Buffer.from(expected);
  const b = Buffer.from(signatureHeader);
  if (a.length !== b.length) return false;
  return crypto.timingSafeEqual(a, b);   // constant-time compare
}

app.post('/signnow/callback', (req, res) => {
  // 1. Verify the request really came from SignNow.
  if (!isValidSignature(req.rawBody, req.get('X-SignNow-Signature'))) {
    return res.status(401).json({ error: 'invalid signature' });
  }

  const { meta = {}, content = {} } = req.body || {};
  const event = meta.event;

  // The ID in `content` depends on the entity type the event belongs to:
  //   document events:       document_id
  //   document group events: group_id
  //   user events:           user_id (plus the document or document group that changed)
  const entityId =
    content.document_id ||                       // document
    content.group_id ||                          // document group
    content.user_id;                             // user

  // 2. Deduplicate.
  const idKey = `${event}:${entityId}:${meta.timestamp}`;
  if (seenCallbacks.has(idKey)) {
    return res.status(200).json({ status: 'duplicate ignored' });
  }
  seenCallbacks.add(idKey);

  // 3. Read the event.
  console.log(`event=${event} initiator=${meta.initiator_id} entity=${entityId}`);

  // 4. Run your business logic (replace with your own).
  //    Works for any entity type: store the latest event for the entity.
  entityStatus.set(entityId, event);

  // 5. Acknowledge quickly.
  return res.status(200).json({ status: 'received' });
});

app.listen(PORT, () => console.log(`Listening on http://localhost:${PORT}`));
```

Run it from the folder that contains `server.js`:

```bash
npm init -y
npm install express
SIGNNOW_SECRET_KEY=MySecretKey node server.js
```

> [!IMPORTANT]
> Set `SIGNNOW_SECRET_KEY` to the same value you passed as `secret_key` when creating the subscription. Leave it unset to skip verification for a first quick test.

### Verifying HMAC in other languages

The verification is the same idea in any language: HMAC-SHA256 over the raw body with your `secret_key`, base64 encoded, compared against `X-SignNow-Signature`. Here it is in PHP:

```php
<?php
class HMAC_Service
{
    public static function ComputeHash($secret, $payload)
    {
        $hexHash = hash_hmac('sha256', $payload, utf8_encode($secret));
        return base64_encode(hex2bin($hexHash));
    }
    public static function HashIsValid($secret, $payload, $verify)
    {
        return hash_equals($verify, self::ComputeHash($secret, $payload));
    }
}
?>
```

### Expose your server to SignNow

SignNow reaches your server over the public internet, so `localhost` will not work directly. During development, expose it with a tunnel:

```bash
ngrok http 3000
```

Use the public HTTPS URL it prints, with your route appended, as the callback URL when you create the subscription:

```
https://<your-subdomain>.ngrok.app/signnow/callback
```

> [!WARNING]
> If your callback host is locked down by a firewall, allow inbound requests from SignNow. A callback URL that points to `localhost` or a private IP is rejected with `Host is not allowed.` (error `15006001`).

### Test the full flow

1. Start your server and expose it publicly.
2. Create an event subscription pointing at your callback URL (Part 1).
3. Trigger the event, for example by sending a document for signature and signing it.
4. Watch the callback arrive in your server logs.

You can also confirm delivery from SignNow's side: check **API Dashboard** > **Webhooks** > **Events History**, or call [Get list of callbacks by event subscription](/docs/callbacks-info/operations/get-v2-dashboard-event-history) to list the callbacks sent for a subscription.

### What to build in your business logic

The handler is where your integration earns its keep. Common patterns:

- Update the document's status in your own database.
- Append an entry to an audit trail.
- Notify a third system (CRM, ERP, ticketing).
- Start post-processing: download the signed file, extract fields, archive it.

Whatever you do, keep the acknowledgement fast and the handler idempotent.

## Reliability notes

- **Retries.** SignNow retries failed deliveries and can unsubscribe you after repeated failures. See [Retries](/docs/guides-webhooks#retries).
- **Recovery.** If you miss callbacks during downtime, reconcile against document status and, if needed, ask support to retrigger. See [Webhook recovery](/docs/guides-webhooks#webhook-recovery).
- **Troubleshooting.** For unreachable hosts, `4xx`/`5xx` handling, and duplicate callbacks, see [Troubleshooting](/docs/guides-webhooks#troubleshooting).

If your callbacks stop and your subscriptions look active, your API subscription may be inactive. Check [API Dashboard > Plan usage](/docs/account#plan-usage), and if the plan should be active, contact API support at **api@signnow.com**.

## Next steps

- Browse the full event list in the [Webhooks guide](/docs/guides-webhooks).
- See the [event subscription API reference](/docs/manage-event-subscriptions/operations/create-event-subscription-2).


---

## Organizations

# Organizations

Manage organizations (workspaces) with the API: user roles, the admin panel, shared settings, and the steps to create and set up an organization.

## About organizations (workspaces)

> A **workspace** is the new version of the **organization** feature. It’s built on the same foundation to stay compatible with existing configurations, but it comes with an improved interface and new capabilities over time. Learn more about [workspaces](https://support.signnow.com/help-center/collaboration/organization-to-workspace).

An organization is a group of users that enables them to use the following features:

- Branded emails and invites with a custom name and logo
- Consistent settings across all organization members
- Organization activity and document usage statistics
- Document tracking and shared document templates
- HIPAA, PCI DSS, and CFR-compliant workflows
- Merchant accounts for collecting payment requests
- Cloud storage exports for an entire organization

Additionally, all documents and document groups sent within the organization can be customized uniformly using [organization branding](/docs/reference).

Subscription admins can create organizations. They can have multiple organizations with separate settings per subscription. An organization can be mapped to an email domain so that users with this domain are automatically added. A domain can be associated with one section only. To set the mapping, [contact](http://support.signnow.com) SignNow support.

## Organization user roles

Superadmins, admins, and moderators manage organizations. Smaller groups called teams can be created within organizations.

- **Members** are managed by both admins and moderators. Users can only be members of one organization at a time, and all organization settings are applied to them.
- **Moderators** can change organization settings, manage organization branding, add or remove members, and change member roles (except for admins). Organization settings do not apply to moderators unless they are also members.
- **Admins** can manage organization branding and settings, assign admins, change all member roles, work with merchant accounts, and delete the organization. Organization settings do not apply to admins unless they are also members.
- **Super admins** have full access to organizations. They can view and delete other users' documents and templates. Super admins only exist within enterprise accounts. To set up an enterprise account, [contact](http://support.signnow.com) SignNow support.

## Organization admin panel

In addition to the SignNow API, you can also work with organizations from the organization admin panel. In the panel, you can add users, change organization settings and branding, set up a merchant account, view statistics, and search for member documents.

To create an organization from UI:

1. Log in to your SignNow account at <https://app.signnow.com/>.
2. At the top left, click the name of your account.
3. Click **Create Organization**.
4. Enter a name for your organization and click **Create Organization**.

![SignNow account menu with the Create Organization button](/reference-assets/images/org%20guide/Organization%20guide%20create%20organization.png)

To access the panel:

1. Log in to your SignNow account at <https://app.signnow.com/>.
2. At the top left, click the name of your account.
3. If you have one organization, click **Organization Settings**.
4. If you have multiple organizations, hover over **Manage Organizations** and click the needed organization.

![Organization menu with Activity Dashboard, Add Users, Organization Settings and Manage Organizations](/reference-assets/images/org%20guide/Organization%20guide%20admin%20panel.png)

## Organization settings

Organization settings can be updated with API or from the organization admin panel.

To update the settings with API, use the [Update organization settings](/docs/organization/operations/put-v2-organizations-org-id-settings) request. The format of the request body is the following:

```json
{
    "data": [
        {
            "setting_name": "require_drawn_signatures",
            "value": "1"
        },
        {
            "setting_name": "require_email_subject",
            "value": "1"
        }
    ]
}

```

### List of settings and possible values

All settings values should be of type string.

| Setting       | <div style="width: 150px" >Description</div>                                                                                                                                                                | Possible values                                                                                                                                                                                                          |
| ----------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `mobileweb_option`                                                | Choose how signers can open signing links via mobile devices.                                                                                                              | <ul><li>`mobileweb_only`: open via mobile web</li><li>`app_only`: open via mobile app</li><li>`app_or_mobileweb_choice`: allow signers to choose</li></ul><br>Default: `app_or_mobileweb_choice`                         |
| `digitally_sign_dowloaded_docs`                                   | Sign downloaded documents with a digital certificate.                                                                                                                      | `yes` or `no`<br><br>Default: `no`                                                                                                                                                                                       |
| `cloud_export_with_history`                                       | Export documents with history to cloud storage.                                                                                                                            | `1` or `0`<br><br>Default: `0`                                                                                                                                                                                           |
| `emailed_docs_include_history`                                    | Attach documents with history to completion emails.                                                                                                                        | `1` or `0`<br><br>Default: `0`                                                                                                                                                                                           |
| `require_login_for_signing`                                       | To sign a document or document group, users must log in to SignNow.                                                                                                        | `1` or `0`<br><br>Default: `0`                                                                                                                                                                                           |
| `logout_on_signing`                                               | Signers get logged out after completing a document or document group.                                                                                                      | `1` or `0`<br><br>Default: `0`                                                                                                                                                                                           |
| `document_completion_retention_days`                              | Documents are permanently deleted after this number of days since completion.                                                                                              | A whole positive number or `0`<br><br>Default: `0`                                                                                                                                                                       |
| `audit_trail_completion_retention_days`                           | Document history is only available during this number of days since completion.                                                                                            | A whole positive number or `0`<br><br>Default:`0`                                                                                                                                                                        |
| `front_end_session_length`                                        | Users are logged out if inactive for this number of minutes.                                                                                                               | A whole positive number or `0`<br><br>Default: `0`                                                                                                                                                                       |
| `no_document_attachment`                                          | Signed documents are attached to completion emails.                                                                                                                        | `1` or `0`<br><br>Default: `0`                                                                                                                                                                                           |
| `no_document_file_attachments`                                    | Signed documents with document attachments are attached to completion emails.                                                                                              | `1` or `0`<br><br>Default: `0`                                                                                                                                                                                           |
| `require_drawn_signatures`                                        | Require signers to use only hand-drawn signatures.                                                                                                                         | `1` or `0`<br><br>Default: `0`                                                                                                                                                                                           |
| `pending_invite_document_view_`<br>`notification`                       | Receive email notifications when signers open documents.                                                                                                                   | `yes` or `no`<br><br>Default: `no`                                                                                                                                                                                       |
| `require_email_subject`                                           | Require a custom email subject when sending documents for signing.                                                                                                         | `1` or `0`<br><br>Default: `0`                                                                                                                                                                                           |
| `email_admin_on_banned_login`                                     | Email the organization admin when a banned user tries logging in.                                                                                                          | `1` or `0`<br><br>Default: `0`                                                                                                                                                                                           |
| `add_signature_stamp_with_name`                                   | The signer is asked for their name, and a SignNow stamp with the name is added to the document.                                                                            | `1` or `0`<br><br>Default: `0`                                                                                                                                                                                           |
| `unsuccessful_logout_attempts_allowed`                            | If a user cannot log in for this number of times, they get banned from the organization.                                                                                   | A whole positive number or 0<br><br>Default: `0` (the setting is off)                                                                                                                                                    |
| `require_authentication_for_invites`                              | Force two-factor authentication for document invites.                                                                                                                      | `1` or `0`<br><br>Default: `0`                                                                                                                                                                                           |
| `electronic_consent_required`                                     | Display the electronic signature disclosure consent agreement.                                                                                                             | <ul><li>`required_by_all`:  display for all signers</li><li>`required_by_outside_org`: display for signers only outside of the organization</li><li>`no`: don't display</li></ul><br>Default: `required_by_all`          |
| `electronic_consent_text`                                         | Add disclosure text.                                                                                                                                                       | <ul><li>Empty string: default text is used</li><li>Custom text</li></ul><br>Default: empty string (default text)                                                                                                       |
| `document_guide`                                                  | Guide signers through document fields.                                                                                                                                     | `1` or `0`<br><br>Default: `1`                                                                                                                                                                                           |
| `watermark_downloaded_document`                                   | Add a watermark to downloaded documents.                                                                                                                                   | <ul><li>`0`: no watermark</li><li>`{\"text\":\"%watermark_text\",`<br>`\"angle\":%text_angle,`<br>`\"font_size\":%text_size}`</li></ul>Example: `{\"text\":\"Unique Solutions LTD\",\"angle\":30,\"font_size\":72}`<br>Default: `0` |
| `block_export_options_when_credit_card_`<br>`validation_is_used`        | Block exports for documents containing text fields with credit card validation. These documents cannot be emailed as copies or downloaded with or without their histories. | `yes` or `no`<br><br>Default: `no`                                                                                                                                                                                       |
| `sso-only-login`                                                  | Enable login via SSO Saml only.                                                                                                                                            | `on` or `off`<br><br>Default: `off`                                                                                                                                                                                      |
| `block_login_via_social_networks`                                 | Block login via social networks.                                                                                                                                           | `yes` or `no`<br><br>Default: `no`                                                                                                                                                                                       |
| `hide_decline_to_sign_option_in_`<br>`signing_session`                  | Hide the «Decline to Sign» option from signers.                                                                                                                            | `1` or `0`<br><br>Default: `0`                                                                                                                                                                                           |
| `guide_signers_only_through_required_`<br>`fields`                      | Guide signers only through required fields.                                                                                                                                | `1` or `0`<br><br>Default: `1`                                                                                                                                                                                           |
| `save_signer_signature_and_initials`                              | Save signer signatures and initials when completing a document.                                                                                                            | `1` or `0`<br><br>Default: `1`                                                                                                                                                                                           |
| `auto_apply_signatures_and_initials_`<br>`to_document_fields`           | Offer to automatically apply signature and initials to all corresponding empty fields in a document after filling out the first field.                                     | `1` or `0`<br><br>Default: `1`                                                                                                                                                                                           |
| `block_organization_selfleave_by_member`                          | Members cannot leave the organization.                                                                                                                                     | `1` or `0`<br><br>Default: `0`                                                                                                                                                                                           |
| `email_logo_position`                                             | Position of the organization logo on the emails.                                                                                                                           | <ul><li>`left`</li><li>`right`</li><li>`center`</li></ul><br>Default: `left`                                                                                                                                             |
| `email_btn_bkgd_color`                                            | Background color of buttons in emails.                                                                                                                                     | Color in HEX format<br><br>Default: `#0777CF`                                                                                                                                                                            |
| `email_btn_text_color`                                            | Text color of buttons in emails.                                                                                                                                           | Color in HEX format<br><br>Default: `#FFFFFF`                                                                                                                                                                            |
| `every_signature_and_initials_field_`<br>`requires_user_authentication` | Users are required to enter their email and password every time they fill out a signature or initials field in a document.                                                 | `on` or `off`<br><br>Default: `off`                                                                                                                                                                                      |
| `enable_qes`                                                      | Allow senders to set up QES signatures for invites. To use this setting, [contact](http://support.signnow.com) SignNow support.                                            | `1` or `0`<br><br>Default: `0`                                                                                                                                                                                           |
| `cfr_title_21_part_11`                                            | Set up **Title 21 CFR Part 11** compliance. It can be used only if some other settings are on. For more information, see [Title 21 CFR Part 11](/docs/organizations#title-21-cfr-part-11).                | `1` or `0`<br><br>Default: `0`  |         
| `invite_decline_redirect_url`                                           | The URL that opens after recipients decline the document.                | Any valid URL.  | 
| `allow_senders_edit_invite_decline_redirect_url`                                           | Specifies whether the admin allows senders to edit the decline redirect setting when sending document invites.                | `0` or `1`<br>Default: `1` (senders can edit the redirect URL)  |
|        `invite_completion_redirect_url`                                    |   The URL that opens after recipients complete the document.              | Any valid URL.  |
|        `allow_senders_edit_invite_completion_redirect_url`                                    |   Specifies whether the admin allows senders to edit the completion redirect setting when sending document invites.              | `0` or `1`<br>Default: `1` (senders can edit the redirect URL).  |
|        `save_draft_redirect_url`                                    |   The URL that opens after recipients save progress and close the document.              | Any valid URL.  |
|        `allow_senders_edit_save_draft_redirect_url`                                    |   Specifies whether the admin allows senders to edit the save progress redirect setting when sending document invites.              | `0` or `1`<br>Default: `1` (senders can edit the redirect URL).  |
| `org_allowed_team_admins` | Allows organization admins to assign the Team Admin role to members. | `1` or `0`<br>Default: `0` |
| `invite_expiration_days` | Sets the default expiration period (in days) for new document invites. | Whole positive number<br>Default: `30` |
| `agreement_to_test_new_functionality_in_organization` | Enables early access to test new features and functionality (Beta). | `1` or `0`<br>Default: `1` |
| `default_field_invite_remind_before` | Sets the default number of days before expiration to send a reminder. | Whole positive number or `0`<br>Default: `0` |
| `default_field_invite_remind_after` | Sets the default number of days after sending to trigger the first reminder. | Whole positive number or `0`<br>Default: `0` |
| `default_field_invite_remind_repeat` | Sets the default frequency (in days) for repeating reminders. | Whole positive number or `0`<br>Default: `0` |
| `disable_email_recipients` | Prevents the system from sending email notifications to recipients. | `1` or `0`<br>Default: `0` |
| `email_footer_enabled` | Displays the standard SignNow footer in outgoing emails. | `1` or `0`<br>Default: `1` |
| `allow_qes` | Enables Qualified Electronic Signatures (QES) for the organization. | `1` or `0`<br>Default: `0` |
| `invite_canceled_redirect_url` | Specifies the URL where signers are redirected if a document invite is canceled. | Any valid URL<br>Default: `https://www.signnow.com/` |
| `allow_cfr_control` | Enables access to CFR Part 11 compliance settings. | `1` or `0`<br>Default: `0` |
| `restrict_payments_collection` | Hides payment request settings and prevents members from setting up or sending invites with payment requests. | `1` or `0`<br>Default: `0` |
| `disable_branding_setup` | Hides branding settings and prevents members from setting up or editing custom branding. | `1` or `0`<br>Default: `0` |
| `generate_signers_signatures_when_filling_signature_fields` | Automatically generates a signature style for signers when they interact with a signature field. | `1` or `0`<br>Default: `1` |
| `disable_ai_chat` | Disables AI Assistant features for the organization. | `1` or `0`<br>Default: `0` |
| `allow_member_invite_requests` | Allows non-admin members to request invitations for new users. | `1` or `0`<br>Default: `0` |
| `allow_senders_edit_invite_expiration` | Allows senders to change the expiration date when sending invites. | `1` or `0`<br>Default: `1` |
| `allow_senders_edit_invite_reminders` | Allows senders to customize reminder settings when sending invites. | `1` or `0`<br>Default: `1` |


### Title 21 CFR Part 11

Title 21 CFR Part 11 is a fragment of the FDA  regulations that defines the criteria under which electronic records and **signatures are considered trustworthy**, reliable, and equivalent to paper records.

<!-- theme: info -->

> Compliance settings are only available for the [Site License](https://snseats.signnow.com/purchase/business_plans/pricing) users.

To enable Title 21 CFR Part 11 compliance:

1. Make sure that your organization settings meet the compliance criteria. The criteria and settings are summarized in the table below.
2. Set the `cfr_title_21_part_11` setting to `1`.

While the compliance is enabled, those settings cannot be changed.

**List of CFR compliance settings**

| Criteria                                                                                                                                                | Settings                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| Signers must use a desktop application to sign documents.                                                                                               | `mobileweb_option=app_only`                                              |
| Signed PDF documents are read-only and digitally signed.                                                                                                | `digitally_sign_dowloaded_docs=yes`                                      |
| Documents are exported to cloud storage with history.                                                                                                   | `cloud_export_with_history=1`                                            |
| Attach documents with history to completion emails.                                                                                                     | `emailed_docs_include_history=1`                                         |
| To sign a document or document group, users must log in to SignNow.                                                                                     | `require_login_for_signing=1`                                            |
| Signers get logged out after completing a document or document group.                                                                                   | `logout_on_signing=1`                                                    |
| Documents are permanently deleted after 1095 days (3 years) or more.                                                                                    | `document_completion_retention_days=1095`                                |
| Users are logged out if inactive for at least 15 minutes and 90 minutes at most.                                                                        | `front_end_session_length=30` (or any other number between 15 and 90)    |
| Email the organization admin when a banned user tries logging in.                                                                                       | `email_admin_on_banned_login=1`                                          |
| Force two-factor authentication for document invites.                                                                                                   | `require_authentication_for_invites=1`                                   |
| A signer is asked for their name, and a SignNow stamp with the name is added to the document.                                                           | `add_signature_stamp_with_name=1`                                        |
| If a user fail to log in to SignNow, they get banned from the organization.                                                                             | `unsuccessful_logout_attempts_allowed=1` (or any number between 1 and 6) |
| After filling out the first field, users are not offered to automatically apply signature and initials to all corresponding empty fields in a document. | `auto_apply_signatures_and_initials_to_document_fields=0`                |
| Users are required to enter their email and password every time they fill out a signature or initials field in a document.                              | `every_signature_and_initials_field_requires_user_authentication=on`     |

## Work with organizations

Let's explore the possibilities of organizations and how to work with them.

### Step 1. Create an organization

First, [create](/docs/organization/operations/post-v2-organizations) an organization. You receive an organization ID in the response. Use it in all the following steps.

<!--
type: tab
title: Request
-->

```json

curl --request POST \
  --url https://api.signnow.com/v2/organizations \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "HR department"
}'

```

<!--
type: tab
title: Response
-->

```json

{
  "id": "1afee427a35e404e9eb6f98cb6586f5e3ccef0a2"
}

```

<!-- type: tab-end -->

### Step 2. Add member

[Add](/docs/organization/operations/post-v2-organizations-org-id-members) members by specifying the email addresses with which they are registered. Use the ID you received in the response to the previous path as the `organization_id` path parameter.

```json

curl --request POST \
  --url https://api.signnow.com/v2/organizations/{{organization_id}}/members \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "jdoe@email.com"
}'

```

An invited user can [accept](/docs/organization/operations/post-v2-organizations-org-id-members-user-id-accept) or [decline](/docs/organization/operations/post-v2-organizations-org-id-members-user-id-decline) the invitation.

### Step 3. Add administrator or moderator

[Add](/docs/organization/operations/post-v2-organizations-org-id-admins) administrators and moderators by specifying the email addresses with which they are registered.
To add an admin, set `type=admin`. To add a moderator, set `type=moderator`.

```json

curl --request POST \
  --url https://api.signnow.com/v2/organizations/{{organization_id}}/admins \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "dsmith@email.com",
  "type": "admin"
}'

```

An invited user can [accept](/docs/organization/operations/post-v2-organizations-org-id-admins-user-id-accept) or [decline](/docs/organization/operations/post-v2-organizations-org-id-admins-user-id-decline) the invitation.

### Step 4. Upload an organization logo

[Upload](/docs/organization/operations/post-v2-organizations-org-id-logo) a logo file from your computer. The logo will appear in your Documents folder and the document editor.

```json

curl --request POST \
  --url https://api.signnow.com/v2/organizations/{{organization_id}}/logo \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: multipart/form-data' \
  --form 'logo=@"/path/to/file"'

```

### Step 5. Update organization settings

Let's [change](/docs/organization/operations/put-v2-organizations-org-id-settings) the organization settings. In this example, we update the following settings:

- Signers can use hand-drawn signatures only
- Senders must add a custom email subject to their signature requests

For a full list of organization settings you can manage, see [Organization settings](/docs/organizations#organization-settings).

```json

curl --request PUT \
  --url https://api.signnow.com/v2/organizations/{{organization_id}}/settings \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": [
      {
          "setting_name": "require_drawn_signatures",
          "value": "1"
      },
      {
          "setting_name": "require_email_subject",
          "value": "1"
      }
    ]
}'  

```

### Step 6. Get users' activity

You can get users' statistics by sending the [Get users' activity](/docs/organization/operations/post-v2-organizations-organization-id-users-activity-export) request. Query parameters `date_from` and `date_to` indicating the time range are required. They should be UNIX timestamps, and the period should be 31 days or less.

The response contains the following data for each user:

- `user_id`.
- Profile email address.
- A number of documents created by the user.
- A number of documents sent by the user.
- A number of documents signed by the user.
- The average time between the user receiving an invite and signing it.
- A number of distinct signers who signed the invites sent by the user.

<!--
type: tab
title: Request
-->

```json

curl --request GET \
  --url https://api.signnow.com/v2/organizations/{{organization_id}}/users-activity?date_from=1717416348&date_to=1718031948 \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \

```

<!--
type: tab
title: Response
-->

```json

{
  "data": [
    {
      "id": "2c73e416095d4734a0e0d8bce4bd33f7b44b7564",
      "email": "members1@email.com",
      "documents": 5,
      "sent_documents": 2,
      "signed_documents": 2,
      "average_complete_time": "0:45:0",
      "signers": 2
    },
    {
      "id": "d2d3c991cf574ef18e99c745e41bffa0985854c1",
      "email": "member2@email.com",
      "documents": 2,
      "sent_documents": 1,
      "signed_documents": 1,
      "average_complete_time": "1:16:14",
      "signers": 1
    }
  ],
  "meta": {
    "pagination": {
      "total": 2,
      "count": 2,
      "per_page": 15,
      "current_page": 1,
      "total_pages": 1,
      "links": []
    }
  }
}

```

<!-- type: tab-end -->

See also:

- [Get organization activity](/docs/organization/operations/get-v2-organizations-org-id-activity)
- [Get members' last logins](/docs/organization/operations/get-v2-organizations-org-id-members-last-logins)

## Try out in Postman

[Access](https://www.postman.com/signnow-api/signnow-public-collection/collection/e5ndt1q/signnow-organization-test-collection) this flow in Postman, and feel free to use organizations to manage your workflows more efficiently.


---

## Request payments

# Request payments

API users can connect a payment system to their personal SignNow account or organization to collect payments when sending documents for signature. After recipients complete their documents, they are redirected to a payment page.

Currently, SignNow supports the **Stripe** payment system.

This guide walks you through connecting a payment account and sending a field invite for a document group with a payment request.

## Prerequisites

- Make sure your Stripe account is active.
- Upload documents to SignNow and retrieve their IDs. You need them to add fillable fields and create a document group.

> [!NOTE]
> You can connect only one payment account at a time.

## Step 1. Connect the payment account

### Personal SignNow account

Use the [`POST /v2/merchant-accounts`](/docs/request-payments/operations/post-v2-merchant-accounts) request to connect your Stripe account to your personal SignNow account.

Add the following attributes:

- `currency`: The currency used for recipient transactions.
- `account_name`: Name of the payment account.
- `account_type`: The type of payment service. Allowed values: `Stripe`, `StripeConnect`.
- `display_credit_card_form`: Defines whether to display the credit card form by Stripe.

  <details>
  <summary>Credit card form in the UI</summary>

  ![Make Payment dialog with the credit card form](/reference-assets/images/Request_payments/payment_form_card.png)

  </details>

- `publishable_key`: The publishable API key provided by Stripe. You can find it in your Stripe Dashboard.
- `secure_key`: The secret API key provided by Stripe. You can find it in your Stripe Dashboard.

> [!NOTE]
> For the `Stripe` account type, set `display_credit_card_form` to `true`.

**Request example**

```bash
curl --request POST \
--url https://api.signnow.com/v2/merchant-accounts \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
  "currency": "USD",
  "account_name": "My Stripe",
  "account_type": "Stripe",
  "display_credit_card_form": true,
  "publishable_key": "pk_zzzz_zzzi7GDlOVChs1OowXjAiYYY",
  "secure_key": "sk_xxxx_xxxrljcpCb9qbdk8IMXNyyyy"
}'
```

### SignNow organization

Use the [`POST /organizations/{{org_id}}/merchantaccount`](/docs/request-payments/operations/post-organizations-org-id-merchantaccount) request to connect your SignNow organization to the payment account.

> [!NOTE]
> An organization is limited to one active account per payment service. The connected payment service will apply to all organization members by default.

**Request example**

```bash
curl --request POST \
--url https://api.signnow.com/organizations/{{org_id}}/merchantaccount \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
  "currency": "USD",
  "account_name": "My Stripe",
  "account_type": "Stripe",
  "display_credit_card_form": true,
  "publishable_key": "pk_zzzz_zzzi7GDlOVChs1OowXjAiYYY",
  "secure_key": "sk_xxxx_xxxrljcpCb9qbdk8IMXNyyyy"
}'
```

The successful response retrieves the payment account ID.

## Step 2. Add the payment request field to the document (optional)

You can add a payment request to the invite using one of the following types:

- **`calculated`:** Add a fillable field with a `validator_id` to the document. When the recipient completes the document, they'll be prompted to pay the amount specified in that field. You can also use formula fields to calculate the payment amount dynamically. For the `calculated` type, use one of the following validator IDs for the text field:
    - **`7ef095fd94ce63b670b52b2e83457d59ac796a39`**: currency format 1, with a comma for thousands and a dot for decimals (example: `8,100.00`)
    - **`824085fd04ce63b670b11b2e83457d59ac796a39`**: currency format 2, with a dot for thousands and a comma for decimals (example: `8.100,00`)

- **`fixed`:** Set a fixed payment amount that the recipient must pay after completing the document.

Use the [`PUT /document/{{document_id}}`](/docs/document/operations/edit-document) request to add the field with the currency validator to the document. This allows you to send an invite with the `calculated` payment request type.

**Request example**

```bash
curl --request PUT \
--url https://api.signnow.com/document/{{document_id}} \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
  "fields": [
    {
      "x": 358,
      "y": 171,
      "width": 177,
      "height": 50,
      "type": "text",
      "page_number": 0,
      "required": true,
      "role": "Buyer",
      "name": "payment_buyer",
      "validator_id": "7ef095fd94ce63b670b52b2e83457d59ac796a39"
    }
  ]
}'
```

## Step 3. Create a document group

Use [`POST /documentgroup`](/docs/document-group/operations/create-document-group) endpoint to create a document group. 

In the `document_ids` array, specify the IDs of the documents to include in the group.

```bash
curl --request POST \
--url https://api.signnow.com/documentgroup \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data '{
  "document_ids": [
    "cd5b201673ea9ed998c807a48c00aae5dd642a19",
    "dd7bfc65409a2d75c456f771af146b4ebe4bbc69"
  ],
  "group_name": "Document Group"
}'
```

## Step 4. Send an invite with a payment request

Depending on the payment request `type`, the payload for the signature invite can differ. 

> [!NOTE]
> You can add only one payment request to the invite.

### Request for the **calculated** type

Add the following attributes to the `payment_request` object within the `invite_actions` array:

- `field_id`: The ID of the field that defines the payment amount. Can be found in the [Get document](/docs/document/operations/get-document) response (fields.id).
- `field_type`: The field type that defines the payment amount. Allowed value is **`text_fields`**.
- `field_name`: The name of the field that defines the payment amount. Can be found in the [Get document](/docs/document/operations/get-document) response (fields.name).
- `type`: The type of the payment request. Should be `calculated`.
- `currency`: Payment currency in ISO format.
- `merchants`: IDs of connected payment service accounts. Can be found in the [Get user](/docs/user/operations/get-user-info) response, [Get merchant account](/docs/request-payments/operations/get-organizations-org-id-merchantaccount-merchant-account-id) response (for organization), and [Get personal merchant account](/docs/request-payments/operations/get-v2-merchant-accounts) (for personal SignNow account).

**Request example**

```bash
curl --request POST \
--url https://api.signnow.com/documentgroup/{{group_id}}/groupinvite \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--data-raw '{
    "invite_steps": [
        {
            "order": 1,
            "invite_emails": [
                {
                    "email": "seller@email.com"
                }
            ],
            "invite_actions": [
                {
                    "email": "seller@email.com",
                    "role_name": "Seller",
                    "action": "sign",
                    "document_id": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye"
                }
            ]
        },
        {
            "order": 2,
            "invite_emails": [
                {
                    "email": "buyer@email.com"
                }
            ],
            "invite_actions": [
                {
                    "email": "buyer@email.com",
                    "role_name": "Buyer",
                    "action": "sign",
                    "document_id": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye",
                    "payment_request": {
                            "type": "calculated",
                            "currency": "USD",
                            "merchants": [
                                "5ef7e3853f4a4624a037d90d20513a195937dxxx"
                            ],
                            "field_name": "payment_buyer",
                            "field_type": "text_fields",
                            "field_id": "eb1dc1e1946f47cd87fa4a63664803bddba6fff"
                        }
                }
            ]
        }
    ]
}'
```

### Request for the **fixed** type

Add the following attributes to the `payment_request` object within the `invite_actions` array:

- `type`: The type of the payment request. Should be `fixed`.
- `currency`: Payment currency in ISO format.
- `amount`: Payment amount.
- `merchants`: IDs of connected payment service accounts. Can be found in the [Get user](/docs/user/operations/get-user-info) response, [Get merchant account](/docs/request-payments/operations/get-organizations-org-id-merchantaccount-merchant-account-id) response (for organization), and [Get personal merchant account](/docs/request-payments/operations/get-v2-merchant-accounts) (for personal SignNow account).

**Request example**

```bash
curl --request POST \
--url https://api.signnow.com/documentgroup/{{group_id}}/groupinvite \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--data-raw '{
    "invite_steps": [
        {
            "order": 1,
            "invite_emails": [
                {
                    "email": "seller@email.com"
                }
            ],
            "invite_actions": [
                {
                    "email": "seller@email.com",
                    "role_name": "Seller",
                    "action": "sign",
                    "document_id": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye"
                }
            ]
        },
        {
            "order": 2,
            "invite_emails": [
                {
                    "email": "buyer@email.com"
                }
            ],
            "invite_actions": [
                {
                    "email": "buyer@email.com",
                    "role_name": "Buyer",
                    "action": "sign",
                    "document_id": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye",
                    "payment_request": {
                        "currency": "USD",
                        "type": "fixed",
                        "amount": "1000",
                        "merchants": [
                            "5ef7e3853f4a4624a037d90d20513a195937dxxx"
                        ]
                    }
                }
            ]
        }
    ]
}'
```

The successful request retrieves the document group invite ID.

## How it looks in the UI

Once the recipient completes the document with the payment request, the **Save and Pay** button appears.

![Completed document with the Save and Pay button](/reference-assets/images/Request_payments/recipient_save_pay.png)

Clicking the button opens the payment form.

![Make Payment dialog with the credit card form](/reference-assets/images/Request_payments/payment_form_card.png)



---

## Add static text to a document

# How to add static text to a document

This guide explains how to add static text to PDF or Word documents using the SignNow API. Use this method to include important information that signers can see but won’t be able to change.

## The scenario

- **Document:** `Laptop_Agreement.pdf`
- **Signer 1 (Employee):** Enters their name, department, and signature on **Page 1**.
- **Signer 2 (IT Manager):** Reviews the data on **Page 2**. Crucial information (like the laptop serial number, asset ID, and release date)  is added as **static text** via API.

---

## Before you begin

1. [Create an application](/docs/account#create-an-application) in your API dashboard.
2. [Authenticate API requests](/docs/authentication) using your preferred authentication method.

## Step 1. Upload the document

First, upload the `Laptop_Agreement.pdf` to SignNow to generate a `document_id`.

**Request example**

```bash
curl --request POST \
  --url https://api.signnow.com/document \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=@"/path/to/Laptop_Agreement.pdf"'
```


## Step 2. Add fillable fields and static text

We can define the interactive elements (fillable fields) and the read-only data (static text) in **one request**.

- **`fields`**: Adds fillable text fields and a signature field for the Employee (Page 1) and signature field for the Manager (Page 2).
- **`texts`**: Adds the `asset ID`, `serial number`, and `release date` to Page 2. The data parameter contains the pre-filled static text.

Learn more about [fields](/docs/fields).

> The `page_number` parameter uses a 0-based index. To add items to Page 2, use `page_number: 1`.

Use the [Edit document](/docs/document/operations/edit-document) request and document ID from the previous response.

**Request example**

```bash
curl --request PUT \
  --url https://api.signnow.com/document/{{document_id}} \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --data-raw '{
    "fields": [
      {
        "type": "text",
        "role": "Employee",
        "page_number": 0,
        "x": 150,
        "y": 585,
        "width": 103,
        "height": 12,
        "required": true,
        "name": "employee_department"
      },
      {
        "type": "text",
        "page_number": 0,
        "x": 198,
        "y": 555,
        "width": 103,
        "height": 12,
        "required": true,
        "name": "employee_name",
        "role": "Employee"
      },
      {
        "type": "signature",
        "page_number": 0,
        "x": 198,
        "y": 616,
        "width": 134,
        "height": 24,
        "required": true,
        "name": "employee_signature",
        "role": "Employee"
      },
      {
        "type": "signature",
        "page_number": 1,
        "x": 206,
        "y": 476,
        "width": 134,
        "height": 24,
        "required": true,
        "name": "manager_signature",
        "role": "Manager"
      }
    ],
    "texts": [
      {
        "data": "11/01/2025",
        "page_number": 1,
        "x": 173,
        "y": 122,
        "font": "Arial",
        "size": 12
      },
      {
        "data": "12345",
        "page_number": 1,
        "x": 257,
        "y": 254,
        "font": "Arial",
        "size": 12
      },
      {
        "data": "12468",
        "page_number": 1,
        "x": 260,
        "y": 307,
        "font": "Arial",
        "size": 12
      }
    ]
  }'
```

## Step 3. Subscribe to the document completion event

Before sending the invite, set up a webhook. This instructs SignNow to automatically ping your server when the document is fully signed by both parties.

- **Event:** `document.complete` triggers when the final signature is applied.
- **Entity ID**: Enter the ID of the agreement.
- **Action**: Should be set to `callback`.
- **Callback URL:** Replace `https://your-server.com/hook` with the URL of your server that will receive the callback.

> Learn more about SignNow [webhooks](/docs/guides-webhooks).

Use the [Create event subscription](/docs/basic-auth/operations/create-event-subscription) request.

**Request example**

```bash
curl --request POST \
  --url https://api.signnow.com/v2/event-subscriptions \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
  "event": "document.complete",
  "entity_id": "{{document_id}}",
  "action": "callback",
  "attributes": {
    "callback": "https://your-server.com/hook",
    "use_tls_12": true,
    "include_metadata": true
  }
}'
```

## Step 4. Send the invite

Send a single API call to invite both users. Use the `order` parameter to enforce the workflow:

1. **Employee (Order 1)** receives the invite first.
2. Once they finish, the system automatically sends the invite to the **IT Manager (Order 2)**.

Use the [Invite to sign](/docs/document-field-invite/operations/post-document-doc-id-invite) request.

```bash
curl --request POST \
  --url https://api.signnow.com/document/{{document_id}}/invite \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "document_id": "{{document_id}}",
  "to": [
    {
      "email": "employee@company.com",
      "role": "Employee",
      "order": 1,
      "subject": "Action Required: Sign Your Equipment Agreement",
      "message": "Review and sign the attached agreement acknowledging receipt of your new laptop.",
      "redirect_uri": "https://company.com/success"
    },
    {
      "email": "manager@company.com",
      "role": "Manager",
      "order": 2,
      "subject": "Approval Needed: Asset Handover",
      "message": "Verify the asset details and sign to authorize the release.",
      "redirect_uri": "https://company.com/dashboard"
    }
  ],
  "from": "admin@company.com"
}'
```

This is how the agreement will appear for the IT manager:

![Employee equipment agreement with static text and the IT Manager signature field, as the signer sees it](/reference-assets/images/use_cases_all/static_text_result.png)

As shown, the release date, asset ID, and serial number are prefilled with static text.

The IT manager’s signature field remains editable.

## Step 5. Download the signed document

Once both parties have signed, download the final PDF. It will contain the employee's input, the manager's signature, and the static text injected in **Step 2**.

Use the [Download document](/docs/document/operations/download-document) request.

**Request example**

```bash
curl --request GET \
  --url https://api.signnow.com/document/{{document_id}}/download \
  --header 'Accept: application/pdf' \
  --header 'Authorization: Bearer {{access_token}}'
```



---

## Notarize

# Notarize Your Documents with SignNow REST API

Effortlessly notarize your documents using the SignNow REST API. Learn how to leverage this powerful tool within SignNow to provide legally binding, notarized documents quickly and securely, enhancing your operational efficiency.

Get your documents notarized with the new SignNow functionality available due to partnership with Notarize, Inc.

_Last update: September 20, 2021_

---

## Introduction

# Introduction

Get SignNow documents notarized online through the Notarize integration, available via the SignNow API around the clock.

## What is Notarize?

Notarize is the first notary public platform to allow any person or business to get their documents legally notarized online, 24/7. SignNow is proud to announce an integration which allows users to get notary services seamlessly for the documents they keep and manage in SignNow.

## How do I notarize SignNow documents?

The Notarize service is available via API.

When you select the documents, have the document IDs, the signer’s name and email address ready, and send all the data over to Notarize service via SignNow API. The Notarize service offers you an online video call with a notary who then notarizes your documents.

## How many documents can I notarize?

SignNow allows you to send documents, templates and document groups. They can be signed or ready to be signed, with or without fillable fields. Up to 20 documents in the document group.

## How to Notarize with Multiple Signers?

Up to 10 signers including yourself can participate in a single Notarize session. All signers will receive an invitation in their email inboxes and can go through the process individually from their location, using their own device, at any time they choose. You and other signers can also co-locate (in the same room) and log into the session with the notary at the same time, on the same device.

_For more details, please refer to Notarize’s [FAQ](https://www.notarize.com/faq)._

## What kind of documents are not eligible for online notarization?

- Self-proving Wills and codicils.
- Non-Self Proving Wills and codicils to be used in states other than Florida or Nevada.
- Testamentary Trusts and any amendments to Trusts, and inter vivos trusts to be used in states other than Florida or Nevada.
- I-9 Forms.
- Certified true copies of birth, marriage, or death certificates, or court-issued documents.
- Documents intended for use outside the United States.
- Documents in which the notary is named or has a beneficial interest.
- Documents containing pictures of children.
- Performing marriage ceremonies.

_For more details, please refer to Notarize’s [FAQ](https://www.notarize.com/faq)._


---

## API

# API

Send document IDs and signer details to the Notarize service to create a transaction and get the documents notarized online.

## POST /v2/notarize

This endpoint allows you to send the document IDs and signer’s data to the Notarize service. The Notarize service uses this information to create a transaction and proceed to getting the documents notarized.

**Host**: <span style="color:red">`https://api.signnow.com`</span>

**Authorization**: Bearer

**Content-type**: application/json

### Parameters

- **documents** <span style="color:gray">\[array of strings]</span> <span style="color:red">_required_</span>

Array of unique IDs of the documents selected for notarization.

- **signers** <span style="color:gray">\[array of objects]</span> <span style="color:red">_required_</span>

Array of signer objects with each signer’s first name, last name, and email address.

- in:signers\[]  **email** <span style="color:gray">string</span> <span style="color:red">_required_</span>

Signer’s email address.

- in:signers\[]  **first_name** <span style="color:gray">string</span> <span style="color:red">_required_</span>

Signer’s first name.

- in:signers\[]  **last_name** <span style="color:gray">string</span> <span style="color:red">_required_</span>

Signer’s last name.

```
curl --location --request POST 'https://api.signnow.com/v2/notarize' \
--header 'Authorization: Bearer 5d2bd1d7d8c29846ed366af765bc4bf8c8673e6b6186a9947851a9e6523c5976' \
--header 'Content-Type: application/json' \
--data-raw '{
    "documents": [
        "d373ff0d6fea485192e3076b3dd52b1fb616c35f",
        "dd86e3763ca44cadbd876dd04f3c42bb926540d9"
    ],
    "signers": [
        {
            "email": "dada@gmail.com",
            "first_name": "Jim",
            "last_name": "Smith"
        },
        {
            "email": "jasmith@gmail.com",
            "first_name": "Jane",
            "last_name": "Smith"
        }
    ]
}'
```

<!--
type: tab
title: '200'
-->

```
200

{
  "data": {
    "signing_link": "https://app.notarize.com/activate-transaction?bundle_id=some-bundle-id&code=some-code&email=some@email.com"
  }
}
```

<!--
type: tab
title: '400'
-->

```
20002004

Invalid document id
```

<!--
type: tab
title: '400'
-->

```
20002001

Not readable
```

<!--
type: tab
title: '400'
-->

```
20002002

Document has invite
```

<!--
type: tab
title: '400'
-->

```
20002003

Transaction failed
```

<!--
type: tab
title: '400'
-->

```
20002006

invalid transaction status: [%s], transaction id: [%d]
```

<!-- type: tab-end -->


---

## API errors

# API errors

Find out what SignNow API error codes mean, including validation, authentication, rate limit, branding, and embedded invite errors.

## About API errors

When a request fails, the SignNow API returns an HTTP status code, most often `400`, `403`, `404`, or `429`. Most errors come with a JSON body that holds a numeric error code and a message:

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Upgrade your subscription plan to personalize invite subject and message."
    }
  ]
}
```

Some errors use a single `error` field with a `code` instead of the `errors` array. The most common is a wrong, expired, or missing access token, which returns `400` with `{"error": "invalid_token", "code": 1537}`. Rate limit errors return plain text instead of JSON; see [Rate limit errors (429)](#rate-limit-errors-429).

<!-- theme: warning -->

> **Note**: Numeric error codes are not unique identifiers of a specific problem. The same code (most commonly `65582`) accompanies many different validation errors across endpoints. Always identify the problem by the `message` text, not the code.

To review your failed API calls, go to [API Dashboard > Logs](https://app.signnow.com/webapp/api-dashboard/logs): every request is logged with its HTTP method, URL, and response status. Click a log entry for details. For more information, see [API Dashboard | SignNow](/docs/account#logs).

## Generic validation errors (code 65582)

`65582` is a general-purpose validation code. Common messages and how to resolve them:

| Message | What it means | What to do |
|---|---|---|
| `Upgrade your subscription plan to personalize invite subject and message.` | Your request includes a custom `subject` or `message` for an invite, but invite personalization requires a paid API plan, an API free trial, or a Site License. | Remove the `subject` and `message` fields from the request, or upgrade your plan. In document group freeform invites, this error has code `19055009`. |
| `Upgrade your subscription plan to customize SMS for authorization.` | Your request includes a custom 2FA SMS message (`authentication_sms_message`, or `sms_message` inside `authentication`), but customizing the authentication SMS requires a paid API plan, an API free trial, or a Site License. | Remove the custom authentication SMS message from the request, or upgrade your plan. |
| `Phone authentication can't be used with the current subscription.` | Your field invite or document group invite uses phone authentication (`authentication_type` `phone`), which is available on paid plans. The account is on a free trial or has no paid subscription. | Use `password` authentication, or upgrade your plan. Phone authentication is available for embedded invites on any plan. |
| `One document cannot have more 10 signers in free form invite` | On a free trial or without a paid subscription, a document can have up to 10 signers in freeform invites. | Send the document to fewer signers, or upgrade your plan to send to up to 200 signers. |
| `Subject is too long.` | On a free trial or without a paid subscription, the `subject` of a freeform invite can have up to 100 characters. In document group freeform invites, this error has code `19055007`. | Shorten the subject, or upgrade your plan. |
| `Message is too long.` | On a free trial or without a paid subscription, the `message` of a freeform invite can have up to 200 characters. In document group freeform invites, this error has code `19055008`. | Shorten the message, or upgrade your plan. |
| `Two invite_actions have the same document_id {document_id} and role {role}` | In a document group invite, each combination of document and role must be unique across `invite_actions`. | Remove the duplicate `invite_actions` entry or assign a different role. |
| `Document not found` | The ID in the request doesn't identify a document available to the account that made the request. On template endpoints the same message refers to the template ID. | Verify the ID and make sure the request is authorized with the owner's access token. |
| `User is not document owner` | The requested action can only be performed by the document owner. | Repeat the request with the document owner's access token. |
| `Role {role} on document {document_id} was not specified in any invite_actions. All roles must be used in all document groups` | A document group invite must cover every role on every document in the group. | Add the missing entries to `invite_actions`, or remove unused roles from the documents. |

<!-- theme: info -->

> **Note**: If sending an SMS invite fails, check whether your organization requires electronic consent: SMS invites can't be sent while this setting is on. For details, see [SMS invite](/docs/sms-invite).

## Subscription and API access errors

<!-- theme: warning -->

> **Note**: An API subscription is separate from your SignNow business plan: an active Business or Enterprise plan does not automatically include API access. API access is included with a [paid API plan](https://snseats.signnow.com/purchase/api/pricing), an [API free trial](https://snseats.signnow.com/purchase/api/pricing), or a [Site License](https://snseats.signnow.com/purchase/business_plans/pricing). On a Site License, make sure API users are added to the subscription plan, as described in the [Go-live checklist](/docs/go-live-checklist).

| Code | Message | What it means | What to do |
|---|---|---|---|
| `80001002` | `Your API subscription could not be found.` | The account has no API subscription. | Check [API Dashboard > Plan usage](/docs/account#plan-usage). If you believe your plan is active, contact API support at **api@signnow.com**. |
| `80001003` | `Your API subscription is inactive.` | The API subscription exists but is not active. | Same as above. |
| `80001004` | `You have reached the API call limit.` | The account has used all the API calls included in its plan, or in the development-mode allowance if it has no API subscription. | Check [API Dashboard > Plan usage](/docs/account#plan-usage), or upgrade your plan. |
| `80001005` | `Your API subscription has expired.` | The API subscription or API free trial reached its end date. The trial expires on its end date even if you haven't used up the included invites. | Renew your plan, or contact API support at **api@signnow.com**. |
| `80001006` | `You have reached the limit of event subscriptions.` | Accounts without an active API subscription (or a Site License) are limited to 10 active webhooks. | See [Webhooks troubleshooting](/docs/guides-webhooks#troubleshooting). |
| `25002354` | `Upgrade your subscription plan to enable custom branding.` | The request to [create a brand](/docs/general-branding/operations/post-brands) comes from an application in development mode, and the account has no API subscription. Returned with status `403`. | Upgrade to a paid API plan, start an API free trial, or use a Site License. |

## Branding errors

These errors are returned with status `400` by the email and CC email [branding endpoints](/docs/branding-email-resources) and by [Create brand from template file](/docs/general-branding/operations/post-v2-brands-upload-file) when the body or footer text breaks the formatting rules. For the rules, see [Format text with HTML](/docs/branding-email-resources#format-text-with-html).

| Code | Message | What it means | What to do |
|---|---|---|---|
| `25002384` | `The 'body_message' attribute contains HTML that is not allowed: {problem}.` | The body message has a tag outside the allowed list, a tag with an attribute, an unclosed or misnested tag, or an HTML comment. `{problem}` names it, for example `<div>`, `<p style>`, `unclosed <b>`, or `misplaced </b>`. | Remove the tag or attribute named in the message, or close and nest the tags correctly. |
| `25002383` | `The 'footer_message' attribute contains HTML that is not allowed: {problem}.` | Same as above, for the footer message. | Same as above. |
| `25002060` | `The 'body_message' attribute must not exceed 300 characters.` | The body message is longer than 300 characters. HTML tags count toward the limit. | Shorten the text or use fewer tags. |
| `25002061` | `The 'footer_message' attribute must not exceed 4096 characters.` | The footer message is longer than 4096 characters. HTML tags count toward the limit. | Shorten the text or use fewer tags. |

## Embedded invite errors

Common errors when creating an embedded invite:

| Code | Message | What it means | What to do |
|---|---|---|---|
| `19002019` | `Role {role_id} was not specified in any invite. All roles must be used.` | The embedded invite must cover every role defined on the document. | Include an invite for each role in the request, or remove unused roles from the document or template. |
| `19002018` | `Role {role_id} does not exist in the document.` | The `role_id` in the request doesn't match any role on the document. | Get the current role IDs from the [document details](/docs/document/operations/get-document) and use them in the request. |
| `19002005` | `Emails in embedded invites must be unique.` | The same email address is used for more than one signer in the invite. | Use a unique email address for each signer. |
| `19001003` | `Cannot send invites for templates.` | The ID in the request belongs to a template. A template is a master for generating documents and can't be signed. | Create a document or document group from the template, then create the embedded invite for that copy. See [Reuse the same documents for many signers](/docs/guides-embedded-signing#reuse-the-same-documents-for-many-signers). |
| `19002001` | `Document not found` | The ID doesn't identify a document available to the account that made the request. | Use the document IDs returned when you created the document or document group, and authorize the request with the document owner's access token. |
| `19004014` | `Upgrade your subscription plan to customize the invite subject and message.` | A document embedded invite with `delivery_type` `email` includes a custom `subject` or `message`, which requires a paid API plan, an API free trial, or a Site License. | Remove `subject` and `message` from the invite, or upgrade your plan. |
| `19022012` | `Upgrade your subscription plan to personalize invite subject and message.` | The same as `19004014`, for a document group embedded invite. | Same as above. |
| `19004013` | `Upgrade your subscription plan to customize SMS for authorization.` | A document embedded invite includes a custom authentication `sms_message`, which requires a paid API plan, an API free trial, or a Site License. | Remove `sms_message` from `authentication`, or upgrade your plan. The signer then receives the default SMS. |
| `19022011` | `Upgrade your subscription plan to customize SMS for authorization.` | The same as `19004013`, for a document group embedded invite. | Same as above. |

For signing link and session issues, see [Embedded signing troubleshooting](/docs/guides-embedded-signing#troubleshooting).

## Authentication errors (401)

For `401` errors (expired, revoked, or malformed tokens and API keys), see [Common 401 errors and solutions](/docs/authentication#common-401-errors-and-solutions) in the Authentication guide.

If a `POST /oauth2/token` request with the password grant returns `Access denied` (code `11005001`), the user in the request is not the owner of the API application. The password grant works only for the application owner, even if the user's credentials are valid for the SignNow web application. Authenticate other users with the [authorization code grant](/docs/authentication#authorization-code-grant).

## Rate limit errors (429)

When you exceed the allowed number of API requests per hour, the API responds with `429` and a plain-text body: `You exceeded the rate limit of {limit} API requests per hour.` Every API response includes `X-RateLimit-*` headers, so you can track the remaining requests before you reach the limit. Add exponential backoff to your integration, and see [API rate limits](/docs/account#api-rate-limits) for the defaults and how to request a higher limit.

## Internal API Error

The message `internal api error` usually indicates a malformed request (most often a missing required field) rather than a SignNow outage. Compare your request against the endpoint's reference page, including required fields and their formats. If the error persists with a valid request, contact API support at **api@signnow.com** and include the full request and response.


---

## API Dashboard

# SignNow API dashboard: monitor and manage your integrations

Create API applications and keys, read request logs, manage webhooks, and track invite usage.

After registering for a [free development account](https://www.signnow.com/api) and verifying your email address, your SignNow account will be ready.

To access the API dashboard from your SignNow account, click the **API** icon (`</>`) in the top-right corner.

![API icon in the top-right corner of the SignNow account header](/reference-assets/images/API%20dashboard/new_onboarding/api-dashboard-access-header-icon.png)

The API dashboard provides a centralized hub for developers to manage integrations. Key features include:

✅ [**Overview**](/docs/account#overview): Send a test signature invite and copy ready-made code samples.

✅ [**Apps and Keys**](#apps-and-keys): Create and manage your API applications and keys.

✅ [**Logs**](#logs): Monitor API request logs for troubleshooting.

✅ [**Webhooks**](#webhooks): View, create, and manage webhook subscriptions and events. 

✅ [**Plan Usage**](#plan-usage): Track your API usage and signature invite limits.

✅ [**Email Notifications**](#api-email-notifications): Configure API-related email notifications.

✅ **Developer Tools**: shortcuts to the developer resources — the **Quickstart Guide**, which walks you through sending your first document for signature in three steps, and the **API Helper MCP**, an MCP server that lets an AI coding assistant look up the SignNow API reference while you build. Plus the API Reference, Postman collections, GitHub, sample apps, and SDKs.

## Overview

**Overview** is the landing page after you sign up, where you can explore the SignNow API at a glance. Your first application and API key are created for you, so you can send a signature invite before writing any code.

- **Test Your API Key** — click **Send Test Invite** and SignNow creates a document and emails you an invite to sign it. About a minute end to end. **Learn more about how invites work** opens the **Quickstart Guide**.
- **Code sample** — the same request in your language. Pick one from the selector and copy it.
- **Try Sample Apps** — working proofs of concept to start from. **See All Apps** lists them all.

![Overview page of the API dashboard with the Test Your API Key and Sample Apps sections](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_overview_upd.png)

## Apps and Keys

**Apps and Keys** lists your applications. Your first application is created for you in **Development mode**.

- **Mode** — **Development** or **Live**. See [the comparison below](#create-an-application).
- **Status** — whether the application is active. **Deactivate** switches it off; a deactivated application stops serving API requests.
- **API Keys** — how many keys the application currently has.
- **Owner** — the account the application belongs to. On a Site License or a multi-user account, filter by **All Owners** to see a specific teammate's applications.

Search by application name, or filter by mode and owner. **Go Live** switches a Development application to Live mode. **More (...)** opens the rest of the actions for an application: **Details**, **Go Live**, **Deactivate**, **Rename**, and **Delete**.

![Apps and Keys page with the application list and an application's menu open](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_add_app_upd.png)

### Create an application

Click **Add Application**. Without a free trial or active subscription, the application is created in **Development mode**. With either, you can choose **Development** or **Live mode**.

| | 🚧 App in Development mode | 🚀 App in Live mode |
|---|---|---|
| **Purpose** | Test your application and the SignNow API for free. You can seamlessly switch to **Live mode** when ready. | Run your application in production with legally binding invites and branding. |
| **Availability** | For all accounts | Requires an API free trial, an active API subscription, or a Site License |
| **Signed PDFs** | Include watermarks and are not legally binding | Legally binding, customizable with your company branding |
| **API requests** | Up to 500 per hour | Up to 1,000 per hour by default (see [API rate limits](#api-rate-limits)) |
| **Signature invites** | Up to 500 without an active plan or trial. With an active plan or trial, invites sent in Development mode don't count toward your plan limit. | According to your plan |
| **Webhooks** | Cannot be created without an active plan or trial | Real-time notifications via webhook subscriptions |
| **Email notifications** | Cannot be activated without an active plan or trial | Available |

Before switching from **Development** to **Live mode**, you don't need to get new tokens or keys, transfer settings, create a new app, etc. All your application data will be automatically transferred.

> [!WARNING]
> Once an application is switched to **Live mode**, it cannot be reverted to **Development mode**.

### Application details page

Click an application to open its details page, which shows the owner, creation date, mode, and status. Rename it with the pencil icon, switch it to Live with **Go Live**, or use **More (...)** to deactivate or delete it.

> [!WARNING]
> If you delete your app, the integration with this app will be permanently stopped.

Credentials sit on two tabs: **API Keys** and **OAuth 2.0**. To send API requests, authorize your application with one of them — an API key passed in the request headers, or an access token obtained through the OAuth 2.0 flow. A refresh token gets you a new access token without repeating that flow. For the full flows, see [Authentication](/docs/authentication).

#### API keys

An API key is generated automatically when the application is created. Click the eye icon to reveal it, the copy icon to copy it, and use it in the `Authorization` header after **Bearer**:

```json
--header 'Authorization: Bearer {{API_key}}
```

**Create New Key** adds another. You can create an unlimited number of keys and use any of them for any API request; the trash icon deletes one.

> [!WARNING]
> You can generate an API key only for an active application. Deleting a key immediately stops any application using it from working.

![API keys tab of an application](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_api_keys_upd.png)

Learn more about [API keys](/docs/authentication#generate-an-api-key).

#### OAuth 2.0

The **OAuth 2.0** tab holds four values, each with a copy icon:

- **Basic Authorization Token** — use it to [generate an access token](/docs/oauth2/operations/post-oauth2-token).
- **Application ID** — identifies the application.
- **Client ID** and **Secret Key** — your application's OAuth 2.0 credentials.

> [!WARNING]
> Never share your access token publicly. Anyone who has it can access your account.

![OAuth 2.0 tab of an application](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_oauth_upd.png)

Learn more about an [access token](/docs/authentication#generate-access-token-bearer-token).

## Logs

**Logs** lists every API call your applications make, with the application name, date, method, URL, and response status. **Refresh** reloads the most recent calls, and clicking a log entry opens its details page.

**Add filters** opens the **Filters** panel, where you can narrow the list by application, owner, date range, method, URL, and status. Each section shows how many values you have selected. Click **Apply** to filter the list.

To get automated error reports in your inbox, click **Go to Email Notifications** on the **Receive Error Reports via Email** banner. See [API email notifications](#api-email-notifications).

![Logs page of the API dashboard with the Filters panel open](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_logs_upd.png)

## Webhooks

> [!NOTE]
> An API free trial, an active API subscription, or a Site License is required to create webhook subscriptions.

**Webhooks** has two tabs: **Subscriptions**, your event subscriptions, and **Events History**, the delivery log for all of them. **How it works?** opens the [webhooks guide](/docs/guides-webhooks).

### Subscriptions

Each subscription shows its application, event name, status, creation date, and owner, plus:

- **Entity ID** — the user, document, or document group the subscription watches.
- **Callback URL** — where SignNow sends the payload when the event fires.
- **Events count** — how many events have fired for this subscription so far.

Search by entity ID or callback URL, and use **Add filters** to narrow by application, event, date, and status. Events are grouped there by entity type — **User**, **Document**, and **Document Group** — so you can expand just the one you need. Click a column heading to sort by it and again to reverse the order; the default is newest first.

Click a subscription, or **More (...)** > **Open Event History**, to open its own delivery log.

> [!WARNING]
> You can view event subscriptions created with both Webhooks 1.0 and Webhooks 2.0. However, Webhooks 1.0 is deprecated and no longer supported.

![Webhooks page Subscriptions tab with a subscription's menu open](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_subscriptions_upd.png)

#### Webhook ownership on a Site License

Every user on a Site License subscription can create webhooks and manage their own: activate, deactivate, unsubscribe, and resend events.

The subscription owner sees all webhooks created under the subscription — the **Owner** column on both tabs shows each webhook's owner. Webhooks can only be managed by the user who created them; for webhooks owned by someone else the management actions are unavailable: *Only the event subscription owner can edit this webhook*.

### Events history

**Events History** logs every delivery attempt across all your subscriptions, with the application, event name, entity ID, response status code, and start time.

Search by entity, initiator, or callback URL. The **initiator ID** is the user who triggered the webhook — for `user.document.update`, the user who changed the document. **Add filters** narrows by application, event, entity type, response status code, and start time. Applied filters appear as chips above the list, where **Reset All Filters** clears them and **Edit Filter** changes them.

![Webhooks page Events History tab with the Filters panel open](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_event_history_upd.png)

Opening a single subscription shows its configuration above its own delivery log — event, request method, entity type, callback URL, status, and owner, with **Show More** revealing retries number, delay, additional payload data, and the HMAC signature.

![Events History for a single subscription with its configuration and delivery log](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_filter_single_event_upd.png)

#### Event details

Click an event to open **Event details**: response status code, duration, request start and end time, and the full **Request headers** and **Request content**, each with **Copy Code**.

![Event details with the response status, timing, request headers and request body](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_event_details_upd.png)

### Create a webhook subscription

To create a webhook event subscription, you need a publicly available callback URL. This is the URL where SignNow will send event data.

> [!TIP]
> For testing purposes, you can use a URL from an online webhook test tool to receive and check the payload.

1. Click **Create Webhook**.
2. Insert your callback URL and select **Validate link**. The host of the link must be available.
3. Select the entity type (user, document, or document group). You can choose only one entity for one subscription.
4. If the entity type is a document or document group, insert its ID. To find the ID, go to **Documents** > **More (...)** next to the document or document group, and select **Copy ID** from the dropdown.
5. Select the event or events that should trigger the webhook. See the [full list of events](/docs/guides-webhooks#entity-events).
6. (Optional) Under **Additional Settings**:
    - Enable **access tokens** or **custom metadata** in the payload. Metadata is linked via API and not visible to signers.
    - Set up an **HMAC signature** for payload verification. Enter your own authentication key or click **Generate New Key** to create one, then copy and save the key.
    > Generating a new key replaces any existing HMAC signature for this subscription.
    - **Retries Number**: how many times to retry on 5xx errors, from 1 to 10.
    - **Delay**: seconds between the event firing and the callback being sent, from 0 to 100.
7. Click **Create**.

![Create webhook subscription form with the callback URL, entity type, subscription events and additional settings](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_create_webhooks_upd.png)

### Retries

If your webhook event was unsuccessful, SignNow runs [automatic retries](/docs/guides-webhooks#retries).

After automatic retries are exhausted, the failed event stays in **Events History** and you can manually resend it — as long as the subscription is still active. Go to **Events History** > **More (...)** > **Resend**, or click **Resend** on the **Event details** page.

Resending triggers your webhook once, and a successful resend updates the event's status. If it fails again, **Event details** tells you why: **Response status code** is the HTTP error your callback URL returned, and **Response content** carries the error `code` and `message`. Fix the problem on your side before resending.

> [!NOTE]
> If you are a Site License owner, you cannot resend webhooks for users managed under your subscription.

### Deactivate and unsubscribe

To stop your application from listening for an event subscription, click **More (...)** next to it on either tab and select **Deactivate Event** to pause it without deleting, or **Unsubscribe** to remove it permanently.

Learn more about [webhooks](/docs/guides-webhooks).

## Plan usage

**Plan Usage** shows your API plan statistics for applications in **Development** and **Live mode**. **Total Signature Invites Sent** is how many invites your plan allows, how many you have sent, and how many remain until the plan expires. Your plan name sits alongside it.

> [!NOTE]
> For users without a free trial or active subscription, only **Development mode** statistics are shown.

> [!NOTE]
> If you have a free trial or active subscription, signature invites sent in **Development mode** won’t count toward your limit.
>
> If you don’t have a free trial or active subscription, you can send up to 500 signature invites in **Development mode**.

Different **request types** count towards your signature invites total:

| Request Type | Description | How We Charge |
|--------------|-------------|---------------|
|  [Invite to Sign](/docs/document-field-invite/operations/post-document-doc-id-invite)      | An invite to sign a document is sent via email. The document has fields that need to be completed. The invite is role-based: you can set up a multi-step process with different people processing a document at different steps. |  Charging applies per invite sent. If multiple signers are included in one invite, it counts as a single invite. |
| [Signing Link](/docs/signing-link/operations/create-signing-link)       | A link to the document that requires a signature is generated. | Charging applies when the last signer completes the signing process (if there is more than one signer). |
| [Freeform Invite](/docs/doc-freeform-invite/operations/post-freeform-document-id-invite)       | An email invitation to sign a document/document group without predefined fields. Signers can place their signature anywhere in the document. | **For a document**: You can add one signer per invite. Charging applies per invite sent. If you send a freeform invite to multiple signers, each invite is charged separately.<br>**For a document group**: You can add multiple signers in a single invite. Charging applies per invite sent. |
|   [Bulk Invite](/docs/template/operations/bulk-invite)     | Invites to sign a document are sent to multiple signers simultaneously. Each recipient will receive their own copy of the document to fill out and sign. Documents are generated from a template. | Charging applies per invite sent (for each record in the CSV file, which contains signers' roles, emails, and document names). |
|   [Embedded Invite](/docs/document-embedded-signing/operations/create-embedded-signing-invite)     | A link to sign a document is generated and you can embed it into your website. | Charging applies per invite sent (via a link or email), even if multiple signers are included in one invite. |
|   [Document Group Invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group)     | An invite to sign a document group is sent via email. Documents have fields that need to be completed. The invite is role-based: you can set up a multi-step process with different people processing documents at different steps. | Charging applies per invite sent. If multiple signers are added to a document group invite, it counts as a single invite. |
|   [Document Group Signing Link](/docs/signing-link/operations/post-v2-document-group-document-group-id-signing-links)     | A link to the document group that requires a signature is generated. | Charging applies when the first signer completes the signing process (if there is more than one signer). |
|   [Document Group Freeform Invite](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites)     | An email invitation to sign a document group without predefined fields. Signers can place their signature anywhere in the documents. | Charging applies per invite sent. If you send a freeform invite to multiple signers, each invite is charged separately. |
|   [Embedded Group Invite](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group)    | A link to sign a document group is generated and you can embed it into your website.| Charging applies per invite sent (via a link or email), even if multiple signers are included in one invite. |

Two tabs show your usage. **Invite Logs** lists every signature invite sent during the billing period, for the last 30 days. **Stats per month** groups the invite counts by month and type.

Each log shows the request type, where it came from, a description, the date, and the app mode. **Add filters** narrows the list by date, request type, app mode (**Live** or **Development**), and **Request From** — **API**, **Web**, or **Integration**. For **Web** you can select up to 50 seats to filter by.

![Plan usage page with total signature invites, the current plan, the Generate and Download Report button and request logs](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_plan_usage_upd.png)

Click a log entry to open its details: the method, URL, status, owner, and the **Request Query Parameters**, **Request Body**, and **Response Body**, each with **Copy Code**.

> [!NOTE]
> Log details are available for invites sent via the API. Invites sent from the web application or an integration are listed without details.

![Invite log details for a POST /document/{id}/invite request with the request body and response](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_invite_log_details_upd.png)

Click **Generate and Download Report** to build an XLSX report of your signature invites for a date range and app.

#### Manage subscription plan

**Invoices** and **Manage subscription**, next to your plan name, both open the **Manage subscription** page.

**Subscription** shows your current plan with its status, billing frequency, start and expiration dates, and seats usage. **Past subscriptions** lists your earlier plans. **User history** and **Billing** are in the left panel.

The subscription owner can also add seats and transfer or cancel the subscription.

![Manage subscription page with the current plan and seat usage](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_plan_usage_subscription_upd.png)

## Subscription plans

SignNow API offers flexible subscription plans tailored to your business needs. Choose a plan based on the estimated annual number of signature invites sent to recipients.

<!-- theme: warning -->

> [!NOTE]
> SignNow API plans are separate from SignNow business plans: an active Business or Enterprise plan for the web application does not include API access. API access is included with a [paid API plan](https://snseats.signnow.com/purchase/api/pricing), an [API free trial](https://snseats.signnow.com/purchase/api/pricing), or a [Site License](https://snseats.signnow.com/purchase/business_plans/pricing), which combines the web application and the API. On a Site License, make sure all API users are added to the subscription plan, as described in the [Go-live checklist](/docs/go-live-checklist).

When you register for a free development account, you can create applications and test the SignNow API features as long as you need. 

> [!WARNING]
> The signatures you collect in **Development mode** are not legally binding.

When you are ready to go live with your application, start a **free trial** — it includes all paid features, 250 signature invites risk-free ($500 value), and automatic volume discounts as your plan grows.

> [!NOTE]
> Unused invites expire after one year. You won’t be charged if you don’t use them.

Paid plans are priced by the number of signature invites you send per year. For the current plans and their limits, see [API pricing](https://snseats.signnow.com/purchase/api/pricing). If none of them fit, contact sales.

## API email notifications

> [!NOTE]
> An API free trial, an active API subscription, or a Site License is required to use email notifications.

**Email Notifications** sends alerts about your API usage and performance to your **Account Email** and to any **Additional Emails** you add. Each address has its own preferences and its own toggle, so you can pause an address without removing it.

For an existing address, **More (...)** offers **Change Email** and **Remove**.

![API email notifications page with the More menu for an address](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_email_notifications_upd.png)

Click **Add Emails** to add recipients — one address or several at once, up to 15 — and set their preferences in the same dialog.

![Add Emails dialog for API email notifications](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_add_emails_upd.png)

### Manage notifications

**Manage Notifications** opens the preferences for one address, grouped into **Usage and Subscription**, **Webhooks**, and **API Reports**. Tick a group to enable all of its notifications, or pick individual ones.

**Usage and Subscription**

- Your subscription expires in a set number of days — the default is 7.
- You have used a set percentage of your paid signatures — the default is 80%.
- Your subscription has expired.
- Your subscription was renewed or updated.
- Your subscription invite limit was exceeded.

**Webhooks**

- A webhook unsubscribed automatically after too many errors: 30 or more in the past hour.
- A webhook is about to unsubscribe: 10 or more errors in the past 10 minutes.

**API Reports**

- **Log error report** — scheduled reports of `4xx` and `5xx` errors. Choose the applications, the status codes, the time period, and the scheduled time.
- **Webhook error report** — a report when errors pass a threshold. **Number of Errors** offers more than `5`, `10`, `25`, or `50`, and **Error Frequency** covers `1`, `2`, `3`, `4`, `6`, `12`, or `24` hours. The report uses events from all your active webhook subscriptions by default; **Select Callback URL** narrows it to one subscription.

![Notification settings for webhook error reports](/reference-assets/images/API%20dashboard/new_onboarding/dashboard_manage_notifications_upd.png)

Each email includes an unsubscribe link. If a recipient unsubscribes, the API dashboard settings update automatically.

## **API rate limits**

SignNow has established API call efficiency guidelines for the reliability and stability of both **Development** and **Live** modes. To ensure the operational efficiency of the system, each application has an API rate limitation set on the number of calls per hour to maintain an effective load balance.

Every new application has a default limit of 1,000 requests per hour (500 requests in **Development mode**). Each API request receives the following parameters in the response header:

```
X-RateLimit-Limit => count of number of allowed requests per this hour
X-RateLimit-Remaining => count of number of remaining requests per this hour
X-RateLimit-Reset => timestamp, when the remaining number will be reset
```
If the limit of requests per hour is exceeded, the API returns HTTP status `429` with this plain-text body:

```text
You exceeded the rate limit of {limit} API requests per hour.
```

If your application consistently exceeds 1,000 calls per hour, you can request an increased limit by contacting [SignNow support](https://support.signnow.com) for assistance.  


---

## SDKs and Tools

# SDK for SignNow REST API

Access the official SDK for the SignNow REST API to streamline your development process. This toolkit provides robust libraries and sample code to help you integrate advanced e-signature functionalities into your software with ease.

If you have ideas on library improvements, contribute to these open-source projects. We appreciate your interest in SignNow API.

## Video tutorial

<sub><sup>Note: the design of the Sandbox in the video is outdated but the flow is correct so go ahead and follow the steps.</sup></sub>

[Postman Collection Video](https://www.youtube.com/watch?v=izjdRNmKLJQ&list=PLMqWcfIgm2ls9pJWJNvE8skkvRv_Tvi0e&index=6)

## List of official SDKs and tools

- [SignNow PHP SDK](https://github.com/signnow/SignNowPHPSDK)
- [SignNow .Net SDK](https://github.com/signnow/SignNow.NET)
- [SignNow Java SDK](https://github.com/signnow/SNJavaSDK)
- [SignNow Python SDK](https://github.com/signnow/SNPythonSDK)
- [SignNow Node.js SDK](https://github.com/signnow/SignNowNodeSDK)
- [SignNow Postman Collection](https://www.postman.com/signnow-api/signnow-public-collection/overview)

---

## Sample Apps

# Sample apps

SignNow sample applications demonstrate key API functionality, including embedded signing, embedded sending, document pre-filling, downloading, and more. 

Choose an industry-specific sample app to test in the web interface, or use the PHP or Java GitHub repositories to build your own application. 

> To send documents and document groups for legally-binding signatures, you’ll need a SignNow [API subscription plan](https://snseats.signnow.com/purchase/api/pricing).

[Sales sample apps](/docs/sales-sample-apps)

[Consumer services sample apps](/docs/consumer-services-sample-apps)

[Insurance sample apps](/docs/insurance-sample-apps)

[Finance sample apps](/docs/finance-sample-apps)

[Healthcare sample apps](/docs/healthcare-sample-apps)

[Real estate sample apps](/docs/real-estate-sample-apps)

---

Discover [more sample apps](https://www.signnow.com/developers/sample-applications).



---

## Sales sample apps

# Sales sample apps

Try a sales proposal sample app that sends a document in embedded sending mode, tracks its status, and downloads the signed copy.

## Sales proposal sample app

This sample app shows how to prepare and send a document for signature using the SignNow embedded sending mode. After sending the document, you can monitor the signing status and download the signed document.

**The sample app uses the following features:**

1. [Generate a link for the embedded sending](/docs/embedded-sending/operations/post-v2-document-groups-document-group-id-embedded-sending).

2. [Get the document status](/docs/document/operations/get-document).

3. [Download the signed document](/docs/document/operations/download-document).

[Try the sample app](https://sample-app.signnow.com/EmbeddedSenderWithoutFormFile)

[Access the PHP SDK repository](https://github.com/signnow/sample-app/tree/main/samples/EmbeddedSenderWithoutFormFile)

[Access the Java SDK repository](https://github.com/signnow/java-sample-app/tree/main/src/main/resources/static/samples/EmbeddedSenderWithoutFormFile)

---

Discover [more sample apps](https://www.signnow.com/developers/sample-applications).

---

## Consumer services sample apps

# Consumer services sample apps

Try consent form and veterinary intake sample apps built on SignNow embedded signing, with PHP and Java SDK code.

## Consent form sample app

This sample app demonstrates the SignNow embedded signing experience for completing a consent form. After signing, the completed form can be downloaded as a PDF.

**The sample app uses the following features:**

1. [Create an embedded invite](/docs/document-embedded-signing/operations/create-embedded-signing-invite).

2. [Generate a link for the embedded invite](/docs/document-embedded-signing/operations/generate-link-for-embedded-invite).

3. [Download the signed document](/docs/document/operations/download-document).

[Try the sample app](https://sample-app.signnow.com/EmbeddedSignerConsentForm)

[Access the PHP SDK repository](https://github.com/signnow/sample-app/tree/main/samples/EmbeddedSignerConsentForm)

[Access the Java SDK repository](https://github.com/signnow/java-sample-app/tree/main/src/main/resources/static/samples/EmbeddedSignerConsentForm)

---

## Veterinary intake form sample app

The sample app demonstrates the embedded signing process built using the SignNow API. As a signer, you need to fill out the required and optional fields and download the completed document from the completion page.

**The sample app uses the following features:**

1. [Create an embedded invite](/docs/document-embedded-signing/operations/create-embedded-signing-invite).

2. [Generate a link for the embedded invite](/docs/document-embedded-signing/operations/generate-link-for-embedded-invite).

3. [Download the signed document](/docs/document/operations/download-document).

[Try the sample app](https://sample-app.signnow.com/EmbeddedSignerConsumerServices)

[Access the PHP SDK repository](https://github.com/signnow/sample-app/tree/main/samples/EmbeddedSignerConsumerServices)

[Access the Java SDK repository](https://github.com/signnow/java-sample-app/tree/main/src/main/resources/static/samples/EmbeddedSignerConsumerServices)

---

Discover [more sample apps](https://www.signnow.com/developers/sample-applications).

---

## Insurance sample apps

# Insurance sample apps

Try an insurance claim sample app where a signer pre-fills the claim in a web form, signs it, and downloads the result.

## Insurance claim form sample app

This sample app demonstrates how to build advanced embedded eSignature workflows using the SignNow API. A signer completes a web form to pre-fill the insurance claim, then downloads the completed form.

**The sample app uses the following features:**

1. [Pre-fill text fields](/docs/document/operations/put-v2-documents-document-id-prefill-texts).

2. [Create an embedded invite](/docs/document-embedded-signing/operations/create-embedded-signing-invite).

2. [Generate a link for the embedded invite](/docs/document-embedded-signing/operations/generate-link-for-embedded-invite).

3. [Download the signed document](/docs/document/operations/download-document).

[Try the sample app](https://sample-app.signnow.com/EmbeddedSignerWithFormInsurance)

[Access the PHP SDK repository](https://github.com/signnow/sample-app/tree/main/samples/EmbeddedSignerWithFormInsurance)

[Access the Java SDK repository](https://github.com/signnow/java-sample-app/tree/main/src/main/resources/static/samples/EmbeddedSignerWithFormInsurance)

---

Discover [more sample apps](https://www.signnow.com/developers/sample-applications).


---

## Finance sample apps

# Finance sample apps

Try a credit loan agreement sample app that pre-fills fields, sends in embedded sending mode, and tracks signing status.

## Credit loan agreement sample app

This sample app demonstrates how to use the SignNow API to pre-fill a document's text fields, customize the documents in the embedded sending mode, track the signing status, and download the signed document.

**The sample app uses the following features:**

1. [Pre-fill text fields](/docs/document/operations/put-v2-documents-document-id-prefill-texts).

2. [Generate a link for embedded sending](/docs/embedded-sending/operations/post-v2-document-groups-document-group-id-embedded-sending).

3. [Get the document status](/docs/document/operations/get-document).

4. [Download the signed document](/docs/document/operations/download-document).

[Try the sample app](https://sample-app.signnow.com/EmbeddedSenderWithFormCreditLoanAgreement)

[Access the PHP SDK repository](https://github.com/signnow/sample-app/tree/main/samples/EmbeddedSenderWithFormCreditLoanAgreement)

[Access the Java SDK repository](https://github.com/signnow/java-sample-app/tree/main/src/main/resources/static/samples/EmbeddedSenderWithFormCreditLoanAgreement)

---

Discover [more sample apps](https://www.signnow.com/developers/sample-applications).

---

## Healthcare sample apps

# Healthcare sample apps

Try a patient intake sample app where a patient fills out and signs the form in embedded signing, then downloads it.

## Patient intake form sample app

This sample app demonstrates the embedded patient intake workflow, where a patient fills out and signs the intake form. After completing the form, it can be downloaded.

**The sample app uses the following features:**

1. [Create an embedded invite](/docs/document-embedded-signing/operations/create-embedded-signing-invite).

2. [Generate a link for the embedded invite](/docs/document-embedded-signing/operations/generate-link-for-embedded-invite).

3. [Download the signed document](/docs/document/operations/download-document).

[Try the sample app](https://sample-app.signnow.com/EmbeddedSignerPatientIntakeForm)

[Access the PHP SDK repository](https://github.com/signnow/sample-app/tree/main/samples/EmbeddedSignerPatientIntakeForm)

[Access the Java SDK repository](https://github.com/signnow/java-sample-app/tree/main/src/main/resources/static/samples/EmbeddedSignerPatientIntakeForm)

---

Discover [more sample apps](https://www.signnow.com/developers/sample-applications).

---

## Real estate sample apps

# Real estate sample apps

Try a purchase agreement sample app that pre-fills and sends the document to the agent, buyer, and seller for signing.

## Real estate purchase agreement sample app

This sample app shows how to pre-fill and send a purchase agreement to the agent, buyer, and seller using the SignNow API. Complete the agreement in multiple roles and download the fully executed document.

**The sample app uses the following features:**

1. [Pre-fill text fields](/docs/document/operations/put-v2-documents-document-id-prefill-texts).

2. [Create an embedded invite](/docs/document-embedded-signing/operations/create-embedded-signing-invite).

3. [Generate a link for the embedded invite](/docs/document-embedded-signing/operations/generate-link-for-embedded-invite).

4. [Download the signed document](/docs/document/operations/download-document).


[Try the sample app](https://sample-app.signnow.com/EVDemoSendingAnd3EmbeddedSigners)

[Access the PHP SDK repository](https://github.com/signnow/sample-app/tree/main/samples/EVDemoSendingAnd3EmbeddedSigners)

---

Discover [more sample apps](https://www.signnow.com/developers/sample-applications).

---

## Full reference

# SignNow Full REST API Reference: Detailed Documentation for Developers

Access the SignNow REST API reference for a thorough overview of endpoints, parameters, and examples. Ideal for developers needing detailed information to integrate and harness the power of e-signature technology in their applications.

To explore the SignNow feature for free, [create](https://snseats.signnow.com/purchase/business_free_trial/loggedout?type=api) a Free Developer Account.

**The full reference of SignNow requests**

- **User**
    - [Create user](/docs/user/operations/post-user)
    - [Change user details](/docs/user/operations/update-user-info)
    - [Get user info](/docs/user/operations/get-user-info)
    - [Send verification email](/docs/user/operations/post-user-verifyemail)
    - [Reset password](/docs/user/operations/user-forgot-password)
- **OAuth2**
    - [Generate access token](/docs/oauth2/operations/post-oauth2-token)
    - [Verify access token](/docs/oauth2/operations/get-oauth2-token)
    - [Get authorization code via redirect](/docs/oauth2/operations/get-oauth2-userauth)
    - [Terminate access token](/docs/oauth2/operations/post-oauth2-terminate)
- **Invite to sign (field invite)**
    - Document
        - Manage invite actions
            - [Invite to sign](/docs/document-field-invite/operations/post-document-doc-id-invite)
            - [Invite to sign via SMS](/docs/document-field-invite/operations/post-document-document-id-for-sms-invite-send-invite-via-sms)
            - [Resend email invite](/docs/document-field-invite/operations/put-fieldinvite-field-request-unique-id-resend)
            - [Cancel invite](/docs/document-field-invite/operations/put-document-document-id-fieldinvitecancel)
            - [Decline to sign a field invite](/docs/document-field-invite/operations/post-v2-documents-document-id-field-invites-field-invite-id-full-decline)
            - [Get the declined invite](/docs/document-field-invite/operations/get-v2-documents-document-id-field-invites-field-invite-id-full-decline)
        - Replace signer
            - [Replace signer: Step 1 - Delete](/docs/document-field-invite/operations/delete-field-invite-field-invite-id)
            - [Replace signer: Step 2 - Replace](/docs/document-field-invite/operations/post-field-invite)
            - [Replace signer: Step 3 - Send](/docs/document-field-invite/operations/post-document-document-id-trigger-fieldinvite)
        - Welcome message
            - [Customize welcome message](/docs/document-field-invite/operations/post-v2-signing-session-settings)
            - [Get welcome message](/docs/document-field-invite/operations/get-v2-signing-session-settings)
            - [Reset welcome message to default](/docs/document-field-invite/operations/delete-v2-signing-session-settings)
    - Document group
        - Manage invite actions
            - [Invite to sign doc group](/docs/doc-group-field-invite/operations/invite-to-sign-document-group)
            - [Resend doc group invite](/docs/doc-group-field-invite/operations/resend-document-group-invite)
            - [Update doc group invite](/docs/doc-group-field-invite/operations/update-document-group-invite)
            - [Cancel doc group invite](/docs/doc-group-field-invite/operations/cancel-document-group-invite)
            - [Decline group invite](/docs/doc-group-field-invite/operations/post-v2-document-groups-document-group-id-invites-document-group-invite-id-full-decline)
            - [Email doc group copy](/docs/doc-group-field-invite/operations/post-v2-document-groups-id-send-email)
        - Invite information
            - [Get doc group invite](/docs/doc-group-field-invite/operations/get-document-group-invite)
            - [Get pending group invites](/docs/doc-group-field-invite/operations/get-pending-document-group-invites)
            - [Get emails of the invite step](/docs/doc-group-field-invite/operations/get-emails-invite-step)
        - Document group recipients
            - [Get doc group recipients](/docs/doc-group-field-invite/operations/get-v2-document-groups-document-group-id-recipients)
            - [Edit doc group recipients](/docs/doc-group-field-invite/operations/put-v2-document-groups-document-group-id-recipients)
- **Scheduled invites**
    - Document
        - [Create scheduled invite](/docs/scheduled-document-invite/operations/post-document-scheduled-invite)
        - [Update scheduled invite](/docs/scheduled-document-invite/operations/put-document-scheduled-invite)
        - [Cancel scheduled invite](/docs/scheduled-document-invite/operations/delete-document-scheduled-invite)
        - [Send scheduled invite](/docs/scheduled-document-invite/operations/post-document-scheduled-invite-send)
    - Document group
        - [Create scheduled invite](/docs/scheduled-doc-group-invite/operations/post-document-group-scheduled-invite)
        - [Update scheduled invite](/docs/scheduled-doc-group-invite/operations/put-document-group-scheduled-invite)
        - [Cancel scheduled invite](/docs/scheduled-doc-group-invite/operations/delete-document-group-scheduled-invite)
        - [Send scheduled invite](/docs/scheduled-doc-group-invite/operations/post-document-group-scheduled-invite-send)
- **Signing link**
    - [Get signing links](/docs/signing-link/operations/get-v2-application-signing-links)
    - Document
        - [Create signing link](/docs/signing-link/operations/create-signing-link)
        - [Activate/deactivate signing link](/docs/signing-link/operations/put-v2-application-signing-links-signing-link-short-url-id)
    - Document group
        - [Create/edit signing link for doc group](/docs/signing-link/operations/post-v2-document-group-document-group-id-signing-links)
- **FreeForm invite**
    - Document
        - [Create freeform invite](/docs/doc-freeform-invite/operations/post-freeform-document-id-invite)
        - [Get freeform invites](/docs/doc-freeform-invite/operations/get-v2-documents-document-id-free-form-invites)
        - [Cancel freeform invite](/docs/doc-freeform-invite/operations/put-invite-invite-id-cancel)
    - Document group
        - [Create freeform invite](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites)
        - [Get freeform invites](/docs/doc-group-freeform-invite/operations/get-v2-document-groups-document-group-id-free-form-invites-dg-freeform-invite-id-documents)
        - [Cancel invite for one signer](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites-dg-freeform-invite-id-users-user-id-cancel)
        - [Cancel invites for all signers](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites-dg-freeform-invite-id-cancel)
        - [Resend freeform invite](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-unique-id-free-form-invites-free-form-invite-unique-id-users-user-unique-id-resend)
- **Document**
    - [Upload document](/docs/document/operations/upload-document)
    - [Upload document with tags](/docs/document/operations/upload-document-with-text-tags)
    - [Upload document from URL](/docs/document/operations/post-v2-documents-url)
    - [Edit document](/docs/document/operations/edit-document)
    - [Get document](/docs/document/operations/get-document)
    - [Delete document](/docs/document/operations/delete-document)
    - [Prefill text fields](/docs/document/operations/put-v2-documents-document-id-prefill-texts)
    - [Merge documents](/docs/document/operations/document-merge)
    - [Get fields data from completed document](/docs/document/operations/get-v2-documents-document-unique-id-fields)
    - [Send fax](/docs/document/operations/post-v2-faxes-send)
    - Download
        - [Get document download link](/docs/document/operations/get-document-download-link)
        - [Download document](/docs/document/operations/download-document)
        - [Download document attachment](/docs/document/operations/download-document-attachment)
    - Metadata
        - [Get metadata of a document](/docs/document/operations/get-document-document-id-metadata)
        - [Add metadata to a document](/docs/document/operations/put-document-document-id-metadata)
    - Document history
        - [Get document history](/docs/document/operations/get-document-historyfull)
        - [Add custom history event](/docs/document/operations/add-document-custom-history-event)
    - Move document
        - [Move document](/docs/document/operations/move-document)
        - [Move documents in bulk](/docs/document/operations/put-folder-folder-unique-id-documents)
    - Sharing
        - [Get document users](/docs/document/operations/get-document-roles)
        - [Unshare document from all users](/docs/document/operations/unshare-document-all)
        - [Unshare document from user](/docs/document/operations/unshare-document-from-user)
        - [Share document](/docs/document/operations/share-document)
- **Document generation**
    - [Generate document from URL](/docs/document-generation/operations/post-v2-document-generations-url)
    - [Generate document from uploaded file](/docs/document-generation/operations/post-v2-document-generations-upload)
    - [Get document generation status](/docs/document-generation/operations/get-v2-document-generations-process-id-status)
- **Template**
    - [Create template](/docs/template/operations/create-template)
    - [Bulk invite](/docs/template/operations/bulk-invite)
    - [Duplicate a template](/docs/template/operations/post-v2-templates-template-id-copy)
    - [Import template from DocuSign](/docs/template/operations/post-import-document-templates)
    - [Get list of documents from template](/docs/template/operations/get-v2-templates-template-id-copies)
    - [Create document from template](/docs/template/operations/get-template-copy)
    - Share templates
        - [Share template](/docs/template/operations/post-v2-templates-template-id-roles)
        - [Update role for template](/docs/template/operations/put-v2-templates-template-id-roles-user-id)
        - [Get user role for template](/docs/template/operations/get-v2-templates-template-id-roles-user-id)
        - [Remove access to template](/docs/template/operations/delete-v2-templates-template-id-roles-user-id)
    - Template recipients
        - [Get template recipients](/docs/template/operations/get-template-routing-details)
        - [Edit template recipients](/docs/template/operations/edit-template-routing-details)
- **Document group**
    - [Create document group](/docs/document-group/operations/create-document-group)
    - [Delete document group](/docs/document-group/operations/delete-documentgroup)
    - [Rename document group](/docs/document-group/operations/put-document-group-v2)
    - [Edit document group](/docs/document-group/operations/patch-v2-document-groups-document-group-id)
    - [Create a copy of doc group](/docs/document-group/operations/post-v2-document-groups-document-group-id-copy)
    - [Download document group](/docs/document-group/operations/post-documentgroup-document-group-id-downloadall)
    - [Move document group](/docs/document-group/operations/post-v2-document-groups-document-group-id-move)
    - Get doc group info
        - [Get document group](/docs/document-group/operations/get-documentgroup)
        - [Get document group info (v.2)](/docs/document-group/operations/get-document-group-info-v2)
        - [Get document groups](/docs/document-group/operations/get-user-documentgroups)
        - [Get document group history](/docs/document-group/operations/get-documentgroup-document-group-id-historyfull)
    - Metadata
        - [Add metadata to doc group](/docs/document-group/operations/put-v2-document-groups-document-group-id-metadata)
        - [Get metadata of doc group](/docs/document-group/operations/get-v2-document-groups-document-group-id-metadata)
        - [Remove metadata from doc group](/docs/document-group/operations/delete-v2-document-groups-document-group-id-metadata)
    - Correction
        - [Initiate DG correction](/docs/document-group/operations/post-v2-document-groups-document-group-id-invite-document-group-invite-id-correction)
        - [Complete DG correction](/docs/document-group/operations/put-v2-document-groups-document-group-id-invite-document-group-invite-id-correction)
    - Sharing
        - [Share document group](/docs/document-group/operations/share-document-group)
        - [Get document group users](/docs/document-group/operations/get-document-group-roles)
        - [Unshare document group from all users](/docs/document-group/operations/unshare-document-group-all)
        - [Update document group role](/docs/document-group/operations/update-document-group-role)
        - [Unshare document group from user](/docs/document-group/operations/unshare-document-group-from-user)
- **Document group template**
    - [Create doc group template from doc group](/docs/document-group-template/operations/post-v2-document-groups-document-group-uid-document-group-template)
    - [Get doc group templates](/docs/document-group-template/operations/get-user-documentgroup-templates)
    - [Get doc group template info](/docs/document-group-template/operations/get-document-group-template-info)
    - [Copy doc group template](/docs/document-group-template/operations/post-v2-document-group-templates-doc-group-template-id-copy)
    - [Move doc group template](/docs/document-group-template/operations/patch-v2-document-group-templates-doc-group-template-id-move)
    - [Get doc groups created from template](/docs/document-group-template/operations/get-v2-document-group-templates-doc-group-template-id-copies)
    - [Get doc group template recipients](/docs/document-group-template/operations/get-v2-document-group-templates-doc-group-template-id-recipients)
    - [Edit doc group template recipients](/docs/document-group-template/operations/put-v2-document-group-templates-document-group-template-id-recipients)
    - [Create doc group from template](/docs/document-group-template/operations/post-v2-document-group-templates-unique-id-document-group)
    - [Create doc group template](/docs/document-group-template/operations/post-v2-document-group-templates)
    - [Add template to doc group template](/docs/document-group-template/operations/post-v2-document-group-templates-document-group-template-id-templates)
    - [Edit doc group template](/docs/document-group-template/operations/patch-v2-document-group-templates-doc-group-template-id)
    - Sharing
        - [Share document group template](/docs/document-group-template/operations/share-document-group-template)
        - [Get document group template roles](/docs/document-group-template/operations/list-document-group-template-roles)
        - [Unshare document group template from all users](/docs/document-group-template/operations/unshare-document-group-template-all)
        - [Update document group template role](/docs/document-group-template/operations/update-document-group-template-role)
        - [Unshare document group template from user](/docs/document-group-template/operations/unshare-document-group-template-user)
- **Search**
    - [Search for documents, templates, and document groups](/docs/search/operations/get-v2-search)
- **Webhooks 2.0**
    - Manage event subscriptions
        - [Get list of event subscriptions](/docs/manage-event-subscriptions/operations/get-v2-dashboard-event-subscriptions)
        - [Create event subscription](/docs/manage-event-subscriptions/operations/create-event-subscription-2)
        - [Deactivate event subscription](/docs/manage-event-subscriptions/operations/put-v2-event-subscriptions-subscription-id-deactivate)
        - [Activate event subscription](/docs/manage-event-subscriptions/operations/put-v2-event-subscriptions-subscription-id-activate)
        - [Get subscription info](/docs/manage-event-subscriptions/operations/get-v2-dashboard-event-subscriptions-subscription-id)
        - [Edit event subscription](/docs/manage-event-subscriptions/operations/put-v2-event-subscriptions-subscription-id)
        - [Delete event subscription](/docs/manage-event-subscriptions/operations/delete-v2-event-subscriptions-subscription-id)
    - Callbacks info
        - [Get list of callbacks](/docs/callbacks-info/operations/get-v2-event-subscriptions-callbacks)
        - [Get list of callbacks by event subscription](/docs/callbacks-info/operations/get-v2-dashboard-event-history)
        - [Get callback info by ID](/docs/callbacks-info/operations/get-v2-dashboard-event-subscriptions-subscription-id-callbacks)
        - [Resend callback](/docs/callbacks-info/operations/post-v2-event-subscriptions-subscription-id-callbacks-callback-id-resend)
    - Basic auth
        - [Create event subscription](/docs/basic-auth/operations/create-event-subscription)
        - [Get event subscriptions](/docs/basic-auth/operations/get-event-subscriptions)
        - [Delete event subscription (basic auth)](/docs/basic-auth/operations/delete-event-subscription)
        - [Edit event subscription (basic auth)](/docs/basic-auth/operations/update-event-subscription)
- **Embedded signing**
    - Document
        - [Create embedded invite](/docs/document-embedded-signing/operations/create-embedded-signing-invite)
        - [Delete embedded invites](/docs/document-embedded-signing/operations/delete-embedded-signing-invite)
        - [Generate embedded invite link](/docs/document-embedded-signing/operations/generate-link-for-embedded-invite)
    - Document group
        - [Create embedded invite](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group)
        - [Delete embedded invites](/docs/doc-group-embedded-signing/operations/delete-v2-document-groups-document-group-id-embedded-invites)
        - [Generate embedded invite link](/docs/doc-group-embedded-signing/operations/generate-link-for-embedded-invite-document-group)
- **Embedded sending**
    - [Create link for document](/docs/embedded-sending/operations/post-v2-documents-document-id-embedded-sending)
    - [Create link for doc group](/docs/embedded-sending/operations/post-v2-document-groups-document-group-id-embedded-sending)
- **Embedded view**
    - [Create document embedded view link](/docs/embedded-view/operations/embedded-view)
    - [Create document group embedded view link](/docs/embedded-view/operations/embedded-view-doc-group)
- **Embedded editor**
    - [Create link for doc group](/docs/embedded-editor/operations/post-v2-document-groups-document-group-id-embedded-editor)
    - [Create link for document](/docs/embedded-editor/operations/post-v2-documents-document-unique-id-embedded-editor)
- **Smart fields**
    - [Add smart fields to template](/docs/smart-fields/operations/add-smart-fields-to-template-integraion-objects)
    - [Delete smart fields from template](/docs/smart-fields/operations/delete-document-template-id-integration-objects)
    - [Get smart fields from template](/docs/smart-fields/operations/get-smart-fields-from-template-id-integration-objects)
    - [Add smart fields values to redirect URI](/docs/smart-fields/operations/post-link-smart-fields)
    - [Prefill smart fields](/docs/smart-fields/operations/prefill-smart-fields)
- **Branding**
    - General branding
        - Manage brands
            - [Get all brands](/docs/general-branding/operations/get-v2-brands)
            - [Change brand](/docs/general-branding/operations/put-v2-brands-brand-id)
            - [Get brand](/docs/general-branding/operations/get-v2-brands-brand-id)
            - [Delete brand](/docs/general-branding/operations/delete-v2-brands-brand-id)
            - [Get brand template file](/docs/general-branding/operations/get-v2-brands-template-file)
            - [Create brand from template file](/docs/general-branding/operations/post-v2-brands-upload-file)
            - [Create brand](/docs/general-branding/operations/post-brands)
        - General brand resource
            - [Create and edit general brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-general)
            - [Get general brand resource](/docs/general-branding/operations/get-v2-brands-brand-id-general)
            - [Delete general brand resource](/docs/general-branding/operations/delete-v2-brands-brand-id-resources-general)
        - Editor brand resource
            - [Create and edit editor brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-editor)
            - [Get editor brand resource](/docs/general-branding/operations/get-v2-brands-brand-id-editor)
            - [Delete editor brand resource](/docs/general-branding/operations/delete-v2-brands-brand-id-resources-editor)
        - Logo brand resource
            - [Create logo brand resource](/docs/general-branding/operations/post-v2-brands-brand-id-logo)
            - [Add and change logo from URL](/docs/general-branding/operations/put-v2-brands-brand-id-resources-logo)
            - [Get logo brand resource](/docs/general-branding/operations/get-v2-brands-brand-id-logo)
            - [Delete logo brand resource](/docs/general-branding/operations/delete-v2-brands-brand-id-resources-logo)
        - Send invite brand resource
            - [Create and edit send invite brand resource](/docs/general-branding/operations/put-v2-brands-brand-id-resources-send-invite)
            - [Get send invite brand resource](/docs/general-branding/operations/get-v2-brands-brand-id-resources-send-invite)
            - [Delete send invite brand resource](/docs/general-branding/operations/delete-v2-brands-brand-id-resources-send-invite)
        - Assign brand resource
            - [Assign brand to document](/docs/general-branding/operations/put-v2-documents-document-id-brand)
            - [Get brand of document](/docs/general-branding/operations/get-v2-documents-document-id-brand)
            - [Unassign brand from document](/docs/general-branding/operations/delete-v2-documents-document-id-brand)
            - [Assign brand to doc group](/docs/general-branding/operations/put-v2-document-groups-document-group-id-brand)
            - [Get brand of doc group](/docs/general-branding/operations/get-v2-document-groups-document-group-id-brand)
            - [Unassign brand from doc group](/docs/general-branding/operations/delete-v2-document-groups-document-group-id-brand)
            - [Assign brand to application](/docs/general-branding/operations/put-v2-applications-application-id-brand)
            - [Get brand of application](/docs/general-branding/operations/get-v2-applications-application-id-brand)
            - [Unassign brand from application](/docs/general-branding/operations/delete-v2-applications-application-id-brand)
    - General email branding
        - Email general brand resource
            - [Add and edit email general branding](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-general)
            - [Get email general resource](/docs/general-email-branding/operations/get-v2-brands-brand-id-resources-email-general)
            - [Delete email general resource](/docs/general-email-branding/operations/delete-v2-brands-brand-id-resources-email-general)
        - Email invite brand resource
            - [Add and edit branding for email invite](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-invite)
            - [Get email invite resource](/docs/general-email-branding/operations/get-v2-brands-brand-id-resources-email-invite)
            - [Delete email invite resource](/docs/general-email-branding/operations/delete-v2-brands-brand-id-resources-email-invite)
        - Email reassign brand resource
            - [Add and edit branding for reassign emails](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-invite-reassign)
            - [Get email reassign resource](/docs/general-email-branding/operations/get-v2-brands-brand-id-resources-email-invite-reassign)
            - [Delete email reassign resource](/docs/general-email-branding/operations/delete-v2-brands-brand-id-resources-email-invite-reassign)
        - Email canceled brand resource
            - [Add and edit branding for canceled invite emails](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-invite-canceled)
            - [Get email canceled resource](/docs/general-email-branding/operations/get-v2-brands-brand-id-resources-email-invite-canceled)
            - [Delete email canceled resource](/docs/general-email-branding/operations/delete-v2-brands-brand-id-resources-email-invite-canceled)
        - Email reminder brand resource
            - [Add and edit branding for reminder emails](/docs/general-email-branding/operations/put-v2-brands-brand-id-resources-email-invite-reminder)
            - [Get email reminder resource](/docs/general-email-branding/operations/get-v2-brands-brand-id-resources-email-reminder)
            - [Delete email reminder resource](/docs/general-email-branding/operations/delete-v2-brands-brand-id-resources-email-reminder)
        - Email completed brand resource
            - [Add and edit branding for completed emails](/docs/general-email-branding/operations/put-v2-brands-brand-id-resources-email-invite-completed)
            - [Get email completed resource](/docs/general-email-branding/operations/get-v2-brands-brand-id-resources-email-invite-completed)
            - [Delete email completed resource](/docs/general-email-branding/operations/delete-v2-brands-brand-id-resources-email-invite-completed)
        - Email logo brand resource
            - [Create email logo brand resource](/docs/general-email-branding/operations/post-v2-brands-brand-id-email-logo)
            - [Add and update email logo for brand from URL](/docs/general-email-branding/operations/put-v2-brands-brand-id-resources-email-logo)
            - [Get email logo brand resource](/docs/general-email-branding/operations/get-v2-brands-brand-id-email-logo)
            - [Delete email logo brand resource](/docs/general-email-branding/operations/delete-v2-brands-brand-id-resources-email-logo)
    - CC email branding
        - CC email for invite
            - [Brand invite CC email](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite)
            - [Get invite CC email branding](/docs/cc-email-branding/operations/get-v2-brands-brand-id-resources-email-cc-invite)
            - [Delete invite CC email branding](/docs/cc-email-branding/operations/delete-v2-brands-brand-id-resources-email-cc-invite)
        - CC email for reassign
            - [Brand reassign CC email](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-reassign)
            - [Get reassign CC email branding](/docs/cc-email-branding/operations/get-v2-brands-brand-id-resources-email-cc-invite-reassign)
            - [Delete reassign CC email branding](/docs/cc-email-branding/operations/delete-v2-brands-brand-id-resources-email-cc-invite-reassign)
        - CC email step completed
            - [Brand step completed CC email](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-step-completed)
            - [Get step completed CC email branding](/docs/cc-email-branding/operations/get-v2-brands-brand-id-resources-email-cc-invite-step-completed)
            - [Delete step completed CC email branding](/docs/cc-email-branding/operations/delete-v2-brands-brand-id-resources-email-cc-invite-step-completed)
        - CC email freeform signed
            - [Brand freeform signed CC email](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-signed)
            - [Get freeform signed CC email branding](/docs/cc-email-branding/operations/get-v2-brands-brand-id-resources-email-cc-invite-signed)
            - [Delete freeform signed CC email branding](/docs/cc-email-branding/operations/delete-v2-brands-brand-id-resources-email-cc-invite-signed)
        - CC email invite completed
            - [Brand invite completed CC email](/docs/cc-email-branding/operations/put-v2-brands-brand-id-resources-email-cc-invite-completed)
            - [Get invite completed CC email branding](/docs/cc-email-branding/operations/get-v2-brands-brand-id-resources-email-cc-invite-completed)
            - [Delete invite completed CC email branding](/docs/cc-email-branding/operations/delete-v2-brands-brand-id-resources-email-cc-invite-completed)
    - Organization branding
        - Manage organization brands
            - [Create organization brand](/docs/organization-branding/operations/post-v2-organizations-organization-id-brands)
            - [Get organization brands](/docs/organization-branding/operations/get-v2-organizations-organization-id-brands)
            - [Get an organization brand](/docs/organization-branding/operations/get-v2-organizations-organization-id-brands-brand-id)
            - [Update an organization brand](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id)
            - [Delete an organization brand](/docs/organization-branding/operations/delete-v2-organizations-organization-id-brands-brand-id)
            - [Get brand assigned to organization](/docs/organization-branding/operations/get-v2-organizations-org-id-brand)
            - [Assign brand to organization](/docs/organization-branding/operations/put-v2-organizations-org-id-brand)
            - [Unassign brand from organization](/docs/organization-branding/operations/delete-v2-organizations-org-id-brand)
        - Organization logo brand resource
            - [Create org logo brand resource](/docs/organization-branding/operations/post-v2-organizations-organization-id-brands-brand-id-resources-logo)
            - [Get org logo brand resource](/docs/organization-branding/operations/get-v2-organizations-organization-id-brands-brand-id-resources-logo)
            - [Delete org logo brand resource](/docs/organization-branding/operations/delete-v2-organizations-organization-id-brands-brand-id-resources-logo)
        - Organization general brand resource
            - [Create org general brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-general)
            - [Get org general brand resource](/docs/organization-branding/operations/get-v2-organizations-organization-id-brands-brand-id-resources-general)
            - [Delete org general brand resource](/docs/organization-branding/operations/delete-v2-organizations-organization-id-brands-brand-id-resources-general)
        - Organization editor brand resource
            - [Create org editor brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-editor)
            - [Get org editor brand resource](/docs/organization-branding/operations/get-v2-organizations-organization-id-brands-brand-id-resources-editor)
            - [Delete org editor brand resource](/docs/organization-branding/operations/delete-v2-organizations-organization-id-brands-brand-id-resources-editor)
- **Folder**
    - [Create folder](/docs/folder/operations/create-folder)
    - [Get all folders](/docs/folder/operations/get-all-folders)
    - [Rename folder](/docs/folder/operations/rename-folder)
    - [Delete folder](/docs/folder/operations/delete-folder)
    - [Get folder by id](/docs/folder/operations/get-folder-by-id)
    - [Get pinned templates](/docs/folder/operations/get-v2-folders-folder-id-document-templates-pinned)
    - [Empty trash bin folder](/docs/folder/operations/delete-v2-trash)
- **Team**
    - Manage team
        - [Create a team](/docs/manage-team/operations/create-team)
        - [Get team](/docs/manage-team/operations/get-team)
        - [Rename team](/docs/manage-team/operations/rename-team)
        - [Delete team](/docs/manage-team/operations/delete-team)
        - [Get user's teams](/docs/manage-team/operations/get-user-teams)
    - Team folders
        - [Enable Documents folder](/docs/team-folders/operations/enable-documents-folder)
        - [Disable Documents folder](/docs/team-folders/operations/delete-team-team-id-shared-document-folder)
    - Manage admins
        - [Grant admin permissions](/docs/manage-admins/operations/grant-admin-permissions)
        - [Change team primary admin](/docs/manage-admins/operations/change-team-primary-admin)
        - [Cancel admin permissions](/docs/manage-admins/operations/cancel-admin-permissions)
        - [Get team admins](/docs/manage-admins/operations/get-team-admins)
    - Manage users
        - [Get team members](/docs/manage-users/operations/get-api-v2-teams-team-id-users)
        - [Invite user to a team](/docs/manage-users/operations/invite-user-to-team)
        - [Accept or decline invitation to a team](/docs/manage-users/operations/accept-decline-invitation-to-team)
        - [Get team invite](/docs/manage-users/operations/get-team-invite)
        - [Update team invite status](/docs/manage-users/operations/patch-v2-teams-request-id-request)
        - [Delete user from team](/docs/manage-users/operations/delete-user-from-team)
- **Organization**
    - [Create organization](/docs/organization/operations/post-v2-organizations)
    - [Get admin's organizations](/docs/organization/operations/get-v2-organizations)
    - [Rename organization](/docs/organization/operations/put-v2-organizations-org-id)
    - [Delete organization](/docs/organization/operations/delete-v2-organizations-org-id)
    - [Get organization activity](/docs/organization/operations/get-v2-organizations-org-id-activity)
    - Manage admins
        - [Get the list of admins](/docs/organization/operations/get-v2-organizations-org-id-admins)
        - [Add moderator or admin](/docs/organization/operations/post-v2-organizations-org-id-admins)
        - [Change admin/moderator role](/docs/organization/operations/put-v2-organizations-org-id-admins-user-id)
        - [Accept invite to be admin](/docs/organization/operations/post-v2-organizations-org-id-admins-user-id-accept)
        - [Decline invite to be admin](/docs/organization/operations/post-v2-organizations-org-id-admins-user-id-decline)
        - [Remove admin/moderator](/docs/organization/operations/delete-v2-organizations-org-id-admins-admin-id)
    - Manage members
        - [Get the list of members](/docs/organization/operations/get-v2-organizations-org-id-members)
        - [Add members](/docs/organization/operations/post-v2-organizations-org-id-members)
        - [Remove members](/docs/organization/operations/delete-v2-organizations-org-id-members-user-id)
        - [Accept invite to organization](/docs/organization/operations/post-v2-organizations-org-id-members-user-id-accept)
        - [Decline invite to organization](/docs/organization/operations/post-v2-organizations-org-id-members-user-id-decline)
        - [Get members' last logins](/docs/organization/operations/get-v2-organizations-org-id-members-last-logins)
        - [Get users' activity](/docs/organization/operations/get-v2-organizations-org-id-users-activity)
        - [Get user's documents](/docs/organization/operations/get-v2-organizations-org-unique-id-documents-search)
        - [Export last logins of members](/docs/organization/operations/post-v2-organizations-org-id-members-last-logins-export)
        - [Export last activity of members](/docs/organization/operations/post-v2-organizations-organization-id-users-activity-export)
        - [Move users across organizations](/docs/organization/operations/put-v2-organizations-destination-org-id-move)
    - Org settings
        - [Update organization settings](/docs/organization/operations/put-v2-organizations-org-id-settings)
        - [Get organization settings](/docs/organization/operations/get-v2-organizations-org-id-settings)
        - [Upload organization logo](/docs/organization/operations/post-v2-organizations-org-id-logo)
        - [Delete organization logo](/docs/organization/operations/delete-v2-organizations-org-id-logo)
    - Manage team admins
        - [Set an allowed team admin](/docs/organization/operations/post-v2-organizations-org-id-allowed-team-admins)
        - [Activate/deactivate allowed team admins](/docs/organization/operations/put-v2-organizations-org-id-allowed-team-admins)
        - [Get allowed team admins](/docs/organization/operations/get-v2-organizations-org-id-allowed-team-admins)
- **API logs**
    - [Get request log](/docs/api-logs/operations/get-request-logs-request-id)
    - [Get paid requests](/docs/api-logs/operations/get-v2-paid-request-totals)
    - [Get paid request logs](/docs/api-logs/operations/get-v2-paid-request-logs)
    - [Export paid request logs](/docs/api-logs/operations/get-v2-paid-request-logs-export)
    - [Get monthly request totals](/docs/api-logs/operations/get-v2-paid-request-monthly-totals)
    - [Get logs](/docs/api-logs/operations/get-request-logs)
- **Request payments**
    - [Add payment request field](/docs/request-payments/operations/put-document-document-id)
    - [Send document invite with payment request](/docs/request-payments/operations/post-document-document-id-invite)
    - [Send doc group invite with payment request](/docs/request-payments/operations/post)
    - SignNow organization
        - [Get merchant account](/docs/request-payments/operations/get-organizations-org-id-merchantaccount-merchant-account-id)
        - [Delete merchant account](/docs/request-payments/operations/delete-organizations-org-id-merchantaccount-merchant-account-id)
        - [Connect to merchant account](/docs/request-payments/operations/post-organizations-org-id-merchantaccount)
    - Personal account
        - [Delete personal merchant account](/docs/request-payments/operations/delete-v2-merchant-accounts)
        - [Connect to personal merchant account](/docs/request-payments/operations/post-v2-merchant-accounts)
        - [Get personal merchant account](/docs/request-payments/operations/get-v2-merchant-accounts)
- **Favorites**
    - [Mark document as favorite](/docs/favorites/operations/post-v2-documents-document-id-favorites)
    - [Remove document from favorites](/docs/favorites/operations/delete-v2-documents-document-id-favorites)
    - [Mark doc group as favorite](/docs/favorites/operations/post-v2-document-groups-document-group-unique-id-favorites)
    - [Remove doc group from favorites](/docs/favorites/operations/delete-v2-document-groups-document-group-id-favorites)
    - [Retrieve all favorites](/docs/favorites/operations/get-v2-favorites)
- **CRM**
    - Contacts
        - [Create CRM contact](/docs/contacts/operations/post-v2-crm-contacts)
        - [Get the list of CRM contacts](/docs/contacts/operations/get-v2-crm-contacts)
        - [Import CRM contacts in bulk](/docs/contacts/operations/post-v2-crm-contacts-import)
        - [Get CRM contact info](/docs/contacts/operations/get-v2-crm-contacts-contact-id)
        - [Update a CRM contact](/docs/contacts/operations/put-v2-crm-contacts-contact-id)
        - [Remove a CRM contact](/docs/contacts/operations/delete-v2-crm-contacts-contact-id)
    - Users
        - [Get the list of CRM users](/docs/users/operations/get-v2-crm-users)
        - [Get users by contact](/docs/users/operations/get-v2-crm-contact-id-users)
        - [Share contact with other users](/docs/users/operations/put-v2-crm-contact-id-users)
        - [Revoke access to shared contact](/docs/users/operations/delete-v2-crm-contacts-contact-id-users-user-id)
    - Contact groups
        - [Get contact groups list by contact](/docs/contact-groups/operations/get-v2-crm-contacts-contact-id-groups)
        - [Create contact group](/docs/contact-groups/operations/post-v2-crm-groups)
        - [Get the list of groups](/docs/contact-groups/operations/get-v2-crm-groups)
        - [Get contact group](/docs/contact-groups/operations/get-v2-crm-groups-group-id)
        - [Update contact group](/docs/contact-groups/operations/put-v2-crm-groups-group-id)
        - [Remove contact group](/docs/contact-groups/operations/delete-v2-crm-groups-group-id)
        - [Add contact to group](/docs/contact-groups/operations/put-v2-crm-groups-group-id-contacts-contact-id)
        - [Remove contact from group](/docs/contact-groups/operations/delete-v2-crm-groups-group-id-contacts-contact-id)
        - [Get contacts from group](/docs/contact-groups/operations/get-v2-crm-groups-group-id-contacts)


---

## Integration guides

# SignNow Integration API: Simplify your document workflows

Enhance your applications with the SignNow Integration API, designed to simplify document workflows and automate eSignatures.

Technology integrations with SignNow provide individuals and enterprises access to SignNow features without leaving their business applications.

In this section you can browse through user guides for all SignNow browser add-ons or applications integrated into CRMs, ERPs, project management software, and cloud storage systems.


To connect SignNow to your other apps with Zapier, built from your AI tool or in the Zap editor, see [SignNow for Zapier](/docs/signnow-and-zapier).

<!-- theme: no -->
>   🎬 View the full [SignNow integrations playlist on YouTube](https://www.youtube.com/playlist?list=PLMqWcfIgm2lvC70xlvlIB7-yadmOZT7yi)



---

## Salesforce

# Getting started with the SignNow application for Salesforce

Follow this guide to install, configure, and use the SignNow application for your Salesforce organization.

Requirements:

- A Salesforce account and working knowledge of Salesforce.
- A SignNow account on the US server with an active [Site License subscription plan](https://snseats.signnow.com/purchase/business_plans/pricing).
- An additional paid SignNow add-on for Salesforce, purchased on top of the Site License subscription.

Sign up for a [free trial](https://snseats.signnow.com/purchase/business_free_trial/loggedout).

> [!NOTE]
> Users can start using SignNow in the Salesforce organization once their SignNow account is set up and the appropriate subscription is assigned.<br>To enable access to the SignNow for Salesforce app, the admin must [add these users to the SignNow Permission Set](/docs/installation#assign-the-permission-set-to-users).

https://www.youtube.com/watch?v=jQi59nXyVuw

---

## Salesforce release notes

# SignNow for Salesforce release notes

Review the latest improvements to the SignNow for Salesforce integration.

<details open>

**<summary>November 2026</summary>**

✅ Updated [Custom links](/docs/custom-links#select-what-should-be-sent-for-signature) for the updated **Custom Links** tab: a custom button can now combine SignNow templates with files attached to the record, and the new [Self Sign](/docs/custom-links#choose-how-the-document-is-delivered) option lets the user sign record files themselves without sending an invite.

</details>
<br>

<details>

**<summary>October 2026</summary>**

✅ Published [Send SignNow Template on a schedule](/docs/apex-send-template-scheduled), a no-code guide to sending a template to a batch of records with a schedule-triggered flow.

✅ Published [Send SignNow Template as the current user](/docs/apex-send-template-current-user), which explains how to set up a flow so the Salesforce user who starts it appears as the sender instead of the shared integration account.

✅ Updated [Custom links](/docs/custom-links#select-what-should-be-sent-for-signature) to match the option names in the current builder.

</details>
<br>

<details>

**<summary>September 2026</summary>**

✅ Published the [Signing status and record updates](/docs/salesforce-signing-status-and-record-updates) guide, covering how to build Flows on SignNow Invitation and Signer records, with an example that updates an Opportunity when a recipient signs.

✅ Added a use case to the [SignNow Invite Status Update event](/docs/apex-invite-status-update-event) article that shows how to [update the Opportunity stage after each signer signs](/docs/apex-invite-status-update-event#update-the-opportunity-stage-after-each-signer-signs).

</details>
<br>

<details>

**<summary>August 2026</summary>**

✅ Published the [Document generation](/docs/salesforce-document-generation) guide, covering the three ways to generate a document from Salesforce, tag syntax for document generation templates, uploading a template in Admin Tools, optional document flows, and sending through a custom button or the Send SignNow Template Apex action.

✅ Corrected the table tag syntax on the Apex document generation pages: the correct form is `{{table(OpportunityLineItems)}}` without the `.records` suffix, so examples in [Generate and Send Document via SignNow](/docs/apex-generate-and-send-document) and [Generate Document via SignNow](/docs/apex-generate-document) work as written.

</details>
<br>

<details>

**<summary>July 2026</summary>**

✅ Updated the [Document storage](/docs/document-storage) settings so completed document copies are saved to the default workspace Team folder instead of an auto-created integration folder, with refreshed labels and template-location notes.

</details>
<br>

<details>

**<summary>June 2026</summary>**

✅ Added a [Troubleshooting](/docs/salesforce-troubleshooting) section covering common integration issues.

✅ Published the [Generate and Send Document via SignNow](/docs/apex-generate-and-send-document) Apex action guide, covering DOCX template preparation, Document Flow configuration, and Apex action setup in Flow Builder.

✅ Added [Salesforce Classic setup steps](/docs/salesforce-invites-status-widget#add-the-widget-in-salesforce-classic) to the Invites Status widget guide, so Classic users can track invite status the same way Lightning users do.

</details>
<br>

<details>

**<summary>March 2026</summary>**

✅ Added documentation for the new [Send SignNow Freeform Invite](/docs/apex-send-freeform-invite) Apex Action and the example use case.

✅ Published a new [use case](/docs/salesforce-role-based-access) covering an HR hiring workflow with multiple recipients accessing different documents, and automatic delivery of the merged document back to the Salesforce record.

</details>
<br>

<details>

**<summary>February 2026</summary>**

✅ Published a new use case based on the customer workflow: [Automate language-specific welcome packets with Salesforce Flow and SignNow Apex actions](/docs/salesforce-automation-apex-actions).

</details>
<br>

<details>

**<summary>January 2026</summary>**

✅ New Apex actions added to the [Apex Actions guide](/docs/salesforce-apex-actions):

- [Get SignNow Editor URL](/docs/apex-editor-url)
- [Get SignNow Send Invite URL](/docs/apex-get-send-invite-url)
- [Get SignNow Document Group](/docs/apex-get-document-group)
- [Reassign SignNow Invite](/docs/apex-reassign-invite)
- [Send SignNow Invite via SMS](/docs/apex-send-sms-invite)
- [Create SignNow Embedded Invite](/docs/apex-create-embedded-invite)
- [Create SignNow Document Group from SignNow Template](/docs/apex-create-document-group-from-template)
- [Get SignNow Document Group Recipients](/docs/apex-create-document-group-from-template)

</details>
<br>

---

<details>

**<summary>December 2025</summary>**

✅ Published a [use case](/docs/salesforce-send-attachment-with-tags) that explains how to send a PDF attachment with text tags from any Salesforce record.

</details>
<br>

<details>

**<summary>October 2025</summary>**

✅ Published the use case describing how to [send a contract for signature to one or two sellers](/docs/salesforce-conditional-contract-sending) based on object conditions.

</details>
<br>

<details>

**<summary>August 2025</summary>**

✅ Added **Field Editing** info for [Salesforce field mapping](/docs/templates#pre-fill-fillable-fields).

✅ Published the use case for Salesforce integration users: [Send an order form for signature](/docs/salesforce-send-order-form).

</details>
<br>

<details>

**<summary>May 2025</summary>**

✅ Added the [Apex actions](/docs/salesforce-apex-actions) section to the user guide.

✅ Added the [Invites Status widget](/docs/salesforce-invites-status-widget) section to the user guide.

</details>
<br>

<details>

**<summary>March 2025</summary>**

✅ Added the [Custom reports](/docs/custom-reports) section to SignNow for the Salesforce user guide.

</details>
<br>




---

## Salesforce installation

# Install SignNow for Salesforce

Install the SignNow application for your Salesforce organization to initiate eSignature workflows from Salesforce. With the SignNow application, the Salesforce users can:

- Select files attached to a Salesforce record, add fillable fields and recipients, and send for signing without leaving Salesforce.
- Send SignNow templates pre-filled with Salesforce data in one click.
- Update Salesforce records with collected data.
- Track the progress of signature invites without leaving Salesforce.
- Get completed documents stored in Salesforce records.

## Install the SignNow package from the AppExchange

The instructions below are a step-by-step guide for installing and configuring SignNow in your Salesforce organization.

Go to [AppExchange](https://appexchange.salesforce.com/) and search for the SignNow application. 

If you would like to try SignNow for free in your sandbox, click **Try It Free**.

Click **Get It Now** to start using SignNow for your organization.

![SignNow listing on Salesforce AppExchange with the Get It Now and Try It Free buttons](/reference-assets/images/SignNow_Salesforce/appexchange_general_new.png)

### If you selected Try It Free

Select a trial type. In our example, we will test SignNow in a sandbox. 

Enter your contact information or click **Log In** in the upper-right corner to log in to your Trailblazer account.

![AppExchange Start Your Trial page with Try in your sandbox selected and the contact information form](/reference-assets/images/SignNow_Salesforce/sandbox_choose_trial_type.png)

Once ready, click **Continue to Installation**.

Click **Log In & Install.**

![AppExchange page saying the solution is ready to install, with the Log In & Install button](/reference-assets/images/SignNow_Salesforce/sandbox_ready_to_install.png)

On the next screen, enter your sandbox account credentials and click **Log In to Sandbox**.

![Salesforce sandbox login page](/reference-assets/images/SignNow_Salesforce/sandbox_login.png)

Select **Install for Admins only** and click **Install** (**Upgrade** in our example).

![Upgrade SignNow page with Install for Admins Only selected and the Upgrade button](/reference-assets/images/SignNow_Salesforce/sandbox_admins_only.png)

The next steps are the same as for **Get It Now**.

### If you selected Get It Now

Select the organization where you want to install the SignNow package.

![Dialog asking where to install the package, with the production environment selected](/reference-assets/images/SignNow_Salesforce/installation_organization.png)

Confirm the installation details by clicking **Confirm and Install**.

![Installation details with the Confirm and Install button](/reference-assets/images/SignNow_Salesforce/installation_confirm.png)

Then, you will be redirected to the Salesforce login page. Enter your credentials.

Select **Install for Admins Only** and click **Install**.

![Package install options with Install for Admins Only selected](/reference-assets/images/SignNow_Salesforce/install_for_admins.png)

The installation process may take several minutes. When installation is complete, you will be notified via email.

Click **Done** to proceed to your organization and configure the application.

![Install page saying the app is taking a long time to install, with the Done button](/reference-assets/images/SignNow_Salesforce/installation_done.png)

Now that you've successfully installed SignNow for your Salesforce organization, you can proceed to configuration.

![Installed Packages page in Salesforce Setup listing the SignNow package](/reference-assets/images/SignNow_Salesforce/installed_packages.png)

> [!TIP]
> Try refreshing the page if SignNow hasn't appeared in your **Installed Packages** section.

## Assign the permission set to users

Assign the **SignNow for Salesforce** permission set to any users who will need to use this integration.

Start typing *permission sets* in the Quick Find search box on the left and click **Permission Sets** under the **Users** section.

Locate **SignNow Set** and click on it.

![Permission Sets page in Salesforce Setup with the SignNow Set permission set](/reference-assets/images/SignNow_Salesforce/permission_set_new.png)

> [!NOTE]
> If the **SignNow Set** is not visible, confirm that the SignNow integration package has been installed.

On the **Permission Sets** page, click **Manage Assignments** in the top menu.

![SignNow Set permission set page with the Manage Assignments button](/reference-assets/images/SignNow_Salesforce/manage_assignments_new.png)

Click **Add Assignment**.

![Permission set assignments page with the Add Assignment button](/reference-assets/images/SignNow_Salesforce/add_assignment.png)

Select the checkboxes next to the names of users needing access to the SignNow integration, and click **Next.**

![User list for assigning the SignNow permission set](/reference-assets/images/SignNow_Salesforce/select_users.png)

Review the selected users, select an expiration option, and click **Assign**.

![Expiration options and the selected users list with the Assign button](/reference-assets/images/SignNow_Salesforce/assign_users.png)

You'll see a confirmation screen showing the successful assignments. Click **Done**.

## Access your SignNow account

> [!NOTE]
> Users can start using SignNow in the Salesforce organization once their SignNow account is set up and the appropriate subscription is assigned.

Log in to your SignNow account to create eSignature workflows in Salesforce.

Click the **App Launcher** (the grid icon in the top left corner) and start typing _SignNow\._ Select the **SignNow Admin Tools** from the list.

![App Launcher search for SignNow with SignNow Admin Tools in the results](/reference-assets/images/SignNow_Salesforce/app_launcher_1.png)

Click the **Log In** button to log in to your SignNow account.

![SignNow welcome screen in Salesforce with the Log In and Sign Up buttons](/reference-assets/images/SignNow_Salesforce/log_in.png)

Grant SignNow for Salesforce access to your SignNow account.

![Screen asking to grant SignNow for Salesforce access to the SignNow account, with the Grant access to SignNow button](/reference-assets/images/SignNow_Salesforce/grant_access.png)

## Team folders in SignNow

Documents and templates from SignNow for Salesforce are stored in your default workspace Team: templates in the Templates folder and document copies in the Documents folder. Salesforce users with permission to access the SignNow application can work with these shared folders. To choose where document copies are stored, use the [Document storage](/docs/document-storage) settings; no team folder setup is required.

> [!NOTE]
> If your account already has a dedicated **Salesforce integration** team under Private Teams from an earlier installation, it is still supported. Its **Templates** folder holds the templates configured for Salesforce, and its **Documents** folder holds copies of documents sent from those templates.

### Document settings (legacy accounts)

If you still use the Salesforce integration team, enable the **Automatically add document copies sent from Private Team templates to the Private Team folder** toggle to add document copies created from Private Team templates to the Private Team folder.

When the toggle is enabled, the **Save documents by default to** field appears. By default, documents are saved to the **Salesforce integration** folder. To change the default folder, click **Change Folder**.

![SignNow Admin Tools Salesforce integration settings with the document and sending settings](/reference-assets/images/SignNow_Salesforce/salesforce_installation_new_1.png)

### Sending settings

You can set a default email address from which all team document invites will be sent. Click **Change** next to **Default Sending Email** to update it.

### Team management

To add members to the Salesforce integration team, click **Add Users**.

To rename or remove the team, click **More (...)** and select **Rename Team** or **Remove Team**.

---

The configuration of the SignNow for Salesforce is all set.

Now, Salesforce admins can:

- Configure document group templates in SignNow without leaving Salesforce.
- Configure data binding between Salesforce record fields and SignNow template fields for pre-fill and update.
- Customize a sender's flow to make it a one-click send.
- Customize the invite email subject and body, and enrich it with Salesforce data.
- Dynamically define recipients from Salesforce fields.

> [!TIP]
> Having trouble? See [Troubleshooting](/docs/salesforce-troubleshooting#installation).


---

## Invites Status widget

# SignNow Invites Status widget

Install the Invites Status widget to track the status of sent documents from any Salesforce record. 

With this widget, you can view the document’s signing date, see the actions taken by each recipient, make corrections to invites, and more.

The widget displays live data from SignNow. To build Salesforce flows, reports, or field updates on invite and signing status, use the records SignNow writes to your org — see [Signing status and record updates](/docs/salesforce-signing-status-and-record-updates).


## If you upgraded from SignNow for Salesforce package version 2.5 or earlier

If you installed the widget using SignNow for Salesforce package version 2.5 or earlier and the package was upgraded, make sure to complete the following actions.

- Go to **Setup > Trusted URLs > SignNow_trusted_url**. 

- Click **Edit** and check the **Active** checkbox. Save your changes.

![Trusted URLs page in Salesforce Setup with the SignNow trusted URL marked Active](/reference-assets/images/SignNow_Salesforce/invites_status_widget/widget_trusted_url_check.png)

- Go to the page where the SignNow widget is added. 

- Click **Edit page** > **Save**.

## Install the widget in Lightning Experience

Add the **SignNow Invites Status** widget to any page where users need to track the status of SignNow signature invites.

- Click the gear icon ⚙️ in the top-right corner of your Salesforce account and select **Setup**.
- Type *app builder* in the Quick Find search box on the left and select **Lightning App Builder**.
- In the **Lightning App Builder**, locate the page you want to edit and click **Edit**.

![Lightning App Builder list of Lightning pages with the Edit link](/reference-assets/images/SignNow_Salesforce/invite_widget_1.png)

- The **Components** panel is located on the left side of the screen. Search for the **SignNow Invites Status** widget.
- Drag and drop the widget into the desired area of the page.

![Lightning App Builder with the SignNow Invites Status component and the Set Component Visibility option](/reference-assets/images/SignNow_Salesforce/invites_status_widget/widget_visibility.png)

- To set visibility rules for the SignNow widget, click the widget and use the configuration panel on the right.
- To save your changes, click **Save** in the top-right corner of the Lightning App Builder.

## How to use the widget

Go to the record where you have installed the widget.

Using the SignNow widget, you can:

- Track the status of sent documents
- Search for a document by name
- Check the date the document was sent for signature and signed
- View the sender and recipient email addresses
- Sort and filter sent documents
- Open a document for editing or in a view mode (if the document is signed or waiting for others)
- Download documents and view history
- Cancel invites
- Make corrections to the invite

![Track Document Statuses widget on a Salesforce contact record with sent invites and their actions](/reference-assets/images/SignNow_Salesforce/invites_status_widget/widget_general.png)

### Filter and sort documents

You can filter sent documents by:

- Status
- Date (last 12 months; last 6 months; last 3 months; last 30 days; last week; last 24 hours)
- Sender (sent by me; sent by others)

You can sort documents by:

- Ascending or descending order
- Recently modified
- Document name
- Created date

### View the invite status

Click **View Status** next to the document to see the list of invite steps, including recipients' roles, emails, and the status of each step.

> [!NOTE]
> The **View Status** option is not available for draft invites.

If the document has been signed, the signing date will also be displayed.

![View Status page showing each step's recipients and statuses, with the Cancel all invites button](/reference-assets/images/SignNow_Salesforce/invites_status_widget/widget_status_page.png)

Available invite step statuses are:

- **Invite step pending:** The recipient’s invite is pending on the previous step (the signer on the previous signing step hasn’t signed and submitted the document yet).
- **Pending:** The invite has been sent to the recipient.
- **Invite expired:** The invite has expired.
- **Declined to sign:** The recipient declined to sign the document.
- **Completed:** The recipient completed the invite.
- **View only:** The recipient received the document as **view only**.

### Salesforce sync failed

If the document flow updates the Salesforce record on completion and Salesforce rejects the new value, the document still completes and the invite shows a **Salesforce sync failed** badge. Hover over the badge to see the error Salesforce returned.

![Signed invite with the Salesforce sync failed badge and its tooltip showing the Salesforce error](/reference-assets/images/SignNow_Salesforce/invites_status_widget/widget_sync_failed.png)

The update runs with the Salesforce access of the user who sent the document, so the error can also come from that user's field access or a validation rule. To fix it, correct the value in the [document flow](/docs/document-flows#set-actions-on-completion) or the sender's access in Salesforce, then update the record manually for documents that are already completed.

### Cancel all invites

Click **Cancel All Invites** on the View Status page to cancel signature invites for this document.

You’ll be redirected to your SignNow account, where the document invite is filtered by ID. 

Click **Cancel Invites** next to the invite you want to cancel.

![SignNow Documents page with a sent sales agreement and the Cancel Invites button](/reference-assets/images/SignNow_Salesforce/invites_status_widget/widget_cancel_invites.png)

Confirm the action by clicking **Cancel All Invites** in the confirmation window.

> [!NOTE]
> The **Cancel All Invites** option is not available for signed invites.

### More actions

> [!NOTE]
> Available invite actions depend on the user's access level, the type of document sent for signature (templates or attachments), and the current status of the invite. Some options may be disabled based on these conditions.

![Track Document Statuses widget with the More actions menu open](/reference-assets/images/SignNow_Salesforce/invites_status_widget/widget_more_actions.png)

Click the buttons next to the invite or use the options in the **More menu (…)** to initiate available actions.

✅ **Open document**: Opens the document in the SignNow editor for editing or viewing. If the invite status is **Waiting for me**, the document opens in signing session mode.

✅ **Download**: Downloads the document as a PDF.

✅ **View history:** Opens the invite in your SignNow account in a new tab. Click the **More menu (…)** and select **History** from the dropdown. The invite history shows detailed information about all actions taken on the document, who performed them, server and client timestamps, IP addresses, and the document IDs.

✅ **Download with:** Opens the invite in your SignNow account in a new tab. Click the **More menu (…)** and select **Download with** from the dropdown. Choose the download options (history, attachments, ID) and click **Download.** 

✅ **Make corrections:** Opens the invite in your SignNow account in a correction mode.

![Sales agreement opened in correction mode in SignNow, on the Add documents step](/reference-assets/images/SignNow_Salesforce/invites_status_widget/widget_correction_mode.png)

> [!WARNING]
> **Make corrections** is available for invites that have not been opened by recipients. While you are making corrections to the invite, pending recipients will not be able to access the documents.

In the correction mode, you can add documents to the document group, edit documents and recipients, and adjust actions on completion.

## Add the widget in Salesforce Classic

The Invites Status widget is built as a Lightning Web Component (LWC), but it uses an iframe internally, which means you can embed it in Salesforce Classic through a Visualforce page.

> [!NOTE]
> **Prerequisites:** You must have the SignNow for Salesforce package installed and sufficient Salesforce admin permissions to create Apex classes and Visualforce pages.

**Step 1. Create an Apex class**

- In Salesforce, go to **Setup > Apex Classes** and click **New**.

![Apex Classes page in Salesforce Classic Setup with the New button](/reference-assets/images/SignNow_Salesforce/invites_status_widget/status_widget_classic_1.png)

- Paste the following code and click **Save**:

```apex
public class SignNowInvitesWidgetExtension {
    public Id recordId { get; private set; }
    public String recordType { get; private set; }
    public String domainUrl { get; private set; }

    public SignNowInvitesWidgetExtension(ApexPages.StandardController std) {
        recordId = std.getId();
        recordType = recordId.getSObjectType().getDescribe().getName();
        domainUrl = Url.getOrgDomainUrl().toExternalForm();
    }
}
```

**Step 2. Create a Visualforce page**

- Go to **Setup > Visualforce Pages** and click **New**.
- Enter a name for the page (for example, `SignNowInvitesWidget`).
- Paste the following code, updating the `standardController` attribute to match the object whose layout you plan to add the page to.

```xml
<apex:page id="SignNowInvitesWidget"
  standardController="Account"
  extensions="SignNowInvitesWidgetExtension"
  cache="false"
  sidebar="false"
  showHeader="false"
  title="SignNow Invites"
  applyBodyTag="false"
>
  <apex:outputPanel>
    <div id="iFrameContainer"></div>
    <script>
      var origin = "https://universal-integration.signnow.com";
      var contextId = encodeURIComponent("{!JSENCODE(recordId)}");
      var contextTable = encodeURIComponent("{!JSENCODE(recordType)}");
      var orgSubdomain = encodeURIComponent("{!JSENCODE(domainUrl)}");

      var iframeLink = origin + "/en/invite-status?contextId=" + contextId +
        "&contextTable=" + contextTable +
        "&integration=salesforce" +
        "&orgSubdomain=" + orgSubdomain +
        "&userIdentifier=" + encodeURIComponent("{!JSENCODE($User.Username)}");

      var iframe = document.createElement("iframe");
      iframe.setAttribute("src", iframeLink);
      iframe.setAttribute("id", "SignNowIframe");
      iframe.setAttribute("title", "SignNow");
      iframe.setAttribute("width", "100%");
      iframe.setAttribute("height", "640");
      iframe.setAttribute("allowfullscreen", "");
      iframe.setAttribute("allow", "camera; clipboard-read; clipboard-write");
      iframe.setAttribute("referrerpolicy", "unsafe-url");
      iframe.style.border = "none";
      document.getElementById("iFrameContainer").appendChild(iframe);

      window.addEventListener("message", function(event) {
        if (event.origin !== origin) return;
        if (event.data.event === "redirect" && event.data.redirectUrl) {
          window.top.location.href = event.data.redirectUrl;
        }
      });
    </script>
  </apex:outputPanel>
</apex:page>
```

![New Visualforce page in Salesforce Classic Setup with the widget markup](/reference-assets/images/SignNow_Salesforce/invites_status_widget/status_widget_classic_2.png)

- Click **Save**.

**Step 3. Add the Visualforce page to an object layout**

- Go to **Setup > Object Manager** and select the object.
- Click **Page Layouts** and open the layout you want to edit.
- In the layout editor, click **Visualforce Pages** in the left panel.

![Page layout editor in Salesforce Classic with Visualforce Pages in the left panel](/reference-assets/images/SignNow_Salesforce/invites_status_widget/status_widget_classic_3.png)

- Drag the `SignNowInvitesWidget` page onto the layout where you want the widget to appear.
- Click **Save**.

The Invites Status widget will now be visible on records of that object in Salesforce Classic.

![Invites Status widget on a record in Salesforce Classic](/reference-assets/images/SignNow_Salesforce/invites_status_widget/status_widget_classic_4.png)



---

## Signing status and record updates

# Signing status and record updates

SignNow writes invite and signer statuses into your Salesforce org as records you can query, report on and trigger flows from. For example, move an Opportunity to **Closed Won** when a contract is signed.

Status reaches your org in two forms:

| Mechanism | API name | Use it for |
| --- | --- | --- |
| Custom object, invite level | `cuda_signnow__SignNow_Invitation__c` | Reporting on invites; resolving the Salesforce record an invite was sent from |
| Custom object, recipient level | `cuda_signnow__SignNow_Signer__c` | Reacting to an individual recipient; branching on signing order |
| Platform event | `cuda_signnow__SignNow_Event__e` | Reacting the moment an invite changes state, without querying records |

The records persist. You can query them, build reports on them, and test a flow against invites your org has already sent. The platform event does not persist: it carries invite-level facts at the moment a change happens, which suits a flow that only needs to react. See [SignNow Invite Status Update event](https://docs.signnow.com/docs/apex-invite-status-update-event) for its payload and behavior.

The [Invites Status widget](https://docs.signnow.com/docs/salesforce-invites-status-widget) shows these statuses live from SignNow on a record page, for people to read. Automation runs on the records and the event.

## SignNow Invitation

The SignNow for Salesforce package installs two custom objects for status. **SignNow Invitation** is the first. Each time a document is sent for signature from a Salesforce record, SignNow creates one SignNow Invitation record and keeps it updated as the invite progresses. The record represents the invite as a whole and stores which Salesforce record it was sent from.

| Field | API name | Type | Description |
| --- | --- | --- | --- |
| Context ID | `cuda_signnow__Context_ID__c` | Text(255) | ID of the Salesforce record the invite was sent from |
| Context Table | `cuda_signnow__Context_Table__c` | Text(255) | API name of that record's object, for example `Opportunity` |
| Status | `cuda_signnow__Status__c` | Text(255) | The invite's current state |
| Document ID | `cuda_signnow__Document_ID__c` | Text(255), External ID | The SignNow document the invite was sent for |
| Document Name | `cuda_signnow__Document_Name__c` | Text(255) | Name of that document |
| Template ID | `cuda_signnow__Template_ID__c` | Text(255), External ID | The template the document was created from, if any |
| Template Name | `cuda_signnow__Template_Name__c` | Text(255) | Name of that template |
| SN User Email | `cuda_signnow__SN_User_Email__c` | Email | Email of the SignNow user who sent the invite |
| SN User ID | `cuda_signnow__SN_User_ID__c` | Text(255), External ID | That user's SignNow ID |
| User ID | `cuda_signnow__User_ID__c` | Text(255) | The Salesforce user who sent the invite |
| SignNow Invitation Name | `Name` | Auto Number | Record name |

In Setup, open **Object Manager > SignNow Invitation > Fields & Relationships** to see the same list in your own org:

![Fields and relationships of the SignNow Invitation object in Object Manager](/reference-assets/images/SignNow_Salesforce/invite_status_tracking/signnow_invitation_fields.png)

Match **Context ID** against the ID of the record you want to update. That is how a flow resolves the right Opportunity. Check **Context Table** alongside it, so a flow built for Opportunities does not act on an invite sent from an Account.

**Status values:**

| Value | Meaning |
| --- | --- |
| `Draft` | The invite has been created but not sent, or has been cancelled |
| `Pending` | The invite has been sent and is awaiting recipients |
| `Signed` | The invite is complete |
| `Declined` | A recipient declined to sign |
| `Expired` | The invite expired |

> [!NOTE]
> `Status` is a text field rather than a picklist, so Salesforce does not constrain its values. SignNow writes the Title Case values above. A lowercase value such as `init` or `fulfilled` is an unmapped status arriving straight from the API, so match on the Title Case form and treat a lowercase one as its equivalent. To list every value present in your own org:
>
> ```sql
> SELECT cuda_signnow__Status__c, COUNT(Id)
> FROM cuda_signnow__SignNow_Invitation__c
> GROUP BY cuda_signnow__Status__c
> ```

## SignNow Signer

**SignNow Signer** is the second object. SignNow creates one SignNow Signer record for each recipient on an invite, so a document sent to three people produces three records. Each one belongs to its SignNow Invitation through a master-detail relationship, and carries that recipient's own status and position in the signing order.

| Field | API name | Type | Description |
| --- | --- | --- | --- |
| Status | `cuda_signnow__Status__c` | Text(255) | The recipient's current state |
| Order | `cuda_signnow__Order__c` | Number(18, 0) | The recipient's position in the signing order, starting at 1 |
| Email | `cuda_signnow__Email__c` | Email | The recipient's email address |
| SignNow Invitation | `cuda_signnow__SignNow_Invitation__c` | Master-Detail | The invite this recipient belongs to |
| SignNow Signer Name | `Name` | Auto Number | Record name |

![Fields and relationships of the SignNow Signer object in Object Manager](/reference-assets/images/SignNow_Salesforce/invite_status_tracking/signnow_signer_fields.png)

Those five fields, plus `CreatedById` and `LastModifiedById`, are everything SignNow Signer holds. Two consequences follow:

- **The signer record carries no Context ID.** To reach the Opportunity from a signer, traverse the master-detail relationship to the parent invitation and read **Context ID** there.
- **There is no signing timestamp field.** For the moment a recipient completed, use the platform event's timestamp or the record's `LastModifiedDate`, accepting that any later write moves it.

**Status values:**

| Value | Meaning |
| --- | --- |
| `Pending` | The invite has been sent to the recipient and is awaiting action |
| `Invite Step Pending` | An earlier signing step is still open, so this recipient cannot act yet |
| `Signed` | The recipient completed the document |
| `Declined` | The recipient declined to sign |
| `View Only` | The recipient received the document as view-only |
| `Expired` | The invite expired before the recipient acted |

Those are all six values SignNow writes for a recipient. As with the invitation, the field is free text, so a lowercase value is an unmapped API status. To list every value present in your own org:

```sql
SELECT cuda_signnow__Status__c, COUNT(Id)
FROM cuda_signnow__SignNow_Signer__c
GROUP BY cuda_signnow__Status__c
```

![Developer Console query result with the SignNow Signer status values and their counts](/reference-assets/images/SignNow_Salesforce/invite_status_tracking/signer_status_values.png)

On both objects `Status` is a `Text(255)` field rather than a picklist, so Salesforce does not constrain its values and the field definition in Setup shows no value set. Match the strings exactly, including capitalization and spaces:

![Status (Managed) field definition on the SignNow Signer object](/reference-assets/images/SignNow_Salesforce/invite_status_tracking/signnow_signer_status_field.png)

> [!WARNING]
> Build conditions on the field values, not on what the Invites Status widget displays. The widget uses its own labels: *Completed* where the record holds `Signed`, *Invite expired* where it holds `Expired`, and *Declined to sign* where it holds `Declined`.

The two objects do not share a vocabulary either. `Pending`, `Signed` and `Declined` appear on both; `Draft` exists only at invite level, and `Expired`, `View Only` and `Invite Step Pending` only at signer level.

Both objects are reportable. See [Custom reports](https://docs.signnow.com/docs/custom-reports).

## Example: update an Opportunity when a recipient signs

Let's build a flow that moves an Opportunity to **Closed Won** when a contract sent from it is signed.

### Step 1. Create a record-triggered flow

In Salesforce Setup, open **Flows** and create a **Record-Triggered Flow**.

- **Object**: `SignNow Signer` (`cuda_signnow__SignNow_Signer__c`)
- **Trigger the Flow When**: A record is updated
- **Condition Requirements**: All Conditions Are Met (AND)
- **Entry condition**: `Status` Equals `Signed`
- **When to Run the Flow for Updated Records**: Only when a record is updated to meet the condition requirements
- **Optimize the Flow for**: Actions and Related Records

The entry condition keeps the flow from running on every signer update, so it runs once per recipient, at the moment that recipient signs.

![Configure Start panel for a SignNow Signer flow with the entry condition Status equals Signed](/reference-assets/images/SignNow_Salesforce/invite_status_tracking/flow_signer_trigger.png)

### Step 2. Get the Opportunity

Add a **Get Records** element.

- **Label**: `Get Opportunity`
- **Object**: `Opportunity`
- **Condition Requirements**: All Conditions Are Met (AND)
  - `Id` Equals `$Record > SignNow Invitation > Context ID`
- **How Many Records to Store**: Only the first record
- **How to Store Record Data**: Automatically store all fields

In the resource picker, **SignNow Invitation** appears twice. Use the one under **Relationship Fields** with a `>` chevron, which drills into the parent record. The plain text entry is the raw ID and produces a data type error.

> [!IMPORTANT]
> If invites in your org are sent from more than one object, add a second condition on `$Record > SignNow Invitation > Context Table` Equals `Opportunity`. Without it the flow tries to match a Context ID that may belong to an Account or a custom object, finds nothing, and does nothing, with no error to explain why.

![Get Records element that finds the Opportunity the invite was sent from](/reference-assets/images/SignNow_Salesforce/invite_status_tracking/flow_get_opportunity.png)

### Step 3. Check that a record was found

Add a **Decision** element.

- **Label**: `Opportunity found`
- **Outcome**: `Found`
- **Condition**: `Get_Opportunity` **Is Null** `False`

Easy to skip, worth keeping. If Get Records matches nothing, the flow carries on and the update silently affects no records.

![Decision element that checks whether the Opportunity record was found](/reference-assets/images/SignNow_Salesforce/invite_status_tracking/flow_opportunity_found.png)

### Step 4. Update the Opportunity

On the `Found` path, add an **Update Records** element.

- **Label**: `Update Opportunity`
- **How to Find Records to Update and Set Their Values**: Specify conditions to identify records, and set fields individually
- **Object**: `Opportunity`
- **Condition Requirements**: All Conditions Are Met (AND)
  - `Id` Equals `Get_Opportunity > Opportunity ID`
- **Set Field Values**: `Stage` = `Closed Won`

Click **Save**, then **Activate**.

![Update Records element that updates the Opportunity](/reference-assets/images/SignNow_Salesforce/invite_status_tracking/flow_update_opportunity.png)

### Step 5. Test it

Send an invite from an Opportunity and sign it. The Opportunity's **Stage History** shows the change.

You can also click **Debug** and run the flow against an existing signer record whose `Status` is `Signed`, selecting **Roll back changes made to records** to leave the Opportunity untouched. The record lookup searches by the auto-number **Name**, not by ID, and a record already at `Signed` is not transitioning into that state, so select **Skip start condition requirements** if the flow does not start.

### Result

Each recipient who signs updates the Opportunity the invite was sent from.

![Opportunity record with the Track Document Statuses widget and the updated Stage History](/reference-assets/images/SignNow_Salesforce/invite_status_tracking/flow_result_stage_history.png)

### Branching by signer

Because the flow runs once per recipient, you can branch on which one signed. Add a formula resource on `$Record.cuda_signnow__Order__c` to set a different value for the first, second and final signer, or test `$Record.cuda_signnow__Email__c` to act only on a particular recipient. A worked example of staged Opportunity updates is on the [SignNow Invite Status Update event](https://docs.signnow.com/docs/apex-invite-status-update-event) page.

## Legacy: cuda_signnow__SignNowStatus__c

`cuda_signnow__SignNowStatus__c` belongs to the previous SignNow for Salesforce app. Do not build new automation on it.

Its role is now split: use `cuda_signnow__SignNow_Event__e` to react to a change as it happens, and `cuda_signnow__SignNow_Invitation__c` and `cuda_signnow__SignNow_Signer__c` to query and report on invite and recipient state.

## Related

- [SignNow Invite Status Update event](https://docs.signnow.com/docs/apex-invite-status-update-event)
- [Apex Actions](https://docs.signnow.com/docs/salesforce-apex-actions)
- [Invites Status widget](https://docs.signnow.com/docs/salesforce-invites-status-widget)
- [Custom reports](https://docs.signnow.com/docs/custom-reports)


---

## Document storage in Salesforce

# Document storage in SignNow for Salesforce

Define where documents signed by all recipients are saved, on the source Salesforce record or in other locations.

## Prerequisites

Go to **App Launcher** > **SignNow Admin Tools**.

![SignNow Admin Tools in Salesforce with the Log In and Sign up buttons](/reference-assets/images/SignNow_Salesforce/signnow_admin_tools_upd.png)


Log in to your SignNow account and grant SignNow for Salesforce access to your account.

Click **Document Storage** in the left-hand menu.

---

By default, documents signed by all recipients are saved to the same Salesforce record from which they were sent. A copy of the document is also saved to the Documents folder in the user's default workspace Team.

In **Document Storage**, define where signed documents are saved once all recipients have signed. Set the following options:
- Choose whether to save completed documents in Salesforce. Enabled by default.
- Choose whether to keep document copies in SignNow. Enabled by default.
- Choose whether to export documents with their history.
- Choose whether to save each signed document as a separate file.

![Document Storage settings in SignNow Admin Tools](/reference-assets/images/SignNow_Salesforce/document_storage_upd.png)

## Store document copies in SignNow

When **Keep document copies in SignNow** is enabled, choose where copies are stored in your SignNow workspace:

- **Save in default workspace Team folder** — (default) Document copies are saved to the Team's Documents folder in your default workspace.
- **Select destination folder** — choose a different SignNow workspace team folder. Only team folders are available; private folders are not listed. The picker lists Team folders from all your workspaces, not only your active one, each labeled as workspace name > folder name.

![Select destination folder dialog listing the team folders](/reference-assets/images/SignNow_Salesforce/salesforce_select_destination_folder.png)

> [!WARNING]
> Everyone in your workspace with access to the selected team folder can access the stored documents.

When **Save in default workspace Team folder** is selected, each copy is saved based on how the document was created:

- **From a file**: to the Documents folder in your default workspace Team.<br>If the default workspace can't be identified:
    - when you belong to a single workspace, it is saved to that workspace's Documents folder.
    - when you belong to several workspaces and can't set a default, it is saved to your personal Documents folder.
- **From a template**: to the Documents folder in the same team or space as the template. Each location keeps a Templates and a Documents folder side by side, so the document lands in the Documents folder next to the template:
    - personal Templates → Documents
    - Private Teams > Salesforce integration > Templates → Documents (the old integration folder is still supported)
    - Workspace > Team > Templates → Documents

> [!TIP]
> Having trouble? See [Troubleshooting](/docs/salesforce-troubleshooting#document-storage).


---

## Salesforce templates

# Templates in SignNow for Salesforce

Access and configure the document group templates from your SignNow account that you send from Salesforce.

## Prerequisites

Go to **App Launcher** > **SignNow Admin Tools**.

![SignNow Admin Tools in Salesforce with the Log In and Sign up buttons](/reference-assets/images/SignNow_Salesforce/signnow_admin_tools_upd.png)


Log in to your SignNow account and grant SignNow for Salesforce access to your account.

Click **Templates** in the left-hand menu.

---

On the **Templates** tab, Salesforce admins can access and configure existing document group templates in the SignNow account.

> [!NOTE]
> To create documents pre-filled with Salesforce data from a tagged .docx template, use the **Document Generation** tab instead. See [Document generation](/docs/salesforce-document-generation).

![Templates page in SignNow Admin Tools with the Add Fillable Fields and Pre-fill Fillable Fields buttons](/reference-assets/images/SignNow_Salesforce/templates_actions_upd.png)

Each template shows its location beneath its name, displayed as team or workspace name > folder name.

To rename a template, click **More (…)** next to it and select **Rename**.

![Templates list with the More menu open and the Rename option](/reference-assets/images/SignNow_Salesforce/templates_rename.png)

## Create new template

Create the new document group template without leaving Salesforce.

Click **Create New Template** and select the documents you want to add to the group. You can select multiple documents at a time.

Once the new document group is created, it will appear in the **Templates** tab.

When you create a new template, it is saved to the Templates folder in your default workspace Team.

If the default workspace can't be identified:

- when you belong to a single workspace, it is saved to that workspace's Templates folder.
- when you belong to several workspaces and can't set a default (you are not an admin), it is saved to the Templates folder of the first workspace you can access.

## Add fillable fields

Improve the signing experience for users by customizing documents in the SignNow editor.

Click **Add Fillable Fields** to open the document group template in the editor.

You can add fillable fields to documents, assign them to recipients, and manage recipients.

> [!TIP]
> Click the bulb icon in the top-right to open **Help with the editing tools**.

![Template open in the SignNow editor with the Help bulb icon](/reference-assets/images/SignNow_Salesforce/editing_mode.png)

To manage recipients, click **Manage Recipients** in the left-hand panel. The **Add recipient roles** dialog opens.

- Name each role and select the action the recipient performs: **Signer** or **Approver**.
- Optionally, enter a **Pre-assigned recipient**: a default email used for this role every time the template is sent. Leave it empty to enter the email when sending. The sender can change the email before sending unless a document flow hides the **Add Recipients** step. If a document flow has a recipient with the same role name, the document flow's email replaces it.
- Click **Add Role** to add another role, or **Add CC Recipients** to send copies.
- Click **Save**.

> [!TIP]
> Click **Help** in the top-right corner to learn more about managing recipients for the document group template.

![Add recipient roles dialog with two signer roles, a pre-assigned recipient, and the Save button](/reference-assets/images/SignNow_Salesforce/manage_recipients_roles_wide_v2.png)

## Pre-fill fillable fields

**Pre-fill documents** with Salesforce data and **update Salesforce records** using fillable field pre-filling.

Click **Pre-fill Fillable Fields** to start mapping fields in documents with Salesforce records.

- Select the Salesforce object you want to use for pre-filling.

![Pre-fill Fillable Fields dialog with the Salesforce Object list open](/reference-assets/images/SignNow_Salesforce/select_object.png)

- Select documents with fillable fields and click **Apply**.

![Pre-fill Fillable Fields dialog with the document search and the Apply button](/reference-assets/images/SignNow_Salesforce/add_documents.png)

- Click **Select Fields** to open the document's fillable fields available for mapping. Check the fields you want to pre-fill. Click **Apply**.

![List of the document's fillable fields with checkboxes and the Apply button](/reference-assets/images/SignNow_Salesforce/select_fillable_fields.png)

- Next, select the Salesforce fields for data binding.

Click the dropdown arrow in the **Select Salesforce Field** column to select the field that will pre-fill the fillable field in the document.

> [!TIP]
> You can also select records related to the main object for data binding.

In the **Salesforce Object** column, click the dropdown arrow and select the related record from the list.

![Pre-fill Fillable Fields dialog with the Salesforce Object list showing related records](/reference-assets/images/SignNow_Salesforce/related_record.png)

- Use the **Field Editing** column to define whether recipients can edit the pre-filled data (**Allow Editing** is enabled by default).

> [!NOTE]
> You can configure data mapping to either pre-fill the document only or both pre-fill the document and update the connected Salesforce record. Click the arrow in the second column to adjust the mapping behavior. By default, mapping only pre-fills the document.

<!--
type: tab
title: Pre-fill the document field
-->

![Pre-fill Fillable Fields dialog mapping document fields to Contact fields, with the field editing options](/reference-assets/images/SignNow_Salesforce/prefill_upd.png)

<!--
type: tab
title: Pre-fill the document field and update the Salesforce record
-->

![Pre-fill Fillable Fields dialog with Allow editing selected for a mapped field](/reference-assets/images/SignNow_Salesforce/prefill_update.png)


<!-- type: tab-end -->

- Click **Save** to save your field mapping.

> [!TIP]
> Having trouble? See [Troubleshooting](/docs/salesforce-troubleshooting#templates).


---

## Document generation in Salesforce

# Document generation in SignNow for Salesforce

Document generation allows users to create a document pre-filled with Salesforce record data and send it for signature in one click, without leaving the record page.

You prepare a .docx template with tags, and each tag is replaced with the matching value from the record when the document is generated. Tags can also add fillable fields for recipients to complete.

## Ways to generate a document

There are three document generation paths in Salesforce. They differ in where the template is stored and how the document is launched.

| Path | Where the template lives | How it is launched | Where the data comes from |
|---|---|---|---|
| Document generation template with a custom button | SignNow Admin Tools > Document Generation | A custom button on a record page | The record the button is placed on |
| Document generation template with the [**Send SignNow Template**](/docs/apex-send-template) Apex action | SignNow Admin Tools > Document Generation | A record-triggered or screen flow | The Salesforce record passed to the action |
| .docx file in Salesforce Files with the [**Generate and Send Document via SignNow**](/docs/apex-generate-and-send-document) or [**Generate Document via SignNow**](/docs/apex-generate-document) Apex action | Salesforce Files | A record-triggered or screen flow | A SOQL query you write in the action |

This article covers the document generation template path. For the Salesforce Files path, see [Generate and Send Document via SignNow](/docs/apex-generate-and-send-document) and [Generate Document via SignNow](/docs/apex-generate-document).

## How it works

- Prepare a .docx template with tags.
- Upload the template in **SignNow Admin Tools** > **Document Generation** and check that its status is **Ready**.
- Optionally, create a document flow to define recipients and invite settings.
- Create a custom button that sends the template, or connect the template to the [Send SignNow Template](/docs/apex-send-template) Apex action in a flow.
- On the record, a user clicks the button to generate and send the document in one click.

## Prepare the .docx template

Before you add tags, decide which Salesforce object the document is sent from. That object determines which fields the tags can pull.

Add tags to your .docx file. A tag is text wrapped in double braces, for example `{{Account.Name}}`.

Tags bind by name: SignNow matches each tag against the fields of the record the document is generated from. There is no mapping step and no query to write.

Tags use **Salesforce API field names**, not field display labels, and they are case-sensitive. `{{Owner.Name}}` is filled with data, while `{{Owner.name}}` stays unfilled in the generated document.

Tag names can contain letters, numbers, dots, and underscores. A tag name must not contain spaces, start with a number or a dot, or end with a dot.

### Data tags

Data tags pull values from the record the document is generated from, and from its related records.

#### Own fields of the record you send from

Write the field API name on its own, with no object prefix. For example, when the document is generated from an Opportunity:

```
{{Name}}
{{OrderNumber__c}}
{{CloseDate}}
```

#### Fields from a related record

Reach a related record's field with dot notation, using the relationship name followed by the field name. Relation paths can cross more than one level:

```
{{Account.Name}}
{{Account.BillingCity}}
{{Owner.Name}}
{{Owner.Email}}
{{Account.Owner.Email}}
```

> [!NOTE]
> `Owner` is a lookup to the User record, so `{{Owner.Name}}` is a related field, not an own field of the record you send from.

To pull a field from one specific child record, such as `{{OpportunityContactRoles[0].Contact.Name}}`, generate the document with the [Generate and Send Document via SignNow](/docs/apex-generate-and-send-document#fields-from-related-and-child-records) or [Generate Document via SignNow](/docs/apex-generate-document) Apex action, since index tags stay empty in document generation templates.

### Dynamic tables

Build a repeating table from a child collection with a `table` tag. Pass the **relationship name** of the child collection, for example `OpportunityLineItems`. Put the opening `{{table(...)}}` tag, the row of item fields, and the closing `{{endtable}}` tag on separate table rows. The item fields are written flat inside the table, with no prefix:

| Item | Quantity | Unit Price | Amount |
|---|---|---|---|
| `{{table(OpportunityLineItems)}}` | | | |
| `{{Name}}` | `{{Quantity}}` | `{{UnitPrice}}` | `{{TotalPrice}}` |
| `{{endtable}}` | | | |
| **Subtotal** | | | `{{$sumabove}}` |

At generation time, SignNow repeats the middle row once for each child record. An Opportunity with four line items produces four rows.

In an `OpportunityLineItems` table, `{{Name}}` returns the line item's name, which Salesforce builds from the opportunity name and the product name, for example `Burlington Textiles Weaving Plant Generator GenWatt Diesel 1000kW`. To identify the product in a row, use `{{ProductCode}}`.

A conditional tag inside a row is evaluated separately for each row, against that row's own fields. For example, this cell prints `BIG` for line items over 20,000 and a dash for the rest:

```
{{if(TotalPrice > 20000.00)}}BIG{{else}}-{{endif}}
```

> [!WARNING]
> **Item fields must belong to the child record itself.** On this path, each entry in a child collection holds only that record's own fields, so a related record's field cannot be reached from inside a `table` or `for` block. For example, in an `OpportunityLineItems` table, `{{PricebookEntry.Name}}` and `{{Product2.Name}}` stay empty. For the same reason, a table nested inside another table's rows is not supported on this path.

> [!NOTE]
> To use a related record's field inside a table row, such as the product name, generate the document with the [Generate and Send Document via SignNow](/docs/apex-generate-and-send-document) or [Generate Document via SignNow](/docs/apex-generate-document) Apex action. Its SOQL subquery can select related fields, for example `(SELECT Product2.Name, Quantity FROM OpportunityLineItems)`. A formula field cannot bring the value onto the line item instead: Salesforce does not allow cross-object formulas on Opportunity Product or Opportunity Contact Role.

> [!NOTE]
> A table tag must be unique per document: the same collection cannot open two `table` blocks in one template.

Learn more about [table tags](/docs/document-generations#generate-a-dynamic-table).

### Lists

To repeat a block of text instead of a table row, use a `for` tag. It takes the same child collection as a table tag, and the same rules apply: pass the relationship name, and use only the child record's own fields inside the block.

```
{{for(OpportunityLineItems)}}
{{Name}} - {{Quantity}} x {{UnitPrice}}
{{endfor}}
```

Each entry in the collection produces one copy of the block.

> [!NOTE]
> A list tag must be unique per document: the same collection cannot open two `for` blocks in one template.

Learn more about [list tags](/docs/document-generations#generate-a-dynamic-list).

> [!WARNING]
> **The same tag can mean different records.** A field tag is resolved against whichever record is in scope where it sits. Inside a `table` or `for` block, that is the child record; outside one, it is the record you send from. So in a template built on an Opportunity, `{{Name}}` inside an `OpportunityLineItems` table returns the line item's name, while the same `{{Name}}` written outside the block returns the Opportunity name.

### Find a Salesforce API field name

- In Salesforce, go to **Setup** > **Object Manager**.
- Select the object you are working with, or a related object, for example **Opportunity**.
- Click **Fields & Relationships**.
- Locate the field by its label. The **Field Name** column shows the API name.

![Opportunity Fields & Relationships page with the Field Name column showing API names](/reference-assets/images/SignNow_Salesforce/salesforce_docgen/docgen_field_api_name.png)

For standard fields such as `Name` or `AccountNumber`, the API name matches the field label without spaces. For custom fields, the API name ends with `__c`, for example `OrderNumber__c`.

> [!NOTE]
> **Compound address fields:** Some fields appear in the Object Manager as a single entry with the data type **Address**, for example `BillingAddress`. Compound fields cannot be used in tags. Use the individual component names instead, following the pattern **[prefix] + [component]**: `BillingStreet`, `BillingCity`, `BillingState`, `BillingPostalCode`, `BillingCountry`. These names are Salesforce conventions and do not appear as separate entries in the Object Manager UI. See the [Salesforce Address Compound Fields documentation](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/compound_fields_address.htm) for the full list.

### System tags and formatting

System tags are calculated by SignNow when the document is generated:

- `{{$today}}` inserts the current date in `MM-DD-YYYY` format, for example `10-05-2026`.
- `{{$sumabove}}` adds up the numeric column above it, which is useful for a total row under a table. With no table column above it, it returns `0`.
- `{{$total=$sumabove}}` stores the sum in the `$total` variable, so you can use it later in the document, for example in a conditional.
- `{{if(condition)}}` … `{{else}}` … `{{endif}}` shows different text depending on a condition, for example `{{if($total > 5000.00)}}`.
- `{{numFormat(TotalPrice, ‘$#,###.00’)}}` formats a number as currency.

Salesforce field values are inserted in the format Salesforce stores them:

| Field type | Example output |
|---|---|
| Date | `2025-10-29` |
| Date/Time | `2025-01-14T06:41:52+0000` (UTC) |
| Currency | `560000` |
| Percent | `90` |
| Number | `2` |

For customer-facing documents, wrap currency and number fields in `numFormat`, for example `{{numFormat(Amount, ‘$#,###.00’)}}`. For a percent field, add the `%` sign as text after the tag: `{{Probability}}%`.

> [!IMPORTANT]
> **Number formatting with `numFormat`:** The format pattern must be wrapped in Word-style curly quotes (`‘` and `’`), for example `{{numFormat(TotalPrice, ‘$#,###.00’)}}`. Straight quotes (`'`) and backticks are not recognized and the tag will not render. Because Word converts straight quotes to curly quotes as you type, enter the tag directly in the .docx template instead of pasting it from a code editor.

### Fillable field tags

Fillable field tags create empty fields for recipients to complete in the generated document. They do not pull Salesforce data. Use straight quotes in these tags.

- Signature: `{{t:s;r:y;o:"Manager";w:100;h:20;}}`
- Text: `{{t:t;r:y;o:"Manager";w:100;h:20;}}`
- Checkbox: `{{t:c;r:n;o:"Manager";}}`

`r:y` marks the field required, `r:n` optional. The value in `o:"Role"` maps to a recipient role in the document flow.

> [!NOTE]
> Fillable field tags accept both single-brace (`{...}`) and double-brace (`{{...}}`) syntax. All other tags must use double braces.

> [!WARNING]
> The role name must match a role defined in your SignNow document flow. Do not use spaces in role names: use `SalesManager` instead of `Sales Manager`.

Learn more about [fillable field tags](/docs/document-generations#fillable-field-tags).

### When a tag stays empty

A tag whose field does not exist on the record, or whose letter case differs from the API name, renders as empty text. Generation continues and no error is shown: the check at upload covers tag name syntax, not whether the field exists. To compare your tags with the exact field names, use the payload dump described in the next section.

Text around an empty tag stays in place. For example, if the account has no shipping address, this line renders as a lone comma:

```
{{Account.ShippingCity}}, {{Account.ShippingState}} {{Account.ShippingPostalCode}}
```

For fields that can be empty, put each one on its own line or leave the punctuation out.

### Check the data behind your tags

To see exactly what data the template receives, add `{{toJson($sysConstants)}}` anywhere in the .docx file and generate the document once. It prints the full payload, so you can copy key names verbatim, including letter case, and confirm the values look right.

The payload shows the structure the tags are matched against:

- Fields of the record you send from appear at the top level, so they are tagged without a prefix.
- Related records appear as nested objects named after the relationship, for example `Account` or `Owner`, so their fields are tagged as `{{Account.Name}}`.
- Child collections appear as arrays named after the relationship, for example `OpportunityLineItems`, and each entry holds only that record's own fields.

> [!NOTE]
> The dump lists every field of the record you send from, but for related records and child collections it lists only the fields your template already tags. Use it to verify the tags you have written rather than to discover related fields you have not tagged yet.

Remove this tag before you use the template for real, since it puts raw data into the document.

### Example of a template with tags

:::tabs
@tab Template with tags
![.docx template with document generation tags](/reference-assets/images/SignNow_Salesforce/salesforce_docgen/docgen_docx_template_tags.png)

@tab Generated document
![Invoice generated from the tagged template with Salesforce data and signature fields](/reference-assets/images/SignNow_Salesforce/salesforce_docgen/docgen_generated_document.png)
:::

The tags used in this example:

| Tag type | Tag | What it does |
|---|---|---|
| Data tag | `{{OrderNumber__c}}` | Inserts a field of the Opportunity itself |
| Data tag | `{{Account.Name}}`, `{{Account.BillingStreet}}`, `{{Account.BillingCity}}`, `{{Account.BillingState}}`, `{{Account.BillingPostalCode}}`, `{{Account.BillingCountry}}`, `{{Owner.Name}}`, `{{Owner.Email}}` | Insert fields from related records |
| Table tag | `{{table(OpportunityLineItems)}}` … `{{endtable}}` | Repeats a row for each line item |
| Table tag | `{{Name}}`, `{{Quantity}}`, `{{UnitPrice}}`, `{{TotalPrice}}` | Insert the line item's own fields inside the table. In this example, `UnitPrice` and `TotalPrice` are wrapped in `numFormat`, as is `$sumabove` in the Subtotal row |
| System tag | `{{$today}}` | Inserts the current date |
| System tag | `{{$sumabove}}`, `{{$total=$sumabove}}` | Totals the column above and stores the value |
| System tag | `{{numFormat(UnitPrice, ‘$#,###.00’)}}` | Formats a number as currency |
| System tag | `{{if($total > 5000.00)}}` … `{{else}}` … `{{endif}}` | Shows different text depending on the total |
| Fillable field tag | `{{t:s;r:y;o:"Manager";w:100;h:20;}}` | Adds a signature field for the Manager role |
| Fillable field tag | `{{t:t;r:y;o:"Manager";w:100;h:20;}}` | Adds a text field for the Manager role |

## Upload the template

- Go to **App Launcher** > **SignNow Admin Tools**.
- Click **Document Generation** in the left-hand menu.
- Click **Upload .docx Template** and select your tagged file. The file must be 10 MB or smaller.

![Document Generation tab with the template list, the Upload .docx Template button and the template actions menu](/reference-assets/images/SignNow_Salesforce/salesforce_docgen/docgen_templates_list.png)

The template appears in the list with its **Name**, **ID**, **Last Modified** date, and **Status**. The template name is taken from the uploaded file name. Use the search field to find a template by name, and the date filter to narrow the list by when templates were last modified.

When you upload a template, SignNow reads its tags and validates them. The **Status** column shows the result:

- **Ready** means the tags passed validation and the template can be sent.
- **Failed** means there is a problem in the tags. The error message from the tag check is shown so you can correct the .docx file and upload it again.

> [!NOTE]
> Templates are validated at upload, not at send time. A single invalid tag name sets the whole template to **Failed**.

> [!NOTE]
> The [Generate and Send Document via SignNow](/docs/apex-generate-and-send-document) and [Generate Document via SignNow](/docs/apex-generate-document) Apex actions read the .docx file from Salesforce Files and do not validate it: there, a tag that breaks the naming rules stays unfilled in the generated document. To check a template's tags before you use it with those actions, upload it here and check that its status is **Ready**.

Note the template **ID**. You need it to send the template with the [Send SignNow Template](/docs/apex-send-template) Apex action.

To replace a template with a new version, rename it, or delete it, use the actions in the row's overflow menu.

## Create a document flow (optional)

A document flow defines recipients, signing order, and the invite email for the generated document. Creating one is optional, but it lets you preset recipient roles and a branded invite so the sender does not have to configure them each time.

To create one, go to **SignNow Admin Tools** > **Document Flows** and follow the steps in [Document flows](/docs/document-flows).

> [!WARNING]
> The recipient roles you define in the flow must match the roles used in your template's fillable field tags, that is, the `o:"Role"` values.

## Send the document with a custom button

A custom button generates and sends the document in one click from a record page.

Create the button in **SignNow Admin Tools** > **Custom Links**, following the steps in [Custom links](/docs/custom-links). When you choose what the button sends, you have two options:

- **Templates: pre-selected by the Admin**: pick the document generation template yourself, and the button always sends that one.
- **Templates: selected by the sender**: the sender chooses a template when they click the button.

Document generation templates are marked **DOCX** in the list.

![Select Template list with templates and a document generation template marked DOCX](/reference-assets/images/SignNow_Salesforce/use_case_template_conditions/custom_links_preselected.png)

To send the generated document together with files attached to the record, also select **File: from the list of files attached to a Salesforce record**. When the sender clicks the button, they select the record files, and SignNow combines them with the generated document in one document group. See [Combine templates and files](/docs/custom-links#combine-templates-and-files).

![Generate Custom Link builder with a DOCX template pre-selected and File selected](/reference-assets/images/SignNow_Salesforce/custom_links/docgen_custom_link_template_and_file.png)

A user opens the record, clicks the button, and SignNow generates the document pre-filled with that record's data and sends it according to the document flow. The generated document group takes the name of the document flow, and the document inside it takes the template name.

If generation fails, the user sees an error message with a process ID.

## Track the generated document

To follow the document after it is sent, add the [Invites Status widget](/docs/salesforce-invites-status-widget) to the record page.

> [!NOTE]
> Having trouble? See [Troubleshooting](/docs/salesforce-troubleshooting#document-generation-templates).


---

## Document flows in Salesforce

# Document flows in SignNow for Salesforce

Create document flows that send predefined documents for signature in one click from Salesforce records.

## Prerequisites

Go to **App Launcher** > **SignNow Admin Tools**.

![SignNow Admin Tools in Salesforce with the Log In and Sign up buttons](/reference-assets/images/SignNow_Salesforce/signnow_admin_tools_upd.png)


Log in to your SignNow account and grant SignNow for Salesforce access to your account.

Click **Document Flows** in the left-hand menu.

To rename or delete a document flow, click **More (…)** next to it and select **Rename** or **Remove**.

![Document Flows list with the More menu open and the Rename and Remove options](/reference-assets/images/SignNow_Salesforce/document_flows_rename.png)

---

On the **Document Flows** tab, Salesforce admins can create scenarios for sending documents for signature to connect them to Salesforce custom links and buttons.

Document flows allow Salesforce users to send predefined documents (with assigned recipient roles, fillable fields, and data mapping) for signature in a single click from Salesforce records. A document flow can also update the Salesforce record once every recipient has signed. See [Set actions on completion](#set-actions-on-completion).

To configure the document flow, follow these steps.

## Add the document flow information

Here, you can name the document flow and (optional) add the document name.

![Details step of the document flow wizard with the flow name and document name filled in](/reference-assets/images/SignNow_Salesforce/document_flow_name_wide.png)

## Configure the sender's experience

Check the options to customize the sender's experience. You can allow or prevent the sender from entering a document name, adding fillable fields, adding recipients, and mapping fillable fields with Salesforce records.

> [!NOTE]
> If you hide the **Add Recipients** screen from the sender, you can manually add recipients or pre-fill recipients' email addresses with record values at the Configure recipients step.

Once done, click **Next to Customization**.


## Customize the invite email message to signers

The next step allows you to customize the email subject and body message to signers.

> [!WARNING]
> This configuration will override email message settings stored in the selected template.

To add data from the Salesforce record to the document name, subject, or body:

- Click **Add record values**.
- Select a **Salesforce object**, then select a **Salesforce field**.
- Copy the generated record value, for example `{{Opportunity.OrderNumber__c}}`, and paste it where you need it.

![Message step with Add record values open, Opportunity and OrderNumber__c selected, and the record values in the subject and body](/reference-assets/images/SignNow_Salesforce/document_flow_message_record_values_wide.png)

Click **Next to Recipients** to proceed.

### Configure recipients

Set up recipients who will sign the document.

> [!WARNING]
> This configuration will override settings stored in the selected template.

#### Pre-fill recipient emails using tags

Similar to the invite email subject and body, you can pre-fill recipients' email addresses with record values from Salesforce records, enabling automated document sending.

Click **Add record values**, select the Salesforce object and field, then copy the record value into the recipient's email field.

![Recipients step with Add record values open, Opportunity and Customer_Email__c selected, and the record value in the recipient's email field](/reference-assets/images/SignNow_Salesforce/document_flow_recipients_record_values_wide.png)

Click **Add Recipient** to add more recipients.

> [!NOTE]
> Name each role exactly as it's named in the template. If a role name doesn't match, the recipient is added as a new role without fields, and the template's role keeps its own recipient.

If you want all recipients to receive documents simultaneously, turn off the **Recipients receive documents in order** toggle.

<!-- theme: warning -->

> [!WARNING]
> If the document flow configuration is incorrect (e.g., if the field is set to be pre-filled with an empty Salesforce record or the document flow is connected to the wrong object), the sender will need to add the required information and complete the missing steps before sending the document.

### Sender's email

Check the **Sender's email** checkbox if the sender needs to be set as a recipient in the configured document flow.

![Recipient 1 with the Sender's email checkbox selected](/reference-assets/images/SignNow_Salesforce/sender_email.png)

<!-- theme: warning -->

> [!WARNING]
> **Document status is not updated when the signer's email matches the sender's email.** If a recipient's email address is identical to the sender's, the `document_group.invite.signed` webhook event is not created for that recipient after signing, so the document status in Salesforce (for example, in the [Invites Status widget](/docs/salesforce-invites-status-widget)) is not updated. To avoid this, use a plus alias for the recipient's email address, e.g., `john.smith+1@company.com` instead of `john.smith@company.com`. Emails sent to the alias are delivered to the same inbox, and the document status updates correctly.

### Signature invite settings

Click the gear icon near the recipient's email field to customize the signature invite for each recipient.

You can protect the document with a password, set an expiration date and reminders, and allow the recipient to forward the document.

> [!NOTE]
> Document forwarding is not allowed with password protection.

![Recipients step with the signature invite settings open: password protection, expiration, reminders, and forwarding](/reference-assets/images/SignNow_Salesforce/signature_invite_settings_wide.png)

Click **Next to Actions on Completion** to proceed.

## Set actions on completion

Update the Salesforce record automatically once the document is signed, for example, move an Opportunity to the **Negotiation/Review** stage as soon as every recipient has signed. This step is optional.

Click **+ Add action**, then:

- In **Object**, select the Salesforce object the document is sent from. Type in the list to search for the object by its API name, for example `Opportunity`.
- In **Salesforce field**, select the field to update, then enter the value in **New value**. The list shows the object's editable fields, including custom fields.
- To update one more field on the same record, click **+ Add field**. A document flow has one action, and the action updates up to two fields.

The **What will happen** box summarizes the update. SignNow applies it to the record the document was sent from when every recipient has signed.

![Actions on completion step setting Stage to Negotiation/Review and Next Step on the Opportunity, with the What will happen summary](/reference-assets/images/SignNow_Salesforce/document_flow_actions_on_completion_wide.png)

Enter the new value in the format the field expects. SignNow checks the format when you save the document flow.

| Field type | New value |
| --- | --- |
| Text | Enter any text. |
| Number, currency, or percent | Enter digits, with a period as the decimal separator and an optional minus sign, for example `5000`, `-10`, or `12.5`. Enter a percent as `30`, not `0.3`. |
| Checkbox | Enter `true` or `false` in lowercase. |
| Date, such as **Close Date** | Enter the date as `YYYY-MM-DD`, for example `2026-12-31`. |
| Date/Time | Enter the date and time as `YYYY-MM-DDThh:mm:ssZ`, for example `2026-12-31T10:00:00Z`. To use another time zone, replace `Z` with an offset, for example `2026-12-31T10:00:00+02:00`. |
| Picklist, such as **Stage** | Enter the API name of the picklist value, with the same capitalization, for example `Closed Won`. The API name can differ from the label shown on the record. |
| Multi-select picklist | Enter the API names of the values separated by `;`, for example `Wind;Solar`. |
| Lookup, such as **Account ID** | Enter the 15- or 18-character ID of a record of the object the field refers to. |

To find a picklist value's API name, in Salesforce Setup go to **Object Manager**, select the object, for example **Opportunity**, then click **Fields & Relationships** and select the field. The values table at the bottom of the field's page lists each value's **API Name**, for example **Stage** has the value `Closed Won`.

> [!WARNING]
> Check picklist values against the field's values in Salesforce Setup. If the picklist is not restricted, Salesforce saves any value it receives, so a misspelled value is written to the record as is.

SignNow updates the record with the Salesforce access of the user who sends the document. Senders need edit access to the selected fields, the same as you have when you save the flow.

If Salesforce rejects the update, for example because of an ID of the wrong object, a validation rule, or the sender's field access, the document still completes and the invite shows a **Salesforce sync failed** badge in the [Invites Status widget](/docs/salesforce-invites-status-widget#salesforce-sync-failed). The fields of an action are saved together, so in that case none of them is updated.

To send documents with the flow, add it to a custom link for the same object. See [Custom links](/docs/custom-links).

Click **Save** to save the document flow.


---

## Custom links

# Custom links

Generate custom buttons for Salesforce record pages that send SignNow templates and record attachments for signature.

## Prerequisites

Go to **App Launcher** > **SignNow Admin Tools**.

![SignNow Admin Tools in Salesforce with the Log In and Sign up buttons](/reference-assets/images/SignNow_Salesforce/signnow_admin_tools_upd.png)


Log in to your SignNow account and grant SignNow for Salesforce access to your account.

Click **Custom Links** in the left-hand menu.

![Custom Links tab in SignNow Admin Tools with the Generate Custom Link builder](/reference-assets/images/SignNow_Salesforce/custom_links/custom_links_builder_overview.png)

---

On the **Custom Links** tab, Salesforce admins can generate a link for custom buttons and add them to Salesforce record pages.

By clicking the custom button, users send documents for signature or sign them themselves, based on the configuration set by the admin. A single custom button can combine SignNow templates with files attached to the record and send them for signature in one document group, so recipients review and sign everything in one SignNow invite instead of several separate requests.

Let's follow the step-by-step instructions for creating a URL for a custom button.

## Select what should be sent for signature

Once a user clicks the custom button, the SignNow application opens the documents pre-defined by the Salesforce admin.

In **Select what should be sent for signature**, select **Templates**, **File**, or both. When **Templates** is selected, choose who picks the templates.

| Option | Description |
| --- | --- |
| **Templates: selected by the sender** | The user selects one or more SignNow templates after clicking the custom button. |
| **Templates: pre-selected by the Admin** | The custom button uses the templates you choose. Select one or more templates from the list and click **Apply**. |
| **File: from the list of files attached to a Salesforce record** | The user selects files attached to the record they are sending from. |

Select both to let the user combine templates and record files in one document group. See [Combine templates and files](#combine-templates-and-files).

![Generate Custom Link builder with Templates and File selected](/reference-assets/images/SignNow_Salesforce/custom_links/custom_links_builder_templates_and_file.png)

> [!NOTE]
> The template list includes both document group templates and document generation templates, which build the document from Salesforce record data. Document generation templates are marked **DOCX**. See [Document generation](/docs/salesforce-document-generation).

### Templates: pre-selected by the Admin

After a user clicks the custom button, they will open or send a document group template pre-selected by the admin.

Select at least one template in **Select Template** to generate the link.

![Templates: pre-selected by the Admin with several templates selected in the Select Template list](/reference-assets/images/SignNow_Salesforce/use_case_template_conditions/custom_links_preselected.png)

> [!NOTE]
> The admin can select multiple document group templates. After clicking the custom button, the user chooses which of them to send.

> [!TIP]
> To offer different templates depending on the field values of the record, see [Select templates based on record field values](/docs/salesforce-select-templates-by-field-values).

If the Salesforce admin adds the document flow to the custom button, the user can perform actions defined by this document flow.

For example, if the admin hid the **Add Fields Screen** and **Map Fields Screen**, the user won't see these steps.

### Templates: selected by the sender

After a user clicks the custom button, the **Select Templates** page opens. The user selects one or more templates, sets their order in **Merge order** if needed, and clicks **Proceed**.

![Select Templates page with two templates selected and the Merge order panel](/reference-assets/images/SignNow_Salesforce/custom_links/custom_links_sender_select_templates.png)

The steps after **Proceed** depend on the document flow added to the custom button. See [Configure the sender's experience](/docs/document-flows#configure-the-senders-experience).

### File: from the list of files attached to a Salesforce record

After a user clicks the custom button, they can select files attached to the record they are sending from and send them for signature.

> [!NOTE]
> The supported file types are PDF, DOCX, PNG, JPG, JPEG, GIF, BMP, DOC, ODT, RTF, XML, XLS, XLSX, PPT, and PPTX.

If multiple files are available, the user can merge them and manage the merging order. For this scenario, the document flow configuration can also be added.

> [!NOTE]
> Once all recipients have signed the document, it is saved in the **Notes & Attachments** section of the associated Salesforce object.

### Combine templates and files

Combine your standard SignNow templates with documents that are specific to each record in one custom button. For example, send your contract template together with the quote or proposal attached to the Opportunity. The user prepares everything in one go, and recipients receive all documents in a single invite. Once all recipients sign, the completed documents are saved to the record.

When both **Templates** and **File** are selected:

- The user clicks the custom button, selects files attached to the record on the **Select File** page, and clicks **Proceed**.
- On the **Select Templates** page, the user selects the templates to add. If the admin pre-selected templates, only those templates are listed, and a single pre-selected template is already selected.
- In **Merge order**, the user can set the order of the documents and clicks **Proceed**.

SignNow combines the selected files and templates into one document group. The next steps depend on the document flow added to the custom button.

## Choose how the document is delivered

In **Delivery and Invite Settings**, choose what happens after the user selects the documents:

- **Send for signature**: the user prepares the document and sends a signature invite to recipients. This is the default option.
- **Self Sign: sign the document without sending**: the user fills out and signs the document themselves, without recipients.

Self Sign works with files attached to the Salesforce record. To use it, select **File: from the list of files attached to a Salesforce record**. A document flow applies only to **Send for signature**, so **Add a SignNow Document Flow** is hidden when **Self Sign** is selected.

| What is sent | Send for signature | Self Sign |
| --- | --- | --- |
| **Templates** (selected by the sender or pre-selected by the admin) | Yes | No |
| **File** | Yes | Yes |
| **Templates** and **File** | Yes | No |

![Generate Custom Link builder with File and Self Sign selected](/reference-assets/images/SignNow_Salesforce/custom_links/custom_links_builder_self_sign.png)

### Self Sign a document

After a user clicks a custom button configured for Self Sign:

- On the **Select File** page, select one or more files attached to the record, set their order in **Merge order** if needed, and click **Proceed**.

![Select File page with two files and the Merge order panel](/reference-assets/images/SignNow_Salesforce/custom_links/custom_links_self_sign_select_file.png)

- The document opens in the SignNow editor. Add your signature, initials, text, date, and other fields from the left panel, then click **Done**.

![SignNow editor with signature, printed name, and date added](/reference-assets/images/SignNow_Salesforce/custom_links/custom_links_self_sign_editor_signed.png)

If you click **Done** before adding your signature, the **Signature Missing** page opens. Click **Back to Editor** to return to the document and add your signature, or click **Download Document** to save the document as it is.

![Signature Missing page with Back to Editor and Download Document](/reference-assets/images/sharepoint_new/sharepoint_selfsign_signature_missing.png)

- On the **Document Complete Successfully** page, click **Download Document** to save a copy.

![Document Complete Successfully page with Download Document](/reference-assets/images/SignNow_Salesforce/custom_links/custom_links_self_sign_complete.png)

The signed document is saved in the **Notes & Attachments** section of the Salesforce record.

![Notes and Attachments on the Account record with the signed document](/reference-assets/images/SignNow_Salesforce/custom_links/custom_links_self_sign_notes_attachments.png)

## **Add the SignNow document flow (optional)**

A document flow applies to custom buttons that use **Send for signature**.

Click on the dropdown arrow to select the existing document flow.

The document flow settings will be applied to documents a user will send for signature.

If nothing is selected, the user can customize documents and signature invites before sending them to recipients.

![Add a SignNow Document Flow dropdown with the list of document flows open](/reference-assets/images/SignNow_Salesforce/add_document_flow_upd.png)

## **Select the object**

Select the Salesforce object where you will add the custom button. Type in the list to search for the object by its API name, for example `Opportunity`. The link updates automatically.

![Generate a link for your custom button with the Opportunity object selected and the generated link](/reference-assets/images/SignNow_Salesforce/custom_links/custom_links_select_object.png)

If the document flow updates the record on completion, select the same object as in the flow so that SignNow can update the record. When the objects differ, an alert names the flow's object, for example: *The document flow is set to Opportunity. Choose the same object to update the record.*

![Alert saying the document flow is set to Opportunity while Account is selected as the object](/reference-assets/images/SignNow_Salesforce/custom_links/custom_links_object_mismatch_alert.png)

Click **Copy link** and insert the link into the custom button.

## Add the custom button to the Salesforce object

Go to **Setup** > **Object Manager** and select the object (**Contact** in our example) where you want to add the custom button.

![Object Manager in Salesforce Setup with the Contact object](/reference-assets/images/SignNow_Salesforce/setup_object_contact.png)

Click the required object and click **Buttons, Links, and Actions** on the left panel. Then click **New Button or Link** in the top right corner.

![Buttons, Links, and Actions page for the Contact object with the New Button or Link button](/reference-assets/images/SignNow_Salesforce/new_button_link.png)

Enter the custom button details, such as the label, display type, behavior, etc. The **Content Source** should be the URL.

Insert the generated link into the **Custom Button or Link Editor** field. Click **Save** to save your button.

> [!IMPORTANT]
> Ensure the **Display Type** is set to **Detail Page Button**.

![New Button or Link form for the Contact object with the Detail Page Button display type](/reference-assets/images/SignNow_Salesforce/save_button.png)

Next, add the custom button to the object page layout.

Select **Page Layout** on the left panel and click the required page layout from the list.

![Page Layouts list for the object](/reference-assets/images/SignNow_Salesforce/page_layout.png)

Click **Mobile & Lightning Actions** and locate the custom button you created. Drag and drop the button to the desired section of the page layout and click **Save**.

![Contact page layout editor with the custom button added to Mobile and Lightning Actions](/reference-assets/images/SignNow_Salesforce/actions_drag_and_drop.png)

> [!NOTE]
> In the Salesforce Classic interface, navigate to **Buttons** and locate the custom button you created. Drag and drop it into the **Custom Buttons** section on the page layout, then click **Save**.

Your custom button should be visible to users.

![Contact record with the custom SignNow button in the actions menu](/reference-assets/images/SignNow_Salesforce/send_with_sn_visible.png)

> [!TIP]
> Having trouble? See [Troubleshooting](/docs/salesforce-troubleshooting#custom-links).


---

## Custom reports

# Custom reports

Generate custom reports to review the status of all documents sent via SignNow from your Salesforce organization.

Reports are built on the **SignNow Invitations** and **SignNow Signers** objects. For their fields and status values, see [Signing status and record updates](/docs/salesforce-signing-status-and-record-updates).

Follow these steps to create a custom report for all invites sent from your Salesforce organization.

## Step 1

Go to **Setup > Report Types**. 

Click **Continue** to start building your custom report.

![Salesforce Setup with Report Types found in Quick Find](/reference-assets/images/SignNow_Salesforce/custom_reports/report_types.png)

## Step 2

To create a new report type, click **New Custom Report Type**.

![Custom Report Types page with the New Custom Report Type button](/reference-assets/images/SignNow_Salesforce/custom_reports/new_custom_report_type.png)

## Step 3

Select the primary report object: **SignNow Invitations**.

Enter the report details as needed.

Set availability to **Deployed**.

Click **Next** to proceed.

![New Custom Report Type form with the primary object, labels, category and deployment status](/reference-assets/images/SignNow_Salesforce/custom_reports/new_custom_report_settings.png)

## Step 4

Select related objects: **SignNow Signers**, and A to B relationship: **"A" records may or may not have related "B" records**.

Click **Save**.

![New Custom Report Type relationship between SignNow Invitations and SignNow Signers](/reference-assets/images/SignNow_Salesforce/custom_reports/ab_relationship.png)

You have set up your custom report. 

![Custom report type details with the object relationship and fields](/reference-assets/images/SignNow_Salesforce/custom_reports/report_details.png)

Now, let's generate the report with SignNow invites sent to users.

## Step 5

Click the **App Launcher** (grid icon in the upper-left corner) and start typing *reports*. 

![App Launcher search for Reports](/reference-assets/images/SignNow_Salesforce/custom_reports/generate_report_start.png)

## Step 6

Click **New Report**.

![Reports tab with the New Report button](/reference-assets/images/SignNow_Salesforce/custom_reports/template_generate_new.png)

## Step 7

On the **Select a Report Type** page, click the report you have just created. Click **Start Report**.

![Create Report dialog with the custom report type and the Start Report button](/reference-assets/images/SignNow_Salesforce/custom_reports/start_report.png)

## Step 8

Customize your report by adding fields and filters. Click **Save & Run** to generate a report.

![Report builder with SignNow Invitation and SignNow Signer fields](/reference-assets/images/SignNow_Salesforce/custom_reports/add_fields_filters.png)

## Step 9

Name the report, add a short description, and select a folder to save it. Click **Save**.

![Save Report dialog with the report name, description and folder](/reference-assets/images/SignNow_Salesforce/custom_reports/save_report.png)



---

## Apex actions

# Integrate eSignatures into Salesforce Flow with Apex actions

Automate your eSignature workflows directly within Salesforce without writing code. By using SignNow Apex actions inside the Salesforce Flow Builder, you can trigger signature requests based on record updates, button clicks, or specific dates. This guide provides 'recipes' for common scenarios like sending contracts, generating embedded invites, and tracking status updates.

## How it works

In Salesforce Flow Builder, SignNow Apex actions behave like standard building blocks. You do not need to write code to use them. Simply drag an Action element onto your canvas and select the specific SignNow task you want to perform (e.g., **Send SignNow Template** or **Get SignNow Document Group**).


The following SignNow Apex actions are available:


### Sending SignNow templates and documents
- [Send SignNow Template](/docs/apex-send-template): This action allows users to send a specific template for signature based on Salesforce events.
- [Send SignNow Template as the current user](/docs/apex-send-template-current-user): Send a template from the SignNow account of the Salesforce user who triggers the flow, instead of the integration user.
- [Generate and Send Document via SignNow](/docs/apex-generate-and-send-document): This action allows users to dynamically generate a document by merging a .docx template with Salesforce record data and send it for signature based on Salesforce events.
- [Send SignNow Invite via SMS](/docs/apex-send-sms-invite): This action allows users to send a document group for signature via SMS. Recipients will receive a text message containing a link to the document group.
- [Send SignNow Freeform Invite](/docs/apex-send-freeform-invite): This action allows users to send documents without fillable fields to recipients.

### Sending Salesforce attachments
- [Send File via SignNow by File ID](/docs/apex-send-file-id): This action allows users to send a specific attachment for signature based on Salesforce events.
- [Send File via SignNow by File Name](/docs/apex-send-file-name): This action allows users to send a record attachment for signature based on the file name and Salesforce actions.

### Managing documents
- [Generate Document via SignNow](/docs/apex-generate-document): This action generates a document by merging a .docx template with Salesforce record data and returns the Document Group ID for use in subsequent flow steps.
- [Get SignNow Document Group](/docs/apex-get-document-group): This action retrieves detailed information about a specific document group (such as IDs, status, and documents), which can then be used in downstream automation or displayed to the user.
- [Create SignNow Document Group from SignNow Template](/docs/apex-create-document-group-from-template): This action allows users to create a document group without sending it for signature.
- [Get SignNow Document Group Recipients](/docs/apex-create-document-group-from-template): This action allows users to retrieve information about document group recipients, including email addresses, signing order, assigned documents, and more.

### Building Salesforce applications
- [Create SignNow Embedded Invite](/docs/apex-create-embedded-invite): This action allows users to create an embedded document group invite. To share an embedded invite with recipients, Salesforce users need to get a link to the invite using the Get SignNow Embedded Signing Session URL action.
- [Get SignNow Editor URL](/docs/apex-editor-url): This action allows users to create a link for the embedded document group editing.
- [Get SignNow Send Invite URL](/docs/apex-get-send-invite-url): This action allows users to create a link for sending the document group for signature.

### Post-sending management
- [Get SignNow Invite Data](/docs/apex-get-invite-data): This action allows users to retrieve a JSON response with document(s) data, which can be parsed and used for other purposes.
- [Reassign SignNow Invite](/docs/apex-reassign-invite): This action allows users to reassign a document group signature invite to a different email address.
- [Cancel SignNow Invite](/docs/apex-cancel-invite): This action allows users to cancel the signature invite based on Salesforce events.
- [SignNow Invite Status Update](/docs/apex-invite-status-update-event) event can be used to trigger actions in Salesforce based on SignNow document group events.
- [Signing status and record updates](/docs/salesforce-signing-status-and-record-updates): SignNow stores invite and recipient status as Salesforce records, which record-triggered flows and reports can build on.


## **Prerequisites**

Before using the Apex actions with SignNow eSignature workflows, follow these steps:

⚫ Authorize the integration user in the SignNow for Salesforce application. The Apex actions will be executed on behalf of this user. 

> [!IMPORTANT]
> The integration user must have the System Administrator profile or a custom profile with equivalent permissions.

⚫ Add the integration user to the SignNow custom settings.
- Go to **Setup > Custom settings > SignNow settings**.
- Under **Manage**, in the **Default Organization Level Value** section, click **New** or **Edit** (if an entry already exists).

![SignNow Settings custom setting definition with the Manage button](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_integration_user_custom_settings_manage.png)

- In the **Integration User ID** field enter the ID of the authorized integration user.

![SignNow Settings Edit page with the Integration User ID field](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_integration_user_add_id.png)

- Click **Save**.

> [!WARNING]
> The Integration User ID must be set at the organization level, in the **Default Organization Level Value** section. If it's added in a user-specific entry instead, SignNow Apex actions in flows are not executed.

![SignNow Settings with the Integration User ID in the Default Organization Level Value section](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_org_custom_settings.png)

⚫ Make sure the `universal_signnow_rss` remote site is active.
- Go to **Setup > Remote Site Settings**.
- Find **universal_signnow_rss** and check that **Active** is selected. If it isn't, click **Edit**, select **Active**, and click **Save**.

![Remote Site Settings with the universal_signnow_rss site marked Active](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_universal_app_active.png)


⚫ Make sure the integration user has the required SignNow permission sets.

Learn how to [assign the permission set to users](/docs/installation#assign-the-permission-set-to-users).

## How to retrieve the integration user ID

- Go to **Setup > Users**.
- Select the integration user.
- The user ID is displayed in the browser’s URL.

![Salesforce user page with the user ID in the browser URL](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_integration_user_id.png)

> [!NOTE]
> Admins can invoke Apex actions from **Flows** or **Process Builder**. In this guide, we will configure Apex actions using **Flows**.

## Apex actions glossary

**Flow Builder**: Salesforce’s visual automation tool that allows administrators to design process logic (triggers, conditions, and loops) using a point-and-click interface. It serves as the canvas where SignNow Apex Actions are connected to Salesforce records and events.

**Apex Action**: A pre-built automation element in Salesforce that performs complex tasks, such as sending data to the SignNow API, without requiring custom code. In Flow Builder, Apex Actions appear as drag-and-drop elements that can be configured using simple input fields.

**Record-triggered flow**: A type of automation that runs in the background. It watches for changes to data (e.g., "When an Opportunity closes"). You use this to send contracts automatically the moment a record is updated.

**Screen flow**: A type of automation designed for user interaction. Unlike background flows, this launches a visual interface. You use this to build workflows launched by a button that let users manually customize settings, confirm a document before sending, or simply view data.

**Element**: A single building block on the flow canvas representing a specific step in the automation. Elements are categorized into Logic (e.g., Decisions, Loops), Data (e.g., Get Records, Update Records), and Interaction (e.g., Screens, Actions).

**Variable**: A container used to carry information from one step to another. For example, if you find a Contact in Step 1, you store their email in a Variable so you can pass it to the SignNow Action in Step 2.

**Collection**: A special type of variable that stores a list of values (e.g., a list of 10 Document IDs or 5 Email Addresses). You use Collections when you need to process multiple records at once, often using a Loop element to handle them one by one.


---

## Send SignNow Template

# Apex action: Send SignNow Template

> [!NOTE]
> Before configuring this Apex action, review the [prerequisites](/docs/salesforce-apex-actions#prerequisites) for SignNow Apex actions and complete the required setup steps.

The **Send SignNow Template** action allows users to send a specific template for signature based on Salesforce events.

For example, let’s configure the template to be sent when the Account name is changed.

## Step 1. Configure the flow trigger

Go to **Flows > New Flow.**

![Flows page in Salesforce Setup with the New Flow button](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_new_flow.png)

Select **Start From Scratch** or **Use a Template**. Click **Next**.

![New flow dialog with Start From Scratch selected](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_from_scratch.png)

Select the flow type. In this example, we will create a **Record-Triggered Flow**. Click **Create**.

![Flow type selection with Record-Triggered Flow selected](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_record_triggered.png)

Configure the flow trigger:

- Select the object whose record triggers the flow. For our example, it is **Account**.
- Select when the flow should be triggered. For our example, `A record is updated`.
- Set entry conditions (condition requirements, record field, operator, and value). For our example, the condition field is `Account Name`, and the condition operator is `Is Changed`.
- Select how often the flow should run.
- Under **Optimize Flow for**, select **Actions and Related Records**. This is required for external callouts.

![Configure Start panel for an Account record-triggered flow with an entry condition on the Name field](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_send_template_trigger.png)

## Step 2. Configure the Send SignNow Template action

Once the trigger settings are ready, click the **+** icon to add the SignNow action to the flow.

- Start typing *signnow* in the input field to display available SignNow actions. Select **Send SignNow Template**.

![Flow action search listing the SignNow actions](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_signnow_all_actions.png)

Now, let’s configure the SignNow action.

- Enter an action label and brief description to help locate the flow.
- Specify the input values for the SignNow action. In our example, these are the record ID, the SignNow template ID, and the SignNow document flow ID (optional).
    - Enter the record ID which will trigger the action. For our example, it is **Triggering Account > Account ID**.
    - Enter the SignNow template ID that will be sent for signature.

    > [!TIP]
    > Copy the template ID by going to the **SignNow Admin Tools** > **Templates** page.

    > [!TIP]
    > To generate a document pre-filled with Salesforce data instead of sending a document group template, enter the ID of a document generation template. Copy it from the **SignNow Admin Tools** > **Document Generation** page. See [Document generation](/docs/salesforce-document-generation).

    - (Optional) Add the SignNow Document Flow ID. Switch the toggle to **Included** and enter the ID.

   > [!TIP]
   > Copy the SignNow flow ID by going to the **SignNow Admin Tools** > **Document Flows** page. If you add the SignNow Document Flow ID, the template will be sent according to this pre-configured flow.

![Send SignNow Template action settings in Flow Builder](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_send_template_configuration.png)

- Once the configuration is ready, click **Save**.

- Add the flow label and short description. Click **Save** again.

![Save the flow dialog with the flow label and description](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_send_template_save_flow.png)

Click **Activate** in the top right corner of the screen to make the flow active.

The green **Active** label indicates that the flow has been successfully activated.

![Send SignNow Template flow in Flow Builder with the Active label](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_send_template_activate.png)

## Result

Each time the Account name changes, the specified document will be sent for signature to recipients configured in the template or SignNow document flow.

To send the template from the SignNow account of the user who triggers the flow, see [Send SignNow Template as the current user](/docs/apex-send-template-current-user).

To send a template for multiple records on a schedule, see [Send SignNow Template on a schedule](/docs/apex-send-template-scheduled).

---

View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).


---

## Send SignNow Template as the current user

# Send SignNow Template as the current user

Send invites from Salesforce in each user's own name, so recipients see the person they work with, not a shared admin.

SignNow Apex actions send invites on behalf of the integration user set in the **SignNow Settings** custom settings. To send an invite as the user who triggers the flow, add an **Update Records** element before the [Send SignNow Template](/docs/apex-send-template) action that sets **Integration User ID** to the running user's ID. The invite is then sent from that user's SignNow account: their email appears as the sender in the [Invites Status widget](/docs/salesforce-invites-status-widget), and recipients get the invite email from their name.

> [!NOTE]
> Before configuring this flow, review the [prerequisites](/docs/salesforce-apex-actions#prerequisites) for SignNow Apex actions and the [Send SignNow Template](/docs/apex-send-template) action.

## Before you start

To configure the flow, use a Salesforce user with the System Administrator profile or a custom profile with equivalent permissions.

Make sure that every Salesforce user who triggers the flow:

- Has a Salesforce user license that allows Visualforce page access.
- Has the **SignNow Set** permission set assigned. See [Assign the SignNow permission set](#assign-the-signnow-permission-set).
- Has logged in to SignNow at least once through the [Invites Status widget](/docs/salesforce-invites-status-widget) on a Salesforce record page. Each user logs in to Salesforce with their own credentials, opens a record with the widget, clicks **Log in**, and grants access with their own SignNow account.
- Has a SignNow account in the same workspace as the template that the flow sends.

If you add a SignNow document flow to the action, configure it to send without sender input: hide all sender screens and set an email address or tag for every recipient. See [Document flows](/docs/document-flows).

### Assign the SignNow permission set

Go to **Setup > Users** and open the user. Click **Permission Set Assignments**.

![User detail page with the Permission Set Assignments link highlighted](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_current_user_permission_set_assignments.png)

Click **Edit Assignments**, move **SignNow Set** to **Enabled Permission Sets**, and click **Save**.

![SignNow Set in the Enabled Permission Sets list](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_current_user_enable_permission_set.png)

To assign the permission set to several users at once, go to **Setup > Permission Sets > SignNow Set** and click **Manage Assignments**.

## Step 1. Configure the flow trigger

Create a record-triggered flow as described in [Send SignNow Template](/docs/apex-send-template#step-1-configure-the-flow-trigger). In this example, the flow runs when the name of an Account is changed:

- **Object**: Account
- **Trigger the Flow When**: A record is updated
- **Entry condition**: Account Name, Is Changed, True
- **Optimize the Flow for**: Actions and Related Records

![Configure Start panel of a record-triggered flow on Account with the Account Name Is Changed entry condition and Actions and Related Records selected](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_current_user_flow_trigger.png)

## Step 2. Set the current user as the integration user

Click the **+** icon after the trigger and add an **Update Records** element. Configure it as follows:

- **How to Find Records to Update and Set Their Values**: Specify conditions to identify records, and set fields individually
- **Object**: SignNow Settings
- **Condition Requirements to Update Records**: None—Update All cuda_signnow__universal_signnow_helper__c records
- **Set Field Values**: Integration User ID ← Running User > Id

![Update Records element setting Integration User ID to Running User > Id in SignNow Settings](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_current_user_update_records.png)

## Step 3. Add the Send SignNow Template action

Click the **+** icon after the **Update Records** element and add the **Send SignNow Template** action. Specify the input values:

- **Record ID**: Triggering Account > Account ID
- **SignNow Template ID**: the ID of the template to send. Copy it on the **SignNow Admin Tools > Templates** page.
- **SignNow Document Flow ID** (optional): the ID of a document flow configured to send without sender input. Copy it on the **SignNow Admin Tools > Document Flows** page.

![Flow with Update custom records followed by the Send SignNow Template action and its input values](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_current_user_send_template.png)

Click **Save**, then **Activate**.

## Step 4. Check the result

Before the flow runs, **Setup > Custom Settings > SignNow Settings > Manage** shows the admin's ID in **Integration User ID**.

![SignNow Settings with the admin's ID in Integration User ID](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_current_user_settings_before.png)

After a user triggers the flow, the same field shows that user's ID.

![SignNow Settings with the triggering user's ID in Integration User ID](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_current_user_settings_after.png)

Open the record in Salesforce. In the **Invites Status widget**, each invite shows the SignNow account of the user who triggered the flow as the sender. Recipients get the invite email from the name and email address of that user.

![Invites Status widget showing two invites of the same template from different senders](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_current_user_widget_senders.png)

> [!WARNING]
> The Integration User ID keeps the last triggering user's ID after the flow finishes. Every SignNow Apex action that runs after the **Update Records** element, in this flow or in other flows, sends as that user. If other flows must send as the admin, add an **Update Records** element that sets **Integration User ID** back to the admin's user ID before their SignNow actions. To see which flows run on the same object and in what order, open **Flow Trigger Explorer** from **Setup > Flows**.

## Send a document group that already exists

**Send SignNow Template** creates a document group from the template and sends it in one step. To send a document group created earlier, for example with [Create SignNow Document Group from Template](/docs/apex-create-document-group-from-template) or [Generate Document via SignNow](/docs/apex-generate-document), use one of the following:

- Call [`POST /documentgroup/{document_group_id}/groupinvite`](/docs/doc-group-field-invite/operations/invite-to-sign-document-group) from Apex to send it without opening SignNow.
- Use [Get SignNow Send Invite URL](/docs/apex-get-send-invite-url) to let the user review and send it in SignNow.

## Troubleshooting

| Issue | Solution |
| --- | --- |
| The invite stays in **Draft** in the Invites Status widget. | The document flow waits for input from the sender. In **SignNow Admin Tools > Document Flows**, hide all sender screens and set an email address or tag for every recipient. Check that recipient tags point to fields with values on the triggering record. |
| Salesforce shows *Can't assign permission set SignNow Set to user. The user license doesn't allow Visualforce Page Access.* | In **Setup > Users**, edit the user and select a user license that allows Visualforce page access, then assign the permission set. |

For other issues, see [Troubleshooting](/docs/salesforce-troubleshooting).

---

View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).


---

## Send SignNow Template on a schedule

# Send SignNow Template on a schedule

Send a SignNow template for signature to a batch of Salesforce records on a set date and time via a schedule-triggered flow.

> [!NOTE]
> Before configuring this Apex action, review the [prerequisites](/docs/salesforce-apex-actions#prerequisites) for SignNow Apex actions and complete the required setup steps.

The flow uses the **Send SignNow Template** action and can run, for example, every morning or once a week. You don't need to write code for this.

On each run, the flow does the following:

1. Finds all records that match the filter conditions.
2. Sends the SignNow template for signature for each record.
3. Marks each record as sent, so the next run skips it.

In this example, we'll send a template for signature once for each Account marked for sending, and mark each Account after the template is sent.

> [!NOTE]
> Your Salesforce admin sets up and maintains this flow in your Salesforce org.

The template is sent on behalf of the integration user set in **Setup > Custom Settings > SignNow Settings**. Recipients get the invite from this user's SignNow account.

## Step 1. Prepare the record fields

The flow needs two things from each record:

- **A selection condition.** It tells the flow which records to send the template for.
- **A "sent" flag.** The flow sets it after sending, so the next run doesn't send the template again for the same record.

You can use fields that already exist on the object, for example an Opportunity **Stage** as the selection condition and a status field as the flag. In this example, we'll create two checkbox fields on the Account object.

1. Go to **Setup > Object Manager > Account > Fields & Relationships** and click **New**.

![Account Fields and Relationships page with the New button](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_scheduled_new_field.png)

2. Select **Checkbox** and click **Next**.

![New field data type selection with Checkbox selected](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_scheduled_checkbox_type.png)

3. Enter the field label, set **Default Value** to **Unchecked**, and click **Next**. Create two fields this way:
   - **SignNow Test** (`SignNow_Test__c`): you select it on the records that need the template.
   - **SignNow Sent** (`SignNow_Sent__c`): the flow selects it after sending the template.

![New Custom Field details for the SignNow Sent checkbox](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_scheduled_field_details.png)

> [!TIP]
> The field names in this example are arbitrary. Name the fields according to your needs, for example, **Send for Signature**, and use the same names in the flow conditions.

4. On the field-level security step, make sure the fields are visible and not read-only for the profiles that will edit them. On the last step, add the fields to the page layout. Click **Save**.

> [!NOTE]
> If the checkboxes appear on the record but can't be selected when you edit it, the field is read-only. Open the page layout, click the wrench icon next to the field, and clear **Read-Only**. Also check the field-level security for your profile.

![Account page layout with the Field Properties dialog and the Read-Only option](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_scheduled_field_read_only.png)

5. Open the records that need the template and select **SignNow Test**. Leave **SignNow Sent** unchecked.

![Account record edit form with SignNow Test selected and SignNow Sent cleared](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_scheduled_mark_record.png)

## Step 2. Create a schedule-triggered flow

Go to **Setup > Flows > New Flow**. In the **New Automation** dialog, select **Schedule-Triggered Flow**.

![New Automation dialog with Schedule-Triggered Flow selected](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_scheduled_flow_type.png)

## Step 3. Set the schedule

In the **Start** element, click **Set Schedule** and set the following:

- **Start Date** and **Start Time**: when the first run starts. The time uses your org's default time zone, which you can check on the **Setup > Company Information** page.
- **Frequency**: how often the flow runs: **Once**, **Daily**, or **Weekly**. Choose the frequency that matches how often you need to send documents.

![Set a Schedule panel with the start date, start time and frequency](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_scheduled_set_schedule.png)

## Step 4. Choose the records

In the **Start** element, click **Choose Object** and set the following:

- **Object**: the object whose records the flow processes. For our example, it is **Account**.
- **Condition Requirements**: **All Conditions Are Met (AND)**.
- Conditions:
  - `SignNow Test` **Equals** `True`
  - `SignNow Sent` **Equals** `False`

The flow runs once for each record that meets the conditions. Inside the flow, the current record is available in the `$Record` global variable.

![Account object with filter conditions SignNow Test equals True and SignNow Sent equals False](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_scheduled_choose_object.png)

> [!TIP]
> **Max Batch Size** is optional. Leave it empty to use the Salesforce default.

## Step 5. Add the Send SignNow Template action

Under the **Start** element, click the **+** icon and select **Action**. Start typing *signnow* and select **Send SignNow Template**.

Configure the action:

- Enter an action label, for example, **Send SignNow Template**.
- **Record ID**: select **Triggering Account > Account ID** (`{!$Record.Id}`).
- **SignNow Template ID**: enter the ID of the template to send. Copy it on the **SignNow Admin Tools** > **Templates** page.
- (Optional) **SignNow Document Flow ID**: enter the ID of a pre-configured document flow. If you add it, the template is sent according to this flow. Copy it on the **SignNow Admin Tools** > **Document Flows** page.

![Send SignNow Template action settings in the scheduled flow](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_scheduled_action_config.png)

> [!IMPORTANT]
> If you add a document flow:
>
> - Add the same recipient steps as in the template, with the same names.
> - Configure the flow to send without sender input: hide all sender screens and set an email address or tag for every recipient.
>
> See [Document flows](/docs/document-flows).

## Step 6. Mark the records as sent

Add this element **after** the Send SignNow Template action.

1. Under the action, click the **+** icon and select **Update Records**.
2. Enter a label, for example, **Mark SignNow Sent**.
3. Under **How to Find Records to Update and Set Their Values**, select **Use the account $Record global variable**.
4. Under **Set Filter Conditions**, leave **None—Always Update Record**.
5. Under **Set Field Values for the Account Record**, set **SignNow Sent** to **True**.

![Mark SignNow Sent element that sets SignNow Sent to True on the Account record](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_scheduled_update_records.png)

The flow looks like this: **Start** → **Send SignNow Template** → **Mark SignNow Sent** → **End**.

## Step 7. Save and activate the flow

Save and activate the flow as described in [Send SignNow Template](/docs/apex-send-template).

> [!WARNING]
> Activate the flow before the start time you set.

To check that the run is scheduled, go to **Setup > Scheduled Jobs**. The flow is listed with the **Scheduled Flow** type and the next run time.

![Scheduled Jobs page listing the scheduled flow and its next run time](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_scheduled_jobs.png)

## Result

At the scheduled time, the flow sends the template to the recipients configured in the template or SignNow document flow, once for each matching record. It then selects **SignNow Sent** on each record, so the next run skips it.

The SignNow action sends the template in a background Apex job, so the documents might go out a few minutes after the flow starts. To check the job status, go to **Setup > Apex Jobs** and find the **SendTemplateController** job.

![Apex Jobs page with the background job that sends the template](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_scheduled_apex_jobs.png)

After the run, **SignNow Sent** is selected on each processed record.

![Account record with SignNow Test and SignNow Sent selected after the run](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_scheduled_record_sent.png)

To send the template for a record again, clear **SignNow Sent** on that record. The next run will include it.

## Troubleshooting

If the documents aren't sent, check the following:

- **Setup > Paused and Failed Flow Interviews**: open the **All Failed Flow Interviews** list view to see flow errors.
- **Setup > Apex Jobs**: check the status and failures of the **SendTemplateController** job.
- **The invite stays in Draft in the Invites Status widget**: the document flow waits for input from the sender. On the **SignNow Admin Tools** > **Document Flows** page, hide all sender screens and set an email address or tag for every recipient. Check that recipient tags point to fields with values on the record.
- **Document flow steps**: if you added a SignNow Document Flow ID, check that the recipient steps in the document flow match the steps in the template, including their names.
- **The flow didn't run at all**: make sure at least one record meets the filter conditions and that the flow was activated before the start time.
- **Error emails**: check the error emails for details about the failure.

> [!NOTE]
> The recipient of the error email depends on where the flow fails:
>
> - If the flow fails before it reaches the Send SignNow Template action, the email goes to the recipient set in **Setup > Process Automation Settings** > **Send Process or Flow Error Email to**.
> - If the Send SignNow Template action fails, the email goes to the integration user set in **Setup > Custom Settings > SignNow Settings**.

![Process Automation Settings with Send Process or Flow Error Email to set to User Who Last Modified the Process or Flow](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_scheduled_error_email.png)

---

View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).


---

## Generate and Send Document via SignNow

# Apex action: Generate and Send Document via SignNow

> [!NOTE]
> Before configuring this Apex action, review the [prerequisites](/docs/salesforce-apex-actions#prerequisites) for SignNow Apex actions and complete the required setup steps.

The **Generate and Send Document via SignNow** action dynamically generates a document by merging a .docx template with Salesforce record data, then sends it for signature based on a Salesforce event.

> [!NOTE]
> This action reads its .docx file from Salesforce Files and requires a File ID. It does not accept a document generation template stored in SignNow Admin Tools: to send one of those, use the [Send SignNow Template](/docs/apex-send-template) action. For an overview of all document generation paths in Salesforce, see [Document generation](/docs/salesforce-document-generation).

> [!NOTE]
> **Asynchronous action:** This action runs in the background after the flow completes. If you need to use the action's output in subsequent flow steps, use the synchronous version instead: **Generate and Send Document via SignNow (sync)**.

> [!NOTE]
> **Generate and Send Document via SignNow (sync)** works the same way but runs within the current flow transaction on a single record. Use it in screen flows when you need the action's output. It returns the **Document Group ID** and **Invite ID**, which you can use in subsequent flow steps.

For example, let's configure the action to generate and send a sales invoice whenever an Opportunity is moved to the **Closed Won** stage.

---

## Step 1. Create a .docx template with tags

Prepare a .docx file as the document template. Tags in the template are placeholders that are replaced with Salesforce field values when the document is generated.

Tags use the same syntax as document generation templates in SignNow Admin Tools, and this action also supports [index access to a specific child record](#fields-from-related-and-child-records), such as `{{OpportunityContactRoles[0].Contact.Name}}`. For tables, lists, system tags, number formatting, value formats, and fillable field tags, see [Prepare the .docx template](/docs/salesforce-document-generation#prepare-the-docx-template). This section covers what is specific to this action: the data comes from your SOQL query.

### Find Salesforce API field names

Tags in the template must use the **API field name**, not the field's display label. To find the API field name:

- In Salesforce, go to **Setup > Object Manager**.
- Select the object you are working with, or a related object (e.g., **Opportunity**).
- Click **Fields & Relationships**.
- Locate the field by its label. The **Field Name** column shows the API name.

![Object Manager fields list with the Field Name column showing API names](/reference-assets/images/SignNow_Salesforce/apex_docgen/apex_docgen_1_2.png)

For standard fields (e.g., `Name`, `AccountNumber`), the API name matches the field label without spaces. For custom fields, the API name ends with `__c` (e.g., `OrderNumber__c`).

To access fields on related objects, use dot notation: `Account.Name`, `Owner.Name`.

> [!IMPORTANT]
> Tags are **case-sensitive** and must match the field's API name exactly. For example, `{{Owner.Name}}` is filled with data, while `{{Owner.name}}` stays unfilled in the generated document.

> [!NOTE]
> **Compound address fields:** Some fields in the Object Manager appear as a single compound entry with the data type **Address** (e.g., `BillingAddress`). These compound fields cannot be used directly in tags. Instead, use the individual component field names following the pattern **[prefix] + [component]**. For example, `BillingAddress` breaks down into `BillingStreet`, `BillingCity`, `BillingState`, `BillingPostalCode`, and `BillingCountry`. These names are Salesforce conventions and do not appear as separate entries in the Object Manager UI. See the [Salesforce Address Compound Fields documentation](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/compound_fields_address.htm) for the full list.

### Fields from related and child records

On this path, a tag can reach any field your SOQL query returns, including fields of related records. Select the field in the query, then tag it with the same path:

| What to insert | Tag | What the SOQL query selects |
|---|---|---|
| Field on the record | `{{OrderNumber__c}}` | `OrderNumber__c` |
| Field on a parent record | `{{Account.Name}}`, `{{Account.Owner.Email}}` | `Account.Name`, `Account.Owner.Email` |
| Field in a table row | `{{Quantity}}` inside `{{table(OpportunityLineItems)}}` | `(SELECT Quantity FROM OpportunityLineItems)` |
| Related record's field in a table row | `{{Product2.Name}}` inside `{{table(OpportunityLineItems)}}` | `(SELECT Product2.Name FROM OpportunityLineItems)` |
| Field on a specific child record | `{{OpportunityContactRoles[0].Contact.Name}}` | `(SELECT Contact.Name FROM OpportunityContactRoles)` |

To reference a specific child record, put its position in the list in square brackets. The index is zero-based: `[0]` is the first child record, `[1]` is the second, and so on.

> [!WARNING]
> **This action does not validate the template.** A tag whose field is missing from the query, misspelled, or written in the wrong letter case stays unfilled in the generated document, and the action reports no error. To check a template's tag names before you use it here, upload it in **SignNow Admin Tools > Document Generation** and check that its status is **Ready**. To compare your tags with the data, insert `{{toJson($sysConstants)}}` anywhere in the template: the generated document prints the full query result with exact field names. Remove the tag before you use the template for real.

> [!WARNING]
> **Role name in signature and text field tags:** The `o:"RoleName"` parameter specifies the signer role assigned to this field. For example, `o:"Manager"` assigns the field to the recipient with the **Manager** role. The role name must match a role defined in your SignNow document flow. The field will be filled by the recipient assigned to that role. Do not use spaces in role names: use `Recipient1` instead of `Recipient 1`, or `SalesManager` instead of `Sales Manager`.

### Invoice template example

Below is an example of a .docx template for a sales invoice that pulls data from a Salesforce Opportunity and its related line items.

![.docx sales invoice template with tags for Opportunity and line item data](/reference-assets/images/SignNow_Salesforce/salesforce_docgen/docgen_docx_template_tags.png)


Let's break down each section of the template in detail.

**Header fields** (from the Opportunity, its parent Account, and the Opportunity owner):

```
{{Account.Name}}
{{Account.BillingStreet}}
{{Account.BillingCity}}, {{Account.BillingState}} {{Account.BillingPostalCode}}
{{Account.BillingCountry}}

Invoice Number: {{OrderNumber__c}}
Date: {{$today}}

Bill To:
{{Owner.Name}}
{{Owner.Email}}
```

**Line items table** (repeating rows from `OpportunityLineItems`):

The table must include the `{{table(...)}}` and `{{endtable}}` tags as rows:

| Item | Quantity | Unit Price | Amount |
|---|---|---|---|
| `{{table(OpportunityLineItems)}}` | | | |
| `{{Name}}` | `{{Quantity}}` | `{{numFormat(UnitPrice, ‘$#,###.00’)}}` | `{{numFormat(TotalPrice, ‘$#,###.00’)}}` |
| `{{endtable}}` | | | |
| **Subtotal** | | | `{{numFormat($sumabove, ‘$#,###.00’)}}{{$total=$sumabove}}` |

**Conditional discount and [fillable fields](/docs/document-generations#fillable-field-tags):**

```
{{if($total > 5000.00)}}Your discount is 10%.
{{else}}Your discount is 5%.
{{endif}}

Sales manager signature  {{t:s;r:y;o:"Manager";w:100;h:20;}}
Sales manager name       {{t:t;r:y;o:"Manager";w:100;h:20;}}
```

---

## Step 2. Upload the .docx template to Salesforce Files

Once the template is ready, upload it to Salesforce Files so the Apex action can reference it by ID.

The file can be stored as an **Attachment** or a **ContentDocument**. It does not need to be attached to the triggering record. You can upload it anywhere in Salesforce Files.

To upload the file:

- Go to any Salesforce record or the **Files** tab.
- Click **Upload Files** and select your .docx file.

![Files tab in Salesforce with the Upload Files button](/reference-assets/images/SignNow_Salesforce/apex_docgen/apex_docgen_3.png)

### Get the file ID

The Apex action requires the **File ID** as an input. To retrieve it:

- Navigate to the record where the file is stored.
- Click the dropdown arrow next to the file. Select **View File Details**.

![File menu in Salesforce Files with View File Details](/reference-assets/images/SignNow_Salesforce/apex_docgen/apex_docgen_4.png)

- Copy the file ID from the browser URL.

![File details page with the file ID in the browser URL](/reference-assets/images/SignNow_Salesforce/apex_docgen/apex_docgen_5.png)

---

## Step 3. Configure the flow trigger

Go to **Flows > New Flow**.

Select **Start From Scratch** or **Use a Template**. Click **Next**.

Select **Record-Triggered Flow**. Click **Create**.

Configure the flow trigger:

- Select the object whose record triggers the flow. For our example, it is **Opportunity**.
- Select when the flow should be triggered. For our example, `A record is updated`.
- Set entry conditions. For our example, the condition field is `Stage`, the operator is `Equals`, and the value is `Closed Won`.
- Under **When to Run the Flow for Updated Records**, select the option that fits your use case.
- Under **Optimize Flow for**, select **Actions and Related Records**. This is required for external callouts.

![Configure Start panel for an Opportunity record-triggered flow with an entry condition on Stage](/reference-assets/images/SignNow_Salesforce/apex_docgen/apex_docgen_6.png)

---

## Step 4. Configure the Generate and Send Document action

Click the **+** icon to add an action to the flow.

Start typing *signnow* in the input field and select **Generate and Send Document via SignNow**.

Configure the action inputs:

- **File ID:** the ID of the .docx template file uploaded in Step 2.
- **Record ID:** the Salesforce record ID used as the data source. For our example, select **Triggering Opportunity > Opportunity ID**.
- **SignNow Document Flow ID:** the ID of the pre-configured [SignNow document flow](/docs/document-flows) that defines recipients and the signing scenario.

> [!NOTE]
> Copy the SignNow document flow ID from **SignNow Admin Tools > Document Flows**.

> [!WARNING]
> The roles configured in the document flow must match the role names used in the .docx template's fillable field tags. For our example, the document flow must have a role named **Manager** to match the `o:"Manager"` parameter in the signature and text field tags.

- **SOQL Query:** a SOQL query that retrieves the data to merge into the template. Build it as described in Step 5, then return here to finish the action.

![Generate and Send Document action settings with the SOQL query](/reference-assets/images/SignNow_Salesforce/apex_docgen/apex_docgen_7.png)

---

## Step 5. Build the SOQL query

The SOQL query fetches Salesforce data and makes it available as tags in the .docx template. Every field referenced in the template must be included in the SOQL query.

**Rules for building the query:**

- The `FROM` clause must match the object of the triggering record (e.g., `FROM Opportunity`).
- The `WHERE` clause must be `WHERE Id = <record_id>`. The `<record_id>` placeholder is automatically replaced with the triggering record's ID at runtime.
- Direct fields are listed as-is: `Name`, `OrderNumber__c`.
- Fields on parent objects use dot notation: `Account.Name`, `Owner.Name`.
- Child records, used in `{{table()}}` and `{{for()}}` loops or referenced by index, are included as subqueries: `(SELECT ... FROM ChildRelationshipName)`. The subquery must select every field the template uses on those records, including fields of their related records. For example, `{{OpportunityContactRoles[0].Contact.Name}}` needs `(SELECT Contact.Name FROM OpportunityContactRoles)`.
- In the SOQL subquery, use the **relationship name** (e.g., `OpportunityLineItems`). Use the same relationship name in the template's table tag: `{{table(OpportunityLineItems)}}`.

### Invoice example SOQL

```sql
SELECT
    Account.Name,
    Account.BillingStreet,
    Account.BillingCity,
    Account.BillingState,
    Account.BillingPostalCode,
    Account.BillingCountry,
    OrderNumber__c,
    Owner.Name,
    Owner.Email,
    (SELECT Name, Quantity, UnitPrice, TotalPrice FROM OpportunityLineItems)
FROM Opportunity
WHERE Id = <record_id>
```

**How the SOQL maps to template tags:**

| SOQL field | Template tag |
|---|---|
| `Account.Name` | `{{Account.Name}}` |
| `Account.BillingCity` | `{{Account.BillingCity}}` |
| `OrderNumber__c` | `{{OrderNumber__c}}` |
| `Owner.Name` | `{{Owner.Name}}` |
| `Owner.Email` | `{{Owner.Email}}` |
| `(SELECT ... FROM OpportunityLineItems)` | `{{table(OpportunityLineItems)}}` |
| `Name` *(inside subquery)* | `{{Name}}` *(inside table loop)* |
| `Quantity` *(inside subquery)* | `{{Quantity}}` *(inside table loop)* |

> [!NOTE]
> Inside a table loop, `{{Name}}` returns the line item's name, which Salesforce builds from the opportunity name and the product name, for example `Burlington Textiles Weaving Plant Generator GenWatt Diesel 1000kW`. To show only the product name, add `Product2.Name` to the subquery and tag it as `{{Product2.Name}}` in the table row. The same works for any field of a record related to the child, for example `{{PricebookEntry.Name}}`.

---

## Step 6. Save and activate the flow

Once the query is entered in the action, click **Save**, then click **Activate**.

---

## Result

![Generated invoice open for signing in SignNow, filled with Opportunity data](/reference-assets/images/SignNow_Salesforce/apex_docgen/apex_docgen_result_upd.png)


Each time an Opportunity is moved to the **Closed Won** stage, the action generates a PDF from the .docx template with the Opportunity's data merged in and sends it for signature to the recipients configured in the SignNow document flow.

---

View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).


---

## Generate Document via SignNow

# Apex action: Generate Document via SignNow

> [!NOTE]
> Before configuring this Apex action, review the [prerequisites](/docs/salesforce-apex-actions#prerequisites) for SignNow Apex actions and complete the required setup steps.

The **Generate Document via SignNow** action generates a document by merging a .docx template with Salesforce record data. This action runs synchronously and returns the **Document Group ID**, which you can use in subsequent flow steps.

> [!NOTE]
> This action reads its .docx file from Salesforce Files and requires a File ID. It does not accept a document generation template stored in SignNow Admin Tools: to send one of those, use the [Send SignNow Template](/docs/apex-send-template) action. For an overview of all document generation paths in Salesforce, see [Document generation](/docs/salesforce-document-generation).

Use this action when the generated document needs to be processed further before or instead of sending it for signature. Because the action returns the **Document Group ID**, you can pass it to any subsequent [SignNow Apex action](/docs/salesforce-apex-actions), for example, **Get SignNow Send Invite URL** to let the user review and send manually, **Send SignNow Freeform Invite** to send automatically, or **Create SignNow Embedded Invite** to embed signing into your Salesforce page.

For example, let's configure a screen flow that generates a sales invoice from an Opportunity and opens a send link so the user can review and send the document for signature. The flow is launched from a button on the Opportunity record page. An input variable receives the current record and passes the Opportunity ID to the Generate Document action.

---

## Step 1. Create a .docx template with tags

Prepare a .docx file as the document template. Tags in the template are placeholders that are replaced with Salesforce field values when the document is generated.

For full instructions on creating the template, finding Salesforce API field names, and tag syntax, see **Step 1** in [Apex action: Generate and Send Document via SignNow](/docs/apex-generate-and-send-document#step-1-create-a-docx-template-with-tags).

**Example of a .docx invoice template with tags**

![.docx invoice template with document generation tags](/reference-assets/images/SignNow_Salesforce/salesforce_docgen/docgen_docx_template_tags.png)


---

## Step 2. Upload the .docx template to Salesforce Files

Upload the template to Salesforce Files and retrieve the file ID.

For instructions, see **Step 2** in [Apex action: Generate and Send Document via SignNow](/docs/apex-generate-and-send-document#step-2-upload-the-docx-template-to-salesforce-files).

---

## Step 3. Configure the screen flow

Go to **Flows > New Flow**.

Select **Start From Scratch**. Click **Next**.

Select **Screen Flow**. Click **Create**.

### Create the recordId variable

The screen flow requires an input variable to receive the Opportunity record when launched from a button.

- Click **New Resource** in the Toolbox.
- Select **Resource Type > Variable**.
- Set **API Name** to `recordId`. Steps 4 and 5 reference this variable by name. Use exactly `recordId`.
- Set **Data Type** to **Record**.
- Set **Object** to **Opportunity**.
- Under **Availability Outside the Flow**, check **Available for input**.
- Click **Done**.

![Edit Variable dialog for the recordId variable](/reference-assets/images/SignNow_Salesforce/apex_docgen/apex_docgen_simple/apex_docgen_simple_variable.png)

When the flow is launched from a button on an Opportunity record, Salesforce automatically passes the current record into this variable.

### Create the redirectUrl formula

See [Formula Resource](https://help.salesforce.com/s/articleView?id=sf.flow_ref_resources_formula.htm&type=5) in Salesforce Help for full details on formula resources in Flow Builder.

The **Get SignNow Send Invite URL** action accepts a redirect URL, the page users are taken to after they finish working with the document in SignNow. This can be any URL: a Salesforce record page, a custom confirmation page, or any other destination. Create a formula resource for this.

In our example, we redirect the user back to the Opportunity record.

- Click **New Resource** in the Toolbox.
- Select **Resource Type > Formula**.
- Set **API Name** to `redirectUrl`. Step 5 references this resource by name.
- Set **Data Type** to **Text**.
- In the **Formula** field, enter your formula:

```
"https://[your-org-domain]/lightning/r/Opportunity/"&{!recordId.Id}&"/view"
```

Replace `[your-org-domain]` with your Salesforce org domain (e.g., `acme43-dev-ed.develop.lightning.force.com`). Use `&` for string concatenation. `{!recordId.Id}` references the **Id** field from the `recordId` record variable; add it via **Insert a resource** to avoid typos.

- Click **Done**.

![Edit Formula dialog for the redirectUrl formula](/reference-assets/images/SignNow_Salesforce/apex_docgen/apex_docgen_simple/apex_docgen_simple_formula.png)

---

## Step 4. Configure the Generate Document via SignNow action

Click the **+** icon to add an action to the flow.

Start typing *signnow* in the input field and select **Generate Document via SignNow**.

Configure the action inputs:

- **File ID:** the ID of the .docx template retrieved in Step 2.
- **Record ID:** select the variable created in Step 3: **recordId > Opportunity ID**.
- **SignNow Document Flow ID:** the ID of the pre-configured [SignNow document flow](/docs/document-flows) that defines recipients and the signing scenario.

> [!NOTE]
> Copy the SignNow document flow ID from **SignNow Admin Tools > Document Flows**.

> [!WARNING]
> The roles configured in the document flow must match the role names in the .docx template's fillable field tags. For example, if the template uses `o:"Manager"`, the document flow must have a role named **Manager**.

- **SOQL Query:** a SOQL query that fetches all fields referenced in the template. For the rules on building the query, see **Step 5** in [Apex action: Generate and Send Document via SignNow](/docs/apex-generate-and-send-document#step-5-build-the-soql-query). For the invoice example:

```sql
SELECT
    Account.Name,
    Account.BillingStreet,
    Account.BillingCity,
    Account.BillingState,
    Account.BillingPostalCode,
    Account.BillingCountry,
    OrderNumber__c,
    Owner.Name,
    Owner.Email,
    (SELECT Name, Quantity, UnitPrice, TotalPrice FROM OpportunityLineItems)
FROM Opportunity
WHERE Id = <record_id>
```

![Screen flow with the Generate Document via SignNow action settings](/reference-assets/images/SignNow_Salesforce/apex_docgen/apex_docgen_simple/apex_docgen_simple_gen_action.png)


The action returns the **SignNow Document Group ID**, used in the next step.

---

## Step 5. Configure the Get SignNow Send Invite URL action

After document generation, use this action to get a URL that opens the document in SignNow for sending.

Click the **+** icon and select **Get SignNow Send Invite URL**.

Configure the action inputs:

- **Redirect URL:** select the `redirectUrl` formula resource created in Step 3.
- **SignNow Document Group ID:** select **Outputs from Generate Document via SignNow > SignNow Document Group ID**.
- (Optional) **Record ID:** the Salesforce record ID associated with this document. Select **recordId > Opportunity ID**.
- (Optional) **SignNow Document Flow ID:** the ID of the SignNow document flow.
- **Type:** controls what the generated URL opens. Available values:
  - `manage`: opens the Add documents to document group page.
  - `edit`: opens the document in the editor, allowing the sender to add fields and send the invite.
  - `send-invite`: opens the Send Invite page.

  For our example, enter `edit`.

![Get SignNow Send Invite URL action settings](/reference-assets/images/SignNow_Salesforce/apex_docgen/apex_docgen_simple/apex_docgen_simple_url_action.png)


The action returns the **SignNow Send Invite URL**.

---

## Step 6. Configure the Open a Page action

Use the Salesforce **Open a Page** core action to open the send invite URL in the user's browser.

Click the **+** icon, select **Action**, then go to **Navigation Actions > Open a Page**.

Configure the action inputs:

- **Page Type:** External Web Page.
- **URL:** select **Outputs from Get SignNow Send Invite URL > SignNow Send Invite URL**.
- **Where to Open the Page:** New Browser Tab.

![Open a Page action set to an external web page opened in a new browser tab](/reference-assets/images/SignNow_Salesforce/apex_docgen/apex_docgen_simple/apex_docgen_simple_page.png)

---

## (Optional) Add an error screen

To display an error message if document generation fails, add a **Screen** element on the fault path of the Generate Document action.

- Connect the fault path of the Generate Document action to a new **Screen** element.
- Add a **Display Text** component to the screen.
- In the component's text area, click **Insert a resource** and select **Outputs from Generate Document via SignNow > Error**. This inserts `{!Generate_Document_via_SignNow.error}`, the **Error** output returned by the Generate Document via SignNow action when it fails.


![Edit Screen with a Display Text component showing the Generate Document via SignNow error output](/reference-assets/images/SignNow_Salesforce/apex_docgen/apex_docgen_simple/apex_docgen_simple_error.png)

This ensures users see a meaningful message instead of the flow silently ending.

---

## Activate the flow and add a button

Once the configuration is ready, click **Save**, then **Activate**.

To launch the flow from an Opportunity record, add it as a button to the page layout. See [Add an Apex Action to a Page Layout](/docs/add-action-page-layout) for instructions.

---

## Salesforce Classic support

The **Generate Document via SignNow** action is fully supported in Salesforce Classic. The screen flow described in this guide runs in Classic without limitations. Two things behave differently in Classic and require the workarounds below.

### Invites Status widget in Classic

The SignNow Invites Status widget, used to track the status of generated documents sent for signature, is built as a Lightning Web Component (LWC) and is only available in Lightning Experience. To track invite statuses in Classic, embed the widget through a Visualforce page. For step-by-step instructions, see [Add the widget in Salesforce Classic](/docs/salesforce-invites-status-widget#add-the-widget-in-salesforce-classic).

### Launch the screen flow from a record page in Classic

The screen flow in this guide is launched from a button on a record page. In Lightning Experience, you add it as an Apex action (see [Activate the flow and add a button](/docs/apex-generate-document#activate-the-flow-and-add-a-button)). That approach does not apply in Salesforce Classic. Instead, launch the screen flow with a custom button that opens the flow URL directly.

**Create the custom button or link**

The flow URL includes the API name of your screen flow. To find it, go to **Setup > Flows** and open your flow. Copy the value from the **API Name** field on the flow detail page.

![Flow detail page in Salesforce Classic with the flow API name](/reference-assets/images/SignNow_Salesforce/apex_docgen/apex_docgen_simple/apex_docgen_simple_classic_flow_name.png)

Then create the button:

- Go to **Setup > Object Manager** and select the object (for example, **Opportunity**).
- Click **Buttons, Links, and Actions**, then click **New Button or Link**.
- Set **Display Type** to **Detail Page Button**.
- Set **Behavior** to **Display in new window**.
- Set **Content Source** to **URL**.
- Enter the flow URL: `/flow/<flowApiName>?recordId={!Opportunity.Id}`, where `<flowApiName>` is the API name of your screen flow and `{!Opportunity.Id}` inserts the ID of the current record. Replace `Opportunity` with the object the button is placed on (for example, `{!Account.Id}`).
- Click **Save**.

![Generate document custom button for the Opportunity object in Salesforce Classic](/reference-assets/images/SignNow_Salesforce/apex_docgen/apex_docgen_simple/apex_docgen_simple_classic_custom_button.png)


**Add the button to the page layout**

- Select **Page Layouts** on the left panel and open the layout you want to edit.
- Locate the button under **Buttons** and drag it into the **Custom Buttons** section of the layout.
- Click **Save**.

![Opportunity page layout in Salesforce Classic with the Generate document button added](/reference-assets/images/SignNow_Salesforce/apex_docgen/apex_docgen_simple/apex_docgen_simple_classic_layout.png)


**Add a finish screen to the flow**

In Classic, when a screen flow launched from a URL button reaches its end, Salesforce starts a new flow interview and shows the first screen again, so the flow appears to restart instead of stopping. To prevent this, add a screen that the flow lands on when it completes.

- In Flow Builder, add a **Screen** element as the last element of the flow, after the final **Open a Page** action.
- Add a **Display Text** component with a short confirmation message, for example: "Your document has been generated. You can close this window."
- Because the button opens the flow in a new window (**Behavior: Display in new window**), the user closes that window from this screen. The flow stops on the finish screen instead of restarting.

> [!NOTE]
> To close the window automatically instead of having the user close it, add a local action or custom component to the finish screen. A URL button on its own cannot close the window.

---

## Result

![Generated invoice open in the SignNow editor](/reference-assets/images/SignNow_Salesforce/apex_docgen/apex_docgen_simple/apex_docgen_simple_result_edited.png)


Each time a user clicks the button on an Opportunity record, the flow generates a PDF from the .docx template, merges in the Opportunity data, and opens the document in the SignNow editor in a new browser tab. The user can review the document and send it for signature from there.

---

View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).


---

## Send File via SignNow by File ID

# Apex action: Send File via SignNow by File ID

> [!NOTE]
> Before configuring this Apex action, review the [prerequisites](/docs/salesforce-apex-actions#prerequisites) for SignNow Apex actions and complete the required setup steps.

The **Send File via SignNow by File ID** action allows users to send a specific attachment for signature based on Salesforce events.

For example, let’s configure the file to be sent once the Contact’s last name is changed.

## Prerequisites

Prepare a file with tags.

Refer to the [Send a PDF attachment with tags from a Salesforce record](/docs/salesforce-send-attachment-with-tags#step-1-generate-a-pdf-purchase-agreement) guide for instructions on adding text tags and assigning them to roles.

## Step 1. Configure the flow trigger

We will start with configuring the flow trigger.

- Select the object which record triggers the flow. For our example, it is **Contact**.
- Select when the flow should be triggered. For our example, `A record is updated`.
- Set entry conditions (condition requirements, record field, operator, and value). For our example, the condition field is `Last name`, the condition operator is `Is Changed`.
- Select how often the flow should run.

![Configure Start panel for a Contact record-triggered flow](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_file_id_trigger.png)

## Step 2. Configure the Send File via SignNow by File ID action

When the trigger settings are ready, click the **+** icon to add the SignNow action to the flow. 

Select **Send File via SignNow by File ID** in the list of actions.

Now, let’s configure the SignNow action.

- Enter an action label and brief description to locate the flow.
- Specify the input values for the SignNow action. In our example, these are file ID, record ID, and SignNow document flow ID.
    - Enter the ID of the file that will be sent for signature.
    
    > [!TIP]
    > To find the file ID, go to the record where the file is attached. Click **Notes and Attachments,** then click the dropdown arrow next to the file you want to send. Select **View File Details**. Retrieve the file ID from the URL.
    
    - Enter the record ID which will trigger the action. For our example, it is **Triggering Contact > Contact ID**.
    - Add the SignNow Document Flow ID to send the file based on the pre-set scenario.

   > [!TIP]
   > Copy the SignNow flow ID on the **SignNow Admin Tools** > **Document Flows** page.


> [!WARNING]
> Ensure that the recipient role's name in the document flow corresponds to the file role's name. Otherwise, you may encounter this error:

```json
No recipients were provided, or there is a mismatch between the recipient role and document flow role, or the recipient email is incorrect. Please check the file/template, or document flow settings.
```

![Send File via SignNow by File ID action settings in Flow Builder](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_file_id_action_settings.png)

Once the configuration is ready, click **Save** and activate the flow.

## Result 

Each time the Contact name changes, the selected file will be sent for signature to recipients configured in the SignNow document flow.

---

View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).



---

## Send File via SignNow by File Name

# Apex action: Send File via SignNow by File Name

> [!NOTE]
> Before configuring this Apex action, review the [prerequisites](/docs/salesforce-apex-actions#prerequisites) for SignNow Apex actions and complete the required setup steps.

The **Send File via SignNow by File Name** action allows users to send a record attachment for signature based on the file name and Salesforce actions. 

For example, let’s configure the file to be sent once the Opportunity name is changed.

## Prerequisites

Prepare a file with tags.

Refer to the [Send a PDF attachment with tags from a Salesforce record](/docs/salesforce-send-attachment-with-tags#step-1-generate-a-pdf-purchase-agreement) guide for instructions on adding text tags and assigning them to roles.

## Step 1. Configure the flow trigger

We will start with configuring the flow trigger.

- Select the object which record triggers the flow. For our example, it is **Opportunity**.
- Select when the flow should be triggered. For our example, `A record is updated`.
- Set entry conditions (condition requirements, record field, operator, and value). For our example, the condition field is `Name`, and the condition operator is `Is Changed`.
- Select how often the flow should run.

![Configure Start panel for an Opportunity record-triggered flow with an entry condition on the Name field](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_file_name_trigger.png)

When the trigger settings are ready, click the **+** icon to add the SignNow action to the flow. 

## Step 2. Configure the Send File via SignNow by File Name action

Select **Send File via SignNow by File Name** in the list of actions.

Now, let’s configure the SignNow action.

- Enter an action label and brief description to locate the flow.
- Specify the input values for the SignNow action. In our example, these are the match option, file name, record ID, and SignNow document flow ID.
    - Set the match option for the file name that will be sent for signature. In our example, `Exact Match` is set to `true`, which means the file name must exactly match the value in the file name field.
    
    > [!NOTE]
    > If `Exact Match` is set to false, the search may return multiple files that contain the file name. In this case, these files will be merged into a single document group.
    
    - Enter the name of the file that should be sent for signature.
    - Enter the record ID which will trigger the action. In our example, it is **Triggering Opportunity > Opportunity ID**.
    - Add the SignNow Document Flow ID to send the file based on the pre-set scenario.

   > [!TIP]
   > Copy the SignNow flow ID on the **SignNow Admin Tools** > **Document Flows** page.

> [!WARNING]
> Ensure that the recipient role's name in the document flow corresponds to the file role's name.

![Send File via SignNow by File Name action settings](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_file_name_action_settings.png)

Once the configuration is ready, click **Save** and activate the flow.

## Result

Each time the Opportunity name changes, the file with the matching name will be sent for signature to recipients configured in the SignNow document flow.

---

View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).


---

## Send SignNow Freeform Invite

# Apex action: Send SignNow Freeform Invite

> [!NOTE]
> Before configuring this Apex action, review the [prerequisites](/docs/salesforce-apex-actions#prerequisites) for SignNow Apex actions and complete the required setup steps.

The **Send SignNow Freeform Invite** action lets users send documents **without fillable fields** to recipients. Recipients can add their signatures and other data anywhere on the document, making it suitable for unstructured signing scenarios.

The sender can also send a freeform invite to themselves — useful for self-signing workflows where no predefined fields are required.

This example configures a **record-triggered flow** that creates a document group from a template and sends it as a freeform invite to a contact.

This flow uses the following Apex Actions:

- [Create SignNow Document Group from SignNow Template](/docs/apex-create-document-group-from-template)
- Send SignNow Freeform Invite

---

## Prerequisites

- Go to **Admin Tools > Templates** and create a template to use as the document group source.

> [!IMPORTANT]
> Freeform invites work only on documents without predefined fields. If the template contains fields, recipients will not be able to sign freely. Make sure the template has no fillable fields before proceeding.

- Go to **Setup > Flows > New Flow**.
- Select **Record-Triggered Flow**.

## **Step 1. Configure the flow trigger conditions**

> [!NOTE]
> Configure the flow starting conditions as required. The following are example settings.
> 

In this example, the document group is sent as a freeform invite to the contact email when the Contact record is updated. The `Email` field must be populated and the `Level` field must equal `Primary`.

- Enter the Salesforce object name.
- Select when the flow should be triggered: `A record is updated`.
- Set entry conditions:
    - Condition requirements: `All Conditions Are Met (AND)`
    - Record field: `Email` Is Null `False`
    - Record field: `Level` Equals `Primary`
- Select how often the flow should run: `Only when a record is updated to meet the condition requirements`.
- Enable the **Add Asynchronous Path** toggle.

![Configure Start panel for a Contact flow with Run Immediately and Run Asynchronously paths](/reference-assets/images/SignNow_Salesforce/apex_freeform_invite/apex_freeform_1.png)

> [!IMPORTANT]
> All steps that follow must be added to the asynchronous path. This flow requires an asynchronous path because it communicates with an external system (SignNow).
> 

## **Step 2. Add the Create SignNow Document Group from SignNow Template action**

- Click the **+** icon to add the **Create SignNow Document Group from SignNow Template** action to the flow.
- Add a label.
- Set input values:
    - **SignNow Document Group Template ID**: The ID of the document group template. To find it, go to **SignNow Admin Tools > Templates**, open the template, and copy the ID from the URL or the template details panel.
    - **Record ID** (optional): Salesforce record ID where the new document group is generated. Enter a value or select a resource.
    - **SignNow Document Flow ID** (optional): The ID of a pre-configured Document Flow. If specified, the document group opens with those pre-configured settings.
    - **SignNow Document Group Name** (optional): A custom name for the new document group. If left blank, the default name is `Document Group DD-MM-YYYY`.
    - **SignNow Folder ID** (optional): The ID of the folder where the document group will be stored.

![Create SignNow Document Group from SignNow Template action settings](/reference-assets/images/SignNow_Salesforce/apex_freeform_invite/apex_freeform_2.png)


## Step 3. Create variables

Before configuring assignments, create the following two variables.

### **Create the Signers collection variable**

This collection stores the list of recipients who will receive the freeform invite.

- Click the **Toolbox** icon (top left).
- Click **New Resource** and select **Variable**.
- API Name: `Signers_collection`
- Data Type: **Apex-Defined**
- Apex Class: `cuda_signnow__SNAPI_FreeFormInviteSigner`
- Select **Allow multiple values (collection)**.

![New Resource dialog for the Signers_collection variable](/reference-assets/images/SignNow_Salesforce/apex_freeform_invite/apex_freeform_3.png)


### **Create the Signer variable**

This variable temporarily holds the email of the triggering contact before it is added to the collection.

- Click the **Toolbox** icon (top left).
- Click **New Resource** and select **Variable**.
- API Name: `Signer_temp`
- Data Type: **Apex-Defined**
- Apex Class: `cuda_signnow__SNAPI_FreeFormInviteSigner`

![New Resource dialog for the Signer_temp variable with the FreeFormInviteSigner Apex class](/reference-assets/images/SignNow_Salesforce/apex_freeform_invite/apex_freeform_4.png)

`Signer_temp > email` **Equals** `Triggering Contact > Email`.

## **Step 4. Create assignments**

Use the variables created in Step 3 to build two assignment elements.

### **Assignment 1: Add contact email**

This assignment populates `Signer_temp` with the email of the contact who triggered the flow.

- Add an **Assignment** element to the flow.
- Add a label.
- Set variable value: `Signer_temp > email`  **Equals**  `Triggering Contact > Email`

![Assignment that sets the signer email from the triggering contact](/reference-assets/images/SignNow_Salesforce/apex_freeform_invite/apex_freeform_5.png)

### **Assignment 2: Add signer to collection**

This assignment appends `Signer_temp` to the `Signers_collection` variable.

- Add an **Assignment** element to the flow.
- Add a label.
- Set variable value: `Signers_collection`  **Add**  `Signer_temp`

![Assignment that adds the signer to the Signers collection](/reference-assets/images/SignNow_Salesforce/apex_freeform_invite/apex_freeform_6.png)

## **Step 5. Add the Send SignNow Freeform Invite action**

- Click the **+** icon to add the **Send SignNow Freeform Invite** action to the flow.
- Add a label.
- Set input values:
    - **Array of Signers**: `Signers_collection`
    - **SignNow Document Group ID**: Select `Outputs from Create SignNow Document Group from SignNow Template > SignNow Document Group ID`.
    - **Array of CC Emails** (optional): A list of email addresses to receive a copy.
    - **Email Message** (optional): Custom body text for the email sent to recipients.
    - **Email Subject** (optional): Custom subject line for the email sent to recipients.
    - **Redirect URL** (optional): The URL to which recipients are redirected after completing the document.

![Send SignNow Freeform Invite action settings](/reference-assets/images/SignNow_Salesforce/apex_freeform_invite/apex_freeform_7.png)


## **Step 6. Finalize the flow**

- Click **Save**.
- Click **Activate**.

## **Result**

When a Contact record is updated so that the `Level` field equals `Primary` and the `Email` field is not empty, the flow:

- Creates a new document group from the specified SignNow template.
- Sends the document group to the contact's email as a freeform invite.

The recipient receives an email with a link to the document. They can open it and add their signature or other annotations anywhere on the page — no predefined fields are required.

---

View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).


---

## Get SignNow Document Group

# Apex action: Get SignNow Document Group

> [!NOTE]
> Before configuring this Apex action, review the [prerequisites](/docs/salesforce-apex-actions#prerequisites) for SignNow Apex actions and complete the required setup steps.

The **Get SignNow Document Group** action retrieves detailed information about a specific document group (such as IDs, status, and documents), which can then be used in downstream automation or displayed to the user.

In this example, we will configure a **Screen Flow** that retrieves and displays this information.

## Prerequisites

- Go to **Setup** > **Flows** > **New Flow.**
- Select **Screen Automations > Screen Flow**.

![New Automation dialog with Screen Flow selected](/reference-assets/images/SignNow_Salesforce/apex_actions_2/get_dg_flow_type.png)

## Step 1. Add the **Get SignNow Document Group** action

- Click the **+** icon to add the **Get SignNow Document Group** action to the flow.
- Add a label: `Get SignNow Document Group`.
- **SignNow Document Group ID**: Add the ID or select a resource.
- **The output resources show the information that can be retrieved:**
    - List of documents
    - Document group ID
    - Invite ID
    - Document group name
    - Pending step ID
    - State

![Get SignNow Document Group action settings](/reference-assets/images/SignNow_Salesforce/apex_actions_2/get_dg_action_settings.png)

## Step 2 (Optional). Add a screen element

Add a screen to display the information about the document group.

- Click the **+** icon below the SignNow action and select **Screen**.
- Add a label: `Main information screen`.
- In the Components panel on the left, select **Display Text**.

![Screen element with a Display Text component](/reference-assets/images/SignNow_Salesforce/apex_actions_2/reassign_main_info_screen.png)

- **Enter an API name:** `Doc_group_text`.
    - Note: API name can only contain underscores and alphanumeric characters.
- **In the Insert a resource field**, select the **`Outputs from Get_SignNow_Document_Group action`** > Select the data you want to display on the screen. For example, display the following data:
    - Document group ID.
    - Last invite ID.
    - Pending step ID.
- Click **Done** to save the screen.

![Display Text component showing the document group ID, name and pending step ID](/reference-assets/images/SignNow_Salesforce/apex_actions_2/get_dg_main_info_text.png)

## Step 3 (Optional). Add a loop element (1)

Add a loop element to iterate through the documents related to the document group and extract specific details.

Click the **+** icon below the screen element and select **Loop**.

- **Add a label:** Go through documents.
- **Select collection variable:** `Outputs from Get_SignNow_Document_Group Action` > `documents`.

![Loop element over the documents in the document group](/reference-assets/images/SignNow_Salesforce/apex_actions_2/reassign_got_through_documents_loop.png)

### Add a screen inside the loop

- Click the **+** icon under **For Each** within the loop and select **Screen**.
- **Add a label:** `Each document screen`.
- In the **Components** panel on the left, select **Display Text**.
- **Enter an API name:** `Document_info`.
- In the **Insert a resource field**, select the `Current Item from Loop` > `Go through documents` and select the data you want to display on the screen. For example, display the following data:
    - Document ID
    - Roles
- Click **Done** to save the screen.

![Screen inside the loop showing each document's ID and name](/reference-assets/images/SignNow_Salesforce/apex_actions_2/get_dg_for_each_doc_screen.png)


## Step 4 (Optional). Add a loop element (2)

Add a second loop element to iterate through the fields within the document group invite and extract specific details.

Click the **+** icon under the **Each document screen** and select **Loop**.

- **Add a label:** `Go through fields`.
- **Select collection variable:** `Current Item from Loop`  `Go through documents` > `field_invites`.

![Nested loop element over the field invites of each document](/reference-assets/images/SignNow_Salesforce/apex_actions_2/reassign_go_through_fields_loop.png)

### Add a screen inside the nested loop

- Click the **+** icon under **For Each** within the second loop and select **Screen**.
- **Add a label:** `Each field screen`.
- In the Components panel on the left, select **Display Text**.
- **Enter an API name:** `Field_info`.
- In the **Insert a resource field**, select the `Current Item from Loop` `Go through fields` > and select the data you want to display on the screen. For example, display the following data:
    - Signer email
    - Status
- Click **Done** to save the screen.

![Screen inside the nested loop showing each field invite's signer email and status](/reference-assets/images/SignNow_Salesforce/apex_actions_2/get_dg_for_each_field_screen.png)

## Step 5. Finalize the flow

- Click **Save**.
- **Activate** the flow.

## Result

Each time the flow runs, the requested information about the document group is displayed on the screen.

---

View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).


---

## Create SignNow Document Group from Template

# Apex action: Create SignNow Document Group from SignNow Template and Get SignNow Document Group Recipients

> [!NOTE]
> Before configuring this Apex action, review the [prerequisites](/docs/salesforce-apex-actions#prerequisites) for SignNow Apex actions and complete the required setup steps.

The **Create SignNow Document Group from SignNow Template** action allows users to create a document group without sending it for signature. The document group can then be used with other SignNow Apex Actions.

The **Get SignNow Document Group Recipients** action allows users to retrieve information about recipients, including email addresses, signing order, assigned documents, and more.

In this example, we will configure a flow that creates a document group from a template and generates an embedded signing link for a document group recipient. A screen element will display the URL from the Salesforce record.

This flow uses four Apex Actions:

- Create SignNow Document Group from SignNow Template
- Get SignNow Document Group Recipients
- Create SignNow Embedded Invite
- Get SignNow Embedded Signing Session URL

> [!NOTE]
> This example uses a simplified setup for demonstration purposes. Feel free to adapt the flow type and integration logic to your specific requirements.

## Prerequisites

- Go to **Setup** > **Flows** > **New Flow.**
- Select **Screen Automations > Screen Flow**.

![New Automation dialog with Screen Flow selected](/reference-assets/images/SignNow_Salesforce/apex_actions_2/get_dg_flow_type.png)

## Step 1. Add the Create SignNow Document Group from SignNow Template action

- Click the **+** icon to add the **Create SignNow Document Group from SignNow Template** action to the flow.
- Add a label.
- Set input values:
    - **SignNow Document Group Template ID**: The ID of the document group template used for creating a new document group.
    - **Record ID (optional)**: Salesforce record ID where the new document group is generated. Enter a value or select a resource.
    - **SignNow Document Flow ID (optional):** The ID of the pre-configured Document Flow. If the Document Flow is added, the document group will open with pre-configured settings.
    - **SignNow Document Group Name (optional)**: The name for the new document group.
        - Note: If `SignNow Document Group Name` is blank, the default name is `Document Group DD-MM-YYYY`.
    - **SignNow Folder ID (optional):** The ID of the folder where the document group will be stored.

![Create SignNow Document Group from SignNow Template action settings](/reference-assets/images/SignNow_Salesforce/apex_actions_3/apex_create_dg_action_1.png)

## Step 2. Add the Get SignNow Document Group Recipients action

- Click the **+** icon to add the **Get SignNow Document Group Recipients** action to the flow.
- Add a label.
- Set input values:
    - **SignNow Document Group ID:** Select **Outputs from** `Create SignNow Document Group from SignNow Template` action > `SignNow Document Group ID`.

![Get SignNow Document Group Recipients action settings](/reference-assets/images/SignNow_Salesforce/apex_actions_3/apex_get_recipients_action_2.png)

The output of the action is the SignNow Embedded Invites - array of objects that include order of signing and settings for each recipient.

## Step 3. Add the **Create SignNow Embedded Invite action**

- Click the **+** icon to add the **Create SignNow Embedded Invite** action to the flow.
- Add a label.
- Set input values:
    - **SignNow Document Group ID**: Select **Outputs from** `Create SignNow Document Group from SignNow Template` action > `SignNow Document Group ID`.
    - **SignNow Embedded Invites:** Select **Outputs from** `Get SignNow Document Group Recipients` action > `SignNow Embedded Invite`.


![Create SignNow Embedded Invite action settings](/reference-assets/images/SignNow_Salesforce/apex_actions_3/apex_create_embedded_invite_action_3.png)

## Step 4. Add the **Get SignNow Embedded Signing Session URL action**

- Click the **+** icon to add the **Get SignNow Embedded Signing Session URL** action to the flow.
- Add a label.
- Set input values:
    - **Email:** Enter a recipient email. You can use a value or select a resource.
    - **SignNow Document Group ID:** Select **Outputs from** `Create SignNow Document Group from SignNow Template` action > `SignNow Document Group ID`.
    - **SignNow Embedded Invite ID:** Select **Outputs from** `Create SignNow Embedded Invite` action > `SignNow Embedded Invite ID`.


![Get SignNow Embedded Signing Session URL action settings](/reference-assets/images/SignNow_Salesforce/apex_actions_3/apex_get_embedded_invite_link_action_4.png)

## Step 5. Add a screen element

Add a screen to display the generated link for the document group.

- Click the **+** icon below the SignNow action and select **Screen**.
- Add a label.
- In the **Components** panel on the left, select **URL**.
- Add an API name.
- In the **Value** field, select `Outputs from Get_SignNow_Embedded_Signing_Session_URL` > `SignNow Editor URL` > `SignNow Embedded Signing Session URL`.

![Screen with a URL component that displays the embedded signing session URL](/reference-assets/images/SignNow_Salesforce/apex_actions_3/apex_screen_embedded_link_5.png)

- Click **Done** to save screen settings.

## Step 6. Finalize the flow

- Click **Save**.
- **Activate** the flow.

## **Step 7. Create a flow action and add it to the object layout**

Finally, [create an action](/docs/add-action-page-layout) that will show the screen with the embedded signing URL for the new document group.

## **Result**

Users can now click the action button you have created on the Salesforce object to generate a document group and obtain the link to edit it. The link can be embedded in an iframe using a Lightning Web Component (LWC) that wraps the standard HTML tag or email template you use.

---
View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).


---

## Send SignNow Invite via SMS

# Apex action: Send SignNow Invite via SMS

> [!NOTE]
> Before configuring this Apex action, review the [prerequisites](/docs/salesforce-apex-actions#prerequisites) for SignNow Apex actions and complete the required setup steps.

The **Send SignNow Invite via SMS** action allows users to send a document group for signature via SMS. Recipients will receive a text message containing a link to the document group.

In this example, we will configure a flow that sends an SMS invite when an Opportunity name changes.

## Prerequisites

- Go to **Setup** > **Flows** > **New Flow**.
- Select **Record-Triggered Flow**.

![New Automation dialog with Record-Triggered Flow selected](/reference-assets/images/SignNow_Salesforce/apex_actions_2/send_sms_invite_flow_type.png)

## Step 1. Configure the flow trigger

> [!NOTE]
> Configure the flow starting conditions as required. These are example settings.

- Enter the Salesforce object name: `Opportunity`.
- Select when the flow should be triggered: `A record is updated`.
- Set entry conditions:
    - condition requirements: `All Conditions are Met (And)`
    - record field: `Name`
    - condition operator is `Is Changed`
    - value is `True`
- Select how often the flow should run: `Every time a record is updated and meets the condition requirements` .

![Configure Start panel for an Opportunity record-triggered flow for the SMS invite](/reference-assets/images/SignNow_Salesforce/apex_actions_2/send_sms_invite_start.png)

## **Step 2: Create Apex-defined collections**

Before configuring the assignments, you must create the necessary collection resources in the Toolbox.

### Create the Steps collection

- Click the **Toolbox** icon (top-left).
- Click **New Resource** and create a Variable.
- **API Name:** `Steps_collection`
- **Data Type:** Apex-defined
- **Apex Class:** `cuda_SNAPI_SMSInviteStep`
- **Check:** Allow multiple values (collection).

![Edit Variable dialog for the Steps collection variable](/reference-assets/images/SignNow_Salesforce/apex_actions_2/send_sms_invite_steps_collection.png)

### Create the Invite Action collection

- Click **New Resource** and create a Variable.
- **API Name:** `Invite_action_collection`
- **Data Type:** Apex-defined
- **Apex Class:** `cuda_SNAPI_SMSInviteAction`
- **Check:** Allow multiple values (collection).

![Edit Variable dialog for the Invite Action collection variable](/reference-assets/images/SignNow_Salesforce/apex_actions_2/send_sms_invite_action_collection.png)

## **Step 3: Assignments for Invite_action_collection**

You need to create a temporary variable and then assign it to the collection.

### Create the temporary variable

- Click **New Resource** in the Toolbox.
- **API Name:** `Invite_action_temp`
- **Data Type:** Apex-defined
- **Apex Class:** `cuda_SNAPI_SMSInviteAction` (Do not check **Allow multiple values**).

![New Resource dialog for the temporary SMS invite action variable](/reference-assets/images/SignNow_Salesforce/apex_actions_2/send_sms_invite_action_assignment_var.png)


### Fill the SMS Action variable

- Add an **Assignment** element to the flow.
- Add a label: Fill temp SMS action.
- **Set variable values:**
    - `Invite_action_temp.action` **Equals** `[Value]`
    - `Invite_action_temp.document_id` **Equals** `[Value]`
    - `Invite_action_temp.phone_invite` **Equals** `[Value]`
    - `Invite_action_temp.role_name` **Equals** `[Value]`

> [!NOTE]
> Retrieve the document ID in your SignNow account.

![Assignment that fills the SMS action variable](/reference-assets/images/SignNow_Salesforce/apex_actions_2/send_sms_invite_assignment_fill_action.png)

### Add the SMS Action into SMS Action Collection

- Add a second **Assignment** element.
- Add a label: `Put temp SMS action into SMS action collection`.
- **Set Variable Values:**
    - **Variable:** `Invite_action_collection`
    - **Operator:** Add
    - **Value:** `Invite_action_temp`

![Assignment that adds the SMS action to the SMS action collection](/reference-assets/images/SignNow_Salesforce/apex_actions_2/send_sms_invite_action_assignment_put.png)

## **Step 4: Assignments for Steps_collection**

Now, populate the steps collection using the action collection you just created.

### Create the temporary variable

- Click **New Resource** in the Toolbox.
- **API Name:** `Step_temp`
- **Data Type:** Apex-defined
- **Apex Class:** `cuda_SNAPI_SMSInviteStep`

![New Resource dialog for the temporary step variable](/reference-assets/images/SignNow_Salesforce/apex_actions_2/send_sms_invite_steps_assignment_var.png)

### Fill the Steps variable

- Add an **Assignment** element.
- Add a label: Fill temporary step.
- **Set Variable Values:**
    - `Step_temp.order` **Equals** `[Value]`
    - `Step_temp.invite_actions` **Equals** `Invite_action_collection` (Select the collection created in Step 3).

![Assignment that fills the step variable](/reference-assets/images/SignNow_Salesforce/apex_actions_2/send_sms_invite_steps_assignment_fill.png)

### Add Step data into Steps Collection

- Add a final **Assignment** element.
- Add a label: ****Put temporary step into steps collection.
- **Set Variable Values:**
    - **Variable:** `Steps_collection`
    - **Operator:** Add
    - **Value:** `Step_temp`

![Assignment that adds the step to the Steps collection](/reference-assets/images/SignNow_Salesforce/apex_actions_2/send_sms_invite_steps_assignment_put.png)

## **Step 5: Configure the Send SignNow Invite via SMS action**

Now that the collections are ready, add the final action to the flow.

1. Click the **(+)** icon at the end of the flow.
2. Select **Send SignNow Invite via SMS**.
3. Add a label: `Send SignNow Invite via SMS`.
4. **SignNow Document Group ID:** Add the ID or select a resource.
5. **Steps of the SignNow Document Group SMS Invite:** Select the `Steps_collection` resource.

![Send SignNow Invite via SMS action settings](/reference-assets/images/SignNow_Salesforce/apex_actions_2/send_sms_invite_action.png)

## **Finalize**

- Click **Save**.
- **Activate** the flow.

## Result

Each time the Opportunity name changes, the document group with the specified ID will be sent for signature to the defined phone numbers.

---

View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).


---

## Create SignNow Embedded Invite

# Apex action: Create SignNow Embedded Invite

> [!NOTE]
> Before configuring this Apex action, review the [prerequisites](/docs/salesforce-apex-actions#prerequisites) for SignNow Apex actions and complete the required setup steps.

The **Create SignNow Embedded Invite** action allows users to create an embedded document group invite. To share an embedded invite with recipients, Salesforce users need to get a link to the invite using the **Get SignNow Embedded Signing Session URL** action.

In this example, we will configure a **Screen Flow** that creates an embedded invite and displays the link on the screen from any Opportunity record.

## Prerequisites

- Go to **Setup** > **Flows** > **New Flow.**
- Select **Screen Automations > Screen Flow**.

![New Automation dialog with Screen Flow selected](/reference-assets/images/SignNow_Salesforce/apex_actions_2/get_dg_flow_type.png)

## Step 1: Create document variables

Create two variables for the document: one for the single item and one for the collection.

### Create the document item

- Click the **Toolbox** icon (top-left).
- Click **New Resource** and create a **Variable**.
- **API Name:** `Document_info`
- **Data Type:** Apex-defined
- **Apex Class:** `cuda_SNAPI_InviteDocument`
- Click **Done**.

![New Resource dialog for the document item variable](/reference-assets/images/SignNow_Salesforce/apex_actions_2/embedded_invite_document_info.png)

### Create the document collection

- Click **New Resource** and create a **Variable**.
- **API Name:** `Documents_collection`
- **Data Type:** Apex-defined
- **Apex Class:** `cuda_SNAPI_InviteDocument`
- **Check:** **Allow multiple values (Collection)**.
- Click **Done**.

![Edit Variable dialog for the document collection variable](/reference-assets/images/SignNow_Salesforce/apex_actions_2/embedded_invite_docs_collection.png)

## Step 2: Create signer variables

Now, create the signer item and signers collection.

### Create the signer item

- Click **New Resource** and create a **Variable**.
- **API Name:** `Signer_info`
- **Data Type:** Apex-defined
- **Apex Class:** `cuda_signnow__SNAPI_Signer`
- Click **Done**.

![New Resource dialog for the signer item variable](/reference-assets/images/SignNow_Salesforce/apex_actions_2/embedded_invite_signer_info.png)

### Create the signers collection

- Click **New Resource** and create a **Variable**.
- **API Name:** `Signers_collection`
- **Data Type:** Apex-defined
- **Apex Class:** `cuda_signnow__SNAPI_Signer`
- **Check:** ☑ **Allow multiple values (Collection)**.
- Click **Done**.

![New Resource dialog for the signers collection variable](/reference-assets/images/SignNow_Salesforce/apex_actions_2/embedded_invite_signers_collection.png)

## Step 3: Create invite variables

### Create the invite item

- Click **New Resource** and create a **Variable**.
- **API Name:** `Invite_info`
- **Data Type:** Apex-defined
- **Apex Class:** `cuda_SNAPI_EmbeddedInvite`
- Click **Done**.

![New Resource dialog for the invite item variable](/reference-assets/images/SignNow_Salesforce/apex_actions_2/embedded_invite_invite_info.png)

### Create the invites collection

- Click **New Resource** and create a **Variable**.
- **API Name:** `Invites_collection`
- **Data Type:** Apex-defined
- **Apex Class:** `cuda_SNAPI_EmbeddedInvite`
- **Check:** ☑ **Allow multiple values (Collection)**.
- Click **Done**.

![Edit Variable dialog for the invites collection variable](/reference-assets/images/SignNow_Salesforce/apex_actions_2/embedded_invite_invites_collection.png)

## Step 4: Assignments for document data

Now you can fill in document information and add it to the documents collection.

Return to the flow scheme and click the + icon below the **Screen Flow.**

- Add an **Assignment** element.
- **Add a label:** `Fill document information`.
- **Set Variable Values:**
    - `Document_info.id` **Equals** `[document_ID]`
        
        > [!NOTE]
        > This is the ID of the specific file inside the group, NOT the group ID. You can add it manually or add a resource.
        
    - `Document_info.role` **Equals** `Recipient 1`
        
        > [!IMPORTANT]
        > This is case sensitive. It must match your SignNow document role exactly.
        
    - `Document_info.action` **Equals** `sign`
        
        > [!IMPORTANT]
        > This MUST be lowercase `sign`.
        

![Assignment that fills the document role, ID and action](/reference-assets/images/SignNow_Salesforce/apex_actions_2/embedded_invite_fill_doc_info.png)


### Add document information to the collection

- Click the **+** icon below to add a second **Assignment** element.
- **Add a label:** `Add document information to collection`.
- **Set Variable Values:**
    - **Variable:** `Documents_collection`
    - **Operator:** Add
    - **Value:** `Document_info`

![Assignment that adds the document information to the collection](/reference-assets/images/SignNow_Salesforce/apex_actions_2/embedded_invite_add_doc_info_collection.png)

## Step 5: Assignments for signer data

Fill in the signer's information and add it to the signers collection.

### Fill signer information

- Click the **+** icon to add an **Assignment** element.
- **Add a label:** `Fill signer information`.
- **Set variable values:**

 For this flow, use the email, first name, and last name of the user who runs the flow (`running user`).

- `Signer_info.email` **Equals** `Running User > Email`
- `Signer_info.first_name` **Equals** `Running User > FirstName`
- `Signer_info.last_name` **Equals** `Running User > LastName`
- `Signer_info.documents` **Equals** `Documents_collection`

![Assignment that fills the signer email, first name, last name and documents](/reference-assets/images/SignNow_Salesforce/apex_actions_2/embedded_invite_fill_signer_info.png)

### Add signer information to the collection

- Click the **+** icon to add an **Assignment** element.
- **Add a label:** `Add signer information to collection`.
- **Set variable values:**
    - **Variable:** `Signers_collection`
    - **Operator:** Add
    - **Value:** `Signer_info`

![Assignment that adds the signer to the signers collection](/reference-assets/images/SignNow_Salesforce/apex_actions_2/embedded_invite_add_signers_collection.png)


## Step 6: Assignments for invite data

Fill the invite data and add it to the invites collection.

### Fill invite information

- Click the **+** icon to add an **Assignment** element.
- **Add a label:** `Fill invite`.
- **Set variable values:**
    - `Invite_info.signers` **Equals** `Signers_collection`
    - `Invite_info.order` **Equals** `1`

![Assignment that fills the invite information](/reference-assets/images/SignNow_Salesforce/apex_actions_2/embedded_invite_fill_invite_info.png)

### Add invite info to the invites collection

- Click the **+** icon to add an **Assignment** element.
- **Add a label:** `Add invite info to invites collection`.
- **Set Variable Values:**
    - **Variable:** `Invites_collection`
    - **Operator:** Add
    - **Value:** `Invite_info`

![Assignment that adds the invite to the invites collection](/reference-assets/images/SignNow_Salesforce/apex_actions_2/embedded_invite_add_invites_collection.png)

## Step 7: Configure the SignNow actions

### Action 1: Create the SignNow embedded invite

- Click the **+** icon and select **Action**.
- Search for and select **Create SignNow Embedded Invite**.
- **Set Input Values:**
    - **SignNow Document Group ID**: `Document group ID` (enter manually or add a resource)
    - **SignNow Embedded Invites**: `Invites_collection`

![Create SignNow Embedded Invite action settings](/reference-assets/images/SignNow_Salesforce/apex_actions_2/embedded_invite_create_invite_action.png)

### Action 2. Get SignNow embedded signing session URL

- Click the **(+)** icon and select **Action**.
- Search for **Get SignNow Embedded Signing Session URL**.
- Add a label: `Get SignNow Embedded Signing Session URL`
- **Set Input Values:**
    - **Email:** `Running User > Email`
    - **SignNow Document ID**: `Document group ID` (enter manually or add a resource). **Note:** The document group ID should be the same as in the **Create SignNow Embedded Invite** action input.
    
    - **SignNow Embedded Invite ID**: `Outputs from Create SignNow Embedded Invite > SignNow Embedded Invite ID`.

![Get SignNow Embedded Signing Session URL action settings](/reference-assets/images/SignNow_Salesforce/apex_actions_2/embedded_invite_get_url_action.png)

## Step 8: Display the link (screen)

Add a screen element to show the embedded invite link from the Opportunity.

- Click the **(+)** icon and select **Screen**.
- **Add a label:** `Get embedded URL`.
- In the **Components** panel on the left, select **URL**.
- **Add an API name**: `Embedded_signing_URL`
- **Add a value resource**: `Outputs from Get_SignNow_Embedded_Signing_Session_URL > SignNow Embedded Signing Session URL`
- Click **Done**.

![Screen with a URL component that displays the embedded signing link](/reference-assets/images/SignNow_Salesforce/apex_actions_2/embedded_invite_screen.png)

## Step 9: Finalize the flow

- Click **Save**.
- **Activate** the flow.

## Step 10. Create a flow action and add it to the Opportunity layout

Now, [create an action](/docs/add-action-page-layout) that will show the screen with the embedded invite URL on the Opportunity. 

## Result
Users can now click the **Get embedded invite link** button on any Opportunity to generate and view the signing link. The signing link can be embedded in an iframe using a Lightning Web Component (LWC) that wraps the standard HTML `<iframe>` tag.

---

View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).


---

## Get SignNow Editor URL

# Apex action: Get SignNow Editor URL

> [!NOTE]
> Before configuring this Apex action, review the [prerequisites](/docs/salesforce-apex-actions#prerequisites) for SignNow Apex actions and complete the required setup steps.

The **Get SignNow Editor URL** action allows users to create a link for the embedded document group editing.
In this example flow, we will configure a Screen Flow that retrieves the link for editing the document group.

## Prerequisites

- Go to **Setup** > **Flows** > **New Flow.**
- Select **Screen Automations > Screen Flow**.

![New Automation dialog with Screen Flow selected](/reference-assets/images/SignNow_Salesforce/apex_actions_2/get_dg_flow_type.png)

## Step 1. Add the SignNow action

- Click the **+** icon to add the **Get SignNow Editor URL** action to the flow.
- Add a label: **Get SignNow Editor URL**.
- Set input values:
    - **Redirect URL:** Enter the URL which will open after a user finishes editing the document group.
    - **SignNow Document Group ID:** Add the Document Group ID (enter a value manually or select a resource).
    - **Record ID (optional):** Add the Salesforce Record ID.
    - **SignNow Document Flow ID (optional):** If the Document Flow is added, the document group will open with pre-configured settings.

![Get SignNow Editor URL action settings](/reference-assets/images/SignNow_Salesforce/apex_actions_2/get_editor_url_action_settings.png)

## Step 2. Add a screen element

Add a screen to display the generated link for the document group.

- Click the **+** icon below the SignNow action and select **Screen**.
- Add a label: `Display editor URL`.
- In the Components panel on the left, select **URL**.
- Add an API name: `Editor_URL`
- In the **Value** field, select `Outputs from Get_SignNow_Editor_URL` > `SignNow Editor URL`.

![Screen with a URL component that displays the editor URL](/reference-assets/images/SignNow_Salesforce/apex_actions_2/get_editor_url_screen_settings.png)

- Click **Done** to save screen settings.

## Step 3. Finalize the flow

- Click **Save**.
- **Activate** the flow.

## Step 4. Create a flow action and add it to the Opportunity layout

Finally, [create an action](/docs/add-action-page-layout) that will show the screen with the embedded editor URL. 

## Result
Users can now click the **Editor URL** button on any Opportunity to generate and view the link for editing the specific document group. The link can be embedded in an iframe using a Lightning Web Component (LWC) that wraps the standard HTML <iframe> tag.

---

View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).


---

## Get SignNow Send Invite URL

# Apex action: Get SignNow Send Invite URL

> [!NOTE]
> Before configuring this Apex action, review the [prerequisites](/docs/salesforce-apex-actions#prerequisites) for SignNow Apex actions and complete the required setup steps.

The **Get SignNow Send Invite URL** action allows users to create a link for sending the document group for signature.
In this example flow, we will configure a Screen Flow that retrieves the link for sending the document group.

## Prerequisites

- Go to **Setup** > **Flows** > **New Flow.**
- Select **Screen Automations > Screen Flow**.

![New Automation dialog with Screen Flow selected](/reference-assets/images/SignNow_Salesforce/apex_actions_2/get_dg_flow_type.png)

## Step 1. Add the SignNow action

- Click the **+** icon to add the **Get SignNow Send Invite URL** action to the flow.
- Add a label: **Get SignNow Send Invite URL**.
- Set input values**:**
    - **Redirect URL:** Enter the URL which will open after a user finishes editing the document group.
    - **SignNow Document Group ID:** Add the Document Group ID (enter a value manually or select a resource).
    - **Record ID (optional):** Add the Salesforce Record ID.
    - **SignNow Document Flow ID (optional):** If the Document Flow is added, the document group will open with pre-configured settings.
    - Type (optional): Specifies the sending step at which the link should open and to control what actions the sender can perform.
    - **`manage`**: The link opens on the **Add documents to document group page** (default).
    - **`edit`**: The link opens in the editor, allowing the sender to add fields and send the invite.
    - **`send-invite`(default)**: The link opens on the **Send Invite** page.

![Get SignNow Send Invite URL action settings](/reference-assets/images/SignNow_Salesforce/apex_actions_2/get_send_invite_url_action_settings.png)

## Step 2. Add a screen element

Add a screen to display the generated link for sending the document group for signature.

- Click the **+** icon below the SignNow action and select **Screen**.
- Add a label: `Display send invite URL`.
- In the Components panel on the left, select **URL**.
- Add an API name: `Send_Invite_URL`
- In the **Value** field, select `Outputs from Get_SignNow_Send_Invite_URL` > `SignNow Send Invite URL`.

![Screen with a URL component that displays the Send Invite URL](/reference-assets/images/SignNow_Salesforce/apex_actions_2/get_send_invite_screen_settings.png)

- Click **Done** to save the screen settings.

## Step 3. Finalize the flow

- Click **Save**.
- **Activate** the flow.

## Step 4. Create a flow action and add it to the Opportunity layout 

[Create an action](/docs/add-action-page-layout) that will show the screen with the sending URL and add it to the Opportunity. 

## Result 

Users can now click the Editor URL button on any Opportunity to generate and view the link for editing the specific document group. The link can be embedded in an iframe using a Lightning Web Component (LWC) that wraps the standard HTML <iframe> tag.

---

View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).


---

## Get SignNow Invite Data

# Apex action: Get SignNow Invite Data

> [!NOTE]
> Before configuring this Apex action, review the [prerequisites](/docs/salesforce-apex-actions#prerequisites) for SignNow Apex actions and complete the required setup steps.

The **Get SignNow Invite Data** action allows users to retrieve a JSON response with document(s) data, which can be parsed and used for other purposes.

The JSON contains the following details:

- invite ID
- document group ID
- recipient emails
- information about fields (type, name, value, true/false for signature fields)
- value of the image field with the image URL, and more.

Let's build the example flow where clicking a button in Opportunity displays the signature invite data.

## Step 1. Configure a flow

Start by creating a screen flow.

![Select Type dialog with Screen Flow selected](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_invite_data_screen.png)

Click the **+** icon and select the **Get SignNow Invite Data** action.

Configure the action.

- Enter an action label and brief description to locate the flow.
- Specify the input values for the SignNow action. In our example, only the SignNow invite ID is required.

> [!NOTE]
> You can enter the invite ID manually or connect the SignNow invite ID field to a resource that stores the invite data.

![Get Invite Data action settings with the invite ID](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_invite_data_action.png)

Next, let’s configure the screen element. 

Click **+** icon and select **Screen**.

Configure the screen’s settings.

- On the Components tab, select **Display Text**.
- Add the API name
- In the **Resource** field, select **Outputs from Get_Invite_Data** action.

![Display Text component with Outputs from Get_Invite_Data in the resource list](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_invite_data_screen_settings1.png)

- Select the type of data to be displayed: `data` and `error`.
- (Optional) Use the formatting panel to format data and error text.
- Click the [Flow Label] to add a label for the screen.
- Click **Done** to save the settings.

![Display Text component with the Get_Invite_Data output inserted](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_invite_data_screen_settings2.png)

Once the configuration is ready, click **Save** and activate the flow.

## Step 2. Create and deploy a button

[Create and deploy the **Display invite data** button](/docs/add-action-page-layout) that will display the invite information on the Opportunity.

Let’s check how the button works.

Go to any Opportunity, find **Display invite data**, and click it. 

The information about the signature invite has been retrieved.

![Display invite data dialog on an Opportunity record showing the invite data](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_invite_data_button_result_new.png)

---

View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).


---

## Reassign SignNow Invite

# Apex action: Reassign SignNow Invite

> [!NOTE]
> Before configuring this Apex action, review the [prerequisites](/docs/salesforce-apex-actions#prerequisites) for SignNow Apex actions and complete the required setup steps.

The **Reassign SignNow Invite** action allows users to reassign a document group signature invite to a different email address.

In this example, we will create a Screen Flow where a user can view document details, change the signer's email, and send the document group to the new email address. We will also retrieve the document group data needed to perform this reassignment.

## Prerequisites

- Go to **Setup** > **Flows** > **New Flow.**
- Select **Screen Automations > Screen Flow**.

![New Automation dialog with Screen Flow selected](/reference-assets/images/SignNow_Salesforce/apex_actions_2/get_dg_flow_type.png)

## Step 1. Add the Get SignNow Document Group action

- Click the **+** icon to add the **Get SignNow Document Group** action to the flow.

> [!NOTE]
> This action retrieves data required for reassignment.

- Add a label: `Get SignNow Document Group`.
- **SignNow Document Group ID**: Add the ID or select a resource.
- **The output resources show the information that can be retrieved:**
    - List of documents
    - Document group ID
    - Invite ID
    - Document group name
    - Pending step ID
    - State

![Get SignNow Document Group action settings](/reference-assets/images/SignNow_Salesforce/apex_actions_2/get_dg_action_settings.png)

## Step 2. Add a screen element

Add a screen to display the information about the document group.

- Click the **+** icon below the SignNow action and select **Screen**.
- Add a label: `Main information screen`.
- In the Components panel on the left, select **Display Text**.

![Screen element with a Display Text component](/reference-assets/images/SignNow_Salesforce/apex_actions_2/reassign_main_info_screen.png)

- **Enter an API name:** `Doc_group_text`.
    - Note: API name can only contain underscores and alphanumeric characters.
- **In the Insert a resource field**, select the **`Outputs from Get_SignNow_Document_Group action`** > Select the data you want to display on the screen. For example, display the following data:
    - Document group ID.
    - Last invite ID.
    - Pending step ID.
- Click **Done** to save the screen.

![Display Text component showing the document group ID, name and pending step ID](/reference-assets/images/SignNow_Salesforce/apex_actions_2/get_dg_main_info_text.png)

## Step 3. Add a loop element (1)

Add a loop element to iterate through the documents related to the document group and extract specific details.

- Click the **+** icon below the screen element and select **Loop**.
- **Add a label:** `Go through documents`.
- **Select collection variable:** `Outputs from Get_SignNow_Document_Group Action` > `documents`.

![Loop element over the documents in the document group](/reference-assets/images/SignNow_Salesforce/apex_actions_2/reassign_got_through_documents_loop.png)

### Add a screen inside the loop

- Click the **+** icon inside the loop path (**For Each**) and select **Screen**.
- **Add a label:** `Each document screen`.
- In the **Components** panel on the left, select **Display Text**.
- **Enter an API name:** `Document_info`.
- In the **Insert a resource field**, select the `Current Item from Loop` `Go through documents` and select the data you want to display on the screen. For example, display the following data:
    - Document ID
    - Roles
- Click **Done** to save the screen.

![Screen inside the loop showing each document's ID and name](/reference-assets/images/SignNow_Salesforce/apex_actions_2/get_dg_for_each_doc_screen.png)

## Step 4. Add a loop element (2)

Add a second loop element to iterate through the fields within the document group invite and extract specific details.

- Click the **+** icon below the **Each document** screen and select **Loop**.
- **Add a label:** `Go through fields`.
- **Select collection variable:** `Current Item from Loop`  `Go through documents` > `field_invites`.

![Nested loop element over the field invites of each document](/reference-assets/images/SignNow_Salesforce/apex_actions_2/reassign_go_through_fields_loop.png)

**Add a screen inside the nested loop:**

- Click the **+** icon inside the second loop path (**For Each**) and select **Screen**.
- **Add a label:** `Each field screen`.
- In the **Components** panel on the left, select **Display Text**.
- **Enter an API name:** `Field_info`.
- In the **Insert a resource field**, select the `Current Item from Loop`  ****`Go through fields` > and select the data you want to display on the screen. For example, display the following data:
    - Signer email
    - Status

![Screen inside the nested loop showing each field invite's signer email and status](/reference-assets/images/SignNow_Salesforce/apex_actions_2/get_dg_for_each_field_screen.png)


**Add a Text component (Input) for the user to specify the email to replace:**

- In the Components panel on the left, select **Text**.
- Add a label: `Old email`.
- Click **Done** to save the screen.

![Screen showing the current signer email and status, with a text input for the new email](/reference-assets/images/SignNow_Salesforce/apex_actions_2/reassign_old_email_to_screen.png)

## Step 5. Add new variables

Create variables to store the invite ID, step ID, and old email to pass them to the **reassign** action later.

### **Create the Invite ID variable**

- Click **New Resource** in the Toolbox.
- **Resource Type**: Variable
- **API Name:** `Invite_id`
- **Data Type:** Text
- Click **Done** to save.

![New Resource dialog for the Invite ID variable](/reference-assets/images/SignNow_Salesforce/apex_actions_2/reassign_invite_id_resource.png)

### **Create the Step ID variable**

- Click **New Resource** in the Toolbox.
- **Resource Type**: Variable
- **API Name:** `Step_id`
- **Data Type:** Text
- Click **Done** to save.

![New Resource dialog for the Step ID variable](/reference-assets/images/SignNow_Salesforce/apex_actions_2/reassign_step_id_resource.png)

### **Create the old email variable**

Create a variable to hold the email address that needs to be replaced.

- Click **New Resource** in the Toolbox.
- **Resource Type**: Variable
- **API Name:** `Old_email_to_replace`
- **Data Type:** Text
- Click **Done** to save.

![New Resource dialog for the old email variable](/reference-assets/images/SignNow_Salesforce/apex_actions_2/reassign_old_email_to_replace.png)

## Step 6. Add assignments

### Assignment 1

Store the IDs from the **Get SignNow Document Group** action into your new variables.

- Click the **+** icon below the `Main information screen` .
- Select **Assignment**.
- Add a label: `Fill reassign info`.
- **Set variable values:**
    - `Invite_id` **Equals** `Outputs from Get SignNow Document Group Action` > `last_invite_id`.
    - Click **Add Assignment**.
    - `Step_id` **Equals** `Outputs from Get SignNow Document Group Action` > `pending_step_id`.

![Assignment that sets the invite ID and step ID](/reference-assets/images/SignNow_Salesforce/apex_actions_2/reassign_assignments.png)

### Assignment 2

Capture the email from the current loop item and store it in the old email variable.

- Click the **+** icon below the **Each field** screen**.**
- Select **Assignment**.
- Add a label: `Put email to variable`.
- **Set variable values:**
    - `Old_email_to_replace` **Equals** `Current Item from Loop Go through Fields > signer_email`

![Assignment that stores the signer email to replace](/reference-assets/images/SignNow_Salesforce/apex_actions_2/reassign_assignment_put_email.png)

## Step 7. Add Reassign SignNow Invite action

Click the **+** icon above the end of the flow (outside the loops).

- Add the **Reassign SignNow Invite** action to the flow.
- Add a label: `Reassign SignNow Invite`.
- Set input values:
    - **Enter a new recipient email:** Enter the new email address (e.g., a static value or a resource).
    - **Enter an old email:** Select the `Old_email_to_replace` variable.
    - **Document Group ID:** Select `Outputs from Get_SignNow_Document_Group > document_group_id`.
    - **SignNow Invite ID:** Select the `Invite_id` variable.
    - **SignNow Step ID:** Select the `Step_id` variable.

![Reassign SignNow Invite action settings](/reference-assets/images/SignNow_Salesforce/apex_actions_2/reassign_signnow_action.png)

## Finalize

- Click **Save**.
- **Activate** the flow.

## Result

- Once the flow runs, all requested information about the document group is displayed.
- A user enters the email address that should be replaced in the **Old email** text field.
- Once the email address is added, the signature invite is sent to the new email address defined in the flow.

---

View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).


---

## Cancel SignNow Invite

# Apex action: Cancel SignNow Invite

> [!NOTE]
> Before configuring this Apex action, review the [prerequisites](/docs/salesforce-apex-actions#prerequisites) for SignNow Apex actions and complete the required setup steps.

The **Cancel SignNow Invite** action allows users to cancel the signature invite based on Salesforce events.

For example, let’s cancel the invite to send an agreement once the Opportunity is marked as lost.

## Step 1. Configure the flow trigger

- Select the object which record triggers the flow. For our example, it is **Opportunity**.
- Select when the flow should be triggered. For our example, it is `A record is updated`.
- Set entry conditions (condition requirements, record field, operator, and value). For our example, the condition field is `Stage`, the condition operator is `Equals` , and the value is `Closed Lost`.
- Select how often the flow should run.

![Configure Start panel for an Opportunity flow that runs when Stage equals Closed Lost](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_cancel_invite_trigger.png)

## Step 2. Configure the SignNow action

- Enter an action label and brief description to locate the flow.
- Specify the input values for the SignNow action. In our example, only the SignNow invite ID is required.

For the example flow, the `SignNow Invite ID` field is connected to the `Next Step` field of the Opportunity. The `Next Step` field has been configured to store the invite ID as described in the [SignNow Invite Status Update](/docs/apex-invite-status-update-event) flow.

> [!NOTE]
> The SignNow action accepts only numeric values. Since `Next Step` is a text field, use the resource formula `VALUE({!$Record.NextStep})` to convert the text to a number.

![Cancel SignNow Invite action settings with the invite ID from the Next Step field](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_cancel_invite_action.png)

> [!NOTE]
> A signature invite with the **Signed** status cannot be canceled.

## Result 

When the Opportunity is marked as Closed Lost, the agreement invite sent from the Opportunity is automatically canceled.

---

View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).

---

## SignNow Invite Status Update event

# SignNow Invite Status Update event

> [!NOTE]
> Before configuring this Apex action, review the [prerequisites](/docs/salesforce-apex-actions#prerequisites) for SignNow Apex actions and complete the required setup steps.

Users can trigger actions in Salesforce based on SignNow document group events. 

SignNow also stores invite and recipient status as Salesforce records. For those objects, their fields and status values, see [Signing status and record updates](/docs/salesforce-signing-status-and-record-updates).

The supported event types are: 

- `document_group.complete`
- `document_group.update`
- `document_group.delete`
- `document_group.invite.create`
- `document_group.invite.update`
- `document_group.invite.cancel`
- `document_group.invite.declined`
- `document_group.invite.signed`
- `document_group.invite.resend`
- `user.invite.expired`

Each event carries the following fields.

| Field | API name | Type | Description |
| --- | --- | --- | --- |
| Event Type | `cuda_signnow__Event_Type__c` | Text(255) | The event that fired, for example `document_group.invite.signed` |
| Invite ID | `cuda_signnow__Invite_ID__c` | Text(255) | The SignNow invite the event relates to |
| Context ID | `cuda_signnow__Context_ID__c` | Text(255) | The ID of the Salesforce record the invite was sent from |
| Context Table | `cuda_signnow__Context_Table__c` | Text(255) | The API name of that record's object, for example `Opportunity` |
| Initiator ID | `cuda_signnow__Initiator_ID__c` | Text(255) | The user who caused the event |
| Timestamp | `cuda_signnow__Timestamp__c` | Date/Time | When the event occurred in SignNow |
| JSON | `cuda_signnow__JSON__c` | Long Text Area(131072) | Remaining event-specific data, such as signer details or `group_invite_id` |

**Context ID** and **Context Table** together identify the Salesforce record behind the invite. Match on them to find the Opportunity, Account, or custom object record to update.

Salesforce adds its own standard fields to every platform event, including `EventUuid`, `ReplayId`, `CreatedDate` and `CreatedBy`. `CreatedDate` is when Salesforce published the message, which is not the same as `Timestamp`, the moment the event occurred in SignNow.

Platform events are delivered at least once, so a flow that writes to a record can run twice for the same event. Where a repeated update would cause a problem — advancing a stage, sending a notification, incrementing a value — store the `EventUuid` and skip messages you have already handled.

## Step 1. Configure a flow

Let’s configure the flow to update Opportunity records based on the Invite Status Update data.

This time, it will be a platform event.

![New Automation dialog with Platform Event-Triggered Flow selected](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_signnow_event_platform_triggered.png)

Configure the platform event details.

- Name the event.
- Select the flow initiator.

**Run this flow as** sets the identity the flow runs under. *User that triggered the event* uses whoever's context published the message, which varies with how the invite was sent. *Default Workflow User* is the same identity every time, set in **Setup > Process Automation Settings**. Either way, give that user edit access to the records the flow updates.

![Choose Platform Event panel with the SignNow Event and the Run this flow as setting](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_signnow_event_trigger.png)

Configure the flow’s decision.

- Add a label and name.
- Add a short description (optional).
- Specify the outcomes and conditions. For our example, the event will be triggered if the object is Opportunity.

![Decision element that checks whether the event's context table is Opportunity](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_signnow_event_decision.png)

## Step 2. Configure the Update Records action

Next, configure the **Update Records** action.

- Add a label and name.
- Specify how to find the records to update. For our example, we will set conditions for field updates.
- Specify the object to update.
- Add condition requirements for record update.
- Map field values for Opportunity records. For our example, the `Description` field of the Opportunity will be pre-filled with `Event Type` of the SignNow event, and the `Next Step` field will be pre-filled with `Invite ID`.

![Update Records element mapping event data to Opportunity fields](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_signnow_event_update_records.png)

Once the configuration is ready, click **Save** and activate the flow.

## Result

Each time the signature invite is sent or changes its status, the `Next Step` and `Description` fields are pre-filled with SignNow event data (invite ID and event type).

![Opportunity record with the Next Step and Description fields filled from the SignNow event](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_signnow_event_result.png)

## Update the Opportunity stage after each signer signs

When a template goes to several signers in sequence, you can advance the linked Opportunity stage as each one completes: the first signer moves the Opportunity to **Value Proposition**, the second to **Negotiation/Review**, and the last to **Closed Won**.

The Invite Status Update event carries invite-level facts (event type, invite ID, and Context ID), enough to update one field per invite. Setting a different stage for each signer needs the signer's position in the signing order, which lives on the **SignNow Signer** record. So this use case runs on a record-triggered flow on that object, and resolves the Opportunity through the invitation the signer belongs to.

SignNow creates one **SignNow Signer** record per recipient when an invite is sent, holding that recipient's email, status, signing order, and a master-detail relationship to the **SignNow Invitation** record for the send. The flow below runs against those records as each signer completes.

### Step 1. Create a record-triggered flow

In Salesforce Setup, open **Flows**, then create a **Record-Triggered Flow** with the following configuration.

- **Object**: `SignNow Signer` (`cuda_signnow__SignNow_Signer__c`)
- **Trigger the Flow When**: A record is updated
- **Condition Requirements**: All Conditions Are Met (AND)
- **Entry condition**: `Status` Equals `Signed`
- **When to Run the Flow for Updated Records**: Only when a record is updated to meet the condition requirements
- **Optimize the Flow for**: Actions and Related Records

![Record-triggered flow start settings on the SignNow Signer object](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_signnow_signer_flow_trigger.png)

The entry condition keeps the flow from running on every signer update, so it executes once per signer, at the moment that signer completes the document.

### Step 2. Add a formula resource for the target stage

In the Toolbox, click **New Resource** and add a formula that maps each signer's position in the signing order to the stage you want the Opportunity to reach.

- **Resource Type**: Formula
- **API Name**: `New_opportunity_status`
- **Data Type**: Text
- **Formula**:

```
IF({!$Record.cuda_signnow__Order__c}=1, "Value Proposition",
IF({!$Record.cuda_signnow__Order__c}=2, "Negotiation/Review",
"Closed Won"))
```

Click **Check Syntax** to validate the formula, then click **Done**.

![Formula resource that sets the target Opportunity stage](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_signnow_signer_flow_formula.png)

The `Order` field holds the signer's position in the invite, so the formula returns `Value Proposition` for the first signer, `Negotiation/Review` for the second, and `Closed Won` for everyone after that. Use the stage names defined in your own Opportunity **Stage** picklist, and add a nested `IF()` for each additional signer you want to branch on. To branch by recipient instead of by order, use the signer's `Email` field in place of `Order`.

### Step 3. Add an Update Records element

Add an **Update Records** element that writes the stage to the Opportunity the invite was sent from.

- **Label**: `Update Opportunity`
- **How to Find Records to Update and Set Their Values**: Specify conditions to identify records, and set fields individually
- **Object**: `Opportunity`
- **Condition Requirements to Update Records**: All Conditions Are Met (AND)
- **Filter**: `Opportunity ID` Equals `SignNow Invitation > Context ID`
- **Set Field Values**: `Stage` = `New_opportunity_status`

![Update Records element that sets the Opportunity stage](/reference-assets/images/SignNow_Salesforce/apex_actions/apex_signnow_signer_flow_update_opportunity.png)

**Context ID** on the related SignNow Invitation record holds the ID of the Salesforce record the invite was sent from. Matching it against `Opportunity ID` is how the flow resolves the right Opportunity.

Click **Save**, then click **Activate**.

### Result

Each signer who completes the document advances the linked Opportunity one stage, and the final signer moves it to the closing stage you defined.

---

View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).

---

## Add action to Salesforce page layout

# How to create an action and add it to a Salesforce page layout

Follow these steps to create a flow-based action and add it to the Page Layout.

- Go to **Setup > Object Manager** > and select a Salesforce object where you want to add the action.

- Click **Buttons, Links, and Actions > New Action**.

![Buttons, Links, and Actions page for the Opportunity object with the New Action button](/reference-assets/images/SignNow_Salesforce/apex_actions_2/embedded_invite_create_action_button.png)

- **Action Type:** Flow.
- **Flow:** Select your flow.
- Add a label.
- Click **Save**.

![New Action form for the Opportunity object with a Flow action type](/reference-assets/images/SignNow_Salesforce/apex_actions_2/embedded_invite_new_action.png)

- Go to **Page Layouts**, select your layout, and drag the new button from the **Mobile & Lightning Actions** to the **Salesforce** **Mobile & Lightning Actions** section.
- Click **Save**.

![Opportunity page layout editor with the action added to Mobile and Lightning Actions](/reference-assets/images/SignNow_Salesforce/apex_actions_2/embedded_invite_add_action_to_layout.png)

---

View the full list of [SignNow Apex actions](/docs/salesforce-apex-actions).

---

## Salesforce use cases

# SignNow for Salesforce use cases

Step-by-step SignNow for Salesforce scenarios, from sending a simple order form to Flow automation with Apex actions.

- [Send an order form for signature](/docs/salesforce-send-order-form): generate an order form pre-filled with Opportunity data, add text tags, and send it from the record.
- [Send a contract based on conditions](/docs/salesforce-conditional-contract-sending): send a contract that one or two sellers sign, depending on the record.
- [Select templates based on record field values](/docs/salesforce-select-templates-by-field-values): offer senders only the templates a record needs, with formula conditions in a custom button URL.
- [Send a PDF attachment with tags](/docs/salesforce-send-attachment-with-tags): send a generated PDF attached to a record, with fields created from text tags.
- [Send documents with role-based access](/docs/salesforce-role-based-access): send a document group in which each recipient has different document access.
- [Build complex automation with Apex actions](/docs/salesforce-automation-apex-actions): automate language-specific onboarding packets with Salesforce Flow and SignNow Apex actions.


---

## Send an order form for signature

# Salesforce use case: Send an order form with text tags for signature

Generate an order form pre-filled with Opportunity data and send it for signature.

## Overview

Once a customer is ready to place an order, the sales manager updates the Salesforce Opportunity details and generates an order form pre-filled with Salesforce data.

The sales manager adds text tags for fillable fields in the order form, then sends it to the customer from the relevant Salesforce record. 

Once the customer signs the order form, the sales manager gets a copy in Salesforce.

## Preconditions

1. A Salesforce admin installed and configured the [SignNow integration app](/docs/installation).

2. A Salesforce admin has generated the order form with Salesforce Opportunity details.

3. A sales manager (or a Salesforce admin) has added [text tags](https://support.signnow.com/help-center/editing-documents-templates/new-how-do-i-use-text-tags) to the generated order form.

In this guide, we will create a document flow specific to sending order forms. Using SignNow for Salesforce, the sales manager can send the order form for signature from any Salesforce record, track the status of the sent form, and get the signed copy back to the Salesforce record.

## **Step 1. Add the text tags to the order form**

Let's add three fillable fields to the customer in the generated order form using any text editor:

- signature field: `{{t:s;r:y;o:"Customer";}}`
- text field: `{{t:t;r:y;o:"Customer";l:"Full Name";}}`
- date field: `{{t:t;r:y;o:"Customer";l:"Date";}}`

Learn more about [text tags syntax](https://support.signnow.com/help-center/editing-documents-templates/new-how-do-i-use-text-tags).

***Example of the order form with text tags***

<!--
focus: center
bg: gray
-->
![Order form document with text tags for opportunity, contact, product and payment data](/reference-assets/images/SignNow_Salesforce/use_case_1/order_form_tags.png)

Upload the order form with text tags to the Salesforce record where it will be sent for signature. In this example, we upload it to the **Contact** object.

## **Step 2. Configure the SignNow document flow**

Go to the **SignNow Admin Tools** > **Document Flows** and click **Create Document Flow**.

### Document flow information

Name the document flow and decide what settings the sender can configure.

We leave all boxes unchecked to allow the sales manager to edit fields, mapping, and recipients.

![Document Flow Info step with the flow name, document name and all sender options unchecked](/reference-assets/images/SignNow_Salesforce/use_case_1/flow_settings.png)


Click **Next to Customization** to customize the invite email message and subject.

### **Customize email invite message**

We will generate tags to pre-fill the email subject and message body.

> [!TIP]
> To create a merge tag, select the Salesforce object and field. Learn more about [generating tags](/docs/document-flows#configure-recipients). 

***Example of the email subject and body text with tags***

![Customize Email Invite Message step with the subject and body containing tags](/reference-assets/images/SignNow_Salesforce/use_case_1/email_tags.png)

Click **Next to Recipients**.

### Recipients

Configure the order form recipients.

You can pre-fill the recipient email using tags or enter the email address manually.

Click the gear icon to password-protect the document, set the expiration date and reminders, and allow forwarding.

***Example of the customer email with a tag***

![Recipients step with the customer email tag and the signing settings](/reference-assets/images/SignNow_Salesforce/use_case_1/recipient_tags.png)

To add more recipients, click **Add Recipient**.

Click **Save** to save the document flow configuration.

Now, the document flow appears in the list of flows.

## Step 3. Configure the custom button

Now we will use the Order form document flow to add the custom button to the Contact object.

The sales manager will click the button to send the order form with fillable fields to the customer according to the flow.

Select the **Custom Links** tab.

### Select what should be sent for signature

The sales manager will send the order form as an attachment.

Select **File: from the list of files attached to a Salesforce record** and clear **Templates**.

### Add the document flow

Click the dropdown arrow to select the Order form flow.

### Generate a link for a custom button

- Enter the Salesforce object name where you'd like to add the button.

The code for the custom button is generated automatically.

- Copy the code to use it for custom button settings.

***Example of the generated link***

![Custom Links builder with File selected, the Order form document flow, and the Contact object](/reference-assets/images/SignNow_Salesforce/use_case_1/link_generation_upd.png)

## Step 4. Add the custom button to the Salesforce record

Add the **Send order form** button to the Contact record.

- Go to **Setup** > **Object manager** and select **Contact**.
- Select **Contact** > **Buttons, Links, and Actions** on the left panel. Then click **New Button or Link** in the top right corner.
- Enter the custom button details, such as the label, display type, behavior, etc. The **Content Source** should be the URL.
- Insert the generated link into the **Custom Button or Link Editor** field. Click **Save** to save your button.

> [!IMPORTANT]
> Ensure the **Display Type** is set to **Detail Page Button**.

![New Button or Link form for the Send order form button on the Contact object](/reference-assets/images/SignNow_Salesforce/use_case_1/add_button.png)

Next, add the custom button to the object page layout.

- Select **Page Layout** on the left panel and click the required page layout from the list.

See detailed instructions on how to [add the button to the page layout](/docs/custom-links#add-the-custom-button-to-the-salesforce-object).

## Step 5. Send the order form as a sales manager

Now, let's send the order form from Contact as a sales manager.

- Go to the Contact object where the order form with text tags has been uploaded.
- Locate the **Send order form** button and click it.

![Contact record with the Send order form button in the actions menu](/reference-assets/images/SignNow_Salesforce/use_case_1/click_send_order_form.png)

- Select the order form, then click **Proceed**.

> [!NOTE]
> If you have multiple files, you can rearrange their order and merge them into one group.

![SignNow Select File page with the order form template selected](/reference-assets/images/SignNow_Salesforce/use_case_1/select_attachment.png)

Next, you will walk through all the steps configured in the Order form flow.

- Rename the document if needed.
- Edit the order form fillable fields. Here, the text tags are automatically converted into fillable fields.

![Order form template in the SignNow editor with the customer authorization fields](/reference-assets/images/SignNow_Salesforce/use_case_1/editor_order_form.png)

- Map the fillable fields in the order form to the Salesforce records to pre-fill them with data.

Let's pre-fill the customer name and date with the Contact data. 

We will allow the customer to edit the pre-filled data by setting the **Field Editing** to **Allow Editing**.

***Example of the fields mapping***

![Map Fields step mapping order form fields to Contact fields](/reference-assets/images/SignNow_Salesforce/use_case_1/fields_mapping.png)

- On the Send Invite page, edit the recipient email address, add CC recipients, customize the actions on completion, preview the order form with pre-filled data, and more.

Here we can check that the email subject and message have been pre-filled via tags.

![Send Invite page with the email subject and message pre-filled from tags](/reference-assets/images/SignNow_Salesforce/use_case_1/send_invite.png)

- Click **Send Invite** to send the order form to the customer.

## Step 6. Track the order form status

Track the status of the order form using the Invites Status widget.

Learn how to [install and use the widget](/docs/salesforce-invites-status-widget#signnow-invites-status-widget).  

![Track Document Statuses widget on a contact record with the order form waiting for others](/reference-assets/images/SignNow_Salesforce/use_case_1/track_status_widget.png)

## Watch the order form from the customer’s perspective

Now let's watch how the customer receives and signs the order form.

![Animation of the customer opening the invite email and signing the order form](/reference-assets/images/SignNow_Salesforce/use_case_1/order_form_result.gif)

## Step 7. Get the signed copy in Salesforce

Once the customer signs the order form, the sales manager can access it in Contact from the **Notes & Attachments** or **Invites Status** widget.

![Contact record with the signed order form in Notes & Attachments and the Signed status in the widget](/reference-assets/images/SignNow_Salesforce/use_case_1/signed_copy.png)



---

## Send a contract based on conditions

# Send a contract to one or two sellers based on conditions

The **SignNow integration for Salesforce** allows you to configure templates and automate document workflows directly from Salesforce records. This flexibility allows you to tailor your signing process to specific business needs, for example, sending a contract that requires either one or two sellers to sign.

**Use case overview**

**Actors**: 

- Buyer (contract sender)
- Sellers (contract recipients)

Your company purchases goods from retailers. The Salesforce Opportunity stores information about the sellers. A Salesforce user acts as the buyer, preparing and signing the sales contract and sending it to one or two sellers.

To achieve this, create two SignNow document flows in Salesforce:

- One configured for a single seller
- Another configured for two sellers

Each **flow** includes a **template** — a pre-configured document with fillable fields and defined recipients — and defines how the template is sent and what permissions the sender has when triggering it.

Next, add two **Send contract** buttons to the Salesforce object page and apply conditional visibility rules based on the **Seller 2 Email** field. When **Seller 2 Email** is populated, Salesforce displays the button linked to the two-seller template; when it’s empty, the button for the one-seller template appears.

Follow the steps below to configure this setup in Salesforce.

```mermaid
flowchart TB
    Start["Salesforce Opportunity"]
    Decision{"Is Seller 2 Email populated?"}
    Prepare1["Buyer triggers 'Send contract (1 seller)' flow"]
    Prepare2["Buyer triggers 'Send contract (2 sellers)' flow"]
    Sign1["Buyer signs and sends contract to 1st Seller"]
    Sign2["Buyer signs and sends contract to both Sellers"]
    Seller1["Seller 1 reviews and signs contract"]
    Seller2["Seller 2 reviews and signs contract"]
    Collect["Buyer collects all signed contracts in Opportunity"]

    Start --> Decision
    Decision -- "No" --> Prepare1
    Decision -- "Yes" --> Prepare2
    Prepare1 --> Sign1
    Prepare2 --> Sign2
    Sign1 --> Seller1
    Sign2 --> Seller1
    Sign2 --> Seller2
    Seller1 --> Collect
    Seller2 --> Collect
```

## Step 1. Create a one-seller document flow

### Create a contract template

Let's create a contract template for one seller.

- Go to **SignNow** **Admin Tools** > **Templates > Create New Template**.
- Upload the sales contract from your device.
- Click **Add Fillable Fields** to open the contract in the editor.
- Add recipients who need to sign the contract and manage their access level.

You can do this now or later when configuring the document flow.

We will add the **buyer** and **one seller.**

- Add fillable fields for the buyer:
    - Date and Time 1
    - Signature 1
    - Text Field 1
    - Date and Time 2
- Add fillable fields for the seller:
    - Signature 2
    - Text Field 2
    - Date and Time 3

![Sales contract template in the SignNow editor with fields for the buyer and one seller](/reference-assets/images/SignNow_Salesforce/use_case_2/editor_1seller.png)

- Click **Done** to save the changes.

### Pre-fill fillable fields

On the **Templates** tab, click **Pre-fill Fillable Fields** to set up field mapping.

> [!NOTE]
> You can pre-fill fields only from the Salesforce object where the document sending is initiated and its parent object. For example, when sending a document from an Opportunity, you can also pre-fill data from the Account. To include data from related objects, create hidden fields on the main object and use formula fields to pull those related values in.

- Set up mapping to pre-fill contract fields with Opportunity records data.

Let's pre-fill the contract date, buyer name, and buyer signing date.

> [!TIP]
> Use the **Field Editing** column to define whether recipients can edit the pre-filled data (**Allow Editing** is enabled by default).


> [!IMPORTANT]
> You can configure data mapping to either pre-fill the document only or both pre-fill the document and update the connected Salesforce record. When updating a record in Salesforce, ensure that the document field and the Salesforce field are compatible and comply with validation rules. For example, map a date field in Salesforce to a date field in the document. Attempting to update a date field with text will cause the update to fail.

Click the arrow in the second column to adjust the mapping behavior. By default, mapping only pre-fills the document.


Learn more about [pre-filling fields](/docs/templates#pre-fill-fillable-fields).

![Pre-fill Fillable Fields dialog mapping the one-seller contract fields to Opportunity fields](/reference-assets/images/SignNow_Salesforce/use_case_2/prefill_1seller.png)

- Click **Save**.

### Create a document flow

Select the **Document Flows** tab > **Create Document Flow** to configure the one-seller flow.

- Name the flow and select which steps the [sender can configure](/docs/document-flows#configure-the-senders-experience).

> [!TIP]
> When naming a document flow, start with the Salesforce object that triggers the flow, followed by the template name. This approach helps you quickly identify which flow is linked to a custom button on the Salesforce object and update it when needed.
>
> For example: `Opportunity - Sales contract (1 seller)`

![Document Flow Info step for the one-seller contract](/reference-assets/images/SignNow_Salesforce/use_case_2/flow_create_1seller.png)

- Customize email invite message.
- Add the seller and buyer email addresses.

> [!IMPORTANT]
> The steps you add in the document flow must **exactly match** the steps defined in the template, including the same names. This ensures that the flow triggers correctly and that all recipients and permissions align with the template configuration.

In this use case, we will send the contract to the sender (buyer) and the related Opportunity contact (seller).

[Generate tags](/docs/document-flows#pre-fill-recipient-emails-using-tags) to pre-fill the email fields.

![Recipients step of the one-seller document flow with the buyer and seller email tags](/reference-assets/images/SignNow_Salesforce/use_case_2/flow_recipients_1seller.png)

- Click **Save** to save the flow configuration.

## Step 2. Configure the one-seller contract button

Now, let's create a button for sending a single-seller contract and add it to the Opportunity (or any object you need).

- Select **Custom Links.**
- Select the one-seller contract template you have configured.
- Add the one-seller document flow
- Enter the Salesforce object name where you want to add the button.

![Custom Links builder with the Sales Contract (One Seller) template, the 1-seller document flow, and the Opportunity object](/reference-assets/images/SignNow_Salesforce/use_case_2/custom_button_1seller_upd.png)

- Copy the link and add it to the object page layout as described [here](/docs/custom-links#add-the-custom-button-to-the-salesforce-object).

## Step 3. Create a two-seller document flow

### Create a contract template

Let's create a contract template for two sellers.

- Go to **SignNow** **Admin Tools** > **Templates > Create New Template**.
- Upload the sales contract from your device.
- Click **Add Fillable Fields** to open the contract in the editor.
- Add recipients that need to sign the contract and manage their access level.

You can do this now or later when configuring the document flow.

- Add fillable fields for the buyer:
    - Date and Time 1
    - Signature 1
    - Text Field 1
    - Date and Time 2
- Add fillable fields for seller 1:
    - Date and Time 3
    - Signature 2
    - Text Field 2
- Add fillable fields for seller 2:
    - Signature 3
    - Text Field 3
    - Date and Time 4

![Sales contract template in the SignNow editor with fields for the buyer and two sellers](/reference-assets/images/SignNow_Salesforce/use_case_2/editor_2sellers.png)

- Click **Done** to save the changes.

### Pre-fill fillable fields

On the **Templates** tab, click **Pre-fill Fillable Fields** to set up field mapping.

- Set up mapping to pre-fill contract fields with Opportunity records data.

Let's pre-fill the contract date, buyer’s name, and buyer's signing date. Lock the fields for editing by recipients.

Learn more about [pre-filling fields](/docs/templates#pre-fill-fillable-fields).

![Pre-fill Fillable Fields dialog mapping the two-seller contract fields to Opportunity fields](/reference-assets/images/SignNow_Salesforce/use_case_2/prefill_2sellers.png)

- Click **Save** to save the field mapping.

### Create a document flow

Select the **Document Flows** tab > **Create Document Flow** to configure the two-seller flow.

- Name the flow and select which [steps the sender can configure](/docs/document-flows#configure-the-senders-experience).

![Document Flow Info step for the two-seller contract](/reference-assets/images/SignNow_Salesforce/use_case_2/flow_create_2sellers.png)

- Customize email invite message.
- Add the seller's and buyer's email addresses.

In this use case, we will send the contract to the sender (buyer), seller 1, and seller 2.

Generate tags to pre-fill the email fields.

![Recipients step of the two-seller document flow with the buyer, Seller 1 and Seller 2 email tags](/reference-assets/images/SignNow_Salesforce/use_case_2/flow_recipients_2sellers.png)

- Click **Save** to save the flow configuration.

## Step 4. Configure the two-seller contract button

Create the button for sending the contract to two sellers. 

- Select **Custom Links.**
- Select the two-seller contract template you have configured.
- Add the two-seller document flow
- Enter the Salesforce object name where you want to add the button.

![Custom Links builder with the two-seller contract template, the 2-seller document flow, and the Opportunity object](/reference-assets/images/SignNow_Salesforce/use_case_2/custom_button_2sellers_upd.png)

- Copy the link and add it to the object page layout as described [here](/docs/custom-links#add-the-custom-button-to-the-salesforce-object).

## Step 5. Set buttons visibility

Set visibility rules for the buttons you have created: **Send contract (1 seller)** and **Send contract (2 sellers)**, so that users see only the relevant option.

The **Send contract (1 seller)** should appear if the **Seller 2 Email** field is blank.

The **Send contract (2 sellers)** should appear if the **Seller 2 Email** field is not blank.

- Open a record (for example, Opportunity) > click the gear icon > **Edit Page**.

![Opportunity record with the gear menu open and Edit Page highlighted](/reference-assets/images/SignNow_Salesforce/use_case_2/button_visibility_edit_page.png)

- In the Lightning App Builder, select the **Highlights Panel** (or the Actions section) and click **Add Action**.
- Add the buttons you have created to the actions list.

![Lightning App Builder with the contract buttons added to the record page actions](/reference-assets/images/SignNow_Salesforce/use_case_2/button_visibility_add_actions.png)

- Select the **Send сontract (1 seller)** action and add a visibility filter:
    - Visible when **Seller 2 Email** is blank

![Lightning App Builder visibility filter that shows the one-seller button when Seller 2 Email is blank](/reference-assets/images/SignNow_Salesforce/use_case_2/button_visibility_seller_1.png)

- Select the **Send сontract (2 sellers)** action and add a visibility filter:
    - Visible when **Seller 2 Email** is not blank

![Lightning App Builder visibility filter that shows the two-seller button when Seller 2 Email is not blank](/reference-assets/images/SignNow_Salesforce/use_case_2/button_visibility_seller_2.png)

> [!NOTE]
> If you don’t see **Actions**, add the Highlights Panel component and **Upgrade to Dynamic Actions**.

- **Save** and **Activate** the Lightning page.

## Step 6. Explore the user experience

Each time the **Seller 2** **Email** field is filled, Salesforce displays the **Send contract (2 sellers)** button on the Opportunity record.

When clicked, the user sends the preconfigured contract to two sellers and the buyer.

![Animation of sending the preconfigured contract from an Opportunity record](/reference-assets/images/SignNow_Salesforce/use_case_2/flow_1seller.gif)

If the **Seller 2 Email** field is empty, Salesforce displays the **Send contract (1 seller)**

button. When clicked, the user sends the preconfigured contract to one seller and the buyer.

![Animation of sending the preconfigured contract to two sellers and the buyer](/reference-assets/images/SignNow_Salesforce/use_case_2/flow_2sellers.gif)



---

## Select templates based on record field values

# Select templates based on record field values

Offer Salesforce senders only the templates a record needs by adding formula conditions to a custom button URL.

**Use case overview**

Your company sends loan agreements from Salesforce Accounts. The documents each customer signs depend on the record:

- If **Billing State** is `California`, the sender needs the CA agreement, the disclosure, and the addendum.
- If **Payment Frequency** is `Weekly`, the sender also needs the weekly payment addendum.

Instead of creating a template for every combination, create one template per document and one custom button. The button URL contains a Salesforce formula that adds a template ID for each condition the record meets. When the sender clicks the button, SignNow offers only the templates that match that record.

```mermaid
%%{init: {'themeVariables': {'fontSize': '16px'}, 'flowchart': {'rankSpacing': 30, 'nodeSpacing': 20, 'padding': 8}}}%%
flowchart LR
    State{"California?"}
    Freq{"Weekly?"}
    AddCA["Add CA agreement,<br>disclosure, addendum"]
    AddWeekly["Add weekly<br>payment addendum"]
    Result["Offer the<br>added templates"]

    State -- "Yes" --> AddCA --> Freq
    State -- "No" --> Freq
    Freq -- "Yes" --> AddWeekly --> Result
    Freq -- "No" --> Result
```

Follow the steps below to configure this setup in Salesforce.

## Step 1. Create the templates

Create a separate template for each document you want to send conditionally.

- Go to **SignNow Admin Tools** > **Templates** > **Create New Template**.
- Upload the document, add fillable fields and recipients, and click **Done**.
- Repeat for each document. In this example, the templates are **CA agreement**, **disclosure**, **addendum**, and **weekly payment addendum**.

To learn how to add fillable fields and recipients and set up pre-fill, see [Templates](/docs/templates).

On the **Templates** tab, the **Template ID** column shows the ID of each template. You will use these IDs in the formula.

![Templates tab in SignNow Admin Tools listing four templates with their Template IDs](/reference-assets/images/SignNow_Salesforce/use_case_template_conditions/templates_list_ids.png)

## Step 2. Generate a custom link with all templates

- In **SignNow Admin Tools**, click **Custom Links**.
- Select **Templates: pre-selected by the Admin**.
- In **Select Template**, select every template the button can offer. In this example, select all four.
- Optionally, add a document flow to apply preset recipients and sender settings to the documents. See [Add the SignNow document flow](/docs/custom-links#add-the-signnow-document-flow-optional).
- Enter the API name of the object where you will add the button (`Account` in this example).
- Click **Copy link**.

![Custom Links tab with Templates: pre-selected by the Admin and four templates selected in the Select Template list](/reference-assets/images/SignNow_Salesforce/use_case_template_conditions/custom_links_preselected.png)

The copied link lists the template IDs in the `template_group_id` parameter, separated by `%2C`, the URL-encoded comma.

![Generated custom link for the Account object with four template IDs in the template_group_id parameter](/reference-assets/images/SignNow_Salesforce/use_case_template_conditions/custom_link_generated.png)

The end of the link is the part you replace in the next step. Example of the generated `template_group_id` value for the four templates in this use case, with placeholders instead of real template IDs:

`template_group_id=<weekly_payment_addendum_id>%2C<addendum_id>%2C<disclosure_id>%2C<ca_agreement_id>`

## Step 3. Add conditions to the link

In the link you copied in Step 2, delete everything after `template_group_id=` and replace it with Salesforce formula expressions, one per condition. When the sender clicks the button, Salesforce evaluates each expression against the record and inserts the result into the link. SignNow receives only the template IDs whose conditions are true.

### How an expression works

Each condition is an `IF` expression wrapped in `{! }`. This expression adds the three California templates:

```text
{!IF(Account.BillingState = "California", "<ca_agreement_id>%2C<disclosure_id>%2C<addendum_id>%2C", "")}
```

| Part | What it does |
| --- | --- |
| `{! }` | Marks a formula. Salesforce calculates it when the sender clicks the button and puts the result in the link. |
| `IF(condition, value_if_true, value_if_false)` | Returns the second value when the condition is true and the third value when it is false. |
| `Account.BillingState = "California"` | The condition. The value in quotes must match the value stored in the field, for example `California` or `CA`. |
| `"<id>%2C<id>%2C<id>%2C"` | The template IDs to add when the condition is true. Copy the IDs from the **Template ID** column in Step 1 and end each one with `%2C`, the URL-encoded comma. |
| `""` | An empty value, so nothing is added when the condition is false. |

Write the condition to match the field type:

- **Text field**: compare with `=`, for example `Account.BillingState = "California"`.
- **Picklist**: use `ISPICKVAL()`, for example `ISPICKVAL(Account.Payment_Frequency__c, "Weekly")`.

To avoid typing field names by hand, build the expression in the **Custom Button or Link Editor**: select the field in **Insert Field** to add its merge field, and pick `IF` or `ISPICKVAL` from **Functions**. For the syntax of every function you can use in a condition, see [All Formula Operators and Functions](https://help.salesforce.com/s/articleView?id=sf.customize_functions_parent.htm&language=en_US&type=5) in Salesforce Help.

### Combine several conditions

Place the expressions one after another, with nothing between them. Salesforce joins their results, so a record that meets both conditions gets all four template IDs.

Example of the `template_group_id` value that Salesforce sends to SignNow for an Account with Billing State `California` and Payment Frequency `Weekly`:

`template_group_id=<ca_agreement_id>%2C<disclosure_id>%2C<addendum_id>%2C<weekly_payment_addendum_id>%2C`

Because every ID ends with `%2C`, the IDs stay separated whichever conditions are true.

In this example, **Payment Frequency** is a custom picklist field (`Payment_Frequency__c`) on the Account. Replace the field names and IDs with your own. If the record doesn't have a field for your condition yet, create one in **Setup** > **Object Manager** > *object* > **Fields & Relationships** > **New**, and use its API name, ending in `__c`, in the formula.

For step-by-step instructions on creating a custom field, including picklist values, field visibility, and page layouts, see [Create a Custom Field](https://help.salesforce.com/s/articleView?language=en_US&id=sf.adding_fields.htm&type=5) in Salesforce Help.

The complete link with both conditions looks like this. Use it as the URL of the custom button in Step 4:

```text
/apex/cuda_signnow__universal_signnow?app_path=/en/sender&contextId={!CASESAFEID(Account.Id)}&contextTable=Account&initialDirectory=/Account/{!CASESAFEID(Account.Id)}&sources=template&template_group_id={!IF(Account.BillingState = "California", "<ca_agreement_id>%2C<disclosure_id>%2C<addendum_id>%2C", "")}{!IF(ISPICKVAL(Account.Payment_Frequency__c, "Weekly"), "<weekly_payment_addendum_id>%2C", "")}
```

The link adds the following templates:

| Billing State | Payment Frequency | Templates offered |
| --- | --- | --- |
| California | Weekly | CA agreement, disclosure, addendum, weekly payment addendum |
| California | Any other value | CA agreement, disclosure, addendum |
| Any other value | Weekly | Weekly payment addendum |
| Any other value | Any other value | All templates in the SignNow account |

> [!NOTE]
> When no condition matches, `template_group_id` is empty and the sender can choose from every template in the account. To keep the sender within a set of templates, add an expression that returns a default template ID when none of the other conditions is true.

You can add as many `IF` expressions as you need, and base them on any field available in the object's formula editor.

## Step 4. Add the button to the object

Create a custom button with the modified link as its URL and add it to the page layout. For the button settings and where to place the button, see [Add the custom button to the Salesforce object](/docs/custom-links#add-the-custom-button-to-the-salesforce-object).

You can use the same approach on any object. Generate the link with that object's API name and reference its fields in the conditions.

## Step 5. Explore the user experience

When the sender clicks the button, Salesforce evaluates the conditions against the record, and SignNow offers only the templates that match. The **Select Templates** screen lists the matching templates. The sender selects the ones to send, sets their order in **Merge order** if needed, and clicks **Proceed**. The selected templates are combined into one document in the order shown.

> [!NOTE]
> If you add a document flow in Step 2, it can change what the sender sees after clicking the button, depending on the flow configuration. For example, if the document flow hides the template selection step, all templates that match the conditions open for the sender as one document group. To choose which steps the sender sees, see [Configure the sender's experience](/docs/document-flows#configure-the-senders-experience).

For an Account in California with monthly payments, the sender sees the three California templates.

![Select Templates screen listing addendum, CA agreement, and disclosure, with the Merge order panel](/reference-assets/images/SignNow_Salesforce/use_case_template_conditions/select_templates_california.png)

For an Account in California with weekly payments, the sender sees all four templates.

![Select Templates screen listing four templates, including weekly payment addendum, with the Merge order panel](/reference-assets/images/SignNow_Salesforce/use_case_template_conditions/select_templates_california_weekly.png)


---

## Send a PDF attachment with tags

# Send a PDF attachment with tags from a Salesforce record

Send a generated PDF attached to a record for signature, with fields created from SignNow text tags.

## Overview

This use case enables a seamless signing workflow for the document you generated and attached to a Salesforce object. By using SignNow text tags within the generated document, fillable fields are automatically created upon sending, eliminating the need for manual field placement and assignment to specific recipients.

## Scenario

**A sales manager (the document sender):**

- Generates a purchase agreement using the Salesforce CPQ (or other document generation tool) and uploads it to the Opportunity record. This document contains pre-defined SignNow text tags.
- Creates a pre-configured document flow that sends the purchase agreement to the seller and buyer from the Opportunity record by clicking the button.

**Recipients:**

- Receive the email invites.
- Open the purchase agreement.
- Complete the document (by adding their information to the fillable fields converted from text tags and sign the agreement.

## Prerequisites

- SignNow for Salesforce installed and configured.
- A document generation tool (like Salesforce CPQ) capable of outputting PDFs.
- Access to SignNow Admin Tools within Salesforce.

Follow the steps below to configure this setup in Salesforce.

## Step 1. Generate a PDF purchase agreement

Use the Salesforce CPQ (or another document generation tool) to generate a purchase agreement. 

To automate field creation when the document is processed by SignNow, the source PDF must contain text tags. These tags define the type of field, who it is assigned to, its size, and whether it is required. 

Add [text tags](https://support.signnow.com/help-center/editing-documents-templates/new-how-do-i-use-text-tags) to the agreement template to create fillable fields for the seller and buyer.

### Examples of the tags for fillable fields:

| Field type | Tag syntax | Notes |
| :--- | :--- | :--- |
| **Text field** | `{{t:t;r:y;o:"Role name";w:100;h:15;}}` | Required text input. |
| **Signature** | `{{t:s;r:y;o:"Role name";w:100;h:15;}}` | Required signature. |
| **Initials** | `{{t:i;r:y;o:"Role name";w:100;h:15;}}` | Required initials. |
| **Dropdown** | `{{t:d;r:y;o:"Role name";w:100;h:15;dd:"Option1, Option2, Option3";}}` | Dropdown with three options. |
| **Checkbox** | `{{t:c;r:y;o:"Role name";w:100;h:15;}}` | Standard checkbox. |
| **Date** | `{{t:t;r:y;o:"Role name";w:100;h:15;v:"13435fa6c2a17f83177fcbb5c4a9376ce85befeb";}}` | Validates for MM/DD/YYYY. |


> [!NOTE]
> Replace `Role name` with the actual role names you will use in the Document Flow (e.g., "Buyer", "Seller").

That’s how the text tags for fillable fields look in the agreement:

![Agreement with text tags for signature, name and date fields assigned to the Seller and the Buyer](/reference-assets/images/SignNow_Salesforce/use_case_3/agreement_tags.png)

## Step 2. Upload the generated document to Salesforce record

Once the agreement is ready, the sender (or the automated CPQ process) must attach it to the Opportunity record.

**For manual upload:**

- Select the **Opportunity** > **Notes & Attachments** > **Upload Files**.
- Select the generated agreement.


> [!TIP]
> Give the uploaded file a recognizable name. This helps the user select the correct attachment later if multiple files are present on the record.

## Step 3. Create a document flow in SignNow

> [!NOTE]
> This configuration should be performed once by the admin.

The **Document Flow** defines the rules for handling the document, including who receives it and what steps the sender needs to take.

- Go to **App Launcher** > **SignNow Admin Tools**.
- Select the **Document Flows** tab > **Create Document Flow** to configure the automated flow for sending the attachment for signature.
- Name the flow and select which steps the [sender can configure](/docs/document-flows#configure-the-senders-experience).

> [!TIP]
> When naming a document flow, start with the Salesforce object that triggers the flow, followed by the name of the attachment. This approach enables you to quickly identify which flow is linked to a custom button on the Salesforce object and update it as needed.<br><br>For example: `Opportunity - Purchase agreement attachment`

![Document Flow Info step named after the Salesforce object and the attachment](/reference-assets/images/SignNow_Salesforce/use_case_3/flow_create.png)

- Customize email invite message.

You can add a custom email subject and message for recipients. Leave these blank to use the system defaults.

- Add recipients

In this scenario, we will add the **Seller** (the current Salesforce user sending the document) and the **Buyer** (a Contact related to the Opportunity).

[Generate tags](/docs/document-flows#pre-fill-recipient-emails-using-tags) to map Salesforce fields (like Contact Email or User Email) to the recipient email addresses.

![Recipients step with the email tags for the document flow recipients](/reference-assets/images/SignNow_Salesforce/use_case_3/recipients_flow.png)

> [!WARNING]
> If you choose to hide this step for the sender (making it a fully automated background process), the role names defined in the document MUST exactly match the role names defined here in the Document Flow. If they do not match, the sender will experience an error.<br><br>If the recipients might change unpredictably, we recommend **not hiding this step**, allowing the sender to manually confirm email addresses before sending.

• Click **Save** to save the flow configuration.

## Step 4. Add the Send attachment button to the Opportunity layout

Create a button that will trigger the configured document flow from the Opportunity.

- Go to the **SignNow Admin Tools** > **Custom Links**.
- In **Select what should be sent for signature**, select **File: from the list of files attached to a Salesforce record** and clear **Templates**.
- Add the document flow you have created in **Step 3**.
- Enter the API name of the object where you want to add the button.

![Custom Links builder with File selected, the purchase agreement document flow, and the Opportunity object](/reference-assets/images/SignNow_Salesforce/use_case_3/custom_links_upd.png)

- On the resulting screen, copy the generated **custom link URL**. You will need this for the next step.
- Add the button to the object page layout as described [here](/docs/custom-links#add-the-custom-button-to-the-salesforce-object).

## Step 5. Define where to store signed documents

- Go to the **SignNow Admin Tools > Document Storage**.
- Use the toggle to define whether completed documents should be stored in Salesforce.
- Choose whether to keep copies of completed documents in the SignNow account.
- Choose whether the signed document should be downloaded with the Document History.

![Document Storage settings for saving signed documents in Salesforce and SignNow](/reference-assets/images/SignNow_Salesforce/use_case_3/document_storage.png)

## Step 6. Explore the user experience

Let’s test the flow and click the button in the Opportunity record.

When a sales manager clicks the **Send the agreement attachment** button in the Opportunity,  SignNow will show a list of *all* attachments found on this Salesforce record.

**Carefully select the exact file you uploaded in Step 2 that contains the text tags.** (Refer to the distinct name you gave it). 

<!-- theme: danger -->
> [!WARNING]
> If you select a different version of the file that does not contain tags, the recipient will receive a flat PDF that they cannot fill out.

![Animation of selecting a tagged attachment in SignNow and sending it from a Salesforce record](/reference-assets/images/SignNow_Salesforce/use_case_3/salesforce_send_attachment_with_tags.gif)

As shown on the preview, text tags are converted to fillable fields and assigned to the seller and buyer.

Now you can send the agreement for signature.

## Step 7. Track the signing status

After sending, the status of the document can be tracked directly on the Salesforce record using the [SignNow Invites Status widget](/docs/salesforce-invites-status-widget).

![Track Document Statuses widget on an Opportunity record showing the sent agreement](/reference-assets/images/SignNow_Salesforce/use_case_3/invite_status_widget.png)

After the document is signed, it will appear attached to the Opportunity record it was triggered from.

The copy of the document may also appear in the sender's personal document storage of SignNow web application. (Check **Document Storage** settings in **Step 5**).


---

## Send documents with role-based access

# HR hiring workflow: send a document group with role-based access

This guide demonstrates how to send a document group to multiple recipients with different document access.

## Use case overview

The HR Hiring template consists of two documents:

- Offer Letter with an attachment request
- Employment contract

**Recipients:**

- **HR Manager** — sender who triggers the workflow by clicking the button and views the document package before it is sent to signers.
- **Candidate** — signs the Offer Letter and attaches their ID. The candidate sees the Offer Letter only; the Employment contract is hidden.
- **CEO** — signs the Employment contract. The CEO sees the Employment contract only; the Offer Letter is hidden.
- **Employee** — signs the Employment contract. The employee sees the Employment contract and the Offer Letter they have already signed.

> [!NOTE]
> The candidate and employee are the same person, but receive the documents at different stages of the workflow.


After all parties complete their steps, the executed documents are sent to all recipients and saved to the Salesforce record as a zip archive.

## **Prerequisites**

- SignNow for Salesforce installed and configured.
- Access to SignNow Admin Tools within Salesforce.

---

## Configuration for Salesforce admins

## Step 1. Create a document group template in Salesforce

- Go to **SignNow Admin Tools > Templates > Create New Template**.
- Add the Offer Letter and Employment contract from your computer. The documents will be merged into a single group. You can rename the group by clicking the pen icon.
- Click **Add Fillable Fields** to open the documents in the SignNow editor.

![Templates page in SignNow Admin Tools with the Add Fillable Fields button for a template](/reference-assets/images/SignNow_Salesforce/use_case_4/approver_template_1.png)


- Add recipients before adding fields:
    - The HR Manager who views the package.
    - The Candidate who signs the Offer Letter.
    - The CEO who signs the Employment contract.
    - The Employee who signs the Employment contract.

> [!TIP]
> You may leave the email addresses empty — you will add them later.

![Add recipients dialog with the HR manager, Candidate, CEO and Employee roles](/reference-assets/images/SignNow_Salesforce/use_case_4/approver_template_viewer_1.png)


- Click **Save and Continue**.
- Add fillable fields and assign them to the appropriate recipients:

**Offer Letter:** Add text, signature, date, and attachment fields, and assign them to the Candidate.
        
> [!TIP]
> Make the attachment field conditional — the candidate will see it only after they sign the document.


![Offer letter in the editor with a conditional attachment field for the candidate](/reference-assets/images/SignNow_Salesforce/use_case_4/approver_template_viewer_2.png)


**Employment contract (CEO):** Add text, signature, and date fields and assign them to the CEO.

![Employment contract in the editor with text, signature and date fields assigned to the CEO](/reference-assets/images/SignNow_Salesforce/use_case_4/approver_template_viewer_4.png)


**Employment contract (Employee):** Add text, signature, and date fields and assign them to the Employee.

![Employment contract in the editor with text, signature and date fields assigned to the Employee](/reference-assets/images/SignNow_Salesforce/use_case_4/approver_template_viewer_5.png)

> [!TIP]
> Give your fields descriptive names to make it easier to map them to Salesforce record fields later.
> 
- Click **DONE** to save the changes.

---

## Step 2 (optional). Pre-fill template fields

To save time for recipients, pre-fill fillable fields with Salesforce data before sending.

- Go to **SignNow Admin Tools > Templates**. Locate the Hiring template and click **Pre-fill Fillable Fields**.
- Select the Salesforce object to use as the data source. The base Salesforce object should be the one where you are going to place the button.
- Select the document where you want to pre-fill fields, then select the fields to map.
- Select the corresponding Salesforce fields as the data source.

> [!NOTE]
> You can map fields from the base object as well as from its parent object and 1:1 lookup relations. Mapping from objects with a 1:many relation is not supported.
> 
- In the **Field Editing** dropdown, select **Lock Editing** to prevent recipients from changing pre-filled data, or **Allow Editing** to let them update it.
- If you select **Allow Editing,** the arrow setting ⇆ defines the possibility to update Salesforce field with the value from signed document.

> [!IMPORTANT]
> The `Name` field in Salesforce is a compound field consisting of `First Name`, `Middle Name`, and `Last Name`. If you want to allow the Salesforce `Name` value to be updated, pre-fill `First Name`, `Middle Name`, and `Last Name` into separate fields in the template.


**Example of the data mapping**

![Pre-fill Fillable Fields dialog mapping both documents' fields to Salesforce data](/reference-assets/images/SignNow_Salesforce/use_case_4/approver_template_6.png)

- Click **Save**.

Learn more about [pre-filling fillable fields](/docs/templates#pre-fill-fillable-fields).

---

## Step 3. Set up the document flow in Salesforce

This configuration is performed once by the admin. The Document Flow defines the rules for sending documents with SignNow, including who receives them and in what order.

- Go to **SignNow Admin Tools > Document Flows > Create Document Flow**.
    
    > [!TIP]
    > When naming a document flow, start with the Salesforce object that triggers the flow, followed by the template name. For example: `Contact - Hiring workflow`. This makes it easy to identify which flow is linked to a button and update it when needed.

- Name the document flow and configure what the sender can adjust at send time.
    
    > [!TIP]
    > Use tags to auto-name documents created from the template. For example, enter `{{Contact.Name}} onboarding package` in the **Document Name** field. You can use tags that correspond to fields from the base Salesforce object only.

    
> [!IMPORTANT]
> Do not check **Hide "Add Recipients" step** if you need senders to configure recipient access to individual documents in the group — this keeps the access configuration screen available when the flow is triggered.


![Document Flow Info step for the hiring document group](/reference-assets/images/SignNow_Salesforce/use_case_4/approver_flow_1.png)


- Click **Next to Customization.**
- Customize email invite message and subject. Use **Add record values** to pre-fill them [with Salesforce data](/docs/document-flows#customize-the-invite-email-message-to-signers). You can use tags that correspond to fields from the base Salesforce object only.

![Customize Email Invite Message step with the subject and body pre-filled with record values](/reference-assets/images/SignNow_Salesforce/use_case_4/approver_flow_2.png)

- Click **Next to Recipients**.
- Add recipient email addresses. Recipients must match those in the template exactly, including their names.

> [!WARNING]
> These settings will override the email addresses configured in the Hiring template.

> [!TIP]
> Use **Add record values** to pre-fill email address fields with Salesforce base object data.

![Recipients step with the HR manager, Candidate, CEO and Employee email fields pre-filled with record values](/reference-assets/images/SignNow_Salesforce/use_case_4/approver_flow_3.png)


- Click **Save.**

Learn more about SignNow [document flows](/docs/document-flows#configure-the-senders-experience).

---

## Step 4. Add the Send Hiring Documents button to the object layout

Create a button that triggers the configured document flow from the Salesforce object (for example, Contact).

- Go to **SignNow Admin Tools > Custom Links**.
- In the **Select what should be sent for signature** section, select **Templates: pre-selected by the Admin** and choose the Hiring workflow template.
- Select the document flow you created in Step 3: **Contact - Hiring workflow**.
- Enter the API name of the Salesforce object where you want to add the button.
- On the confirmation screen, copy the generated custom link URL.

![Custom Links builder with the Hiring workflow template, the Contact - Hiring workflow document flow, and the Contact object](/reference-assets/images/SignNow_Salesforce/use_case_4/approver_custom_link_1_upd.png)

- Use the URL to add the button to the [object page layout](/docs/custom-links#add-the-custom-button-to-the-salesforce-object).

## Step 5. Test your workflow

> [!NOTE]
> This reflects the exact experience the sender will have when triggering the workflow.


Go to the Salesforce object where you added the button and click it.

**Configure recipient access:**

The Send Invite page opens. Click the dropdown next to a document name to set the access level for each recipient.

| Recipient | Offer Letter | Employment Contract |
| --- | --- | --- |
| HR Manager | View Only | View Only |
| Candidate | Fill out and Sign | Hide from this Step |
| CEO | View Only | Fill out and Sign |
| Employee | View Only | Fill out and Sign |

![Send Invite page with signing steps and document access set per recipient](/reference-assets/images/SignNow_Salesforce/use_case_4/approver_test_1.png)


- On the right panel, you can preview the documents with the pre-filled data from Salesforce.
- Click **Send Invite to First Recipient** to start the signing process.

**Signing workflow:**

1. The document package is sent to the HR Manager. In this example, the HR Manager is the sender, so the package opens in Salesforce for review. Once the HR Manager clicks **Close**, the workflow continues.
2. The package is sent to the Candidate, who signs the Offer Letter, fills in the date, and attaches their ID. The candidate does not have access to the Employment contract at this step.
3. Once the Candidate clicks **Finish**, the package is sent to the CEO, who views the Offer Letter and signs the Employment contract.
4. Once the CEO clicks **Finish**, the package is sent to the Employee (same email address as the Candidate), who signs the Employment contract.
5. After all recipients sign, the completed hiring documents are attached to the Salesforce record as a zip archive.

![Salesforce record with the completed hiring documents attached as a zip archive](/reference-assets/images/SignNow_Salesforce/use_case_4/approver_result.png)




---

## Build complex automation with Apex actions

# Automate language-specific welcome packets with Salesforce Flow and SignNow Apex actions

This guide demonstrates how to automate language-specific onboarding packets in Salesforce using Salesforce Flow and SignNow Apex actions. With this setup, your team can deliver a seamless, personalized onboarding experience for every new client—instantly and without manual intervention.

## Use case overview

When a new client is acquired, AcmeCompany wants to immediately send a personalized welcome email with a link to the onboarding packet. The company serves both English and French-speaking clients and wants the experience to be native to the user's language.

**How it works:**

- The rep updates the Contact's `Lead Source` to `Web`.
- A Salesforce Flow runs in the background. It first uses standard logic to detect the client's language and assign the correct onboarding template ID. Then, it triggers SignNow Apex actions to generate the embedded signing link, finally saving that link back to the Contact's record.
- The moment that link is saved, a second Salesforce Flow fires to trigger the correct pre-configured email alert (English or French), ensuring the client receives the right message with the right link.

---

## Prerequisites

Before building the flows, ensure the following are ready in your Salesforce Organization:

- The SignNow package must be installed.
- Create a custom field: Create a URL or Text field on the Contact object to store the generated signing link. For example, `SignNow embedded signing URL`.

The custom field must be API-accessible and included in the page layout for visibility.

> [!NOTE]
> You can use any Salesforce object and custom field.

- Create SignNow templates in English and French, and configure them to pre-fill with Salesforce data.

---

### How to create a SignNow template

- Go to **SignNow Admin Tools** > **Templates**.
- Click **Create New Template**.
- Upload onboarding documents. The documents will appear in the list of templates.
- Click **Add Fillable Fields** to add a text, date, and signature field to your template.

![Welcome template in the SignNow editor with text, signature and date fields](/reference-assets/images/SignNow_Salesforce/use_case_apex/template_add_fields_new.png)

- Click **Done** to save the changes.

> [!TIP]
> Learn more about [adding fillable fields](/docs/templates#add-fillable-fields).

- Click **Pre-fill Fillable Fields** to map fillable fields in the template with Contact record data.
- Select fillable fields in the template and connect them to Contact fields. For example, pre-fill the text field with `Full Name`, and the date field with `Last Modified Date`.
    
![Template fields mapped to Contact fields for pre-filling](/reference-assets/images/SignNow_Salesforce/use_case_apex/template_prefill.png)

> [!TIP]
> Learn more about [pre-filling fillable fields](/docs/templates#pre-fill-fillable-fields).
- Click **Save** to save the changes.

---

- (Optional) Create SignNow document flow for each template. Use a document flow if you want to apply specific flow settings like redirect URLs or additional pre-fill logic.

---

### How to create a SignNow document flow

- Go to **SignNow Admin Tools** > **Document Flows**.
- Click **Create Document Flow**.
- [Customize your Document Flow](/docs/document-flows) as your automation needs. For example, pre-fill the client email using the `Contact.Email` field.
    
![Document flow with the client email pre-filled from Contact.Email](/reference-assets/images/SignNow_Salesforce/use_case_apex/template_doc_flow.png)

- Click **Save** to save the Document Flow.

---

- Create Salesforce email templates in English and French.
  - Add a merge field to each email template that will be pre-filled with the generated SignNow signing link.

![Salesforce email template with a merge field for the SignNow signing link](/reference-assets/images/SignNow_Salesforce/use_case_apex/email_template_merge_field.png)

Use the email templates to send email alerts in the Flow configuration.

---

## Configuration guide

## Flow 1 (asynchronous)

**Overview**: This Salesforce Flow checks the preferred client language, assigns the SignNow template based on the language, generates the signing link for the template, and stores the link to the custom field.

## Step 1. Create the flow

- Go to **Flow Builder**.
- Select the **Record-Triggered Flow** type.
- Set up the triggering conditions (e.g., Object: `Contact`, Trigger: `A record is updated`).
- Define the entry criteria (e.g., when the `Lead Source` equals `Web`).
- Configure the path to **Run Asynchronously**.
    - **Note**: We must use the asynchronous path because the SignNow Apex actions perform external web callouts.

![Configure Start panel for a Contact flow with Lead Source equals Web and an asynchronous path](/reference-assets/images/SignNow_Salesforce/use_case_apex/flow1_trigger.png)

## Step 2. Add check language decision

- Click the **(+)** icon under the start trigger to add a **Decision** element.
- Add a label.
- Create outcomes to check if the client's preferred language is **French** or **English**.
- **Outcome 1 (French):** `Triggering Contact` > `Preferred language` Equals `French`.
- **Outcome 2 (English):** Default outcome.

![Check language decision with French and English outcomes](/reference-assets/images/SignNow_Salesforce/use_case_apex/flow1_decision.png)

## Step 3: Add SignNow template and document flow assignments

Assign SignNow template and document flow IDs.

> [!NOTE]
> If you are not using document flows, you can omit the `FlowID` variable and related assignments. 

- In the toolbox (Manager tab), create two new **Variable** resources:
    - `TemplateID` (Data Type: **Text**): Used to assign the SignNow template.
    - `FlowID` (Data Type: **Number**): Used to assign the SignNow document flow.
- Click the **(+)** icon on the **French path** to add an **Assignment** element.
    - Add a label.
    - Set variable values:
        - `TemplateID` **Equals** [Your French SignNow template ID].
        - (Optional)`FlowID` **Equals** [Your French document flow ID].

> [!TIP]
> To copy the template or document flow ID, go to **SignNow Admin Tools** > **Templates** or **> Document Flows.**

- Click the **(+)** icon on the **English path** to add an **Assignment** element.
    - Add a label.
    - Set variable values:
        - `TemplateID` **Equals** [Your English SignNow template ID].
        - `FlowID` **Equals** [Your English document flow ID].

![Assignment that sets the French template ID and document flow ID](/reference-assets/images/SignNow_Salesforce/use_case_apex/flow1_assignment.png)

## Step 4. Add SignNow Apex actions

> [!NOTE]
> Before using SignNow Apex Actions, complete [these prerequisites](/docs/salesforce-apex-actions#prerequisites).

Click the **(+)** icon on the path to add **Action** elements sequentially. 

### **Action: Create SignNow Document Group from SignNow Template**

This action creates a document group from the English or French SignNow template.

- Click **(+)** and add **Create SignNow Document Group from SignNow Template action.**
- Add a label.
- Set input values:
    - `SignNow Document Group Template ID`: select the `TemplateID` variable.
    - (Optional) `Record ID`: `Triggering Contact > Contact ID`
    - (Optional) `SignNow Document Flow ID`: Select the `FlowID` variable.
    - (Optional) `SignNow Document Group Name`: `Welcome Package` (or your preferred name).

![Create SignNow Document Group from SignNow Template action settings](/reference-assets/images/SignNow_Salesforce/use_case_apex/flow1_create_dg_action.png)


### **Action: Get SignNow Document Group Recipients**

This action retrieves the information about the created document group recipients, including email addresses.

- Click **(+)** and add **Get SignNow Document Group Recipients** action.
- Add a label.
- **Set input values:**
    - `SignNow Document Group ID`: Select `Outputs from Create SignNow Document Group from SignNow Template` > `SignNow Document Group ID`.

![Get SignNow Document Group Recipients action settings](/reference-assets/images/SignNow_Salesforce/use_case_apex/flow1_get_dg_recipients_action.png)

### **Action: Create SignNow Embedded Invite**

This action creates an embedded invite for the new document group.

- Click **(+)** and add **Create SignNow Embedded Invite** action.
- Add a label.
- **Set input values:**
    - `SignNow Document Group ID`: Select `Outputs from Create SignNow Document Group from SignNow Template` > `SignNow Document Group ID`.
    - `SignNow Embedded Invites`: Select `Outputs from Get SignNow Document Group Recipients` > `SignNowEmbedded Invites`.

![Create SignNow Embedded Invite action settings](/reference-assets/images/SignNow_Salesforce/use_case_apex/flow1_create_embedded_invite_action.png)

### **Action: Get SignNow Embedded Signing Session URL**

This action creates an embedded signing link for the document group.

- Click **(+)** and add **Get SignNow Embedded Signing Session URL** action.
- Add a label.
- **Set input values:**
    - `Email`: `Triggering Contact` > `Email`.
    - `SignNow Document Group ID`: Select `Outputs from Create SignNow Document Group from SignNow Template` > `SignNow Document Group ID`.
    - `SignNow Embedded Invite ID`: Select `Outputs from Create SignNow Embedded Invite` > `SignNowEmbedded Invite ID`
    - (Optional) `Link Expiration`: Set to **45** minutes or less.

![Get SignNow Embedded Signing Session URL action settings with the link expiration](/reference-assets/images/SignNow_Salesforce/use_case_apex/flow1_embedded_url_action.png)

## **Step 5: Update contact record**

- Click the **(+)** icon to add an **Update Records** element.
- Add a label.
- **How to Find Records to Update:** Select **Use the contact record that triggered the flow**.
- **Set Filter Conditions:** Leave as **None—Always Update Record**.
- **Set Field Values for the Contact Record:**
    - **Field:** Search for and select `SignNow embedded signing URL`.
    - **Value:** Select `Outputs from Get SignNow Embedded Signing Session URL` > `SignNow Embedded Signing Session URL`.


![Update Records element that saves the signing link to the contact](/reference-assets/images/SignNow_Salesforce/use_case_apex/flow1_update_record.png)


## **Step 6. Finalize the flow**

- Click **Save**.
- **Activate** the flow.

---

## Flow 2: The "messenger" (real-time)

This Salesforce Flow waits for the signing link to appear and triggers the email alert.

## **Step 1: Create the flow**

- Go to **Flow Builder**.
- Select the **Record-Triggered Flow** type.
- Set up the triggering conditions:
    - **Object:** Select **Contact**.
    - **Trigger:** Select **A record is updated**.
- Define the entry conditions to ensure the flow only runs when the signing link is generated:
    - **Field:** `SignNow embedded signing URL`
    - **Operator:** **Is Changed**
    - **Value:** `True`
- **When to Run the Flow for Updated Records:** Select **Every time a record is updated and meets the condition requirements**.
- Choose to optimize the flow for **Actions and Related Records**.

![Configure Start panel for a Contact flow that runs when the signing link field changes](/reference-assets/images/SignNow_Salesforce/use_case_apex/flow2_trigger.png)

## **Step 2: Add check language decision**

- Click the **(+)** icon under the start trigger to add a **Decision** element.
- Add a label.
- **Outcome 1 (French):** Set the condition where `Triggering Contact` > `Preferred language` **Equals** `French`.
- **Outcome 2 (English):** Default outcome.
- **When to Execute Outcome:** If the condition requirements are met.

![Language decision with French and default outcomes in the second flow](/reference-assets/images/SignNow_Salesforce/use_case_apex/flow2_decision.png)

## **Step 3: Add email alert actions**

- **French path:**
    - Click the **(+)** icon to add **Send** **Email Alert** element.
    - Search for and select your **French Email Alert**.
    - Add a label.
    - **Set Input Values:**
        - **Record ID:** `Triggering Contact` > `Contact ID`.
- **Default outcome (English path):**
    - Click the **(+)** icon to add **Send** **Email Alert** .
    - Search for and select your **English Email Alert**.
    - Add a label.
    - **Set Input Values:**
        - **Record ID:** `Triggering Contact` > `Contact ID`
    
![Email alert action for English clients that sends the signing link to the contact](/reference-assets/images/SignNow_Salesforce/use_case_apex/flow2_email_alert.png)  

## **Step 4. Finalize the flow**

- Click **Save**.
- **Activate** the flow.

---

## Result

Once activated, this automation delivers a seamless onboarding experience. As soon as a Contact's **Lead Source** is updated to **Web**, the system instantly generates a personalized SignNow signing link to the onboarding packet and triggers a branded email in the client's preferred language (English or French). This eliminates manual data entry and ensures every new client receives their documents immediately.

---

Learn more about [SignNow Apex Actions](/docs/salesforce-apex-actions).


---

## Salesforce glossary

# SignNow for Salesforce glossary

Key terms used in SignNow for Salesforce, from signature invites and fillable fields to recipients and senders.

**Signature invite:** A single document or group of documents with or without fillable fields sent for signature to one or multiple recipients.

---

**Fillable fields**: Editable boxes in the document where recipients can add signatures and data.

---

**Recipient**: A user who receives the document to fill out, view, or approve.

---

**Sender**: A user who prepares and sends the document for signature.

---

**Role**: An action assigned to the recipient by the sender. Available roles include signer, viewer, and approver.

- Signer – fills out and signs the document.
- Viewer – can only view the document.
- Approver - reviews and approves the document to be sent to the next recipients.

---

**Document group template** (also called templates in this guide): A group of documents you configure once and reuse with the same settings as often as needed. Each time you send a document group template for signature, a new document group template copy is created.

---

**Template:** A document with or without fillable fields you can send for signature multiple times. Each time you send a template for signature, a new document copy is created.

---

**Document flow:** A preconfigured process for sending documents for signature. Setting up a document flow includes defining the sender’s experience, customizing the email subject and body, and managing recipients. When a document flow is added to a custom button, Salesforce users can send documents from Salesforce with a single click.

---

**Self Sign:** A delivery option for a custom button. The Salesforce user fills out and signs files attached to the record themselves, without sending a signature invite. The signed document is saved to the record.

---

**Custom button, custom link:** A button added to the Salesforce page layout that performs specific actions, such as navigating to a URL, executing JavaScript, or integrating with third-party services like SignNow for initiating document workflows directly within Salesforce.


---

## Salesforce troubleshooting

# Troubleshoot SignNow for Salesforce

This section covers common issues you may encounter when installing, configuring, and using the SignNow integration for Salesforce, and provides steps to resolve them.

## Installation

For setup instructions, see [Installation](/docs/installation).

| Issue | Solution |
|---|---|
| SignNow doesn't appear in Installed Packages | The installation process may take several minutes. Refresh the page — SignNow should appear once installation is complete. |
| SignNow Set permission set is not visible | Confirm that the SignNow integration package has been installed. Go to **Setup > Installed Packages** and check that SignNow is listed. |

---

## Authorization

For setup instructions, see [Installation](/docs/installation#access-your-signnow-account).

| Issue | Solution |
|---|---|
| Can't log in to SignNow from Salesforce | Clear your browser cache and cookies and try again. If the issue persists, try a different browser. Check that third-party cookies are not blocked in your browser settings — the SignNow authorization flow requires them. |

---

## Templates

For setup instructions, see [Templates](/docs/templates). To learn how team folders work in SignNow, see [Installation](/docs/installation#team-folders-in-signnow).

| Issue | Solution |
|---|---|
| "Document group template not found" error | The template is stored in a personal Templates folder and is only accessible to its owner. Move the template to the **Templates** folder in the Salesforce integration team. |

> [!NOTE]
> When creating templates for use in Salesforce integration, always store them in the **Templates** folder in the Salesforce integration team, not in a personal Templates folder.

---

## Custom links

For setup instructions, see [Custom links](/docs/custom-links).

| Issue | Solution |
|---|---|
| The custom button is not visible on the Salesforce record page | The button was created but not added to the page layout. Go to **Setup > Object Manager**, select the object, click **Page Layouts**, and open the relevant layout. Locate the button under **Mobile & Lightning Actions**, drag it to the page, and click **Save**. In Salesforce Classic, navigate to **Buttons** and drag the button into the **Custom Buttons** section. |
| The custom button doesn't work as expected | The **Enter the object name** field in the Custom Links configuration requires the API name of the object, not its display name. To find the API name, go to **Setup > Object Manager**, select the object, and check the **API NAME** column. |

---

## Document storage

For setup instructions, see [Document storage](/docs/document-storage).

| Issue | Solution |
|---|---|
| Documents sent from Salesforce are not saved to the expected folder | The default save location may have been changed. In SignNow, go to **Private Teams**, select **Salesforce integration**, and click the gear icon. Under **Document Settings**, check the folder shown next to **Save documents by default to** and click **Change Folder** to update it. |
| Signed documents are no longer uploaded back to Salesforce | First, check that saving completed documents is enabled in your settings (see [Document storage](/docs/document-storage)). If the setting is enabled and documents still don't sync, the sender's Salesforce connection may need re-authorization: see [Document status updates](/docs/salesforce-troubleshooting#document-status-updates). |

---

## Permissions

For setup instructions, see [Installation](/docs/installation#assign-the-permission-set-to-users).

| Issue | Solution |
|---|---|
| A user can't see the SignNow button or access the SignNow app in Salesforce | The **SignNow Set** permission set has not been assigned to this user. Go to **Setup > Permission Sets**, open **SignNow Set**, click **Manage Assignments**, and add the user. |

---

## Document status updates

To learn how to track invite statuses, see [SignNow Invites Status widget](/docs/salesforce-invites-status-widget).

| Issue | Solution |
|---|---|
| The document status is not updated in Salesforce after signing (e.g., in the Invites Status widget) | This happens when the signer's email address matches the sender's email address. In this case, the `document_group.invite.signed` webhook event is not created for that recipient after signing, so the status update never reaches Salesforce. Use a plus alias for the recipient's email address, e.g., `john.smith+1@company.com` instead of `john.smith@company.com`. Emails sent to the alias are delivered to the same inbox, and the document status updates correctly. |
| Signed documents are not attached to the Salesforce record, and the status is not set to fulfilled | The Salesforce connection of the user who sent the documents is no longer authorized: Salesforce has revoked or expired that user's token, so when signing completes, SignNow can't open a Salesforce session to attach the signed file and update the status. Ask the affected user to log out of the SignNow app in Salesforce and re-authorize it, then send a test document. Note that records affected while the connection was broken are not synced retroactively and must be updated manually. If re-authorization doesn't help, update the package to the latest version from [AppExchange](https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3000000B5E7FEAV) (see [Installation](/docs/installation)). |

---

## Apex actions

For setup instructions, see [Integrate eSignatures into Salesforce Flow with Apex actions](/docs/salesforce-apex-actions). For document generation actions, see [Generate and Send Document via SignNow](/docs/apex-generate-and-send-document) and [Generate Document via SignNow](/docs/apex-generate-document).

| Issue | Solution |
|---|---|
| A SignNow Apex action in a flow is not triggered | Check the following settings: <br>• The **Integration User ID** in the SignNow custom settings must be set at the organization level, not for a specific user. Go to **Setup > Custom Settings > SignNow Settings**, click **Manage**, and make sure the Integration User ID is entered in the **Default Organization Level Value**, not in a user-specific entry. <br>• The `universal_signnow_rss` remote site must be active. Go to **Setup > Remote Site Settings**, find **universal_signnow_rss**, and make sure the **Active** checkbox is selected. |
| Tags are not filled in the generated document | Tags are **case-sensitive** and must match the Salesforce field's API name exactly: `{{Owner.Name}}` is filled with data, while `{{Owner.name}}` stays unfilled. Also, make sure every field referenced in the template is included in the SOQL query. To verify field names, insert the `{{toJson($sysConstants)}}` debug tag anywhere in the template — the generated document will output the entire data payload with the exact field names, which you can copy into your tags. |
| A `numFormat()` tag is not formatting the number (renders raw or stays unfilled) | The `numFormat()` format pattern must be wrapped in Word-style curly quotes (`‘` and `’`), for example `{{numFormat(TotalPrice, ‘$#,###.00’)}}`. Straight quotes (`'`) and backticks (`` ` ``) are not recognized. Type the tag directly in the .docx template so Word converts the quotes to curly quotes automatically, rather than pasting it from a code editor where the quotes stay straight. |

---

## Document generation templates

This section covers templates uploaded to **SignNow Admin Tools > Document Generation**. For setup instructions, see [Document generation](/docs/salesforce-document-generation).

| Issue | Solution |
|---|---|
| A template's status is **Failed** after upload | The tag check found a problem in the .docx file. The error message shown with the status names the issue. Correct the tags in the .docx file and upload it again. Templates are validated at upload, so a template that is not **Ready** cannot be sent. |
| A template does not appear in the picker when configuring a custom button | Only templates with the **Ready** status can be selected. Check the status on the **Document Generation** page and fix any reported tag errors first. |
| Tags are not filled in the generated document | Tags are **case-sensitive** and must match the Salesforce field's API name exactly: `{{Owner.Name}}` is filled with data, while `{{Owner.name}}` stays unfilled. Unlike the Apex document generation actions, this path has no SOQL query: tags bind by name against the record the document is generated from. Insert the `{{toJson($sysConstants)}}` debug tag anywhere in the template and generate the document once to see the exact payload and copy key names from it. |
| A tag inside a table row stays empty | Item fields must belong to the child record itself. Unlike the Apex document generation actions, where the subquery decides what a row contains, a child collection here resolves one level deep, so a related record's field cannot be reached from inside a table row. For example, in an `OpportunityLineItems` table, `{{PricebookEntry.Name}}` and `{{Product2.Name}}` stay empty. To identify the product, use `{{ProductCode}}`. To use a related record's field in a row, generate the document with an Apex document generation action, where the subquery can select it. |
| A `numFormat()` tag is not formatting the number (renders raw or stays unfilled) | The `numFormat()` format pattern must be wrapped in Word-style curly quotes (`‘` and `’`), for example `{{numFormat(TotalPrice, ‘$#,###.00’)}}`. Straight quotes (`'`) and backticks (`` ` ``) are not recognized. Type the tag directly in the .docx template so Word converts the quotes to curly quotes automatically, rather than pasting it from a code editor where the quotes stay straight. |
| A recipient's fillable fields are not assigned | The role name in the field tag's `o:"Role"` parameter must match a role defined in the document flow. Role names cannot contain spaces: use `SalesManager` instead of `Sales Manager`. |
| Document generation fails when a user clicks the custom button | The user sees an error message with a process ID. Note the process ID: it identifies the failed generation when the issue is investigated. |

---

## Email attachments

| Issue | Solution |
|---|---|
| The email attachment name doesn't match the document group name set in the document flow | The **Document completion email attachments** setting is set to **Include signed documents**, which attaches each document separately using its own name. To receive a single PDF named after the document group, go to your SignNow **Admin Settings > Workspace Settings > Emails Settings > Document completion email attachments > Change** and select **Include signed documents with document attachment**. This is an organization-level setting. If you don't have access to Admin Settings, contact your SignNow organization admin. |


---

## SharePoint Online

# Getting started with SignNow for SharePoint Online

SignNow for SharePoint Online brings eSignature workflows into SharePoint. Send files and templates for signature from your document libraries and lists, Self Sign documents, pre-fill documents with SharePoint data, and track invite status without switching applications.

**Requirements**

- SignNow account on the US server with a Site License subscription
- An additional paid SignNow add-on for SharePoint, purchased on top of the Site License subscription
- SharePoint account
- Full Control permissions to add applications from the SharePoint Store. Site Owners have this by default.

---

**Next**: [Installation →](/docs/sharepoint-online-installation)



---

## SharePoint Online release notes

# SignNow for SharePoint Online release notes

Review the latest improvements to the SignNow for SharePoint Online integration.

<details open>

**<summary>October 2026</summary>**

✅ Updated the [custom action](/docs/sharepoint-online-admin-tools#create-a-custom-action) instructions: Self Sign is now a delivery option under Delivery and Invite Settings, and admins can pre-select several templates for one action.

</details>
<br>


---

## SharePoint Online installation

# Install SignNow for SharePoint Online

Install SignNow for SharePoint Online for the whole organization, sign in to your account, or remove the app.

## Admin installation

SharePoint admins can install the SignNow application for the whole organization.

Go to any SharePoint site and click **New > App**.

Alternatively, click **Settings > Add an app**.

![SharePoint site with the New menu open and the App option](/reference-assets/images/sharepoint_new/sharepoint_installation_admin_1.png)

On the **My apps** tab, select **SharePoint Store**.

Type SignNow in the search bar.

Open the application page and click **Add to App site**.

![SignNow for SharePoint Online page in the SharePoint Store with the Add to Apps site button](/reference-assets/images/sharepoint_new/sharepoint_installation_admin_2.png)

On the pop-up window, select the **App availability**:

- **Enable this app and add it to all sites**: Selecting this option adds the app automatically so site owners don't need to install it manually. The SignNow application is installed for all organization sites.
- **Only enable this app**: Selecting this option makes the app available for site owners to add from the My apps page. The SignNow application is installed for a specific SharePoint site. Manage the application on the **My apps** tab.

![Confirm data access dialog for SignNow for SharePoint Online with the app availability options](/reference-assets/images/sharepoint_new/sharepoint_installation_admin_3.png)

Click **Add**.

The application is installed.

To verify the installation, open a document library or list on your site and click **More (...)** in the toolbar. **Admin Tools** and **Invites Status** appear in the dropdown.

![SharePoint document library with the Integrate menu showing the SignNow actions](/reference-assets/images/sharepoint_new/sharepoint_installation_admin_6.png)

---

## Remove the application

Admins can remove the SignNow application from the SharePoint organization.

**Remove SignNow application from the site**

Use this method if the application is installed for a specific SharePoint site.

- Go to **Site contents** > **SignNow for SharePoint Online**.
- Click **More (...)** and select **Remove** from the menu.

> [!NOTE]
> Removing the application does not delete existing invites or signed documents. They remain accessible from your SignNow account.

![SharePoint Site contents with the SignNow for SharePoint Online app menu and the Remove option](/reference-assets/images/sharepoint_new/sharepoint_remove_1.png)

**Remove SignNow application from the organization**

Use this method if the application is installed for all organization sites.

- Go to the **Manage apps** page in SharePoint Online.
- Select the SignNow application in the list of SharePoint apps.
- Click **Delete** in the toolbar.

![Manage apps page in the SharePoint admin center with SignNow for SharePoint Online and the Delete button](/reference-assets/images/sharepoint_new/sharepoint_remove_2.png)

---

## Sign in

Once the admin has added the SignNow application, it is available for organization users. When you first click **Send with SignNow** or **Invites Status**, a sign-in prompt appears.

![SharePoint file menu with the Send with SignNow option](/reference-assets/images/sharepoint_new/sharepoint_installation_user_1.png)

> [!TIP]
> If the sign-in page does not load, check that third-party cookies are enabled in your browser.

Grant the SignNow application required permissions by clicking **Accept**.

![Microsoft Permissions requested dialog for SignNow with the Accept button](/reference-assets/images/sharepoint_new/sharepoint_installation_admin_5.png)

> [!NOTE]
> Permissions are accepted only once, the first time you use the SignNow application.

Sign in to your SignNow account and grant SignNow for SharePoint Online access to your account.

---

## Log out from SignNow

To log out from your SignNow account, click **Send with SignNow** or **Invites Status** from the toolbar or the file or list record context menu to open the SignNow panel. Locate your profile icon and click the dropdown > **Log out**.

![SignNow Track Document Statuses page with the account menu and the Log out option](/reference-assets/images/sharepoint_new/sharepoint_logout_1.png)


---

**Next**: [SharePoint Online entity types →](/docs/sharepoint-online-entity-types)


---

## SharePoint Online entity types

# SharePoint Online entity types

SignNow for SharePoint Online works with two types of SharePoint entities: **document libraries** and **lists**. Each serves a different purpose in the integration.

**Document libraries** store files. Use them when you want to send an existing file for signature.

**SharePoint lists** store structured data records. Use them when you want to send a SignNow template pre-filled with data from a list record.

| | Document library | SharePoint list |
|---|---|---|
| What you send | Files | SignNow templates |
| Data pre-fill / mapping | Optional, from SharePoint Documents | Core feature, from SharePoint Lists |
| Signed document storage | Stored in the library folder the file was sent from | Attached to the corresponding list record |
| Self Sign | ✅ | ❌ |
| Multiple items | ✅ Multiple files merged into one document group | ❌ One record at a time |
| Custom action type | File from SharePoint library | SignNow template |
| Invite tracking | Per document | Per list record |

---

**Next**: [Admin tools →](/docs/sharepoint-online-admin-tools)


---

## SharePoint Online admin tools

# Admin tools in SignNow for SharePoint Online

Select **Admin Tools** to customize SignNow settings and experience for your organization's users.

> [!NOTE]
> **Admin Tools** is available to SharePoint Online admins only.

Select [**Templates**](/docs/sharepoint-online-admin-tools#templates) to create and configure templates (add fields, set up data binding, and manage recipients).

Select [**Document flows**](/docs/sharepoint-online-admin-tools#document-flows) to create a reusable configuration that defines invite settings, recipients, and email content for a document or document group.

Select [**Custom actions**](/docs/sharepoint-online-admin-tools#custom-actions) to create reusable buttons in SharePoint Online for your most common signature requests.

Select [**Document storage**](/docs/sharepoint-online-admin-tools#document-storage) to define where completed documents are saved.

---

## Templates

Manage all your SignNow templates, including shared and Team templates. Create new templates from existing documents, or upload PDFs, text files, or images.

Click **Templates** in the left menu to open the list of templates.

![Templates tab in SignNow Admin Tools for SharePoint Online with the list of templates](/reference-assets/images/sharepoint_new/sharepoint_template_1_upd.png)

Use available options to:
- Filter entities by type (All Types, Templates, Document Group Templates)
- Sort by ascending or descending order, name, or date updated

To rename a template, click **More (…)** next to it and select **Rename**. You can also copy the template ID and view existing roles.

![Templates list with the More menu open and the Rename option](/reference-assets/images/sharepoint_new/sharepoint_templates_rename.png)

Each template shows its location beneath its name, displayed as team or workspace name > folder name (for example, [SharePoint integration] > [Team Templates]).

### Create template

Click **Create New Template** and select the documents you want to add to the document group template. Select multiple documents at a time if needed.

> [!NOTE]
> SignNow supports .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types. Maximum file size: 50 MB.

Alternatively, upload .docx files containing text tags. The tags are automatically converted into fillable fields when the document is uploaded.

Once created, the new template appears in **Templates**.

When you create a new template, it is saved to the Templates folder in your default workspace Team.

If the default workspace can't be identified:

- when you belong to a single workspace, it is saved to that workspace's Templates folder.
- when you belong to several workspaces and can't set a default (you are not an admin), it is saved to the Templates folder of the first workspace you can access.

---

### Add fillable fields and manage recipients

Click **Add Fillable Fields** to open the template in the editor.

#### Add fields

Drag and drop default or custom fields onto the document and assign them to recipients.

**Default fields** are the standard SignNow field types built into the editor. They are available to all users without any setup.

**Custom fields** are pre-defined fillable fields that you configure once in the SignNow UI and reuse across documents. Instead of reconfiguring the same settings every time, you set them up once — name, type, size, validation, and other properties — and then drag the saved field onto any document.

Select the field in the document and use the panel on the right to configure its settings.

> [!TIP]
> Give the field a descriptive name to easily locate it when pre-filling fields.

![Service agreement template in the SignNow editor with named fields and the field settings panel](/reference-assets/images/sharepoint_new/sharepoint_template_2.png)

#### Manage recipients

Click **Manage Recipients** in the left-hand panel to open the **Add recipient roles** dialog.

- Name each role and select the action the recipient performs:
  - **Signer**: Fills out and signs the document.
  - **Approver**: Reviews and approves the document.
- Optionally, enter a **Pre-assigned recipient**: a default email used for this role every time the template is sent. Leave it empty to enter the email when sending. The sender can change the email before sending unless a document flow hides the **Add Recipients** step. If a document flow has a recipient with the same role name, the document flow's email replaces it.
- Click **Add Role** to add another role, or **Add CC Recipients** to send copies.
- Click **Save**.

![Add recipient roles dialog with two roles, pre-assigned recipients, and the Signer and Approver actions](/reference-assets/images/sharepoint_new/sharepoint_template_3_wide.png)

Use the top panel to access document tools:
- Click **Open Preview** to see how the document appears to each recipient.
- Click **Download** (down arrow) to download the document.
- Click the help icon to open help for the editing tools.
- Click **Element settings** to open or close the field settings panel.
- Click **Thumbnails** to manage pages.

#### Fill out a document

Use the tools on the top panel to add a text field, checkmark, line, date, or pre-filled text field.

Click **Me (Fill Out Now)** to add your information.

![SignNow template editor with fields added for a role and the Continue button](/reference-assets/images/sharepoint_new/sharepoint_template_4_upd.png)

When your template is ready, click **Continue**.

---

### Pre-fill fillable fields

Configure data mapping between SharePoint Online object fields and document fields.

> [!NOTE]
> Attachment, stamp, initials, and signature fields cannot be pre-filled. The SharePoint field type must match the type of the corresponding template field.

Click **Pre-fill Fillable Fields** next to the template to start mapping document fields to SharePoint fields.

- Select the SharePoint list to use for pre-filling.

![Pre-fill Fillable Fields dialog with the SharePoint List dropdown open](/reference-assets/images/sharepoint_new/sharepoint_prefill_1.png)

- Select the documents with fields to use for pre-filling. Click **Apply**.

![Pre-fill Fillable Fields dialog with the document search and the Apply button](/reference-assets/images/sharepoint_new/sharepoint_prefill_2.png)

- Click **Select Fields** to open the document's fillable fields available for mapping. Check the fields you want to pre-fill. Click **Apply**.

![Pre-fill Fillable Fields dialog with the document's fillable fields selected for mapping](/reference-assets/images/sharepoint_new/sharepoint_prefill_3.png)

- Select SharePoint list fields to populate the template fields.

![Pre-fill Fillable Fields dialog with the SharePoint list field dropdown open](/reference-assets/images/sharepoint_new/sharepoint_prefill_4.png)

- Use the **Allow Editing** column to define whether recipients can edit the pre-filled data (enabled by default).

![Pre-fill Fillable Fields dialog with the Allow editing options for a mapped field](/reference-assets/images/sharepoint_new/sharepoint_prefill_5.png)

- Click the trash bin icon to delete field mapping.

> [!TIP]
> Click the arrow in the second column to choose the mapping behavior: pre-fill the document field only, or pre-fill it and update the connected SharePoint field at the same time.

*Pre-fill the document field*

![Field mapping with a one-way arrow that pre-fills the document field from SharePoint](/reference-assets/images/sharepoint_new/sharepoint_prefill_6.png)

*Pre-fill the document field and update the SharePoint field*

![Field mapping with a two-way arrow that pre-fills the document field and updates the SharePoint field](/reference-assets/images/sharepoint_new/sharepoint_prefill_7.png)

Click **Save** to apply the field mapping.

---

## Document flows

A document flow is a reusable configuration that defines invite settings, recipients, and email content for a document or document group, and what to update in SharePoint once the document is signed. Once created, it can be applied when sending files and templates for signature, ensuring consistent settings across all invites.

Click **Document Flows** in the left menu to open the list of document flows.

To rename or delete a document flow, click **More (…)** next to it and select **Rename** or **Remove**.

![Document Flows list with the More menu open and the Rename and Remove options](/reference-assets/images/sharepoint_new/sharepoint_document_flows_rename.png)

### Create a document flow

Click **Create Document Flow**.

**Add document flow information**
- Enter a name for the document flow.
- Define what settings the sender can configure when sending the document for signature.

![Details step of the document flow wizard with the flow name and sender options](/reference-assets/images/sharepoint_new/sharepoint_flow_1_upd.png)

- Click **Next to Customization** to proceed.

#### Customize the invite email subject and body

Add an optional document name and a custom subject and message for the email invites sent to the recipients.

> [!NOTE]
> This configuration overrides email message settings stored in the selected template. To use the original email message from the template, leave this section blank, and proceed to the next step.

- In **Document Name**, enter the name applied to every document sent with the flow.
- Enter the **Subject** and **Body** of the invite email.

![Message step with the document name, invite subject, and body that use a SharePoint record value](/reference-assets/images/sharepoint_new/sharepoint_flow_2_upd.png)

To add data from the SharePoint item to the document name, subject, or body:

- Click **Add record values**.
- Select a **SharePoint list**, then select a **SharePoint field** in that list.
- Copy the generated record value, for example `{{:Lists:Test list.Name}}`, and paste it where you need it.

![Add record values panel with a SharePoint list and field selected and the generated record value](/reference-assets/images/sharepoint_new/sharepoint_flow_record_values.png)

#### Configure recipients

> [!NOTE]
> This configuration overrides settings stored in the selected template. To use the original recipients from the template, leave this section blank, and proceed to the next step.

Click **Add Recipient**.
- To add a sender as a recipient, check the **Sender's email** box.
- Use the toggle to define how recipients sign the document: in order or at the same time.
- To pre-fill a recipient's email from SharePoint, click **Add record values** and copy the record value of an email column into the recipient's email field.
- Click the settings icon to configure password protection, expiration days, reminders, and forwarding for the invite.
- To add more recipients, click **Add Recipient** again.

> [!NOTE]
> Name each role exactly as it's named in the template. If a role name doesn't match, the recipient is added as a new role without fields, and the template's role keeps its own recipient.

![Recipients step with two recipients and the Next to Actions on Completion button](/reference-assets/images/sharepoint_new/sharepoint_flow_3_upd.png)

Click **Next to Actions on Completion** to proceed.

#### Set actions on completion

Update the SharePoint item automatically once the document is signed, for example, set a status column to **Signed** as soon as every recipient has signed. This step is optional.

Click **+ Add action**, then:

- In **List**, select the SharePoint list the document is sent from.
- In **SharePoint field**, select the column to update, then enter the value in **New value**.
- To update one more column on the same item, click **+ Add field**. A document flow has one action, and the action updates up to two columns.

The **What will happen** box summarizes the update. SignNow applies it to the list item the document was sent from when every recipient has signed.

![Actions on completion step setting Status to Signed on a SharePoint list, with the What will happen summary](/reference-assets/images/sharepoint_new/sharepoint_flow_actions_on_completion_status.png)

Enter **New value** as text, in the format the column expects:

| Column type | New value |
| --- | --- |
| Text | Enter any text. |
| Choice, such as **Status** | Enter one of the column's choices as it appears in SharePoint, for example `Signed`. |
| Number | Enter digits, with a period as the decimal separator, for example `12.5`. |
| Date | Enter the date as `YYYY-MM-DD`, for example `2026-12-31`. |
| Yes/No | Enter `true` for **Yes** or `false` for **No**. |

If SharePoint rejects the value, the document still completes and the document shows a **SharePoint sync failed** badge in [Invites Status](/docs/sharepoint-online-track-invite-status#sharepoint-sync-failed).

Click **Save** to save the document flow configuration.

The document flow appears in the list of flows, where you can edit or delete it. Document flows are applied when creating a [custom action](/docs/sharepoint-online-admin-tools#custom-actions).

---

## Custom actions

Custom actions are reusable buttons in SharePoint Online for your most common signature requests. For example, create a **Send Service Agreement** button and add it to a SharePoint site. Each time a user needs to send an agreement to a customer or sign it themselves, they click the button and follow the configuration.

A single custom action can combine SignNow templates with a file from a SharePoint library and send them for signature in one document group, so recipients review and sign everything in one SignNow invite instead of several separate requests.

Click **Custom Actions** in the left menu to open the list of custom actions. The list shows each action's **Action Type** and the **List or library** where it appears.

![Custom Actions tab in SignNow Admin Tools for SharePoint Online with the Action Type and List or library columns](/reference-assets/images/sharepoint_new/sharepoint_admin_custom_actions.png)

### Create a custom action

- Click **Create Custom Action**.
- Enter a name for the custom action and an optional description.
- Under **Select Document Source**, select **SignNow template**, **File from SharePoint library**, or both:

| Document source | Description |
|---|---|
| SignNow template | Select **SignNow template: selected by the sender** to let the sender choose one or more templates when the action is triggered, or **SignNow template: pre-selected by the Admin** to always send the same templates. For pre-selected templates, choose one or more templates in **Select Template**. |
| File from SharePoint library | The sender selects a file from a SharePoint library. |

- Under **Delivery and Invite Settings**, select how the document is completed:
  * **Send for signature**: The document is sent to recipients for signature.
  * **Self Sign: sign the document without sending**: The sender signs the document without sending it to recipients. Self Sign is available with **File from SharePoint library**.

| What is sent | Send for signature | Self Sign |
| --- | --- | --- |
| **SignNow template** | Yes | No |
| **File from SharePoint library** | Yes | Yes |
| **SignNow template** and **File from SharePoint library** | Yes | No |

The following example sends SignNow templates pre-selected by the admin.

![Custom action form with SignNow template pre-selected by the Admin, several templates selected, and Delivery and Invite Settings](/reference-assets/images/sharepoint_new/sharepoint_action_1_upd.png)

- Optionally, in **Add the SignNow Document Flow**, select a document flow to send the template or file with pre-configured invite settings. Self Sign actions do not use a document flow.
- Select where the custom action appears: a SharePoint list for actions that send only templates, or a library for actions that include **File from SharePoint library**, including combined and Self Sign actions. The selected list or library must match the one configured in the template and document flow. If the document flow updates the item on completion and you select a different list, an alert names the flow's list, for example: *The document flow is set to Test list. Choose the same one to update the record.* Select the same list so that SignNow can update the item.

![Custom action form with Test list set in the document flow, HRTest selected, and the mismatch alert](/reference-assets/images/sharepoint_new/sharepoint_action_list_mismatch_alert.png)

The following example combines templates selected by the sender with a file from the library.

![Custom action form with SignNow template selected by the sender and File from SharePoint library, Send for signature, and the Library field](/reference-assets/images/sharepoint_new/sharepoint_action_combined.png)

The following example sets up a Self Sign action for files in a SharePoint library.

![Custom action form with File from SharePoint library, Self Sign selected, and the Library field](/reference-assets/images/sharepoint_new/sharepoint_action_2_upd.png)

Click **Save Custom Action**.

The custom action appears in the list of custom actions. The **Action Type** column shows what each action sends, and the **List or library** column shows where it appears. To change or remove an action, click **Edit** or the **...** menu.

Use the dropdowns on the top panel to filter existing custom actions by list or library, or by date.

### Use a custom action

Once saved, the custom action appears in the associated SharePoint list or library menu, for example, in the record item dropdown. The location depends on your organization's integration settings.

To use a custom action:
- Go to the SharePoint list or library associated with the custom action.
- Select the item or file you want to apply the action to. Custom actions appear in the menu when one item or file is selected.
- Click **More (...)** in the toolbar or right-click the item or file to open the menu.
- Click the custom action to send documents according to your configuration.

![SharePoint list record with the custom action in the Integrate menu](/reference-assets/images/sharepoint_new/sharepoint_action_3.png)

What happens next depends on the action type:

| Custom action | Available from | Result |
|---|---|---|
| SignNow template: pre-selected by the Admin | List only | Sending flow opens with the template selected by the admin. If the admin selected several templates, the **Select Templates** window lists only those templates, and the sender selects one or more of them. |
| SignNow template: selected by the sender | List only | **Select Templates** window opens |
| File from SharePoint library, Send for signature | Library only | File sending flow opens |
| SignNow template and File from SharePoint library | Library only | **Select File** window opens, then **Select Templates**. See [Combine templates and files](#combine-templates-and-files) |
| File from SharePoint library, Self Sign | Library only | Document opens in FreeForm invite mode |

For the complete sending steps, see [Send with SignNow](/docs/sharepoint-online-send-with-signnow).

### Combine templates and files

Combine your standard SignNow templates with a document that is specific to each case in one custom action. For example, send your contract template together with the statement of work stored in the library. The user prepares everything in one go, and recipients receive all documents in a single invite.

When both **SignNow template** and **File from SharePoint library** are selected:

- The user selects one file in the library and clicks the custom action.
- On the **Select File** page, the user selects the files to send and clicks **Proceed**.
- On the **Select Templates** page, the user selects the templates to add. If the admin pre-selected templates, only those templates are listed. In **Merge order**, the user can set the order of the documents, then clicks **Proceed**.

The documents open in the editor as one document group. The next steps depend on the document flow added to the custom action.

---

## Document storage

In **Document Storage**, define where signed documents are saved once all recipients have signed. Set the following options:
- Choose whether to save completed documents in SharePoint Online. Enabled by default.
- Choose whether to keep document copies in SignNow. Enabled by default.
- Choose whether to export documents with their history.

![Document Storage settings for SharePoint Online with the SignNow copy and export options](/reference-assets/images/sharepoint_new/sharepoint_storage_4_upd.png)

### Store document copies in SignNow

When **Keep document copies in SignNow** is enabled, choose where copies are stored in your SignNow workspace:

- **Save in default workspace Team folder** — (default) Document copies are saved to the Team's Documents folder in your default workspace.
- **Select destination folder** — choose a different SignNow workspace **team folder**. Click **Change** to pick from the list. Only team folders are available; private folders are not listed. The picker lists Team folders from all your workspaces, not only your active one, each labeled as workspace name > folder name.

![Select destination folder dialog listing the team folders](/reference-assets/images/sharepoint_new/sharepoint_storage_5_upd.png)

> [!NOTE]
> Everyone in your workspace with access to the selected team folder can access the stored documents.

**How copies are saved**: SignNow saves each document on behalf of the user who sent it for signing. If that user doesn't have access to the configured destination folder, the document is saved on behalf of the admin.

When **Save in default workspace Team folder** is selected, each copy is saved based on how the document was created:

- **From a file**: to the Documents folder in your default workspace Team.<br>If the default workspace can't be identified:
    - when you belong to a single workspace, it is saved to that workspace's Documents folder.
    - when you belong to several workspaces and can't set a default, it is saved to your personal Documents folder.
- **From a template**: to the Documents folder in the same team or space as the template. Each location keeps a Templates and a Documents folder side by side, so the document lands in the Documents folder next to the template:
    - personal Templates → Documents
    - Private Teams > SharePoint integration > Templates → Documents (the old integration folder is still supported)
    - Workspace > Team > Templates → Documents

### Save completed documents in SharePoint Online

By default, documents signed by all recipients are saved to SharePoint Online.

Signed documents originating from SharePoint lists are attached to the corresponding list record.

To find a signed document:
- Go to the SharePoint list.
- Double-click the list item the document was sent from.
- Find the signed document in the **Attachments** section of the record.

![SharePoint list record details with the signed document in the Attachments section](/reference-assets/images/sharepoint_new/sharepoint_storage_3.png)

Documents originating from SharePoint libraries are stored in the same library folder as a separate copy.

> [!TIP]
> If you need to copy files from one SharePoint folder to another, see [Copy files with SharePoint connector](/docs/power-automate-signnow-copy-sharepoint-files) for an example Power Automate flow that filters files in a SharePoint library and copies them to another folder.

---

**Next**: [Send with SignNow →](/docs/sharepoint-online-send-with-signnow)


---

## Send with SignNow from SharePoint Online

# Send documents with SignNow from SharePoint Online

Once the admin configures SignNow integration for the organization, users can send files and SignNow templates for signature, Self Sign documents, and check the signing status from SharePoint Online.

**Pre-condition**: Users must [sign in](/docs/sharepoint-online-installation#sign-in) to their SignNow account to use the integration. The sign-in screen appears when clicking **Send with SignNow** or **Invites Status** for the first time.

---

## Send a file for signature

Send files for signature directly from a SharePoint Online document library. For more information about document libraries and lists in the integration, see [SharePoint Online entity types](/docs/sharepoint-online-entity-types).

> [!NOTE]
> Supported file types: .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx. Maximum file size: 50 MB.

Select one or more files in the library, then click **Send with SignNow** from the toolbar **More (...)** menu or the inline **...** menu on the file.

Alternatively, use a [custom action](/docs/sharepoint-online-admin-tools#custom-actions) configured by your admin.

![SharePoint document library file menu with the Send with SignNow option](/reference-assets/images/sharepoint_new/sharepoint_send_file_1.png)

If a single file is selected, the sending flow opens immediately.

If multiple files are selected, the **Select File** window opens. Set the merge order of the selected files by dragging them in **Merge order** and click **Proceed**, then configure and send the invite as described in the steps that follow.

> [!NOTE]
> The selected files are merged into a document group. Field mapping applies per document within the group. Recipients are configured for the group as a whole.

![Select File window with two files selected, the Merge order panel, and Proceed](/reference-assets/images/sharepoint_new/sharepoint_send_file_8_upd.png)

- Edit the document name. Recipients see this name in their inbox.

![Document Name step with the editable document name](/reference-assets/images/sharepoint_new/sharepoint_send_file_2.png)

- Click **Continue** to proceed to the editor.

![SignNow editor with recipients and fillable fields, and the Continue button](/reference-assets/images/sharepoint_new/sharepoint_send_file_3_upd.png)

- Manage recipients and CC recipients.
- Add fields and assign them to recipients.
- Add your information using the tools on the top panel or **Me (Fill Out Now)**.
- Click **Continue** to proceed to field mapping.

![Map Fields step mapping document fields to the SharePoint list](/reference-assets/images/sharepoint_new/sharepoint_send_file_4.png)

- Optionally, map fields in the document to SharePoint data.
- Click **Continue** to open the Send Invite page.

![Send Invite page with the recipient, CC recipients and the Actions On Completion button](/reference-assets/images/sharepoint_new/sharepoint_send_file_5.png)

- Edit the recipient and CC recipients' email addresses and the signing order.
- Customize the invite email subject and message for each recipient.
- If you need to return to document editing, click **Edit**.
- Click the gear icon to show the settings.

![Authentication and Settings panel for a recipient with password authentication, expiration and reminders](/reference-assets/images/sharepoint_new/sharepoint_send_file_6.png)

- Select a recipient authentication type, set reminders, allow document forwarding, and enable or disable the decline option for the signature field.

- Click **Actions on Completion** to customize the completion flow for recipients.

![Actions On Completion panel with the completion email and redirect links](/reference-assets/images/sharepoint_new/sharepoint_send_file_7.png)

- Define how to deliver the signed document to recipients, add a redirect link, and set up a payment request if needed. These settings apply to this invite only. To update SharePoint columns when a document is signed, use [actions on completion in a document flow](/docs/sharepoint-online-admin-tools#set-actions-on-completion).

- To change the document name, click the pen icon.
- Click **Apply** to save the changes.
- Click **Send Invite** (**Send Invite to First Recipient** if recipients receive documents in order) to send the document for signature.

Once all recipients sign, the completed document is saved to the library folder the file was sent from in SharePoint Online, provided **Save completed documents in SharePoint Online** is enabled in [Document Storage](/docs/sharepoint-online-admin-tools#document-storage) settings.

---

## Send a SignNow template

Send SignNow templates for signature from a SharePoint Online list. For more information about document libraries and lists in the integration, see [SharePoint Online entity types](/docs/sharepoint-online-entity-types).

> [!NOTE]
> Send one list record at a time.

- Go to the SharePoint list.
- Right-click the list record and select **Send with SignNow** from the context menu.

![SharePoint list record context menu with the Send with SignNow option](/reference-assets/images/sharepoint_new/sharepoint_send_template_1.png)

- In the **Select Templates** window, select one or more templates, set their order in **Merge order** if needed, and click **Proceed**.

![Select Templates window with two templates selected, the Merge order panel, and Proceed](/reference-assets/images/sharepoint_new/sharepoint_send_template_2_upd.png)

To quickly locate a template:
- Filter templates by type: all, templates, or **Document Group Templates**
- Sort templates by name in ascending or descending order
- Show all templates or only prepared templates
- Switch the view layout between list and grid

Once a template is selected, proceed with the sending flow. The template is pre-configured. Make changes at any step as needed.

> [!NOTE]
> If multiple templates are selected, they are merged into a single document group. Field mapping is configured separately for each template within the group. Recipients are configured for the group as a whole.

> [!NOTE]
> When multiple templates are merged into a single document group, the recipient roles configured in each template need to be assigned to the new invite recipients. Add the recipients first, then assign each existing role to them, or click **Assign All to One Recipient** to assign all roles to a single recipient.

![Add recipients dialog with existing template roles assigned to recipients](/reference-assets/images/sharepoint_new/sharepoint_send_template_3.png)

- Change the name of the template if needed.
- [Add and assign fillable fields and manage the recipients](/docs/sharepoint-online-admin-tools#add-fillable-fields-and-manage-recipients) in the editor.
- Check and edit the [data mapping](/docs/sharepoint-online-admin-tools#pre-fill-fillable-fields) between the document fields and SharePoint fields.
- Edit recipient and CC recipient email addresses, invite email subject and message, signing order, authentication and completion settings, and reminders.

If no changes are needed, click **Continue** at every step to send the document group template according to the configuration.

Alternatively, use a [custom action](/docs/sharepoint-online-admin-tools#custom-actions) configured by your admin. Depending on the configuration, the template may be pre-selected, or you may be prompted to select one.

Once all recipients sign, the completed document is attached to the list record the template was sent from in SharePoint Online, provided **Save completed documents in SharePoint Online** is enabled in [Document Storage](/docs/sharepoint-online-admin-tools#document-storage) settings.

---

## Self Sign a document

Sign documents from a SharePoint Online library without sending them for signature. When your admin configures a custom action with the **Self Sign: sign the document without sending** delivery option, clicking the action opens the document in FreeForm invite mode. Place fields anywhere on the document and sign without sending it to recipients.

- Go to the SharePoint Online library.
- Select one file.
- Click **More (...)** in the toolbar or right-click the file and select the [custom action](/docs/sharepoint-online-admin-tools#custom-actions) configured with the Self Sign option.

The document opens in FreeForm invite mode.

![SignNow editor in a Self Sign custom action with a signature and date added](/reference-assets/images/sharepoint_new/sharepoint_selfsign_1_upd.png)

- Add available default or custom fields to the document.
- Click **Done** to finish signing and close the document.

If you click **Done** before adding your signature, the **Signature Missing** page opens. Click **Back to Editor** to return to the document and add your signature, or click **Download Document** to save the document as it is.

![Signature Missing page with Back to Editor and Download Document](/reference-assets/images/sharepoint_new/sharepoint_selfsign_signature_missing.png)

- On the **Document Complete Successfully** page, click **Download Document** to save a copy to your device.

![Document Complete Successfully page with the Download Document button](/reference-assets/images/sharepoint_new/sharepoint_selfsign_2_upd.png)

The signed document is saved to the library folder where the original file is located, provided **Save completed documents in SharePoint Online** is enabled in [Document Storage](/docs/sharepoint-online-admin-tools#document-storage) settings.

---

**Next**: [Track invite status →](/docs/sharepoint-online-track-invite-status)


---

## Track invite status

# Track invite status

To check the signing status of sent documents, users and admins can use the **Invites Status** tool.

Select the SharePoint record from which the invite has been sent and click **Invites Status** in the menu.

![SharePoint list record with the Integrate menu and the Invites Status option](/reference-assets/images/sharepoint_new/sharepoint_invite_status_1.png)

The page shows all documents sent from this record and their signing status.

![SignNow Track Document Statuses page with the documents sent from the record](/reference-assets/images/sharepoint_new/sharepoint_invite_status_2.png)

- Filter documents by status, date, or sender.
- Sort documents by ascending or descending order, name, creation date, or most recent activity.

## View status

Click **View Status** to see the detailed signing progress of the document.

![View Status page with each recipient's signing status and date](/reference-assets/images/sharepoint_new/sharepoint_invite_status_3.png)

The detailed status page shows each step, recipient email addresses, and the date the document was signed.

> [!NOTE]
> **View Status** is not available for documents with **Draft** status.

## SharePoint sync failed

If the document flow updates the SharePoint item on completion and SharePoint rejects the new value, the document still completes and shows a **SharePoint sync failed** badge. Hover over the badge to see the error.

![Signed document with the SharePoint sync failed badge and its error tooltip](/reference-assets/images/sharepoint_new/sharepoint_sync_failed.png)

To fix it, correct the value in the [document flow](/docs/sharepoint-online-admin-tools#set-actions-on-completion), then update the item manually for documents that are already completed.

## Open document

Click **Open Document** to access the document in the editor.
- If the document has been signed or is waiting for others, it opens in view mode.
- If the document is waiting for your signature, it opens in signing session mode.
- If the document has not been sent for signature, it opens in editing mode.

## Download document

Click **Download** to save the document as a PDF.

## More actions

To download the document with a detailed history, cancel the invite, delete the document, or take other actions, click **More actions (…)** and select the option from the dropdown.

Selecting an option opens the corresponding page in your SignNow account.


---

## SharePoint Online glossary

# SignNow for SharePoint Online glossary

Key terms used in SignNow for SharePoint Online, from signature invites and fillable fields to recipients and senders.

**Signature invite**: A single document or group of documents with or without fillable fields sent for signature to one or multiple recipients.

**Fillable fields**: Editable boxes in the document where recipients can add signatures and data.

**Fill Out Now**: A mode that lets the sender add their own content to the document — text, date, signature, initials, and other fields — before sending it.

**Recipient**: A user who receives the document to fill out, view, or approve.

**Sender**: A user who prepares and sends the document for signature.

**Role**: An action assigned to the recipient by the sender. Available roles include signer, viewer, and approver.
- Signer – fills out and signs the document.
- Viewer – views the document.
- Approver – reviews and approves the document.

**Template**: A document or document group with fillable fields that you configure once and reuse as often as needed. Each time you send a template for signature, a new copy is created.

**Self Sign**: A mode that lets the sender sign a document without sending it to recipients. When a custom action uses the Self Sign delivery option, the document opens for the user as a FreeForm invite.

**Document flow**: A reusable configuration that defines invite settings, recipients, and email content for a document or document group. Applied when sending documents for signature to ensure consistent settings across all invites.

**Custom action**: A reusable button in SharePoint Online configured by an admin to trigger a specific SignNow workflow. Custom actions can send SignNow templates, a file from a SharePoint library, or both in one document group, or open a file for self-signing. A pre-configured document flow can be included to apply consistent invite settings.

**Default fields**: Standard SignNow field types built into the document editor, available to all users without any setup. Examples include signature, initials, text, date, checkbox, and dropdown.

**Custom fields**: Pre-defined fillable fields configured once in the SignNow UI and reused across documents. Custom fields retain their name, type, size, and validation settings.

**CC recipient**: A user who receives a copy of the document by email but is not required to fill out or sign it.

**Text tags**: Markers embedded in a .docx file that are automatically converted into fillable fields when the document is uploaded to SignNow.

**FreeForm invite mode**: A document mode where fields can be placed anywhere on the document. Used for self-signing via the Self Sign custom action.

**Document group**: A group of documents sent together as a single invite to one or more recipients.

**Data mapping**: A configuration that links SharePoint list fields to document fields, so document fields are automatically pre-filled with SharePoint data when an invite is sent.



---

## SharePoint Online troubleshooting

# Troubleshoot SignNow for SharePoint Online

This section covers common issues you may encounter when installing, configuring, and using the SignNow integration for SharePoint Online, and provides steps to resolve them.

## Access

For setup instructions, see [Installation](/docs/sharepoint-online-installation).

| Issue | Solution |
|---|---|
| I can't find SignNow in SharePoint | SignNow opens from inside SharePoint document libraries and lists, not from the Microsoft 365 app launcher (the nine-dot menu in the top-left corner). To send a document, open a library or list, select a file or list record, then click **More (...)** in the toolbar or the **...** menu next to the item and select **Send with SignNow**. To check invite status or change settings, click **More (...)** in the toolbar and select **Invites Status** or **Admin Tools**. [Custom actions](/docs/sharepoint-online-admin-tools#custom-actions) configured by your admin appear in the same menus. If the menu shows no SignNow options, ask your SharePoint admin to [install SignNow](/docs/sharepoint-online-installation#admin-installation) for the organization or add it to your site. |

---

## Authorization

For setup instructions, see [Installation](/docs/sharepoint-online-installation).

| Issue | Solution |
|---|---|
| SSO login fails or shows a white screen after entering your email | SharePoint Online embeds SignNow in an iframe, and SignNow SSO requires third-party cookies to complete the authorization flow. If cookies are blocked, the login stalls on a white screen or returns to the login page. In your browser settings, allow third-party cookies for `signnow.com` and `app.signnow.com`, then reload the SharePoint page and sign in again. |
| SignNow repeatedly prompts you to log in or grant access | Stale credentials or cached authorization data are usually the cause. Clear your browser cache and cookies, then re-authorize the SignNow connector in SharePoint. If the prompts continue, check whether a corporate proxy or firewall is blocking `signnow.com` domains and allowlist them. |

---

## Document storage

For setup instructions, see [Admin tools](/docs/sharepoint-online-admin-tools#document-storage).

| Issue | Solution |
|---|---|
| Signed documents don't appear in the SharePoint folder after all recipients sign | The destination or the connected account may be misconfigured. Confirm that **Save completed documents in SharePoint Online** is enabled in [Document storage](/docs/sharepoint-online-admin-tools#save-completed-documents-in-sharepoint-online) settings and that the folder path is correct. Also verify that the SignNow user completing the documents is the same account connected to the SharePoint integration. |
| Signed documents can't be found in the expected SignNow folder | Copies are saved to the folder set under **Keep document copies in SignNow** in [Document storage](/docs/sharepoint-online-admin-tools#store-document-copies-in-signnow) — either the **default workspace Team** folder or a custom **destination folder**. Check which one is selected. If the sender doesn't have access to the configured destination folder, the document is saved on behalf of the admin, so check the admin's account. |


---

## NetSuite

# Getting started with the SignNow application for NetSuite

Follow this guide to install, configure, and use the SignNow application in your NetSuite account.

**Requirements**:

- A NetSuite account with the Administrator role, or a custom role set up as described in [Grant access to SignNow Admin Tools](/docs/netsuite-installation#grant-access-to-signnow-admin-tools).
- A SignNow account on the US server with an active [Site License subscription plan](https://snseats.signnow.com/purchase/business_plans/pricing).
- An additional paid SignNow add-on for NetSuite, purchased on top of the Site License subscription.

Sign up for a [free trial](https://snseats.signnow.com/purchase/business_free_trial/loggedout).

---

## NetSuite release notes

# SignNow for NetSuite release notes

Review the latest improvements to the SignNow for NetSuite integration.

<details open>

**<summary>October 2026</summary>**

✅ Documented the new way of sending documents with a custom action, which can now combine a PDF generated from the record, record attachments, and SignNow templates. See [Select what should be sent for signature](/docs/netsuite-custom-actions#select-what-should-be-sent-for-signature) for the admin setup and [Send documents with a custom action](/docs/netsuite-custom-actions#send-documents-with-a-custom-action) for the new sender flow.

✅ Added the [Hide default SignNow custom actions](/docs/netsuite-custom-actions#hide-default-signnow-custom-actions) section, which explains how to hide the buttons the package adds on install.

✅ Added the [Grant access to SignNow Admin Tools](/docs/netsuite-installation#grant-access-to-signnow-admin-tools) section to the Installation guide, which explains how to give a custom role access, so the NetSuite Administrator role isn't required.

</details>
<br>

<details>

**<summary>July 2026</summary>**

✅ Updated the [Document storage](/docs/netsuite-document-storage) settings so completed document copies are saved to the default workspace Team folder instead of an auto-created integration folder, with refreshed storage options and template-location notes.

</details>
<br>

<details>

**<summary>June 2026</summary>**

✅ Added a [Troubleshooting](/docs/netsuite-troubleshooting) section covering common integration issues.

✅ Documented the [attachment folder settings](/docs/netsuite-installation#configure-the-attachment-folder) in the Installation guide, explaining how to fix it when the default **Attachments Received** folder isn't accessible and signed documents fail to save back to the record.

</details>
<br>

<details>

**<summary>September 2025</summary>**

✅ Extended the user guide with the workflow for pre-filling document fields or generating tags using [related NetSuite fields](/docs/netsuite-templates#pre-fill-from-related-fields).

</details>
<br>

<details>

**<summary>August 2025</summary>**

✅ Added **Field Editing** info for [NetSuite field mapping](/docs/netsuite-templates#pre-fill-fillable-fields).

</details>
<br>

<details>

**<summary>May 2025</summary>**

✅ Added the [Invites Status widget and custom records](/docs/netsuite-invites-status-widget) section to the user guide.

✅ Added the [Send HTML/PDF templates with text tags](/docs/netsuite-text-tags) section to the user guide.

</details>
<br>

---

## NetSuite installation

# Install SignNow for NetSuite

Send business documents for eSignature from any record in NetSuite with 1-click of a button.

- Create pre-filled documents based on SignNow or NetSuite templates
- Send a PDF generated from the record, its attachments, SignNow templates, or any combination from one custom button
- Sign documents without leaving NetSuite
- Instantly update NetSuite records with data from completed documents
- Access signed documents directly from NetSuite

## Install SignNow for your NetSuite account

Go to **SuiteApps** > **Search & Install Bundles** or **Customization** > **SuiteCloud Development** > **SuiteApp Marketplace.**

Search for SignNow and click **Install** on the application’s details page.

![SignNow app page in the NetSuite SuiteApp Marketplace with the Install button](/reference-assets/images/SignNow_Netsuite/suiteapp_install.png)

Confirm the installation process.

Go to **Customization** > **SuiteBundler** > **Installed Bundles** to track the installation process.

## Configure the application

### Enable REST Web Services

Go to **Setup > Company > Enable features >  SuiteCloud** subtab.

Scroll to the **SuiteTalk** section and check **REST WEB SERVICES**.

![NetSuite Enable Features page with REST Web Services selected in the SuiteTalk section](/reference-assets/images/SignNow_Netsuite/rest_web_services.png)

### Assign permissions to roles

Assign permissions to users to access the SignNow application.

Go to **Setup** > **Users/Roles** > **Manage Roles**. Select the required role and click **Edit**.

Navigate to the **Permissions** tab > **Setup** subtab. 

Select the following permissions from the dropdown: 

- Log in using OAuth 2.0 Access Tokens (full level)
- REST Web Services (full level)

![NetSuite role permissions with REST Web Services and the other required permissions](/reference-assets/images/SignNow_Netsuite/add_permissions.png)

Click **Save** to apply the permissions to the role.

To assign the role to users, go to **Setup** > **Users/Roles** > **Manage Users**.

Select the user and add the updated role if they don't already have it.

Once assigned, users can access the SignNow integration.

### Grant access to SignNow Admin Tools

SignNow Admin Tools is available to the Administrator role. To open it with a custom role, give the role the **Set Up Company** permission and add it to the audience of the SignNow Admin Tools script deployment.

Go to **Setup** > **Users/Roles** > **Manage Roles**. Select the custom role and click **Edit**.

On the **Permissions** tab, open the **Setup** subtab and add **Set Up Company** at the **Full** level. Keep the permissions from [Assign permissions to roles](#assign-permissions-to-roles) on the role, and click **Save**.

The following example shows **Set Up Company** being added on the **Setup** subtab of a custom role.

![Setup subtab of a custom role's Permissions tab in NetSuite, with Set Up Company being added at the Full level](/reference-assets/images/SignNow_Netsuite/custom_role_add_permissions.png)

Go to **Customization** > **Scripting** > **Script Deployments**. Open the **SignNow - Admin Tools** deployment and click **Edit**.

On the **Audience** tab, select the custom role in the **Internal Roles** list in addition to **Administrator**. Hold Cmd (Mac) or Ctrl (Windows) while you click, so the roles that are already selected stay selected. Click **Save**.

Log in to NetSuite with the custom role.

Go to **Setup > Integrations > SignNow Admin Tools** and reconnect your SignNow account, as described in [Log in to SignNow](#log-in-to-signnow).

## Log in to SignNow

Go to **Setup > Integrations > SignNow Admin Tools.**

![NetSuite Setup menu with Integration and SignNow Admin Tools](/reference-assets/images/SignNow_Netsuite/admin_tools.png)

Log in to your SignNow account or sign up.

![SignNow login screen in NetSuite with Log In and Sign up buttons](/reference-assets/images/SignNow_Netsuite/login_signnow_upd.png)

Grant SignNow for NetSuite access to your SignNow account.

## Configure the attachment folder

By default, SignNow saves signed documents to the **Attachments Received** folder in the NetSuite File Cabinet.

If a document is signed but doesn't appear attached to the NetSuite record, or the **SignNow Files API** script log shows `INVALID_KEY_OR_REF: Invalid folder reference key -10.`, the **Attachments Received** folder may be inaccessible to the integration user. In that case, create a dedicated folder and update the setting:

- Go to **Documents > Files > File Cabinet**.

![NetSuite File Cabinet with the Documents menu open](/reference-assets/images/SignNow_Netsuite/file_cabinet_folder/netsuite_change_attachments_folder_1.png)

- Create a new folder outside of **Attachments Received** by clicking **New Folder**.
- Hover over the new folder name — the folder ID appears in the link shown at the bottom left of your browser window.

![NetSuite File Cabinet folder list with the folder ID shown in the link at the bottom of the browser](/reference-assets/images/SignNow_Netsuite/file_cabinet_folder/netsuite_change_attachment_folder_2.png)

- Go to **Customization > Lists, Records, & Fields > Record Types**, find **SignNow - Settings**, and click **List**.

![NetSuite Record Types list with SignNow - Settings and its List link](/reference-assets/images/SignNow_Netsuite/file_cabinet_folder/netsuite_change_attachments_folder_3_upd.png)

- Click **Edit** next to the record. Enter the internal folder ID in the **Attachment Folder ID** field, and click **Save**.

![SignNow - Settings record in NetSuite with the Attachment Folder ID field](/reference-assets/images/SignNow_Netsuite/file_cabinet_folder/netsuite_change_attachments_folder_4.png)

## Team folders in SignNow

Documents and templates from SignNow for NetSuite are stored in your default workspace Team: templates in the Templates folder and document copies in the Documents folder. NetSuite users with permission to access the SignNow application can work with these shared folders.

When you create a new template from SignNow Admin Tools, it is saved to the Templates folder in your default workspace Team.

If the default workspace can't be identified:

- when you belong to a single workspace, it is saved to that workspace's Templates folder.
- when you belong to several workspaces and can't set a default (you are not an admin), it is saved to the Templates folder of the first workspace you can access.

> If your account already has a dedicated **NetSuite integration** folder under Private Teams from an earlier installation, it is still supported.

---

The configuration of the SignNow for NetSuite is all set. 

Now, NetSuite admins can:

- Configure templates and document group templates in SignNow without leaving NetSuite.
- Configure data binding between NetSuite record fields and SignNow template fields for pre-fill and update.
- Customize a sender's flow to make it a one-click send.
- Create [custom actions](/docs/netsuite-custom-actions) that send a PDF generated from the record, its attachments, SignNow templates, or any combination of them in one document group.
- Customize the invite email subject and body, and enrich it with NetSuite data.
- Dynamically define recipients from NetSuite fields.


---

## Invites Status widget and custom records

# NetSuite Invites Status widget and custom records

Use the Invites Status widget to track the status of sent documents from NetSuite records. 

With this widget, you can view the document’s signing date, see the actions taken by each recipient, make corrections to invites, and more.

Let’s explore the widget’s capabilities.

## Add the widget

After installing the SignNow application for NetSuite, the SignNow Invites Status widget will be automatically added to the following record types:

- Contact
- Customer
- Opportunity
- Purchase Order
- Quote
- Sales Order

> To add the widget to the specific record, you need to deploy the **SignNow button - Invite Status** script to this record.

## How to use the widget

Navigate to the record with the pre-installed SignNow Invites Status widget.

![NetSuite record with the SignNow Invites Status button in the toolbar](/reference-assets/images/SignNow_Netsuite/invites_status_widget/widget_added.png)

Using the SignNow widget, you can:

- Track the status of sent documents
- Search for a document by name
- Check the date the document was sent for signature and signed
- View the sender and recipient email addresses
- Sort and filter sent documents
- Open a document for editing or in a view mode (if the document is signed or waiting for others)
- Download documents and view history
- Cancel invites
- Make corrections to the invite

![Invites Status widget with the list of sent documents and the status, template, date, and sender filters](/reference-assets/images/SignNow_Netsuite/invites_status_widget/widget_general_upd.png)

### Filter and sort documents

You can filter sent documents by:

- Status
- Template
- Date (last 12 months; last 6 months; last 3 months; last 30 days; last week; last 24 hours)
- Sender (sent by me; sent by others)

You can sort documents by:

- Ascending or descending order
- Recently modified
- Document name
- Created date

### View the invite status

Click **View Status** next to the document to see the list of invite steps, including recipients roles, emails, and the status of each step.

> The **View Status** option is not available for draft invites.

If the document has been signed, the signing date will also be displayed.

![View Status page with the invite steps, recipients, and their status](/reference-assets/images/SignNow_Netsuite/invites_status_widget/widget_view_status_upd.png)

**Available invite step statuses are:**

- **Invite step pending:** The recipient’s invite is pending on the previous step (the signer on the previous signing step hasn’t signed and submitted the document yet).
- **Pending:** The invite has been sent to the recipient.
- **Invite expired**: The invite has expired.
- **Declined to sign**: The recipient declined to sign the document.
- **Completed**: The recipient completed the invite.
- **View only:** The recipient received the document as `view only`.

### NetSuite sync failed

If the document flow updates the NetSuite record on completion and NetSuite rejects the new value, the document still completes and the invite shows a **NetSuite sync failed** badge. Hover over the badge to see the error NetSuite returned, for example *Phone number should have seven digits or more.*

![Invites Status widget with the NetSuite sync failed badge and its tooltip](/reference-assets/images/SignNow_Netsuite/invites_status_widget/widget_netsuite_sync_failed.png)

To fix it, correct the value in the [document flow](/docs/netsuite-document-flows#set-actions-on-completion) or the record's required fields, then update the record manually for documents that are already completed.

### Cancel all invites

Click **Cancel All Invites** on the View Status page to cancel the signature invite for this document.

You’ll be redirected to your SignNow account, where the document invite is filtered by ID. 

Click **Cancel Invites** next to the invite you want to cancel.

![SignNow Documents page with a sent sales package and the Cancel Invites button](/reference-assets/images/SignNow_Netsuite/invites_status_widget/widget_cancel_invites.png)

Confirm the action by clicking **Cancel All Invites** in the confirmation window.

> The **Cancel All Invites** option is not available for signed invites.

### More actions

> Available invite actions depend on the user's access level, the type of document sent for signature (templates or attachments), and the current status of the invite. Some options may be disabled based on these conditions.

![SignNow Track Document Statuses page with the More actions menu open](/reference-assets/images/SignNow_Netsuite/invites_status_widget/widget_more_actions_upd.png)

Click the buttons next to the invite or use the options in the **More menu (…)** to initiate available actions.

✅ **Open document**: Opens the document in the SignNow editor for editing or viewing. If the invite status is **Waiting for me**, the document opens in signing session mode.

✅ **Download**: Downloads the document as a PDF.

✅ **View history:** Opens the invite in your SignNow account in a new tab. click the **More menu (…)** and select **History** from the dropdown. The invite history shows detailed information about all actions taken on the document, who performed them, server and client timestamps, IP addresses, and the document IDs.

✅ **Download with:** Opens the invite in your SignNow account in a new tab. Click the **More** **menu (…)** and select **Download with** from the dropdown. Choose the download options (history, attachments, ID) and click **Download.** 

✅ **Make corrections:** Opens the invite in your SignNow account in a correction mode.

![Sales package opened in correction mode in SignNow, on the Add documents step](/reference-assets/images/SignNow_Netsuite/invites_status_widget/widget_make_corrections.png)

> **Make corrections** is available for invites that have not been opened by recipients. While you are making corrections to the invite, pending recipients will not be able to access the documents.

In the correction mode, you can add documents to the document group, edit documents and recipients, and adjust actions on completion.

## Custom records

When a user sends a document with SignNow, two custom records are automatically created in NetSuite: **SignNow Invitation** and **SignNow Signer**.

If you need to display the information about the signature invite status directly on a NetSuite record or create custom reports, you can retrieve the relevant data from these custom records.

To access the custom records, go to **Customization > Lists,Records, & Fields > Record Types**.

![NetSuite Record Types list with the SignNow custom records](/reference-assets/images/SignNow_Netsuite/invites_status_widget/custom_records/custom_record_general.png)

### SignNow Invitation custom record 

Select the SignNow Invitation from the list of records to customize its settings and fields.

The SignNow Invitation stores data about signature invites, including: 
- Invite status
- Document ID and template ID
- Document name and template name
- SignNow user ID and email
- NetSuite user ID
- NetSuite record ID
- NetSuite record type

![SignNow Invitation custom record type with its fields](/reference-assets/images/SignNow_Netsuite/invites_status_widget/custom_records/custom_record_invitation.png)

To view the list of signature invites, click **List** next to the **SignNow Invitation** record.

![SignNow Invitation List with the sent invites and their statuses](/reference-assets/images/SignNow_Netsuite/invites_status_widget/custom_records/custom_record_invitation_list.png)

### SignNow Signer custom record

Select the SignNow Signer from the list of records to customize its settings and fields.

The SignNow Signer stores data about the signature invite recipients, including:
- Email
- Status
- Signing order
- Invitation (link to the SignNow Invitation custom record)

![SignNow Signer custom record type with its fields](/reference-assets/images/SignNow_Netsuite/invites_status_widget/custom_records/custom_record_signer.png)

To view the list of signers, click **List** next to the **SignNow Signer** record.

![SignNow Signer List with signer emails and statuses](/reference-assets/images/SignNow_Netsuite/invites_status_widget/custom_records/custom_record_signer_list.png)


---

## Document storage in NetSuite

# Document storage in SignNow for NetSuite

By default, documents signed by all recipients are saved to the same NetSuite record from which they were sent. A copy of the document is also saved to the Documents folder in the user's default workspace Team.

In **Document Storage**, define where signed documents are saved once all recipients have signed. Set the following options:
- Choose whether to save completed documents in NetSuite. Enabled by default.
- Choose whether to keep document copies in SignNow. Enabled by default.
- Choose whether to export documents with their history.
- Choose whether to save each signed document as a separate file.

![Document Storage settings in SignNow Admin Tools for NetSuite](/reference-assets/images/SignNow_Netsuite/document_storage_upd.png)

## Store document copies in SignNow

When **Keep document copies in SignNow** is enabled, choose where copies are stored in your SignNow workspace:

- **Save in default workspace Team folder** — (default) Document copies are saved to the Team's Documents folder in your default workspace.
- **Select destination folder** — choose a different SignNow workspace team folder. Only team folders are available; private folders are not listed. The picker lists Team folders from all your workspaces, not only your active one, each labeled as workspace name > folder name.

![Select destination folder dialog with the NetSuite integration team folder](/reference-assets/images/SignNow_Netsuite/netsuite_select_destination_folder.png)

> **Note**: Everyone in your workspace with access to the selected team folder can access the stored documents.

When **Save in default workspace Team folder** is selected, each copy is saved based on how the document was created:

- **From a file**: to the Documents folder in your default workspace Team.<br>If the default workspace can't be identified:
    - when you belong to a single workspace, it is saved to that workspace's Documents folder.
    - when you belong to several workspaces and can't set a default, it is saved to your personal Documents folder.
- **From a template**: to the Documents folder in the same team or space as the template. Each location keeps a Templates and a Documents folder side by side, so the document lands in the Documents folder next to the template:
    - personal Templates → Documents
    - Private Teams > NetSuite integration > Templates → Documents (the old integration folder is still supported)
    - Workspace > Team > Templates → Documents

For where new templates are stored, see [Team folders in SignNow](/docs/netsuite-installation#team-folders-in-signnow).


---

## NetSuite templates

# Templates in SignNow for NetSuite

On the **Templates** tab, NetSuite admins can access existing templates and document group templates from the SignNow account or create and edit a new template/document group template.

The following actions are available:

## Create a new template

Create the new template or document group template without leaving NetSuite.

Click **Create New Template** and select the documents you want to add to the group. You can select multiple documents at a time.

Once the new template or document group template is created, it will appear in the **Templates** tab.

Each template shows its location beneath its name, displayed as team or workspace name > folder name (for example, [netsuite integration] > [Team Templates]).

>Templates created by NetSuite users are stored in the Templates folder in their default workspace Team. For where each item is saved, see [Team folders in SignNow](/docs/netsuite-installation#team-folders-in-signnow).

To rename a template, click **More (…)** next to it and select **Rename**.

![Templates list with the More menu open and the Rename option](/reference-assets/images/SignNow_Netsuite/templates_list_rename.png)

## Add fillable fields

Improve the signing experience by customizing documents in the SignNow editor.

Click **Add Fillable Fields** to open the document group template in the editor. 

You can add fields to documents, assign them to recipients, and manage recipients.

<!-- theme: success -->
>Click the bulb icon in the top-right to open **Help with using the editing tools.**

Click **Manage Recipients** to open the **Add recipient roles** dialog.

- Name each role and select the action the recipient performs:
  - **Signer**: Fills out and signs the document.
  - **Approver**: Reviews and approves the document.
- Optionally, enter a **Pre-assigned recipient**: a default email used for this role every time the template is sent. Leave it empty to enter the email when sending. The sender can change the email before sending unless a document flow hides the **Add Recipients** step. If a document flow has a recipient with the same role name, the document flow's email replaces it.
- Click **Add Role** to add another role, or **Add CC Recipients** to send copies.
- Click **Save**.

![Add recipient roles dialog with two roles, a pre-assigned recipient, and the Signer and Approver actions](/reference-assets/images/SignNow_Netsuite/templates_manage_recipients_roles.png)

Click **Settings** to show or hide the editing tools, turn field snapping on or off, request a payment, view keyboard shortcuts, or change the language.

![SignNow editor with the Settings menu open and the Done button](/reference-assets/images/SignNow_Netsuite/templates_editor_settings.png)

Click **Done** to save the template.

## Pre-fill fillable fields

**Pre-fill documents** with NetSuite data and **update NetSuite records** using data mapping.

Click **Pre-fill Fillable Fields** next to the document group template to start mapping fields in documents with NetSuite records.

- Select the NetSuite record type to use for pre-filling.

![Pre-fill Fillable Fields dialog with the NetSuite record type list open](/reference-assets/images/SignNow_Netsuite/templates_netsuite_record_upd.png)

- Select documents with fillable fields and click **Apply**.

![Pre-fill Fillable Fields dialog with the document search and the Apply button](/reference-assets/images/SignNow_Netsuite/templates_select_docs.png)

- Click **Select Fields** to open the document's fillable fields available for mapping. Check the fields you want to pre-fill. Click **Apply**.

![Select Fields list with document fields selected for mapping](/reference-assets/images/SignNow_Netsuite/templates_select_fields_upd.png)

- Next, select the NetSuite fields for data binding.

Click the dropdown arrow in the **Select NetSuite Field** column to select the field that will populate the fillable field in the document.

- Use the **Field Editing** column to define whether recipients can edit the pre-filled data (**Allow Editing** is enabled by default).

![Data mapping with NetSuite fields selected and the Field Editing list open](/reference-assets/images/SignNow_Netsuite/prefill_field_editing.png)

> You can configure data mapping to either pre-fill the document only or both pre-fill the document and update the connected NetSuite field. Click the arrow in the second column to adjust the mapping behavior. By default, mapping only pre-fills the document.

<!--
type: tab
title: Pre-fill the document field
-->

![Mapping set to pre-fill the document field from NetSuite](/reference-assets/images/SignNow_Netsuite/prefill_field_netsuite_upd.png)

<!--
type: tab
title: Pre-fill the document field and update NetSuite field
-->

![Mapping set to pre-fill the document field and update the NetSuite field](/reference-assets/images/SignNow_Netsuite/prefill_update_netsuite_upd.png)

<!-- type: tab-end -->

- Click **Save** to save field mapping.

### Pre-fill from related fields

With the SignNow integration, you can pre-fill document fields or [generate tags](/docs/netsuite-document-flows#pre-fill-recipient-emails-using-tags) using related NetSuite fields, selecting either the field name or the field ID.

> Related fields are linked to other NetSuite records or entities through record relationships or joins.

For example, a Sales Order record includes related fields such as Customer, Items, Subsidiary, and Terms. These fields connect the sales order to other records, making it easier to track relationships across transactions, customers, and items.

Examples of record types with related fields :

- Transaction records (Sales Order, Invoice, Purchase Order, Expense Report)
- Entity records (Customer, Vendor, Employee)
- Item records
- Project /Job
- Support Case

To use a related field for pre-filling or tag generation, select the field name:

- To pre-fill with the related field **name**, select the field ending in `__name`.
- To pre-fill with the related field **ID**, select the field without `__name`.

In the screenshot below, `subsidiary__name` pre-fills the document field with the subsidiary name, while `subsidiary` pre-fills the document field with the subsidiary ID.

![Pre-fill Fillable Fields dialog mapping document fields to related subsidiary fields](/reference-assets/images/SignNow_Netsuite/prefill_related_fields_ud.png)

> Related fields ending in `__name` cannot be used for record updates.


---

## Document flows in NetSuite

# Document flows in SignNow for NetSuite

On the **Document Flows** tab, NetSuite admins can create scenarios for sending documents for signature via SignNow. These scenarios can then be added to **custom actions**, streamlining the sender's experience.

With document flows, NetSuite users can send predefined documents (with assigned recipient roles, fillable fields, and data mapping) for signature with a single click from NetSuite records. A document flow can also update the NetSuite record once every recipient has signed. See [Set actions on completion](#set-actions-on-completion).

To rename or delete a document flow, click **More (…)** next to it and select **Rename** or **Remove**.

![Document Flows list with the More menu open and the Rename and Remove options](/reference-assets/images/SignNow_Netsuite/netsuite_document_flows_rename.png)

Follow these steps to configure a document flow.

## Add document flow information

Click **Create Document Flow** to add a new flow.

Enter a name for the document flow.

## Configure the sender's experience

Check the options to customize the sender's experience. You can allow or prevent the sender from entering a document name, adding fillable fields, adding recipients, and mapping fillable fields with NetSuite records.

> If you hide the **Add Recipients** screen from the sender, you can manually add recipients or pre-fill recipients' email addresses with record values at the **Configure recipients** step.

Once done, click **Next to Customization**.

![Details step with the document flow name and the options for the sender](/reference-assets/images/SignNow_Netsuite/netsuite_docflow_details_wide.png)

## Customize the invite email message to signers

This step sets the document name and the email subject and body sent to signers. All of them are optional.

> [!NOTE]
> This customization overrides the email message settings stored in the selected template.

- In **Document Name**, enter the name applied to every document sent with the flow.
- Enter the **Subject** and **Body** of the invite email.

To add data from the NetSuite record to the document name, subject, or body:

- Click **Add record values**.
- Select a **NetSuite record type**, then select a **NetSuite field**.
- Copy the generated record value, for example `{{salesorder.transactionNumber}}`, and paste it where you need it.

![Message step with Add record values open, Sales Order and transactionNumber selected](/reference-assets/images/SignNow_Netsuite/netsuite_docflow_message_record_values_wide.png)

The email subject and body customization works if the **Hide the Add Recipients Screen** option is checked.

Click **Next to Recipients** to proceed.

## Configure recipients

Set up recipients who will sign the document.

> This configuration overrides settings stored in the selected template.

### Pre-fill recipient emails using tags

Similar to customizing the invite email, you can pre-fill recipients' email addresses from NetSuite records.

Click **Add record values**, select the NetSuite record type and field, then copy the record value into the recipient's email field.

![Recipients step with Add record values open, Sales Order and email selected, and the generated record value](/reference-assets/images/SignNow_Netsuite/netsuite_docflow_recipients_record_values_wide.png)

Click **Add Recipient** to add more recipients.

> [!NOTE]
> Name each role exactly as it's named in the template. If a role name doesn't match, the recipient is added as a new role without fields, and the template's role keeps its own recipient.

If you want all recipients to receive documents simultaneously, uncheck the **Recipients receive documents in order** option.

> If any field is pre-filled with an empty NetSuite record or connected to the wrong field, the sender will need to manually complete the missing information before sending the document.

### Sender's email

Check the **Sender's email** checkbox if the sender needs to be set as a recipient in the document flow.

### Signature invite settings

Click the gear icon near the recipient's email field to configure the signature invite for each recipient.

- Protect the document with a **password.**
- Set an **expiration date** and **reminders.**
- Allow the recipient to **forward the document** (disabled if password protection is enabled).

To rename a recipient role, click the pencil icon next to the role name.

![Recipients step with the signature invite settings open: password, expiration, reminders, and forwarding](/reference-assets/images/SignNow_Netsuite/docflow_signature_invite_settings_wide.png)

Click **Next to Actions on Completion** to proceed.

## Set actions on completion

Update the NetSuite record automatically once the document is signed, for example, write a note to the **Memo** field of a sales order as soon as every recipient has signed. This step is optional.

Click **+ Add action**, then:

- In **Record Type**, select the NetSuite record type the document is sent from, for example **Sales Order**.
- In **NetSuite field**, select the field to update, then enter the value in **New value**.
- To update one more field on the same record, click **+ Add field**. A document flow has one action, and the action updates up to two fields.

The **What will happen** box summarizes the update. SignNow applies it to the record the document was sent from when every recipient has signed.

![Actions on completion step setting Memo on a Sales Order, with the What will happen summary](/reference-assets/images/SignNow_Netsuite/netsuite_docflow_actions_on_completion_wide.png)

Enter **New value** as text, in the format the field expects:

| Field type | New value |
| --- | --- |
| Text, such as **Memo** | Enter any text. |
| Date | Enter the date as `YYYY-MM-DD`, for example `2026-12-31`. The wizard doesn't save an action with an invalid date. |
| List, such as **Terms** | Enter the internal ID of the list value, not its name: for example `1` for **Net 15**. |

To find a list value's internal ID, open the value in NetSuite, for example **Net 15** in **Setup** > **Accounting** > **Accounting Lists**. The internal ID is the `id` number in the page URL. You can also turn on **Show Internal IDs** in **Home** > **Set Preferences** to see an **Internal ID** column in lists.

If NetSuite rejects the value, for example a phone number with fewer than seven digits, the document still completes and the invite shows a **NetSuite sync failed** badge in the [Invites Status widget](/docs/netsuite-invites-status-widget#netsuite-sync-failed).

To send documents with the flow, add it to a [custom action](/docs/netsuite-custom-actions) for the same record type.

Click **Save** to save the document flow.



---

## Custom actions

# Custom actions

Add a button to NetSuite records that sends a PDF generated from the record, its attachments, SignNow templates, or any combination for signing, or opens a document for self-signing.

The **Custom Actions** tab in SignNow Admin Tools generates a script for each button. Add the script to NetSuite and deploy it to the records where senders need the button. Follow the steps below to configure the action, generate the script, and deploy it.

## Select what should be sent for signature

In **1. Select what should be sent for signature**, select one or more document sources. When you select several, the documents are combined into one document group.

| Document source | Description |
| --- | --- |
| NetSuite HTML template: a PDF generated from a NetSuite record | A PDF printed from the record the button is clicked on. To print it with a specific template, enter the template ID in **Advanced PDF/HTML Template ID**, as described below. To add signature and other fields to the template, see [Send HTML templates with text tags](/docs/netsuite-text-tags). |
| SignNow template | Select **SignNow template: selected by the sender** to let the sender choose templates when they click the button, or **SignNow template: pre-selected by the Admin** to always send the same templates. For pre-selected templates, choose one or more templates in **Select Template**. |
| File: from the list of files attached to a NetSuite record | The sender selects files attached to the record. Supported file types: PDF, DOCX, PNG, JPG, JPEG, GIF, BMP, DOC, ODT, RTF, and XML. Maximum file size: 10 MB. |

To find the ID of an Advanced PDF/HTML template:

1. In NetSuite, go to **Customization > Forms > Advanced PDF/HTML Templates**.
2. Find the template and copy the value in its **Script ID** column, for example `STDTMPLSALESORD`. The Script ID is the template ID that the custom action uses.
3. Paste the value into **Advanced PDF/HTML Template ID**.

![NetSuite Customization Forms menu with Advanced PDF/HTML Templates and the template list](/reference-assets/images/SignNow_Netsuite/text_tags/custom_pdf_list.png)

To set up an Advanced PDF/HTML template for SignNow, see [Customize the PDF/HTML template](/docs/netsuite-text-tags#customize-the-pdfhtml-template).

Leave **Advanced PDF/HTML Template ID** blank to print the record with its default template.

The following example combines a PDF generated from the record, a SignNow template pre-selected by the admin, and files attached to the record.

![Generate Custom Action form with NetSuite HTML template, SignNow template pre-selected by the Admin, and File selected](/reference-assets/images/SignNow_Netsuite/netsuite_custom_action_combined_sources_wide.png)

## Choose how the document is delivered

In **2. Delivery and Invite Settings**, select how the documents are delivered:

| Option | Description |
| --- | --- |
| **Send for signature** | The sender sends the documents to recipients for signing. |
| **Self Sign: sign the document without sending** | The sender signs the document themselves without sending an invite. |

The following table shows which delivery options are available for each combination of document sources.

| What is sent | Send for signature | Self Sign |
| --- | --- | --- |
| **NetSuite HTML template** | Yes | Yes |
| **File** | Yes | Yes |
| **NetSuite HTML template** and **File** | Yes | Yes |
| **SignNow template** (selected by the sender or pre-selected by the Admin) | Yes | No |
| **NetSuite HTML template** and **SignNow template** | Yes | No |
| **SignNow template** and **File** | Yes | No |
| **NetSuite HTML template**, **SignNow template**, and **File** | Yes | No |

Self Sign isn't available when **SignNow template** is selected. To select Self Sign, clear **SignNow template**. When Self Sign is selected, the **Add a SignNow Document Flow** step is hidden. For the sender's steps, see [Self Sign a document](#self-sign-a-document).

![Generate Custom Action form with NetSuite HTML template and File selected and Self Sign selected in Delivery and Invite Settings](/reference-assets/images/SignNow_Netsuite/netsuite_custom_action_self_sign.png)

## Add the SignNow document flow (optional)

In **3. Add a SignNow Document Flow**, select a document flow to send the documents with pre-configured invite settings, recipients, and email content. If no document flow is selected, the sender configures the document and the invite before sending.

A document flow can also hide steps from the sender, for example **Hide "Add Fields" step** or **Hide "Map Fields" step**. See [Document flows](/docs/netsuite-document-flows).

> [!WARNING]
> The recipient roles in the document flow must match the roles in the templates of the action. If the document flow hides the **Add Recipients** step and the roles don't match, the sender gets an error and the documents aren't sent.

## Generate a script for a custom button

In **4. Generate a script for your custom button** (**3.** for Self Sign actions), select the record type the button will appear on from the list and enter a button label. The script updates automatically.

If the document flow updates the record on completion and you select a different record type, an alert names the flow's record type, for example: *The document flow is set to Sales Order. Choose the same record type to update the record.* Select the same record type so that SignNow can update the record.

![Custom action with the document flow selected and Estimate as the record type, showing the record type mismatch alert](/reference-assets/images/SignNow_Netsuite/netsuite_custom_action_record_type_mismatch.png)

Click **Download Code** to save the script as a `.js` file, or click **Copy Code** and save it to a `.js` file yourself, for example `send_sales_order_button.js`.

![Button label field and the generated script with Download Code and Copy Code buttons](/reference-assets/images/SignNow_Netsuite/netsuite_custom_action_script_wide.png)

## Add custom action in NetSuite

### Create a script record

Go to **Customization > Scripting > Scripts > New**.

![NetSuite Customization menu with Scripting, Scripts and New](/reference-assets/images/SignNow_Netsuite/custom_actions_new_script.png)

On the **Upload Script File** page, click the plus icon next to the **Script File** input field.

![Upload Script File page with the plus icon next to the Script File field](/reference-assets/images/SignNow_Netsuite/custom_actions_plus.png)

In the new window, go to **Select File,** pick the JS script you saved earlier, and click **Save**. 

Then click the **Create Script Record** button.

![Upload Script File page with the selected script file and the Create Script Record button](/reference-assets/images/SignNow_Netsuite/custom_actions_script_record.png)

On the new **Script** page, name the script record based on the button's name for easy reference. Click **Save**.

![New Script record page with the script name and the Save button](/reference-assets/images/SignNow_Netsuite/custom_actions_save_script.png)

### **Deploy the script**

On the **Script** page, click the **Deploy Script** button.

![Script record page with the Deploy Script button](/reference-assets/images/SignNow_Netsuite/deploy_script_start.png)

In the **Applies To** field, select the record type you chose in the custom action. The deploy instructions in the custom action name it for you, for example: *In the **Applies To** field, select **Sales Order**.*

Set the **Status** to **Released**.

In the **Audience** section, select who can access this button.

Click **Save** to apply your changes and deploy the button.

![Script Deployment page with the deployment settings and the Save button](/reference-assets/images/SignNow_Netsuite/deploy_script_save.png)

Go to the record you have selected to ensure that the button has been added.

## Send documents with a custom action

Senders click the custom button on a NetSuite record. What opens next depends on the document sources in the action:

- A PDF generated from the record is added to the document group automatically.
- If the action includes SignNow templates selected by the sender, the **Select Templates** window opens. If the action also includes files, it opens after the **Select File** window.
- A single template pre-selected by the admin is added automatically. If the admin pre-selected two or more templates, the **Select Templates** window lists only those templates.
- If the action includes files attached to the record, the **Select File** window opens.

### Select files

The **Select File** window lists the files attached to the record under **Record attachments**. If the action includes the NetSuite HTML template, **PDF printed from this record** is listed under **From this record** and stays selected.

Select the attachments to send and click **Proceed**. Alternatively, click **Back to Record** to cancel.

![Select File window with PDF printed from this record selected under From this record and a record attachment listed](/reference-assets/images/SignNow_Netsuite/netsuite_select_file_pdf_from_record.png)

### Select templates

In the **Select Templates** window, select one or more templates. Use **All Types**, **Show All Templates**, and the sort options to find a template.

Templates need fillable fields to be sent for signature. If a template you need is unavailable, ask your admin to add the fields.

The **Merge order** panel lists every document in the group: the PDF printed from the record, the files you selected, and the templates. Drag documents to set their order, or click **✕** to remove one. The PDF printed from the record can be moved but stays in the group. A template pre-selected by the admin is locked in place. Click **Back** to change the selected files.

![Select Templates window with a template selected and the Merge order panel listing the PDF printed from the record, a record attachment, and the template](/reference-assets/images/SignNow_Netsuite/netsuite_select_templates_merge_order.png)

Click **Proceed** to create the document group. The sending flow continues as configured in the action and its document flow.

### Prepare and send the documents

The editor opens with the document group if the action has no document flow, or if its document flow shows the **Add Fields** step. The PDF printed from the record and the record attachments arrive without fillable fields. Select a recipient and place the fields they need.

![SignNow editor with the PDF printed from the sales order and a record attachment in the document group, both without fields](/reference-assets/images/SignNow_Netsuite/netsuite_editor_document_group.png)

In the **Add recipients** dialog, enter each recipient's email and select **Signer** or **Approver** for the role. Click **Add CC Recipients** to send copies, then click **Save and Continue**.

![Add recipients dialog with roles, recipient emails, and the Signer and Approver actions](/reference-assets/images/SignNow_Netsuite/netsuite_send_add_recipients.png)

Then review the recipients and the invite email, and send the invite. Once all recipients sign, the completed document is saved to the NetSuite record. See [Document storage](/docs/netsuite-document-storage).

### Self Sign a document

When the action uses **Self Sign**, the sender signs the documents themselves without sending an invite:

- Click the custom button on the record.
- If the action includes files attached to the record, the **Select File** window opens. **PDF printed from this record** stays selected if the action includes the NetSuite HTML template. Select the attachments to sign, set their order in **Merge order** if needed, and click **Proceed**.

![Select File window with PDF printed from this record and a record attachment selected, and the Merge order panel](/reference-assets/images/SignNow_Netsuite/netsuite_selfsign_select_file.png)

- The editor opens with the documents. Use the tools on the left panel, such as **My Signature**, to fill out the documents, then click **Done**.

![SignNow editor in a Self Sign custom action with a signature added and the Done button](/reference-assets/images/SignNow_Netsuite/netsuite_selfsign_editor.png)

If you click **Done** before adding your signature, the **Signature Missing** page opens. Click **Back to Editor** to return to the document and add your signature, or click **Download Document** to save the document as it is.

![Signature Missing page with Back to Editor and Download Document](/reference-assets/images/sharepoint_new/sharepoint_selfsign_signature_missing.png)

- On the **Document Complete Successfully** page, click **Download Document** to save a copy to your device.

![Document Complete Successfully page with the Download Document button](/reference-assets/images/SignNow_Netsuite/netsuite_selfsign_complete.png)

The signed document is saved to the record in **Communication > Files**, provided saving completed documents in NetSuite is enabled in [Document storage](/docs/netsuite-document-storage).

## Hide default SignNow custom actions

When you install SignNow for NetSuite, four custom buttons are added to NetSuite records automatically: **SignNow Invite Status**, **Send Attachment**, **Send for Signature**, and **Send SignNow Template**. To hide these buttons, turn off the deployments of their scripts.

Go to **Customization > Scripting > Script Deployments**.

![NetSuite Customization menu with Scripting > Script Deployments selected](/reference-assets/images/SignNow_Netsuite/hide_buttons_script_deployments_menu.png)

Expand **Filters** and type `SignNow` in the **Script** field. The four button scripts are:

- **SignNow Button - Invites Status**
- **SignNow Button - Send Attachment**
- **SignNow Button - Send for Signature**
- **SignNow Button - Send SignNow template**

Select a script and click **Edit** next to its deployment.

![Script Deployments list filtered by SignNow, with the SignNow Button scripts in the Script dropdown and Edit highlighted](/reference-assets/images/SignNow_Netsuite/hide_buttons_filter_by_script.png)

On the **Script Deployment** page, clear the **Deployed** checkbox and click **Save**.

![Script Deployment page for a SignNow button script with the Deployed checkbox highlighted](/reference-assets/images/SignNow_Netsuite/hide_buttons_uncheck_deployed.png)

Repeat these steps for each deployment of the four scripts. A script can have several deployments, one for each record type set in **Applies To**. To hide a button on specific records only, clear **Deployed** on the deployments for those records.

To show a button again, select **Show Undeployed** in the **Script Deployments** list, open the deployment, and select **Deployed**.


---

## Send HTML templates with text tags

# Send HTML/PDF templates with text tags

NetSuite admins can insert tags for text, signature, initials, date, checkbox, and other fields into HTML and PDF templates used for document generation. When a recipient opens the document with text tags, the tags are automatically converted to fillable fields.

For example, let's add text tags for different fields to the Custom Sales Order PDF/HTML template and send the generated sales order for signature using SignNow.

## Select the custom form (optional)

First, choose a custom form for the sales order.

Go to **Transactions > Sales > Enter Sales Orders > Lists**.

![NetSuite Transactions menu with Sales, Enter Sales Orders and List](/reference-assets/images/SignNow_Netsuite/text_tags/sales_order_select.png)

Select the sales order from the list and click **Edit.**

On the Sales Order page, choose the form template from the dropdown list under the **CUSTOM FORM** field. 

This form will be used as a template for generating the sales order.

![Sales order with the Custom Form dropdown open](/reference-assets/images/SignNow_Netsuite/text_tags/select_custom_form.png)

Click **Save** to save changes.

## Set the PDF/HTML template for the sales order

Go to **Customization > Forms > Transaction Forms**. 

Locate the custom form selected in the previous step and click **Edit**.

![NetSuite Customization Forms menu with Transaction Forms and the form list](/reference-assets/images/SignNow_Netsuite/text_tags/forms_list.png)

On the form page, in the **PRINT TEMPLATE** dropdown menu, select the PDF/HTML template that will be used to generate a sales order. 

![Custom Transaction Form with the Print Template dropdown open](/reference-assets/images/SignNow_Netsuite/text_tags/print_pdf_template.png)

Click **Save** to save your changes.

## Customize the PDF/HTML template

Go to **Customization > Forms > Advanced PDF/HTML Templates.**

Select the PDF/HTML template you need to customize. In our example, **Custom Sales Order PDF/HTML template**.

![NetSuite Customization Forms menu with Advanced PDF/HTML Templates and the template list](/reference-assets/images/SignNow_Netsuite/text_tags/custom_pdf_list.png)

> Check the box in the **PREFERRED** column to use this PDF/HTML template to generate all sales orders.

Now, we will add text tags to the sales order. 

> The text tag for each field should be in double curly brackets. We have assigned all fields to `Recipient 1`. You can change the assignee role per your template settings.

**Signature field**:  `{{t:s;r:y;o:"Recipient 1";}}`

**Date field:**  `{{t:t;r:y;o:"Recipient 1";l:"Date";}}`

**Text field:**    `{{t:t;r:y;o:"Recipient 1";l:"Name";}}`

**Initials field:** `{{t:i;r:y;o:"Recipient 1";l:"Initials";}}`

**Checkbox:** `{{t:c;r:y;o:"Recipient 1";l:"Checkbox";}}`

Learn more about [text tags](/docs/text-tags).

That is how text tags look in the HTML layout.

![Custom Sales Order PDF/HTML template source code with the SignNow text tags highlighted](/reference-assets/images/SignNow_Netsuite/text_tags/tags_html.png)

## Set up the custom action for sending a sales order

Now, let’s configure the custom action to generate and send the sales order based on the configured HTML template using SignNow.

Go to **Setup > SignNow Admin Tools > Custom actions**.

Configure the custom action **Send Sales Order** as described in [Custom actions](/docs/netsuite-custom-actions). 

1. In **1. Select what should be sent for signature**, select **NetSuite HTML template: a PDF generated from a NetSuite record**. To send the sales order together with record attachments or SignNow templates, select those document sources too.
2. (Optional) Add the pre-configured SignNow document flow.
3. Add the custom action in NetSuite. For our example, we will add the action to the Sales Order record.

After configuring the custom action, go to the Sales Order record (or the record where the custom action has been added) and initiate the action. 

**Watch how the sales order is generated from an HTML template with text tags.**

![Animation of generating a sales order from an HTML template with text tags and sending it for signature](/reference-assets/images/SignNow_Netsuite/text_tags/text_tags_sending.gif)


---

## NetSuite glossary

# SignNow for NetSuite glossary

Key terms used in SignNow for NetSuite, from signature invites and fillable fields to recipients and senders.

**Signature invite:** A single document or group of documents with or without fillable fields sent for signature to one or multiple recipients. 

**Fillable fields**: Editable boxes in the document where recipients can add signatures and data.

**Recipient**: A user who receives the document to fill out, view, or approve.

**Sender**: A user who prepares and sends the document for signature.

**Role**: An action assigned to the recipient by the sender. Available roles include signer, viewer, and approver.

- Signer – fills out and signs the document.
- Viewer – can only view the document.
- Approver - reviews and approves the document to be sent to the next recipients.

**Document group template** (also called templates in this guide): A group of documents you configure once and reuse with the same settings as often as needed. Each time you send a document group template for signature, a new document group template copy is created.

**Template:** A document with or without fillable fields you can send for signature multiple times. Each time you send a template for signature, a new document copy is created.

**Document flow:** A preconfigured process for sending documents for signature. Setting up a document flow includes defining the sender’s experience, customizing the email subject and body, and managing recipients. When a document flow is added to a custom action, NetSuite users can send documents from the selected record with a single click.

**Custom button**. A button added to a NetSuite record that executes a specific JavaScript function predefined by the admin. A custom button can send a PDF generated from the record, files attached to the record, and SignNow templates, alone or combined in one document group, or open a PDF generated from the record or attached files for self-signing. See [Custom actions](/docs/netsuite-custom-actions).


---

## NetSuite troubleshooting

# Troubleshoot SignNow for NetSuite

This section covers common issues you may encounter when installing, configuring, and using the SignNow integration for NetSuite, and provides steps to resolve them.

## Authorization

For setup instructions, see [Installation](/docs/netsuite-installation).

| Issue | Solution |
|---|---|
| The **Send for Signature** button doesn't load | The SignNow user account connected to the integration may have been deleted or deactivated. Go to **Setup > Integrations > SignNow Admin Tools** and reconnect the integration with an active SignNow account. |
| The integration suddenly stops working | The connected SignNow account may no longer be active. Go to **Setup > Integrations > SignNow Admin Tools**, verify that the connected account is active, and reconnect if needed. |

---

## Permissions

For setup instructions, see [Installation](/docs/netsuite-installation#assign-permissions-to-roles).

| Issue | Solution |
|---|---|
| A user can't see the **Send for Signature** button | The required permissions haven't been assigned to the user's role. Go to **Setup > Users/Roles > Manage Roles**, select the role, and click **Edit**. On the **Permissions** tab, under the **Setup** subtab, add **Log in using OAuth 2.0 Access Tokens** (full level) and **REST Web Services** (full level). Click **Save**. |
| A user with a custom role can't open **SignNow Admin Tools** | The role is missing the access that SignNow Admin Tools requires. Add **Set Up Company** to the role at the **Full** level, add the role to the **Audience** of the **SignNow - Admin Tools** script deployment, log in to NetSuite with that role, and reconnect your SignNow account. For details, see [Grant access to SignNow Admin Tools](/docs/netsuite-installation#grant-access-to-signnow-admin-tools). |

---

## Record attachments

For setup instructions, see [Installation](/docs/netsuite-installation#configure-the-attachment-folder).

| Issue | Solution |
|---|---|
| Signed documents don't appear on the NetSuite record after signing | The **Attachment Folder ID** in SignNow Settings may point to a folder that doesn't exist or that the integration role can't access. Go to **Documents > Files > File Cabinet** and create a new folder outside of **Attachments Received**. Hover over the folder name — the internal ID appears in the link shown at the bottom left of your browser window. Then go to **Customization > Lists, Records, & Fields > Record Types**, find **SignNow - Settings**, and click **List**. Click **Edit** next to the record, enter the internal folder ID in the **Attachment Folder ID** field, and click **Save**. Re-send the document for signature. |
| Error `INVALID_KEY_OR_REF: Invalid folder reference key -10.` in the **SignNow Files API** script log | The integration can't save signed documents to the default **Attachments Received** folder (internal ID `-10`). Create a dedicated folder and enter its internal ID in the **Attachment Folder ID** field of **SignNow - Settings**, as described in [Configure the attachment folder](/docs/netsuite-installation#configure-the-attachment-folder). Then re-send the document for signature. |


---

## HubSpot

# Getting started with SignNow for HubSpot

The SignNow application for HubSpot provides CRM cards that allow users to send documents for signature, [generate documents pre-filled with HubSpot data](/docs/hubspot-document-generation), set up templates and data mapping, and track invite status directly from HubSpot records.

Follow this guide to install, configure, and use the SignNow application in your HubSpot account.

**Requirements**:

- HubSpot account.
- Admin access to your HubSpot organization.
- A SignNow account on the US server with an active [Site License subscription plan](https://snseats.signnow.com/purchase/business_plans/pricing).
- An additional paid SignNow add-on for HubSpot, purchased on top of the Site License subscription.

Sign up for a [free trial](https://snseats.signnow.com/purchase/business_free_trial/loggedout).


---

## HubSpot release notes

# SignNow for HubSpot release notes

Review the latest improvements to the SignNow for HubSpot integration.

<details open>

**<summary>October 2026</summary>**

✅ Updated the custom action steps in [Admin tools](/docs/hubspot-admin-tools#create-a-custom-action) and [Document generation](/docs/hubspot-document-generation#create-a-custom-action-to-generate-and-send) to match the option names in the current builder.

</details>
<br>

<details>

**<summary>September 2026</summary>**

✅ Published the [Track signature status on the activity feed](/docs/hubspot-activity-feed-sync) use case, which adds sent, signed, declined, and completed statuses to the record timeline as Notes, with no middleware.

✅ Published the [Send documents from a HubSpot workflow](/docs/hubspot-workflow-send) use case, where a workflow action creates a document from a SignNow document group template and sends the signing invite.

</details>
<br>

<details>

**<summary>August 2026</summary>**

✅ Published the [Document generation](/docs/hubspot-document-generation) guide, covering how to prepare a .docx template with data, line-item, and fillable-field tags, upload it in Admin Tools, and create a custom action that generates and sends a document pre-filled with HubSpot record data in one click.

</details>
<br>

<details>

**<summary>July 2026</summary>**

✅ Updated the [Document storage](/docs/hubspot-admin-tools) settings so completed document copies are saved to the default workspace Team folder instead of an auto-created integration folder, with refreshed storage options and Team folders steps.

</details>
<br>

<details>

**<summary>March 2026</summary>**

✅ Updated the HubSpot integration user guide to include [Custom Actions](/docs/hubspot-admin-tools#custom-actions) - reusable buttons for the most common signature workflows, and a new [installation flow](/docs/hubspot-installation).

</details>
<br>



---

## HubSpot installation

# Install SignNow for HubSpot

Install SignNow from the HubSpot Marketplace, explore its features and app cards, and manage or uninstall the app.

## Install the SignNow app

To install the SignNow application, go to the HubSpot Marketplace.

Enter SignNow in the search bar.

Open the application page and click **Install**.

![SignNow app page in the HubSpot App Marketplace with the Install button](/reference-assets/images/SignNow_Hubspot/installation_1.png)

Sign in to your SignNow account.

![Connect SignNow step of the HubSpot installation with the Sign In button](/reference-assets/images/SignNow_Hubspot/installation_2.png)

Grant the SignNow for HubSpot application access to your account.

![Screen asking to grant SignNow for HubSpot access to the SignNow account](/reference-assets/images/SignNow_Hubspot/installation_3.png)

Check the box to confirm you agree to use the third-party application and click **Connect app**.

![Connect HubSpot step with the third-party app consent checkbox and the Connect app button](/reference-assets/images/SignNow_Hubspot/installation_4.png)

Now the SignNow application is installed for your HubSpot organization.

You can explore its features or customize the app cards.

![SignNow installed confirmation with the Explore app features and Customize app cards buttons](/reference-assets/images/SignNow_Hubspot/installation_complete.png)

### Explore app features

Discover what you can do with your SignNow integration.

Go through the blocks and click **Learn more** to read the details about each action.

![SignNow app Product discovery tab in HubSpot with the feature blocks](/reference-assets/images/SignNow_Hubspot/installation_features.png)

### Customize the app cards

Explore the available app cards.

Click **Manage Locations** to add this card to specific locations and the views where the card should appear for Contacts, Companies, and Deals.

![SignNow App cards tab in HubSpot with the Manage locations button and the record page settings](/reference-assets/images/SignNow_Hubspot/installation_cards.png)

## Manage the SignNow app

You can disconnect or uninstall the SignNow application from your HubSpot account at any time.

### Disconnect the app

Disconnecting logs your SignNow account out of the application in HubSpot. The app stays installed and its cards remain in place, but you cannot send documents or check statuses until you sign in to SignNow again.

You can log out from the Track Documents window or the Admin Tools window. The **Log out** option is in a different place in each.

**From Track Documents:**

- On the SignNow card, click **Check Statuses**.
- In the SignNow window, click the account icon in the top-right corner, then select **Log out**.

![SignNow Invite Status window in HubSpot with the account menu and the Log out option](/reference-assets/images/SignNow_Hubspot/sn_hubspot_disconnect_track.png)

**From Admin Tools:**

- On the SignNow card, click **Go to Admin Tools**.
- In the bottom-left corner, click the **... (more)** icon next to your account, then select **Log out**.

![SignNow Admin Tools window in HubSpot with the account menu and the Log out option](/reference-assets/images/SignNow_Hubspot/sn_hubspot_disconnect_admin.png)

### Uninstall the app

Uninstalling removes the SignNow application, its cards, and its custom actions from your HubSpot account.

First, open **Connected Apps** in HubSpot, using either method:

- Click the **settings** icon in the top navigation bar, then go to **Integrations > Connected Apps**.
- Click the **Marketplace** icon in the top navigation bar, then select **Connected Apps**.

![HubSpot Marketplace menu with Connected Apps](/reference-assets/images/SignNow_Hubspot/sn_hubspot_connected_apps_menu.png)

Then:

- Locate SignNow, click the **Actions** dropdown, and select **Uninstall**.
- In the **Uninstall SignNow?** dialog, type `uninstall` in the field to confirm, then click **Uninstall**.
- Optionally, select a reason for uninstalling.

![HubSpot Connected Apps page with the SignNow Actions menu and the Uninstall option](/reference-assets/images/SignNow_Hubspot/installation_actions.png)

![Uninstall SignNow dialog in HubSpot with uninstall typed to confirm](/reference-assets/images/SignNow_Hubspot/sn_hubspot_uninstall_dialog.png)

### What happens to user data

Disconnecting and uninstalling affect your HubSpot account and data differently:

- **Disconnecting** (logging out) keeps the application installed. Signed documents already saved to your HubSpot records are not affected.
- **Uninstalling** removes the SignNow cards and custom actions from HubSpot. Signed documents already saved to your HubSpot record attachments remain available.

---

## Team folders in SignNow

Documents and templates from SignNow for HubSpot are stored in your default workspace Team: templates in the Templates folder and document copies in the Documents folder. HubSpot users with permission to access the SignNow application can work with these shared folders.

> [!NOTE]
> If your account already has a dedicated **HubSpot integration** folder under Private Teams from an earlier installation, it is still supported.

The configuration of SignNow for HubSpot is set.


---

## HubSpot admin tools

# Admin tools in SignNow for HubSpot

On the SignNow card of a HubSpot record, click **Go to Admin Tools** to customize SignNow settings and experience for your organization's users.

![SignNow card on a HubSpot record with a custom action button, Send Attachment, Send Template, Track Documents, and Admin Tools](/reference-assets/images/SignNow_Hubspot/sn_hubspot_card.png)

Select **Templates** to configure templates and document group templates (add fields, set up data binding, and manage recipients).

Select **Document Generation** to upload .docx templates with merge tags and generate documents pre-filled with HubSpot record data.

Select **Document Flows** to create a reusable configuration that defines invite settings, recipients, email content, and the HubSpot fields to update once the document is signed. 

Select **Custom Actions** to create reusable buttons in HubSpot for your most common signature requests.

Select **Document Storage** to define where completed documents will be saved.

## Templates

Admins can access existing templates and document group templates from the SignNow account.

Use available options to:

- Filter entities by type (All Types, Templates, Document Group Templates)
- Sort by ascending or descending order, name, or date updated

You can also copy the template ID and view existing roles.

To rename a template, click **More (…)** next to it and select **Rename**.

![Templates list in Admin Tools with the More menu open and the Rename option](/reference-assets/images/SignNow_Hubspot/sn_hubspot_templates_rename.png)

Each template shows its location beneath its name, displayed as team or workspace name > folder name.

### Create a template

Click **Create New Template** and select the documents you want to add to the document group template. You can select multiple documents at a time.


> [!NOTE]
> SignNow supports .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx, .ps, and .eps file types. 

<!-- theme: success -->
> [!TIP]
> You can upload .docx files containing text tags. When a recipient opens the document, the tags are automatically converted into fillable fields.

Once the new template or document group template is created, it will appear in **Templates**.

When you create a new template, it is saved to the Templates folder in your default workspace Team.

If the default workspace can't be identified:

- when you belong to a single workspace, it is saved to that workspace's Templates folder.
- when you belong to several workspaces and can't set a default (you are not an admin), it is saved to the Templates folder of the first workspace you can access.

### Add fillable fields

Improve the signing experience by customizing documents in the SignNow editor.

Click **Add Fillable Fields** to open the template or document group template in the editor. 

If the template doesn’t have fillable fields, the **Add recipient roles** dialog opens first.

- Name each role and select the action the recipient performs:
  - **Signer**: Fills out and signs the document
  - **Approver**: Reviews and approves the document
- Optionally, enter a **Pre-assigned recipient**: a default email used for this role every time the template is sent. Leave it empty to enter the email when sending. The sender can change the email before sending unless a document flow hides the **Add Recipients** step. If a document flow has a recipient with the same role name, the document flow's email replaces it.
- Click **Add Role** to add another role, or **Add CC Recipients** to send copies.
- Click **Save** to continue to the editor.

![Add recipient roles dialog with two roles and pre-assigned recipients](/reference-assets/images/SignNow_Hubspot/sn_hubspot_manage_recipients_roles_modal_v2.png)

You can add default and custom fields to documents, assign them to recipients, and manage recipients.

Select the field in the document and use the panel on the right to configure its settings.

![SignNow editor with a signature field selected and its settings panel on the right](/reference-assets/images/SignNow_Hubspot/sn_hubspot_add_fields_upd.png)

> [!TIP]
> Click the bulb icon in the top-right corner to open **Help with using the editing tools**.

Use **SETTINGS** to access and adjust additional editing options.

Click **Open Preview** to see how the document will appear to each recipient.

### Fill out a document

Use the tools on the top panel to add a text, checkmark, line, date, or pre-filled text field.

Or select **Me (Fill Out Now)** in the left panel and place your own fields, such as **My Signature**, **My Initials**, **Today's Date**, or **Check**.

![SignNow editor with Me (Fill Out Now) selected and its fields in the left panel](/reference-assets/images/SignNow_Hubspot/sn_hubspot_fillout_now_upd.png)

Once the configuration is over, click **DONE**.

### Pre-fill fillable fields

Admins can configure data mapping between HubSpot record fields and document fields. 

Click **Pre-fill Fillable Fields** next to the template or document group template to start mapping fields in documents with HubSpot records.

- Select the HubSpot object to use for pre-filling.

![Pre-fill Fillable Fields with the HubSpot object list open and deals selected](/reference-assets/images/SignNow_Hubspot/sn_hubspot_select_object_upd.png)

- Click **Add Document**, select the documents from the group with fields to use for pre-filling, and click **Apply**.

![Pre-fill Fillable Fields with a document added under Data Mapping](/reference-assets/images/SignNow_Hubspot/sn_hubspot_select_documents_upd.png)

- Click **Select Fields** to open the document's fillable fields available for mapping. Check the fields you want to pre-fill. Click **Apply**.

![Select Fields list with two document fields checked and the Apply button](/reference-assets/images/SignNow_Hubspot/sn_hubspot_select_fields_upd.png)

- Configure data mapping. 

  - Click the dropdown arrow near the HubSpot object to select an associated object. You can configure mapping with parent relations.
  - In the **Select HubSpot Field** column, choose the field to populate the document field.
  - In the **Field Editing** column, select **Allow Editing** (default) to let recipients change the pre-filled value, or **Lock Editing** to keep it read-only.
  - Click the trash bin icon to delete field mapping.

![Field Editing dropdown with Lock Editing and Allow Editing](/reference-assets/images/SignNow_Hubspot/sn_hubspot_field_editing.png)

Each mapping row has an arrow between the document field and the HubSpot object. Click it to choose what the mapping does:

- **Pre-fill the document field from HubSpot**: the default.

![Mapping row set to pre-fill the document field from HubSpot, with the arrow tooltip](/reference-assets/images/SignNow_Hubspot/sn_hubspot_prefill_upd.png)

- **Pre-fill the document field from HubSpot and update the HubSpot field**: the value the recipient enters is written back to the record once the document is signed.

![Mapping row set to pre-fill the document field and update the HubSpot field, with the arrow tooltip](/reference-assets/images/SignNow_Hubspot/sn_hubspot_prefill_update_upd.png)

To change several rows at once, select them and use **Merge Settings**, **Field Editing**, or **Remove Fields** on the toolbar.

![Two mapping rows selected with the Merge Settings, Field Editing, and Remove Fields toolbar](/reference-assets/images/SignNow_Hubspot/sn_hubspot_bulk_mapping_toolbar.png)

Click **Save** to save the field mapping.

## Document generation

Document generation creates a document from a .docx template pre-filled with HubSpot record data. Upload your tagged templates here, then pair a template with a custom action to generate and send it for signature in one click.

For the full setup (preparing the template tags, uploading the template, and creating the custom action), see [Document generation](/docs/hubspot-document-generation).

## Document flows

A document flow is a reusable configuration that defines invite settings, recipients, and email content for a document or document group, and what to update in HubSpot once the document is signed. Once created, it can be applied when sending documents for signature, ensuring consistent settings across all invites.

To rename or delete a document flow, click **More (…)** next to it and select **Rename** or **Remove**.

![Document Flows list in Admin Tools with the More menu open and the Rename and Remove options](/reference-assets/images/SignNow_Hubspot/sn_hubspot_document_flows_rename.png)

### Create a document flow

Click **Create Document Flow**.

#### Add a document flow information

- Enter a name for the document flow and an optional document name.
- Define what settings the sender can configure when sending the document for signature.

![Details step of the document flow wizard with the flow name, document name, and sender options](/reference-assets/images/SignNow_Hubspot/document_flow_1_upd.png)

- Click **Next to Customization** to proceed.

**Customize the invite email subject and body**

- Pre-fill the subject and body with HubSpot data using record values.
    - Click **Add record values**.
    - Select a **HubSpot object**, then select a **HubSpot field**.
    - Select the same object the document flow is sent from, so the record values resolve against the record.
    - Copy the generated record value and insert it into the subject or message.


![Message step with Add record values open, deals and dealname selected, and the record value in the body](/reference-assets/images/SignNow_Hubspot/document_flow_2_record_values_wide.png)


#### Configure recipients

> [!IMPORTANT]
> This configuration will override settings stored in the selected template.<br>To use the original recipients from the template, leave this section blank, and proceed to the next step.

- To add a sender as a recipient, check the **Sender’s email** box.
- Use the toggle to define how recipients will sign the document: in order or at the same time.
- To pre-fill a recipient's email from HubSpot records, click **Add record values** and copy the record value into the recipient's email field.
- Click the **gear icon** to configure password protection, expiration days, reminders, and forwarding for the invite.
- Click **Add Recipient** to add additional signers.

> [!NOTE]
> Name each role exactly as it's named in the template. If a role name doesn't match, the recipient is added as a new role without fields, and the template's role keeps its own recipient.

![Recipients step with Add record values open, deals and an email field selected, and the generated record value](/reference-assets/images/SignNow_Hubspot/document_flow_3_record_values_wide.png)

Click **Next to Actions on Completion** to proceed.

#### Set actions on completion

Update the HubSpot record automatically once the document is signed, for example, move a deal to **Closed Won** as soon as every recipient has signed it. This step is optional.

Click **+ Add action**, then:

- In **Object**, select the HubSpot object the document is sent from, for example `deals`. Objects are listed by their internal names.
- In **HubSpot field**, select the property to update, then enter the value in **New value**.
- To update one more property on the same record, click **+ Add field**. A document flow has one action, and the action updates up to two properties.

The **What will happen** box summarizes the update. SignNow applies it to the record the document was sent from when every recipient has signed.

![Actions on completion step setting Deal Stage and Closed Won Reason on a deal, with the What will happen summary](/reference-assets/images/SignNow_Hubspot/hs_document_flow_actions_on_completion_modal_v2.png)

Enter **New value** as text. If the HubSpot property has a fixed list of options, such as **Deal Stage** or **Deal Type**, enter the option's internal name, not its label: for example `closedwon`, not **Closed Won**. To find it:

- In HubSpot, click the gear icon (**Settings**) and go to **Data Management** > **Properties**.
- Select the object, for example **Deal properties**, and search for the property. The list shows each property's field type, for example **Radio select** or **Dropdown select**.
- Open the property and click **Field type**. The options table lists each option's **Label** and **Internal name**.

![Deal Stage property's Field type tab with the Label and Internal name of each pipeline stage](/reference-assets/images/SignNow_Hubspot/sn_hubspot_property_internal_names.png)

For properties without options, such as text, number, or date fields, enter the value as it should appear in HubSpot.

If HubSpot rejects the value, the document still completes and the invite shows a **HubSpot sync failed** badge in [Track Documents](/docs/hubspot-track-documents#hubspot-sync-failed).

To send documents with the flow, add it to a [custom action](#custom-actions) for the same object.

Click **Save** to save the document flow configuration.

The document flow now appears in the list of flows, where you can edit or delete it. To use it, apply the flow when sending a document for signature.

Each flow has an ID, shown in the **ID** column. Click the ID to copy it — you might need it when building signing automation with HubSpot workflows.

---

## Custom actions

Custom actions are reusable buttons in HubSpot for your most common signature requests. For example, you can create a **Send Agreement** button and add it to Contacts. Each time a user needs to send an agreement to a customer, they click the button directly from the Contacts record.

A single custom action can combine SignNow templates with files attached to the record and send them for signature in one document group, so recipients review and sign everything in one SignNow invite instead of several separate requests. A custom action can also let users sign files attached to the record themselves with **Self Sign**.

### Create a custom action

- Click **Create Custom Action**.
- Enter a name for the custom action and an optional description. Users see the name on the button.
- Under **Select Document Source**, select **Templates**, **File**, or both. When **Templates** is selected, choose who picks the templates.

| Option | Description |
| --- | --- |
| **Templates: selected by the sender** | The user selects one or more SignNow templates after clicking the button. |
| **Templates: pre-selected by the Admin** | The button uses the templates you choose. Select one or more templates from the list and click **Apply**. |
| **File: from the list of files attached to a HubSpot record** | The user selects files attached to the record they are sending from. |

The template list includes document generation templates, which build the document from HubSpot record data. See [Document generation](/docs/hubspot-document-generation).

![Custom action builder with Templates: selected by the sender and File selected, Send for signature, and a document flow](/reference-assets/images/SignNow_Hubspot/custom_action_builder_templates_and_file.png)

![Templates: pre-selected by the Admin with two templates selected in the Select Template list and the Apply button](/reference-assets/images/SignNow_Hubspot/custom_action_2_upd.png)

- Under **Delivery and Invite Settings**, choose how the document is completed:
  - **Send for signature**: the user prepares the document and sends a signature invite to recipients. This is the default option.
  - **Self Sign: sign the document without sending**: the user fills out and signs the document themselves, without recipients.

| What is sent | Send for signature | Self Sign |
| --- | --- | --- |
| **Templates** (selected by the sender or pre-selected by the Admin) | Yes | No |
| **File** | Yes | Yes |
| **Templates** and **File** | Yes | No |

- Optionally, under **Add the SignNow Document Flow**, add a [document flow](/docs/hubspot-admin-tools#document-flows) to send the document with pre-configured invite settings. A document flow applies only to **Send for signature**, so this section is hidden when **Self Sign** is selected.
- Under **Add SignNow custom action to HubSpot object**, select the HubSpot **Object** where the custom action button will be added.

> [!IMPORTANT]
> Make sure that selected object matches the object selected in the template and document flow.

If the document flow updates the record on completion and you select a different object, an alert names the flow's object, for example: *The document flow is set to deals. Choose the same one to update the record.* Select the same object so that SignNow can update the record.

![Custom action builder with File and Self Sign selected and the Contacts object](/reference-assets/images/SignNow_Hubspot/custom_action_builder_self_sign.png)

Click **Save Custom Action**.

The custom action appears in the list of custom actions. The **Action Type** column shows what each action sends, for example **Template**, **Self Sign**, or **Templates and Files**, and the **Object** column shows where the button appears. To change or remove an action, click **Edit** or the **...** menu.

![Custom Actions list with the Action Type column showing Templates and Files, Self Sign, and Template](/reference-assets/images/SignNow_Hubspot/custom_actions_list.png)

> [!NOTE]
> The custom action is only available on the HubSpot object it was created for. For example, a custom action created for Contacts won't appear on Deals or Companies.

Use the **All HubSpot Objects** and **All Time** filters to quickly locate a specific custom action.

### Run a custom action

To use the custom action, navigate to the HubSpot object where the custom action button was added. You can access it from the **Overview** tab on the HubSpot SignNow card, or from the right-hand sidebar of the record.

![HubSpot contact record with the SignNow card and the custom action buttons](/reference-assets/images/SignNow_Hubspot/custom_action_3.png)

Click the button. What opens next depends on the sources in the custom action:

- **Templates**: the user selects the templates to send. If the admin pre-selected templates, only those templates are offered.
- **File**: the **Select File** window opens, as in [Send Attachment](/docs/hubspot-invite-to-sign).
- **Templates** and **File**: see [Combine templates and files](#combine-templates-and-files).
- **Self Sign**: see [Self Sign a document](#self-sign-a-document).

The steps after that depend on the document flow added to the custom action.

### Combine templates and files

Combine your standard SignNow templates with documents that are specific to each record in one custom action. For example, send your contract template together with the quote or proposal attached to the Deal. The user prepares everything in one go, and recipients receive all documents in a single invite. Once all recipients sign, the completed documents are saved to the record.

When both **Templates** and **File** are selected:

- The user clicks the custom action button, selects files attached to the record on the **Select File** page, and clicks **Proceed**.
- On the **Select Templates** page, the user selects the templates to add. If the admin pre-selected templates, only those templates are listed.
- In **Merge order**, the user can set the order of the documents and clicks **Proceed**.

SignNow combines the selected files and templates into one document group. The next steps depend on the document flow added to the custom action.

### Self Sign a document

After a user clicks a custom action configured for Self Sign:

- On the **Select File** page, select one or more files attached to the record, set their order in **Merge order** if needed, and click **Proceed**.
- The document opens in the SignNow editor. Add your signature, initials, text, date, and other fields from the left panel, then click **Done**.

![SignNow editor in a Self Sign custom action with a signature, printed name, and date added](/reference-assets/images/SignNow_Hubspot/custom_action_self_sign_editor.png)

If you click **Done** before adding your signature, the **Signature Missing** page opens. Click **Back to Editor** to return to the document and add your signature, or click **Download Document** to save the document as it is.

![Signature Missing page with Back to Editor and Download Document](/reference-assets/images/sharepoint_new/sharepoint_selfsign_signature_missing.png)

- On the **Document Complete Successfully** page, click **Download Document** to save a copy.

![Document Complete Successfully page with the Download Document button](/reference-assets/images/SignNow_Hubspot/custom_action_self_sign_complete.png)

The signed document is saved to the record's **Attachments**. If you export documents with their history in [Document Storage](#document-storage), a copy with the document history is saved too.

![HubSpot Attachments with the signed document and the document with history](/reference-assets/images/SignNow_Hubspot/custom_action_self_sign_attachments.png)

## Document storage

By default, documents signed by all recipients are saved to the same HubSpot record from which they were sent. A copy of the document is also saved to the Documents folder in the sender's default workspace Team.

In **Document Storage**, define where signed documents are saved once all recipients have signed. Set the following options:
- Choose whether to save completed documents in HubSpot. Enabled by default.
- Choose whether to keep document copies in SignNow. Enabled by default.
- Choose whether to export documents with their history.
- Choose whether to save each signed document as a separate file.

![Document Storage settings: save completed documents in HubSpot, keep copies in SignNow, export with history, and save as separate files](/reference-assets/images/SignNow_Hubspot/sn_hubspot_document_storage_modal.png)

### Store document copies in SignNow

When **Keep document copies in SignNow** is enabled, choose where copies are stored in your SignNow workspace:

- **Save in default workspace Team folder** — (default) Document copies are saved to the Team's Documents folder in your default workspace.
- **Select destination folder** — choose a different SignNow workspace team folder. Only team folders are available; private folders are not listed. The picker lists Team folders from all your workspaces, not only your active one, each labeled as workspace name > folder name.

![Select destination folder dialog with the list of team folders](/reference-assets/images/SignNow_Hubspot/sn_hubspot_select_destination_folder_upd.png)

> [!NOTE]
> Everyone in your workspace with access to the selected team folder can access the stored documents.

When **Save in default workspace Team folder** is selected, each copy is saved based on how the document was created:

- **From a file**: to the Documents folder in your default workspace Team.<br>If the default workspace can't be identified:
    - when you belong to a single workspace, it is saved to that workspace's Documents folder.
    - when you belong to several workspaces and can't set a default, it is saved to your personal Documents folder.
- **From a template**: to the Documents folder in the same team or space as the template. Each location keeps a Templates and a Documents folder side by side, so the document lands in the Documents folder next to the template:
    - personal Templates → Documents
    - Private Teams > HubSpot integration > Templates → Documents (the old integration folder is still supported)
    - Workspace > Team > Templates → Documents

### Disconnect HubSpot

The **Disconnect HubSpot** section at the bottom of **Document Storage** removes the integration between SignNow and HubSpot and uninstalls the SignNow app from your HubSpot account.

> [!WARNING]
> Disconnecting removes the app for every user of the HubSpot account, not only for you. Existing documents and data in HubSpot stay as they are.

To disconnect, click **Disconnect Account**.

![Document Storage page with the Disconnect HubSpot section and the Disconnect Account button](/reference-assets/images/SignNow_Hubspot/sn_hubspot_disconnect_hubspot.png)

To sign out of your SignNow account without removing the app for others, log out instead. See [Disconnect the app](/docs/hubspot-installation#disconnect-the-app).


---

## Document generation in HubSpot

# Document generation in SignNow for HubSpot

Document generation in HubSpot allows users to generate documents pre-filled with data from a HubSpot record using a .docx template with tags. With a document flow and a custom action, a user generates the document and sends it for signature in one click, straight from a Contact, Deal, or Company.

The tag types described in this article (data tags, system tags, and fillable-field tags) follow the general SignNow document generation syntax. For the full reference, see the [SignNow document generation guide](/docs/document-generations).

## Before you start

- Make sure you have admin access to **SignNow Admin Tools**.
- Prepare a .docx file to use as the template.
- Decide which HubSpot object you will send from (Contact, Deal, or Company). The object you send from determines which data the tags can pull, so choose it before you add tags.

## How it works

- Prepare a .docx template with tags.
- Upload the template in **Admin Tools** > **Document Generation**.
- Optionally, create a document flow to define recipients and invite settings.
- Create a custom action that generates the template and sends it for signature.
- On the record, a user clicks the custom action button to generate and send the document in one click.

## Prepare the template

Add tags to your .docx file. When the document is generated, each tag is replaced with the matching value from the HubSpot record, or turned into a fillable field for a recipient to complete.

A tag is text wrapped in double braces, for example `{{dealname}}`.

> [!NOTE]
> Tag names (the text inside the braces) can contain only letters, numbers, dots, and underscores. A name cannot include spaces, cannot start with a number or a dot, and cannot end with a dot. HubSpot API internal names already follow these rules, so you can use them as they are (see [Find a field's API name](/docs/hubspot-document-generation#find-a-fields-api-name)).

### Data tags: pre-fill from HubSpot

Data tags pull values from the HubSpot object you send from and its related objects.

#### Own fields of the object you send from

Write the field name on its own, with no object prefix. For example, when the document is generated from a Deal:

```
{{dealname}}
{{amount}}
{{closedate}}
```
---

#### Fields from a related object

Reach a related object's field with dot notation, using the object name followed by the field name. For example, from a Deal you can pull the associated company and contact:

```
{{Companies.name}}
{{Companies.city}}
{{Companies.zip}}
{{Contacts.firstname}}
{{Contacts.email}}
```

**Example of data tags**

<!--
focus: center
bg: none
-->

![Document generation template with tags for fields from the related Companies object](/reference-assets/images/SignNow_Hubspot/hubspot_docgen/hubspot_docgen_related_fields.png)

---

#### Line items

Line items belong to the Deal, so the itemized table resolves only when the document is generated from a Deal. Build the table with a `table` tag: put the opening `{{table(line_items)}}` tag, the row of item fields, and the closing `{{endtable}}` tag on separate table rows. The item fields are written flat inside the table:

```
{{table(line_items)}}
{{name}}   {{quantity}}   {{price}}   {{amount}}   {{recurringbillingfrequency}}
{{endtable}}
```

At generation time, SignNow repeats the middle row (the one with the field tags, between `{{table(line_items)}}` and `{{endtable}}`) once for each line item on the Deal. So a Deal with four line items produces four rows in the table.

Learn more about [table tags](/docs/document-generations#generate-a-dynamic-table).

**Example of line items tags**


<!--
focus: center
bg: none
-->
![Document generation template with a line items table and pricing tags](/reference-assets/images/SignNow_Hubspot/hubspot_docgen/hubspot_docgen_line_items.png)


### Find a field's API name

> [!NOTE]
> Field names are HubSpot API internal names. They are lowercase and case-sensitive, so copy them exactly.


To copy the exact internal name of any HubSpot field:

- Open the HubSpot **gear icon** (Settings).
- Go to **Data Management** > **Properties**.

![HubSpot Settings with Data Management and Properties selected](/reference-assets/images/SignNow_Hubspot/hubspot_docgen/hubspot_docgen_data_management.png)

- Select the object (for example, Deals or Companies).
- Search for the property you want.
- Open the property and copy its **Internal name**.

![HubSpot property details with the internal name](/reference-assets/images/SignNow_Hubspot/hubspot_docgen/hubspot_docgen_internal_field_name.png)

Use that internal name inside the tag.

> [!TIP]
> Line items do not appear in the Properties object dropdown. To find a line item field's internal name, add `{{toJson($sysConstants)}}` to the template and generate it once from a Deal, then read the field keys inside the `line_items` array. Common defaults are `name`, `price`, `quantity`, `amount`, `recurringbillingfrequency`, and `hs_sku`.

### System tags: dates and formatting

- `{{$today}}` inserts the current date (MM-DD-YYYY).
- `{{$sumabove}}` adds up the numeric column above it, which is useful for a total row under the line-items table.
- `{{numFormat(amount, ‘$#,###.00’)}}` formats a number as currency.

> [!IMPORTANT]
> `numFormat` requires Word-style curly quotes around the format string (`‘$#,###.00’`). Straight quotes will not work and the value will not be formatted. Type the tag in Word so it applies smart quotes automatically, or paste the curly quotes in.

### Fillable-field tags: fields recipients complete

Fillable-field tags create empty fields for recipients to fill in the generated document. They do not pull HubSpot data. Use straight quotes here.

- Signature: `{{t:s;r:y;o:"Role";}}`
- Text or date: `{{t:t;r:y;o:"Role";l:"Label";}}`
- Checkbox: `{{t:c;r:n;o:"Role";}}`

`r:y` marks the field required, `r:n` optional. The value in `o:"Role"` maps to a recipient role in the document flow.

> [!NOTE]
> Fillable-field tags accept both single-brace (`{...}`) and double-brace (`{{...}}`) syntax. All other tags must use double braces.

Learn more about [fillable field tags](/docs/document-generations#fillable-field-tags).

> [!TIP]
> Place each fillable-field tag on its own line, in a single uniform format, and type it in one pass.

**Example of fillable field tags**

![Document generation template with fillable field tags for the Acme and Client signatories](/reference-assets/images/SignNow_Hubspot/hubspot_docgen/hubspot_docgen_fillable_fields.png)

### Check your tags before you publish

To confirm the exact field and relation names available for your object, add `{{toJson($sysConstants)}}` anywhere in the template and generate the document once. It prints the full payload with every available key and value, so you can copy names verbatim. Remove this tag before you use the template for real, since it dumps raw data into the document.

## Upload the template

- In HubSpot, open **Go to Admin Tools** and select **Document Generation**.
- Click **Upload .docx Template**.
- Select your tagged .docx file.

![Document Generation page in SignNow Admin Tools with the uploaded template and its actions menu](/reference-assets/images/SignNow_Hubspot/hubspot_docgen/hubspot_docgen_upload_ready.png)

The template appears in the list with its Name, ID, Last Modified date, and Status.

> [!NOTE]
> The **Status** column reflects the tag check. **Ready** means the tag syntax passed validation and the template can be sent. **Failed** means there is a problem in the tags to fix before sending.

If the Status is **Failed**, the template has tag errors and cannot be sent, and a **View errors** button appears next to it. Click **View errors** to open **Fix syntax errors in template**, which lists what to correct. Select **Copy error details** to copy the full list, fix the tags in your .docx file, then upload it again.

## Create a document flow (optional)

A document flow defines recipients, signing order, and the invite email for the generated document. Creating one is optional, but it lets you preset recipient roles and a branded invite so the sender does not configure them each time.

To create one, open **Admin Tools** > **Document Flows** and follow the steps in [Document Flows](/docs/hubspot-admin-tools#document-flows).

> [!IMPORTANT]
> When setting up the flow, make sure the recipient roles you define match the roles used in your template's fillable-field tags (the `o:"Role"` value).

## Create a custom action to generate and send

A custom action adds a button to a HubSpot record that generates the template and sends it for signature in one click. Create it in **Admin Tools** > **Custom Actions** using the general steps in [Custom Actions](/docs/hubspot-admin-tools#custom-actions).

For a document generation action, set it up as follows:

- Under **Select Document Source**, select **Templates**, then **Templates: pre-selected by the Admin**, and select your document generation template.

![Templates: pre-selected by the Admin with a document generation template marked DOCX selected](/reference-assets/images/SignNow_Hubspot/hubspot_docgen/hubspot_docgen_custom_template_upd.png)

- Optionally, also select **File: from the list of files attached to a HubSpot record** to send the generated document together with files attached to the record. When the user clicks the button, they select the record files, and SignNow combines them with the generated document in one document group. See [Combine templates and files](/docs/hubspot-admin-tools#combine-templates-and-files).

![Custom action with a pre-selected DOCX template and File selected](/reference-assets/images/SignNow_Hubspot/hubspot_docgen/hubspot_docgen_custom_template_and_file.png)

- Optionally, add the document flow you created above.
- For **Object**, select the HubSpot object where the button appears and the document is sent from. The template can use this object's own fields and fields from objects related to it, such as the associated company or its line items.

![Custom action with the Deals document flow and the deals object](/reference-assets/images/SignNow_Hubspot/hubspot_docgen/hubspot_docgen_custom_object_upd.png)

> [!IMPORTANT]
> Make sure the selected object matches the object used in the template and the document flow.

> [!NOTE]
> Because line items belong to the Deal, a template with a line-items table must use Deals.

## Generate and send from a record

Open the HubSpot record for the object the action was created on (for example, a Deal). On the SignNow card, click your custom action button (for example, **Generate and send agreement**).

SignNow generates the document from the template and pre-fills it with the record's data.

The document is delivered for signature according to your document flow.

To follow the document after it is sent, see [Track Documents](/docs/hubspot-track-documents).


---

## Send attachment

# Send attachment

On the SignNow card, click **Send Attachment** to send files attached to the HubSpot record for signature.

> [!NOTE]
> The supported file types are PDF, DOCX, PNG, JPG, JPEG, GIF, BMP, DOC, ODT, RTF, XML, XLS, XLSX, PPT, and PPTX.

The **Send Attachments** window lists the files attached to the record.

- Select which files you want to send for signature. You can send multiple files as a document group.
- Drag files in **Merge order** on the right to change the order of documents in the group.
- Click **Proceed**.

> [!TIP]
> To list only supported files, select **Only Supported Files** in the file type filter.

![Send Attachments window with two files selected and the Merge order panel](/reference-assets/images/SignNow_Hubspot/sn_hubspot_send_attachment_upd.png)

You can edit the document group name at the next step - this is the name recipients will see in their inbox.

![Document Name step in the Send Attachments window](/reference-assets/images/SignNow_Hubspot/send_attachment_new_upd.png)

To change the document group name, click the pen icon.

Click **Continue** to proceed to the editor.

![SignNow editor in the Send Attachments window with recipients, fillable fields, and the Continue button](/reference-assets/images/SignNow_Hubspot/sn_hubspot_send_attachment_editor_continue.png)

- Manage recipients and CC recipients.
- Add fields and assign them to recipients.
- Add your information using the tools on the top panel or **Me (Fill Out Now).**
- Click **Continue** to proceed to field mapping.

![Map Fields step with a document field mapped to a HubSpot contact field](/reference-assets/images/SignNow_Hubspot/sn_hubspot_send_attachment_mapping_upd.png)

Map fields in the documents with HubSpot records as described in [Pre-fill fillable fields](/docs/hubspot-admin-tools#pre-fill-fillable-fields).

Click **Continue** to open the Send Invite page.

![Send Invite page with recipient email, invite subject, and message](/reference-assets/images/SignNow_Hubspot/sn_hubspot_send_attachment_invite_all_upd.png)

- Edit the recipient and CC recipients’ email addresses and the signing order.
- Customize the invite email subject and message for each recipient.
- If you need to return to document editing, click **Edit**.
- Click the gear icon to show the settings.

![Authentication and Settings panel for a recipient on the Send Invite page](/reference-assets/images/SignNow_Hubspot/sn_hubspot_send_attachment_settings_upd.png)

Here you can select a recipient authentication type, set reminders, allow document forwarding, and enable or disable the decline option for the signature field.

- Click **Actions on Completion** to customize the completion flow for recipients.

Select the way of delivering the signed document to recipients, add a redirect link where recipients will be transferred when the document is signed, and set up the payment request if needed. These settings apply to this invite only. To update HubSpot record fields when a document is signed, use [actions on completion in a document flow](/docs/hubspot-admin-tools#set-actions-on-completion).

![Actions On Completion panel on the Send Invite page](/reference-assets/images/SignNow_Hubspot/sn_hubspot_send_attachment_completion_upd.png)

- Click **Apply** to save the changes.
- Click **Send Invite** (**Send Invite to First Recipient** if recipients receive documents in order ) to send the document group.

That's it. Now you can track the invite status using the **Track Documents** card.

> [!NOTE]
> Depending on your [Document Storage](/docs/hubspot-admin-tools#document-storage) settings, signed documents are saved in the HubSpot record attachments, and copies are kept in your SignNow account.


---

## Send template

# Send template

On the SignNow card, click **Send Template** to send pre-configured templates or document group templates for signature.

![Send SignNow Template window with two templates selected and the Merge order panel](/reference-assets/images/SignNow_Hubspot/sn_hubspot_send_template_upd.png)

- Filter templates by type: all, templates, or document group templates
- Sort templates by name in ascending or descending order
- Switch the view layout between list and grid

Select one or more templates. If you select several, set their order in **Merge order** and click **Proceed**. The selected templates are combined into one document group.

> [!NOTE]
> Templates need fillable fields to be sent for signature.

When a document group template or template has been selected, go on with the sending flow.

> [!NOTE]
> The document group template/template is pre-configured, but you can make changes at each step.

- Change the name of the template if needed.
- Add and assign fillable fields and manage the recipients in the editor.
- Check and edit the data mapping between the document fields and HubSpot records.
- Edit recipients and CC recipients email addresses, invite email subject and message, signing order, authentication and completion settings, and reminders.

If no changes are needed, click **Continue** at every step to send the document group template according to the configuration.

> [!TIP]
> To generate a document from a .docx template pre-filled with HubSpot data and send it in one click, see [Document generation](/docs/hubspot-document-generation).


---

## Track documents in HubSpot

# Track documents in SignNow for HubSpot

Click **Check Statuses** to check the status of invites sent from the HubSpot record.

You will see all the documents sent from this record and their signing status.

- Filter document by status, date, or sender.
- Sort documents by ascending/descending order, name, creation date, or most recent activity.

![Track Document Statuses list with signed, waiting, and expired documents](/reference-assets/images/SignNow_Hubspot/sn_hubspot_track_status_all_upd.png)

## View status

Click **View Status** to view the detailed signing progress of the document.

![View Status page with two signing steps, both completed](/reference-assets/images/SignNow_Hubspot/sn_hubspot_detailed_status_upd.png)

On the detailed status page, you can track each step, view recipient email addresses, and see the date the document was signed.

> [!NOTE]
> **View Status** is available once a document is sent. Documents with **Draft** status don't have it.

## HubSpot sync failed

If the document flow updates the HubSpot record on completion and HubSpot rejects the new value, the document still completes and the document shows a **HubSpot sync failed** badge. Hover over the badge to see the error HubSpot returned, for example *Record not updated: InvalidFieldValue*.

![Signed document with the HubSpot sync failed badge and the tooltip Record not updated: InvalidFieldValue](/reference-assets/images/SignNow_Hubspot/hubspot_sync_failed.png)

To fix it, correct the value in the [document flow](/docs/hubspot-admin-tools#set-actions-on-completion), then update the record manually for documents that are already completed.

## Open document

Click **Open Document** to open the document in the editor.

- If the document has been signed or is waiting for others, it opens in view mode.
- If the document is waiting for your signature, it opens in signing session mode.
- If the document has not been sent for signature, it opens in editing mode.

## Download document

Click **Download** to save the document as a PDF.

## More actions

To download the document with a detailed history, cancel the invite, delete the document, or take other actions, click the **More actions menu (…)** and select the needed option from the dropdown.

You will be redirected to your SignNow account where you can complete the required action.

![SignNow Documents page with the More actions menu open for a document](/reference-assets/images/SignNow_Hubspot/sn_hubspot_more%20actions.png)


---

## HubSpot glossary

# SignNow for HubSpot glossary

Key terms used in SignNow for HubSpot, from signature invites and fillable fields to recipients and senders.

**Signature invite:** single document or group of documents with or without fillable fields sent for signature to one or multiple recipients. 

**Fillable fields**: editable boxes in the document where recipients can add signatures and data.

**Fill Out Now**: content that a sender can add to the document, such as text, date, signature, initials, and more.

**Recipient**: a user who receives the document to fill out, view, or approve.

**Sender**: a user who prepares and sends the document for signature.

**Role**: an action assigned to the recipient by the sender. Available roles include signer, viewer, and approver.

- Signer – fills out and signs the document.
- Viewer – can only view the document.
- Approver - reviews and approves the document to be sent to the next recipients.

**Document group template** (also called templates or documents in this guide): a group of documents you configure once and reuse with the same settings as often as needed. Each time you send a document group template for signature, a new document group template copy is created.

**Template:** a document with or without fillable fields you can send for signature multiple times. Each time you send a template for signature, a new document copy is created.

**Document Flow:** a reusable configuration that defines invite settings, recipients, and email content for a document or document group.

**Custom Action:** a configurable, reusable button in HubSpot for your most common signature requests. A custom action sends SignNow templates, files attached to the record, or both in one document group, either for signature or, for files, with Self Sign.

**Self Sign:** a delivery option for a custom action. The HubSpot user fills out and signs files attached to the record themselves, without sending a signature invite. The signed document is saved to the record.

**Document generation:** the process of creating a document from a .docx template that contains tags, where each tag is replaced with data from a HubSpot record. The generated document can then be sent for signature.

**Tag:** a placeholder in a document generation template that is replaced with a value from a HubSpot record when the document is generated. Written in double braces (for example, `{{dealname}}`); single braces (`{dealname}`) are also supported.


---

## HubSpot use cases

# SignNow for HubSpot use cases

Step-by-step configurations that extend the HubSpot integration beyond its built-in cards.

Each use case is a complete setup for a specific business need, combining the SignNow application for HubSpot with HubSpot workflows and the SignNow API. Follow one end to end, or take the parts that apply to your process.

## Available use cases

- [Track signature status on the activity feed](/docs/hubspot-activity-feed-sync) — log every signing event as a note on the record timeline, so your team can follow progress without leaving the record.
- [Send documents from a HubSpot workflow](/docs/hubspot-workflow-send) — create a document group from a template and send the signing invite automatically when a record meets your criteria.


---

## Track signature status on the activity feed

# Track signature status on the HubSpot activity feed

Log every SignNow signing event as a note on a Deal, Contact or Company timeline using webhooks.

## Use case overview

The SignNow integration for HubSpot writes to a record's activity feed when a document is fully signed and attached back to the record. This use case adds the steps in between — sent, signed, declined, signer complete — so a sales team can follow signing progress without leaving the record.

It works by subscribing to SignNow document group events and routing them into a HubSpot workflow, which writes a note to the record. No middleware is involved: SignNow posts directly to HubSpot.

Every document sent from a HubSpot record passes through the integration's `/prepare` endpoint, which writes the originating record's type and ID onto the SignNow document group as `context_table` and `context_id`. The webhook payload carries those values back, and the workflow uses `context_id` to find the record. Nothing needs tagging by hand.

```mermaid
flowchart TD
    A[HubSpot user sends a document for signature] --> B[SignNow document group created<br/>context_id = HubSpot Record ID]
    B --> C[SignNow event fires<br/>sent / signed / declined / signer complete / complete]
    C --> D[HubSpot workflow<br/>Received a webhook from an external app]
    D --> E[Custom Code action<br/>calls the HubSpot Notes API]
    E --> F[Note appears on the record's activity feed]
```

## Prerequisites

- HubSpot Data Hub Professional or Enterprise, for the webhook trigger and the Custom Code action.
- Permission to create private apps and workflows in the HubSpot account.
- A SignNow account with API access and permission to create event subscriptions.
- The SignNow account connected inside HubSpot must be the same account you create the event subscription under. The subscription is scoped to a SignNow user ID, so events fire for that user's document groups. Check the connected account in the SignNow card on a record before you begin.

## Configuration guide

### Step 1. Get a SignNow API access token

Retrieve the Basic authorization token from the SignNow API dashboard: **Apps and Keys** → select your application → **OAuth 2.0** tab.

![OAuth 2.0 tab of an application in the SignNow API dashboard with the Basic Authorization Token](/reference-assets/images/SignNow_Hubspot/activity_feed_sync/b1-01-basic-authorization-token.png)

Request an access token with [`POST /oauth2/token`](/docs/oauth2/operations/post-oauth2-token):

```bash
curl --request POST \
  --url https://api.signnow.com/oauth2/token \
  --header 'Authorization: Basic {{basic_authorization_token}}' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'username={{account_email}}' \
  --data-urlencode 'password={{account_password}}' \
  --data-urlencode 'grant_type=password' \
  --data-urlencode 'scope=*'
```

The response contains `access_token`, `refresh_token` and `expires_in` (30 days by default). Use the access token as a Bearer token in the following steps, and the refresh token to renew it without re-sending credentials.

### Step 2. Find your SignNow user ID

The event subscription is created at user level, so it needs the SignNow user's ID. Call [`GET /user`](/docs/user/operations/get-user-info):

```bash
curl --request GET \
  --url https://api.signnow.com/user \
  --header 'Authorization: Bearer {{access_token}}'
```

Take `id` from the response — a 40-character hex string.

### Step 3. Create a HubSpot private app

The HubSpot Notes API needs an authenticated token. A private app token does not expire.

1. In HubSpot, go to **Development → Legacy Apps** and click **Create legacy app**.

![HubSpot Legacy Apps page with the Create legacy app button](/reference-assets/images/SignNow_Hubspot/activity_feed_sync/a1-01-legacy-apps-create-app.png)

2. Choose **Private** ("For one account").
3. Tick the acknowledgement checkbox and click **Continue with legacy private app**.
4. Name the app something identifiable, for example `SignNow Activity Sync`. This name appears on every note the integration creates.
5. On the **Scopes** tab, add the read and write scopes for the object this workflow will track. For a Deal-based workflow, add `crm.objects.deals.read` and `crm.objects.deals.write`. For Contacts use `crm.objects.contacts.read` and `crm.objects.contacts.write`; for Companies, `crm.objects.companies.read` and `crm.objects.companies.write`.

![Add new scope dialog in HubSpot with the deals read and write scopes selected](/reference-assets/images/SignNow_Hubspot/activity_feed_sync/a1-02-scopes-deals-read-write.png)

6. Click **Create**, confirm, then copy the access token. Store it in a password manager — it goes into a workflow secret in Step 7, never into the code.

### Step 4. Create the webhook event and copy its URL

1. Go to **Automation → Workflows**, click **Create workflow** and choose **From scratch**.

![HubSpot Workflows page with the Create workflow menu and From scratch](/reference-assets/images/SignNow_Hubspot/activity_feed_sync/a2-01-create-workflow-from-scratch.png)

2. Search the trigger list for `webhook` and select **Received a webhook from an external app**.

![HubSpot workflow trigger search with Received a webhook from an external app](/reference-assets/images/SignNow_Hubspot/activity_feed_sync/a2-02-trigger-received-webhook.png)

3. Click **Add a webhook**.

![Choose a webhook trigger step with the Add a webhook button](/reference-assets/images/SignNow_Hubspot/activity_feed_sync/a2-03-add-a-webhook.png)

4. Name the webhook event, for example `signnow-document-group-events`.
5. On the **Connect** step, HubSpot generates an inbound webhook URL. Click **Copy** and keep the wizard open — the next step needs this URL.

![Send a test event step with the webhook URL and the Copy button](/reference-assets/images/SignNow_Hubspot/activity_feed_sync/a2-04-connect-copy-webhook-url.png)

### Step 5. Subscribe to SignNow events

Create a subscription with [`POST /v2/event-subscriptions`](/docs/manage-event-subscriptions/operations/create-event-subscription-2), using the webhook URL from Step 4 as the callback:

```bash
curl --request POST \
  --url https://api.signnow.com/v2/event-subscriptions \
  --header 'Authorization: Bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "event": "user.document_group.invite.sent",
    "entity_id": "{{signnow_user_id}}",
    "attributes": {
      "callback": "{{hubspot_webhook_url}}",
      "include_metadata": true,
      "use_tls_12": true,
      "retry_count": 3,
      "delay": 0
    }
  }'
```

`include_metadata: true` is what carries `context_id` in the payload. Without it the workflow has no value to match on.

Repeat the request for each event you want on the activity feed. These five make up a signature progress trail:

- `user.document_group.invite.sent` — envelope sent
- `user.document_group.invite.signed` — one document in the group was signed
- `user.document_group.invite.signer.complete` — a signer finished everything asked of them
- `user.document_group.invite.declined` — a signer declined
- `user.document_group.complete` — the whole group is finished

Each request returns its own subscription `id`. The [Webhooks guide](/docs/guides-webhooks#entity-events) lists every available event.

### Step 6. Send a test envelope and map the payload

Send a document for signature from a HubSpot record, the normal way. SignNow delivers the event to the webhook URL and HubSpot captures it, advancing the wizard to **Map**.

On the **Map** step, every field from the payload is pre-populated. Give each a readable label and a data type. Keep at minimum:

| Payload field | Suggested label | Data type |
| --- | --- | --- |
| `meta.event` | SignNow event | Text |
| `meta.timestamp` | SignNow timestamp | Number |
| `meta.metadata.context_id` | SignNow context ID | Number |
| `content.group_id` | SignNow group ID | Text |

![Edit webhook event panel listing the SignNow payload properties and their data types, with one metadata field set to number](/reference-assets/images/SignNow_Hubspot/activity_feed_sync/a2-05-map-context-id-number.png)

> [!WARNING]
> Delete the `access_token` field if it appears in the mapped list. It is a live SignNow credential and should not be stored as a HubSpot property.

On the **Match** step, set **Associated object** to the object type this workflow tracks, then match the third-party property `meta.metadata.context_id` against HubSpot's **Record ID**.

Click **Continue to trigger setup**, select your webhook event as the enrollment trigger, then step through to **Settings** and turn **Re-enroll** on. Re-enrollment is what lets a record receive a note for every event rather than only the first.

### Step 7. Add the Custom Code action

1. On the workflow canvas, add an action → **Data ops** → **Custom code**, and choose **Node.js**.
2. Under **Secrets**, add a secret named `HUBSPOT_PRIVATE_APP_TOKEN` with the token from Step 3.
3. Under **Property to include in code**, define these input fields:

- `recordId` → Record ID
- `signnowEvent` → `meta.event`
- `groupId` → `content.group_id`
- `signnowTimestamp` → `meta.timestamp`
- `signerEmail` → the signer field carried by the events you subscribed to, if any

The names must match the code exactly; a mismatch produces an undefined value rather than an error.

![HubSpot Custom code action with Node.js 20.x, the HUBSPOT_PRIVATE_APP_TOKEN secret and the recordId, signnowEvent, groupId and signnowTimestamp properties](/reference-assets/images/SignNow_Hubspot/activity_feed_sync/a3-01-custom-code-secret-and-inputs.png)

4. Replace the sample code in the editor with the snippet below. Set `ASSOCIATION_TYPE_ID` to match the object type this workflow runs on: `214` for Deals, `202` for Contacts, `190` for Companies.

```javascript
const hubspot = require('@hubspot/api-client');

const ASSOCIATION_TYPE_ID = 214;

const EVENT_LABELS = {
  'user.document_group.invite.sent':             'Envelope sent to %SIGNER%',
  'user.document_group.invite.signed':           'Signed by %SIGNER%',
  'user.document_group.invite.declined':         'Declined by %SIGNER%',
  'user.document_group.invite.signer.complete':  'Signer %SIGNER% completed their part',
  'user.document_group.complete':                'Envelope completed - all parties signed',
};

exports.main = async (event, callback) => {
  const {
    recordId,
    signnowEvent,
    groupId,
    signerEmail,
    signnowTimestamp,
  } = event.inputFields;

  const template = EVENT_LABELS[signnowEvent] || ('SignNow status update: ' + signnowEvent);
  const line = template.replace('%SIGNER%', signerEmail || 'the signer');
  const noteBody = 'SignNow: ' + line + (groupId ? ' (group ' + groupId + ')' : '');

  const hsTimestamp = signnowTimestamp
    ? new Date(Number(signnowTimestamp) * 1000).toISOString()
    : new Date().toISOString();

  const hubspotClient = new hubspot.Client({ accessToken: process.env.HUBSPOT_PRIVATE_APP_TOKEN });

  try {
    await hubspotClient.crm.objects.notes.basicApi.create({
      properties: {
        hs_timestamp: hsTimestamp,
        hs_note_body: noteBody,
      },
      associations: [
        {
          to: { id: recordId },
          types: [{ associationCategory: 'HUBSPOT_DEFINED', associationTypeId: ASSOCIATION_TYPE_ID }],
        },
      ],
    });
    callback({ outputFields: { noteCreated: true } });
  } catch (err) {
    throw err;
  }
};
```

![HubSpot Custom code editor with the HubSpot Client v11 code that maps SignNow document group events to note text](/reference-assets/images/SignNow_Hubspot/activity_feed_sync/a3-02-code-editor-client-v11.png)

5. Click **Save**.

To run the code against a real record, open the Custom code action and scroll to its own **Test action** section, choose a record, supply test values, and click **Test**. The **Test** button at the top of the workflow builder previews the path a record would take without executing the code.

![HubSpot Custom code Test action section with a deal search and test values for signnowEvent, groupId and signnowTimestamp](/reference-assets/images/SignNow_Hubspot/activity_feed_sync/a3-03-test-action-panel.png)

The snippet re-throws on failure. HubSpot retries a Custom Code action that throws, with backoff, for up to a few days — which covers transient issues such as a momentary rate limit.

### Step 8. Turn on the workflow and verify

1. Name the workflow and click **Review and turn on**. A workflow that is off enrols nothing.
2. Send a test envelope from a record of the object type your workflow tracks.
3. Refresh the record after a few seconds. A note appears reading "SignNow: Envelope sent to the signer (group …)".
4. Sign the document. Three further events fire in sequence — `invite.signed`, `invite.signer.complete` and `document_group.complete` — producing three more notes.

> [!NOTE]
> Test with a real send rather than the **Enroll** button. Enrolling a record manually runs the action without a webhook payload behind it, so the inputs arrive empty.

## Result

The record's activity feed carries a note for each stage of the signing process, timestamped and attributed to the private app you created.

![HubSpot deal activity feed with SignNow notes for each signing stage](/reference-assets/images/SignNow_Hubspot/activity_feed_sync/c-01-record-timeline-notes.png)

Notes written by this workflow are attributed to the private app's name, so they are distinguishable from the ones the SignNow integration writes itself.

## Troubleshooting

**No notes appear at all.** Check, in order: the workflow is switched on; the SignNow account connected in HubSpot is the same user the subscription was created under; `include_metadata: true` was set on the subscription; and the callback URL is complete — copy it with the **Copy** button rather than reading it from the truncated input.

**The workflow never enrols the record.** Inspect a delivered payload and confirm `meta.metadata.context_id` holds the record's Record ID. Then confirm the mapped property's data type is Number — Record ID is numeric, and a Text mapping cannot be matched against it.

**The workflow runs but no note appears.** Check the Custom Code action's execution log. The usual causes are a missing object scope on the private app token, or an `ASSOCIATION_TYPE_ID` that does not match the object type.

**Notes say "the signer" instead of a name.** The signer field is named differently across events, and some events carry none. Map the field that the events you subscribed to actually carry — see [Get callback info by ID](/docs/callbacks-info/operations/get-v2-dashboard-event-subscriptions-subscription-id-callbacks) for per-event payloads.

To inspect what a subscription has been sending, call [`GET /v2/event-subscriptions/{subscription_id}/callbacks`](/docs/callbacks-info/operations/get-v2-dashboard-event-history) for its delivery history, including the response each callback received. A failed delivery can be replayed with [`POST /v2/event-subscriptions/{subscription_id}/callbacks/{callback_id}/resend`](/docs/callbacks-info/operations/post-v2-event-subscriptions-subscription-id-callbacks-callback-id-resend).

In HubSpot, the workflow's **Performance history** menu splits the diagnosis: **Enrollment history** shows whether the record enrolled, and **Action logs** show whether the action ran and what it returned.

![HubSpot workflow Performance history menu with Enrollment history, Troubleshoot enrollment, Action logs and Troubleshoot actions](/reference-assets/images/SignNow_Hubspot/activity_feed_sync/c-02-performance-history-menu.png)

## Reference

### Example webhook payload

A document group event delivered with `include_metadata: true`:

```json
{
  "meta": {
    "event": "user.document_group.invite.sent",
    "timestamp": 1789998905,
    "environment": "https://api.signnow.com",
    "callback_url": "https://api.hubapi.com/automation/v4/webhook-triggers/XXXXXXXX/XXXXXXXX",
    "initiator_id": "5ded6c74fd6314074203d4b87ea594db72f0bf02",
    "metadata": {
      "context_id": "XXXXXXXXXXXX",
      "context_table": "XXXXXXXXXX",
      "dtg_origin_id": "5791996d889de36de94c69b3cba7cb5ef09844af",
      "origin_entity_type": "dgt"
    }
  },
  "content": {
    "status": "pending",
    "group_id": "4731ca75957c9bcd4d140776c9f0d625e080804e",
    "step_order": 1,
    "group_invite_id": "030623532891f7b365061097f9716e175c913c56"
  }
}
```

The `meta` object is consistent across events. The `content` object varies: different events carry different fields, and the signer is named differently depending on the event. HubSpot builds its webhook event definition from a single captured payload, so the event you capture in Step 6 determines which fields are available to map for all of them.

`context_table` holds an opaque identifier rather than a readable object type, so match on `context_id` alone.

### Association type IDs

| Note association | `associationTypeId` | Category |
| --- | --- | --- |
| Note → Deal | `214` | `HUBSPOT_DEFINED` |
| Note → Contact | `202` | `HUBSPOT_DEFINED` |
| Note → Company | `190` | `HUBSPOT_DEFINED` |

### Tracking more than one object type

Duplicate the workflow once per object type. Each copy matches `context_id` against the Record ID of its own object, uses that object's read and write scopes on the private app, and sets `ASSOCIATION_TYPE_ID` accordingly.


---

## Send documents from a HubSpot workflow

# Send documents from a HubSpot workflow

Create a SignNow document group from a template and send the signing invite when a HubSpot record meets your criteria.

## Use case overview

The SignNow integration for HubSpot sends documents from a record, one at a time. This use case moves the send into a workflow: enrol a contact, and the documents are created from a SignNow document group template and the invite goes out without anyone opening the record.

It runs as a HubSpot **Custom code** workflow action. The action reads the enrolled record, authenticates to SignNow, creates the document group, and sends the invite.

**No server required.** HubSpot hosts the code itself on Node.js 20.x, so there is nothing to deploy, host, or keep online. The whole use case is a script pasted into a workflow action and four values stored as secrets.

```mermaid
flowchart TD
    A[Record enrolls in the HubSpot workflow] --> B[Custom code action reads the record's email]
    B --> C[SignNow authenticates the integration account]
    C --> D[Document group created from the document group template]
    D --> E[Signing invite sent to the recipients]
    E --> F[Action returns the document group ID and status]
```

> [!IMPORTANT]
> Documents sent this way are created through the SignNow API rather than through the integration. They do not appear in the SignNow card on the record, do not attach back to the record when signed, and do not appear on the activity feed. Track them in SignNow, or add the webhook setup described in [Track signature status on the HubSpot activity feed](/docs/hubspot-activity-feed-sync), matching events on the document group ID this action returns.

## Prerequisites

- HubSpot Data Hub Professional or Enterprise. Custom code actions are available on those tiers.
- Permission to create service keys and workflows in the HubSpot account.
- A SignNow API application, and the credentials of the account that owns it.
- The SignNow app for HubSpot, installed as described in [Installation](/docs/hubspot-installation).
- A document group template with fillable fields, created as described in [Create a template](/docs/hubspot-admin-tools#create-a-template). Sign in to **Admin Tools** as the same account the workflow action authenticates as.

Templates created from HubSpot are stored as document group templates. A group can hold one document or several, and the action sends the whole group either way.

## Configuration guide

### Step 1. Create the SignNow API application

The action authenticates with a SignNow API application and the credentials of the account that owns it.

Retrieve the Basic authorization token from the SignNow API dashboard: **Apps and Keys** > select or create your application > **OAuth 2.0** tab. The token encodes the application's client ID and secret, so storing it means the code needs neither value separately.

![OAuth 2.0 tab of an application in the SignNow API dashboard with the Basic Authorization Token](/reference-assets/images/SignNow_Hubspot/activity_feed_sync/b1-01-basic-authorization-token.png)

Take the account's email and password as well. All three values go into the workflow secrets in [step 5](#step-5-add-the-custom-code-action).

> [!IMPORTANT]
> Use the credentials of the account that **owns the API application**. The password grant works only for the application owner: any other account returns `Access denied` (code `11005001`), even when the same credentials sign in to the SignNow web application.

### Step 2. Create a HubSpot service key

The action reads the enrolled record through the HubSpot API, which needs its own credential.

1. In HubSpot, go to **Development** > **Keys** > **Service Keys** and click **Create service key**.

![HubSpot Service Keys page with the Create service key button](/reference-assets/images/SignNow_Hubspot/workflow_send/a1-01-service-keys-empty-state.png)

2. Name it something that identifies this integration, for example `SignNow workflow send`. The name appears in HubSpot logs, and an account can hold several SignNow-related credentials.
3. Click **Add new scope**, search for `contacts`, and select `crm.objects.contacts.read`. Use `crm.objects.deals.read` instead if the workflow enrolls deals.

![Add new scope dialog in HubSpot with crm.objects.contacts.read selected](/reference-assets/images/SignNow_Hubspot/workflow_send/a1-02-service-key-scope-contacts-read.png)

4. Click **Update**, then **Save**.
5. On the key's page, click **Copy** to take the service key. You paste it into a workflow secret in [step 5](#step-5-add-the-custom-code-action).

![HubSpot service key SignNow workflow send with the key, the crm.objects.contacts.read scope and the Copy option](/reference-assets/images/SignNow_Hubspot/workflow_send/a1-03-service-key-detail.png)

The action only reads a record, so a read scope is enough.

> [!NOTE]
> A legacy private app token works here too, created the same way: name, scope, copy the token. If your account already has one with `crm.objects.contacts.read`, its token goes in the same secret and nothing else changes. HubSpot keeps legacy apps available in sandbox and test accounts, and recommends service keys or project-based apps for production accounts.

### Step 3. Copy the document group template ID

Open a HubSpot record and, on the SignNow card, click **Go to Admin Tools** and select **Templates**. Copy the ID of the document group you want to send from the **Template ID** column. It is a 40-character hexadecimal string.

![Templates page in SignNow Admin Tools filtered to document group templates with their IDs](/reference-assets/images/SignNow_Hubspot/workflow_send/b2-01-document-group-templates-id.png)

### Step 4. Create the workflow

1. Go to **Automation** > **Workflows**, click **Create workflow**, and choose **From scratch**.

![HubSpot Workflows page with the Create workflow menu and From scratch](/reference-assets/images/SignNow_Hubspot/workflow_send/a2-01-create-workflow-from-scratch.png)

2. On **Choose a trigger to start this workflow**, select **Trigger manually** and click **Next**. This lets you enrol one record at a time while you build. Once the send works, come back and replace it with **Met filter criteria** or **On a schedule**.

![Choose a trigger step with the Trigger manually option](/reference-assets/images/SignNow_Hubspot/workflow_send/a2-02-choose-trigger-manually.png)

3. On **Choose a type of record that can enroll**, select **Contact**, or **Deal** to match the object type set in the code. Click **Save and continue**.

![Choose a type of record that can enroll with Contact selected](/reference-assets/images/SignNow_Hubspot/workflow_send/a2-03-choose-record-type-contact.png)

Name the workflow with the pencil icon at the top, whenever suits. One workflow sends one document group template, so naming it for the documents it sends — `SignNow – send Employment Agreement`, for example — keeps them distinguishable later.

### Step 5. Add the custom code action

Saving the trigger opens the **Choose an action** panel, with the categories collapsed. Expand **Data ops**, choose **Custom code**, and select **Node.js 20.x** as the language.

![Choose an action panel with Data ops and Custom code](/reference-assets/images/SignNow_Hubspot/workflow_send/a2-04-data-ops-custom-code.png)

**Secrets.** Click **Add secret** for each of the four values below, then select each one in this action. A secret has to be selected per action, not only created.

| Secret | Value |
| --- | --- |
| `SIGNNOW_SEND_HS_TOKEN` | the HubSpot service key from [step 2](#step-2-create-a-hubspot-service-key) |
| `SIGNNOW_BASIC_TOKEN` | the Basic authorization token from [step 1](#step-1-create-the-signnow-api-application) |
| `SIGNNOW_USERNAME` | the SignNow account's email |
| `SIGNNOW_PASSWORD` | that account's password |

**Property to include in code.** Add one property, `record_id`, mapped to **Record ID**. The name must match the code exactly; a mismatch produces an undefined value rather than an error.

![HubSpot Custom code action with Node.js 20.x, four SignNow secrets and the record_id property mapped to Record ID](/reference-assets/images/SignNow_Hubspot/workflow_send/a3-01-custom-code-secrets-and-input.png)

This panel accepts HubSpot properties, so the document group template ID goes in the code, in [step 6](#step-6-configure-the-code).

**Data outputs.** Add three outputs, all of type String: `signnow_send_status`, `signnow_document_id`, and `signnow_error`.

![HubSpot Custom code data outputs: signnow_send_status, signnow_document_id and signnow_error, all of type String](/reference-assets/images/SignNow_Hubspot/workflow_send/a3-02-data-outputs.png)

Replace the sample code in the editor with the script below, then set the values at the top of it as described in [step 6](#step-6-configure-the-code).

```javascript
// ===========================================================================
// CONFIGURATION
// ===========================================================================

// The HubSpot object the workflow enrolls: 'contacts' or 'deals'.
// Must match the workflow's record type and the scope on the service key.
const HUBSPOT_OBJECT_TYPE = 'contacts';

// The HubSpot property holding the default signer's email.
const DEFAULT_EMAIL_PROPERTY = 'email';

// The document group template this workflow sends. 40-character hex, from
// Admin Tools > Templates, in the Template ID column.
const DOCUMENT_GROUP_TEMPLATE_ID = 'paste-your-document-group-template-id-here';

// Multi-role document groups only: SignNow role name -> HubSpot property
// that signer's email. Leave {} for a single signer.
const ROLE_EMAIL_MAP = {};

// The invite email recipients receive.
const INVITE_SUBJECT = 'Please sign the attached document';
const INVITE_MESSAGE = 'Please review and sign at your earliest convenience.';

// null leaves the SignNow account defaults in place.
const INVITE_EXPIRATION_DAYS = null;   // e.g. 30
const INVITE_REMINDER_DAYS = null;     // e.g. 3

// ===========================================================================

const SIGNNOW_API = 'https://api.signnow.com';
const HUBSPOT_API = 'https://api.hubapi.com';

async function httpJson(url, options, label) {
  let res;
  try {
    res = await fetch(url, options);
  } catch (err) {
    throw new Error(`${label}: network error - ${err.message}`);
  }

  const text = await res.text();
  let body = null;
  if (text) {
    try { body = JSON.parse(text); } catch { body = text; }
  }

  if (!res.ok) {
    let detail = '';
    if (body && Array.isArray(body.errors)) {
      detail = body.errors.map(e => `${e.code ?? ''} ${e.message ?? ''}`.trim()).join('; ');
    } else if (body && body.error) {
      detail = typeof body.error === 'string' ? body.error : JSON.stringify(body.error);
    } else if (body && body.message) {
      detail = body.message;
    } else if (typeof body === 'string') {
      detail = body.slice(0, 300);
    }
    throw new Error(`${label}: HTTP ${res.status}${detail ? ` - ${detail}` : ''}`);
  }

  return body;
}

async function getSignNowToken() {
  const { SIGNNOW_BASIC_TOKEN, SIGNNOW_USERNAME, SIGNNOW_PASSWORD } = process.env;

  for (const [name, value] of Object.entries({
    SIGNNOW_BASIC_TOKEN, SIGNNOW_USERNAME, SIGNNOW_PASSWORD,
  })) {
    if (!value) throw new Error(`Missing secret: ${name}`);
  }

  const form = new URLSearchParams({
    grant_type: 'password',
    username: SIGNNOW_USERNAME,
    password: SIGNNOW_PASSWORD,
    scope: '*',
  });

  const body = await httpJson(`${SIGNNOW_API}/oauth2/token`, {
    method: 'POST',
    headers: {
      Authorization: `Basic ${SIGNNOW_BASIC_TOKEN}`,
      'Content-Type': 'application/x-www-form-urlencoded',
    },
    body: form.toString(),
  }, 'SignNow auth failed');

  if (!body || !body.access_token) {
    throw new Error('SignNow auth failed: no access_token in response');
  }
  return body.access_token;
}

function signNowHeaders(token) {
  return {
    Authorization: `Bearer ${token}`,
    'Content-Type': 'application/json',
  };
}

async function getHubSpotRecord(recordId, properties) {
  const token = process.env.SIGNNOW_SEND_HS_TOKEN;
  if (!token) throw new Error('Missing secret: SIGNNOW_SEND_HS_TOKEN');

  const qs = new URLSearchParams({ properties: properties.join(',') });
  const url = `${HUBSPOT_API}/crm/v3/objects/${HUBSPOT_OBJECT_TYPE}/${recordId}?${qs}`;

  const body = await httpJson(url, {
    method: 'GET',
    headers: { Authorization: `Bearer ${token}` },
  }, 'HubSpot record fetch failed');

  return body.properties || {};
}

function buildRoleResolver(recordProperties) {
  const fallback = recordProperties[DEFAULT_EMAIL_PROPERTY];

  return function resolve(roleName) {
    const property = ROLE_EMAIL_MAP[roleName];
    const email = property ? recordProperties[property] : fallback;

    if (!email) {
      throw new Error(
        property
          ? `Role "${roleName}" maps to HubSpot property "${property}", which is empty on this record`
          : `Record has no "${DEFAULT_EMAIL_PROPERTY}" property and no ROLE_EMAIL_MAP override for role "${roleName}"`
      );
    }
    return email;
  };
}

async function createGroupFromTemplate(token, groupTemplateId, groupName) {
  const body = await httpJson(
    `${SIGNNOW_API}/v2/document-group-templates/${groupTemplateId}/document-group`,
    {
      method: 'POST',
      headers: signNowHeaders(token),
      body: JSON.stringify({
        group_name: groupName,
        client_timestamp: String(Math.floor(Date.now() / 1000)),
      }),
    },
    'Create document group failed'
  );

  // The response nests under `data`, and the group ID is data.unique_id.
  const data = (body && body.data) || body || {};
  if (!data.unique_id) {
    throw new Error('Create document group failed: no group ID returned');
  }

  // Documents in the new group get new IDs. Build the invite from these.
  return {
    groupId: data.unique_id,
    documents: Array.isArray(data.documents) ? data.documents : [],
  };
}

async function sendGroupInvite(token, groupId, documents, resolveEmail) {
  // Each step carries invite_actions (role bound to document) and
  // invite_emails (the mail each recipient receives).
  const stepActions = new Map();
  const stepEmails = new Map();

  for (const doc of documents) {
    if (!doc.id) continue;

    const roles = (doc.roles || []).length ? doc.roles : [''];

    for (const role of roles) {
      const roleName = typeof role === 'string' ? role : (role.name || '');
      const order = typeof role === 'string'
        ? 1
        : (parseInt(role.signing_order, 10) || 1);

      const email = resolveEmail(roleName);

      if (!stepActions.has(order)) stepActions.set(order, []);
      const action = { action: 'sign', document_id: doc.id, email };
      if (roleName) action.role_name = roleName;
      stepActions.get(order).push(action);

      // One email per recipient per step, however many documents they sign.
      if (!stepEmails.has(order)) stepEmails.set(order, new Map());
      if (!stepEmails.get(order).has(email)) {
        const mail = { email, subject: INVITE_SUBJECT, message: INVITE_MESSAGE };
        if (INVITE_EXPIRATION_DAYS) mail.expiration_days = INVITE_EXPIRATION_DAYS;
        if (INVITE_REMINDER_DAYS) mail.reminder = INVITE_REMINDER_DAYS;
        stepEmails.get(order).set(email, mail);
      }
    }
  }

  if (!stepActions.size) {
    throw new Error('Send invite failed: the document group has nothing to sign');
  }

  const invite_steps = [...stepActions.keys()]
    .sort((a, b) => a - b)
    .map(order => ({
      order,
      invite_actions: stepActions.get(order),
      invite_emails: [...stepEmails.get(order).values()],
    }));

  await httpJson(`${SIGNNOW_API}/documentgroup/${groupId}/groupinvite`, {
    method: 'POST',
    headers: signNowHeaders(token),
    body: JSON.stringify({
      invite_steps,
      client_timestamp: Math.floor(Date.now() / 1000),
    }),
  }, 'Send invite failed');

  return groupId;
}

exports.main = async (event, callback) => {
  const outputFields = {
    signnow_send_status: 'ERROR',
    signnow_document_id: '',
    signnow_error: '',
  };

  try {
    const recordId = event.inputFields.record_id;
    if (!recordId) throw new Error('Input field record_id is empty');

    if (!DOCUMENT_GROUP_TEMPLATE_ID ||
        DOCUMENT_GROUP_TEMPLATE_ID === 'paste-your-document-group-template-id-here') {
      throw new Error('Set DOCUMENT_GROUP_TEMPLATE_ID in the configuration block');
    }

    // Document flow IDs are short integers and cannot be used here.
    if (/^\d{1,8}$/.test(String(DOCUMENT_GROUP_TEMPLATE_ID).trim())) {
      throw new Error(
        `DOCUMENT_GROUP_TEMPLATE_ID "${DOCUMENT_GROUP_TEMPLATE_ID}" is a document flow ID. ` +
        'Use the ID from the Template ID column in Admin Tools > Templates.'
      );
    }

    const properties = [...new Set([
      DEFAULT_EMAIL_PROPERTY,
      ...Object.values(ROLE_EMAIL_MAP),
    ])];

    const recordProperties = await getHubSpotRecord(recordId, properties);
    const resolveEmail = buildRoleResolver(recordProperties);
    const token = await getSignNowToken();

    const groupName = `HubSpot ${HUBSPOT_OBJECT_TYPE} ${recordId}`;
    const { groupId, documents } =
      await createGroupFromTemplate(token, DOCUMENT_GROUP_TEMPLATE_ID, groupName);
    const resultId = await sendGroupInvite(token, groupId, documents, resolveEmail);

    outputFields.signnow_send_status = 'SENT';
    outputFields.signnow_document_id = String(resultId);
  } catch (err) {
    outputFields.signnow_error =
      String(err && err.message ? err.message : err).slice(0, 1000);
    console.error('SignNow send failed:', outputFields.signnow_error);
  }

  callback({ outputFields });
};
```

### Step 6. Configure the code

Everything you normally edit is in the configuration block at the top of the script.

- **`HUBSPOT_OBJECT_TYPE`** — `'contacts'` or `'deals'`. It must match the workflow's record type and the scope on the service key.
- **`DOCUMENT_GROUP_TEMPLATE_ID`** — the ID from [step 3](#step-3-copy-the-document-group-template-id).
- **`ROLE_EMAIL_MAP`** — leave as `{}` for a single signer, and every role resolves to the record's email property.
- **`INVITE_SUBJECT`** and **`INVITE_MESSAGE`** — the email recipients receive.
- **`INVITE_EXPIRATION_DAYS`** and **`INVITE_REMINDER_DAYS`** — `null` leaves the SignNow account defaults in place.

For a document group with several signer roles, map each role name to the HubSpot property holding that signer's email:

```javascript
const ROLE_EMAIL_MAP = {
  'Contractor':    'email',
  'Subcontractor': 'hubspot_owner_email',
};
```

Role names must match the document group template exactly, including case. A key that does not match a role falls back to the record's email property, so both signers would receive the same invite.

Each signer's email comes from a property on the enrolled record. Signing order comes from the document group template, and the action passes it through as one invite step per order.

### Step 7. Test

Open the action's **Test action** section, select a record that has an email address you control, and click **Test**. This runs the code without turning the workflow on, and the invite it sends is real.

![HubSpot Custom code test result with Success status, signnow_send_status SENT, a document ID and logs](/reference-assets/images/SignNow_Hubspot/workflow_send/a3-03-test-action-result.png)

`signnow_send_status` reads `SENT` when SignNow accepts the invite, and `signnow_document_id` holds the new document group ID. Check that the invite arrives before treating the test as passed.

### Step 8. Turn the workflow on

Click **Review and turn on**. A workflow that is off enrols nothing, so the action runs only from the **Test action** panel until you do.

With the manual trigger in place, enrol a record from the **Workflows** section of its right-hand sidebar. To send automatically, reopen the trigger and swap **Trigger manually** for **Met filter criteria** or **On a schedule**.

## Result

The documents reach the signers without anyone opening the record. Whatever enrols a record — a deal stage, a form submission, a property change — the send happens as part of the workflow.

## Troubleshooting

**Missing secret: NAME.** The secret exists in the account but is not selected in this action, or the name in the code differs from the name in the panel.

**SignNow auth failed: `Access denied`, code `11005001`.** The account in `SIGNNOW_USERNAME` does not own the API application the Basic token belongs to. Use the application owner's credentials.

**SignNow auth failed: `Invalid credentials`, code `826`.** The email or password is wrong, or the password changed without the secret being updated. An account that signs in through Google, Facebook, or Microsoft needs a password set before the password grant works.

**HubSpot record fetch failed: HTTP 403.** The service key is missing the read scope for the object being enrolled. Check the scope on the key, and that the secret holds the key you granted it on.

**Record has no email property.** The enrolled record has no email address, or a document group with several roles needs a `ROLE_EMAIL_MAP` entry for that role.

**Create document group failed.** Check the ID came from the **Template ID** column on **Admin Tools** > **Templates**, and is 40 characters. A short integer is a document flow ID.

**The invite reached an unexpected address.** The action ran against a different record than intended. The document group name contains the record ID the action received, which identifies which record enrolled.

## API calls this use case makes

| Call | Purpose |
| --- | --- |
| [`POST /oauth2/token`](/docs/oauth2/operations/post-oauth2-token) | Password grant. Returns a token valid for 30 days. |
| [`POST /v2/document-group-templates/{unique_id}/document-group`](/docs/document-group-template/operations/post-v2-document-group-templates-unique-id-document-group) | Creates the document group from the template. |
| [`POST /documentgroup/{document_group_id}/groupinvite`](/docs/doc-group-field-invite/operations/invite-to-sign-document-group) | Sends the signing invite. |

The documents inside a new group get new IDs, so the invite is built from the IDs the create call returns. A group invite carries two arrays per step: `invite_actions`, which binds each role to a document, and `invite_emails`, which controls the mail each recipient receives.


---

## QuickBooks Online

# SignNow extension for QuickBooks Online

Send attachments for signature from QuickBooks Online.

Follow this guide to install, configure, and use the SignNow Chrome extension for QuickBooks Online.

**Requirements**:

- Admin access to your QuickBooks Online account.
- A SignNow account on the US server. Sign up for free [here](https://snseats.signnow.com/purchase/business_free_trial/loggedout).

https://www.youtube.com/watch?v=x12rjwuvpDc



---

## Install the SignNow extension

# Install the SignNow extension 

Add the SignNow extension for QuickBooks Online to Chrome and connect it to your SignNow account.

## Install the extension from Chrome Web Store

Go to the [Chrome Web Store](https://chromewebstore.google.com/) and start typing *signnow* in the **search extensions and themes** bar.

Alternatively, follow the link to the [SignNow extension](https://chromewebstore.google.com/detail/quickbooks-esignature-by/edpacjjjoefikihikgheipgbfimkdpam?utm_source=item-share-cb) in the Chrome Web Store.

When on the extension page, add **Add to Chrome** on the right.

That's it, the SignNow extension for QuickBooks has been added to Chrome.


## Log in to SignNow in QuickBooks Online

> A QuickBooks admin must authorize the extension to make it available to other users in the organization. 

- Sign in to your QuickBooks Online account as an admin.

- Open the [link](https://universal-integration.signnow.com/oauth/authorize?integration=quickbooks&super_admin=1&oauth_flow=external_signnow&redirect_uri=/en/admin/document-storage) and log into your SignNow account.

- In the **Document Storage** settings, select where completed documents will be saved.

- Click **Generate Auth Link** to create a login link. Copy the link and share it with users who will access the SignNow extension. 

![SignNow Settings in QuickBooks Online with Document Storage, the Generate Auth Link button and Disconnect QuickBooks](/reference-assets/images/SignNow_quickbooks/storage_upd_2.png)

When **Keep document copies in SignNow** is enabled, choose where copies are stored in your SignNow workspace:

- **Save in default workspace Team folder** — (default) Document copies are saved to the Team's Documents folder in your default workspace.
- **Select destination folder** — choose a different SignNow workspace team folder. Only team folders are available; private folders are not listed. The picker lists Team folders from all your workspaces, not only your active one, each labeled as workspace name > folder name.

When **Save in default workspace Team folder** is selected, document copies are saved to the Documents folder in your default workspace Team.

If the default workspace can't be identified:

- when you belong to a single workspace, they are saved to that workspace's Documents folder.
- when you belong to several workspaces and can't set a default, they are saved to your personal Documents folder.

<!-- theme: danger -->
> If the admin has not launched the SignNow extension and a user attempts to log in to their SignNow account in QuickBooks Online, they will encounter an error:

![Authorize to Log in to SignNow message shown before the admin launches the extension](/reference-assets/images/SignNow_quickbooks/unauthorized_upd.png)

## Connect your SignNow account

Open a record in QuickBooks Online that has file attachments, for example, **Invoice**.

> The SignNow extension only works with records that contain attachments.

Open the SignNow extension in your browser's toolbar.

Click **Connect to QuickBooks**.

![SignNow Select Integration dialog on a QuickBooks invoice with the Connect to QuickBooks button](/reference-assets/images/SignNow_quickbooks/connect_to_sn_updated.png)

Log in to your SignNow account or register a new SignNow account.

You can log in with your SignNow credentials or use social accounts: Facebook, Google, or Microsoft.

Grant the extension access to your SignNow account. 

Once connected, the extension detects record attachments. You can now send documents for signature.

## Troubleshooting

### Admin has disconnected app

A user may see the error **Admin has disconnected app. Please ask your admin to Connect to QuickBooks again** (**Expired refresh token for external system**) when the integration's connection has expired.

![Admin has disconnected app error with the error details](/reference-assets/images/SignNow_quickbooks/admin_disconnected_error.png)

To resolve it, the admin should relaunch the integration:

- Click the **Integrations** icon in the upper-right corner of QuickBooks Online.
- Select **SignNow**.
- Click **Launch**.

![QuickBooks My integrations panel with the SignNow app](/reference-assets/images/SignNow_quickbooks/qb_launch_signnow.png)


---

## Send an attachment

# Send an attachment for signature

As an example, we will send the invoice generated in QuickBooks Online.

Click **Send Document**.

![SignNow Track Document Statuses panel on a QuickBooks invoice with the Send Document button](/reference-assets/images/SignNow_quickbooks/send_document.png)

## Select an attachment

Select one or more attachments and click **Continue**.

![SignNow Select File page with two invoice attachments selected and their order](/reference-assets/images/SignNow_quickbooks/select_attachments_order.png)

If you select multiple attachments, you can reorder them on the right-hand panel.

Edit the document name if needed.

![Document Name step with the editable document name](/reference-assets/images/SignNow_quickbooks/edit_document_name.png)

Click **Continue** to proceed to the editor.

## Set up recipients and edit the document

Set up the document recipients. Enter the recipient email address and CC recipients.

Click **Add Recipient** to add more document signers.

Click **Save and Continue** to save recipient settings.

![Set Up Recipients dialog with the recipient email and CC recipients](/reference-assets/images/SignNow_quickbooks/edit_recipients.png)

Drag-and-drop fields onto the document.

> If no fields are added, your document will be sent as a free form invite. Recipients can add their signature anywhere on the document.
    
You can customize each field by clicking it and using the options on the right.

![Invoice in the SignNow editor with signature and date fields and the field settings panel](/reference-assets/images/SignNow_quickbooks/add_fields.png)

**Pro tip**: Collect payments with signatures by requesting payments. 

To set up the payment request, click the **More actions** **menu** **(…)** and select **Payment Request** in the dropdown.

![SignNow editor More actions menu with the Payment Request option](/reference-assets/images/SignNow_quickbooks/payment_request_editor.png)

Alternatively, you can set up the payment request on the **Send Invite** page.

Once the document is ready for sending, click **Save and Close**.

## Send the signature invite

On the **Send Invite** page, you can edit the recipient and CC email addresses if you didn't set them up in the previous step.

Click **Customize Message** next to the recipient's email address to change the invite email subject and message.

![Send Invite page with the Customize Message button and the invite email subject and message](/reference-assets/images/SignNow_quickbooks/send_invite_customize_message.png)

Click the gear icon to show the settings.

Here you can select a recipient authentication type, set reminders, allow document forwarding, and enable or disable the decline option for the signature field.

![Authentication and Settings panel with the authentication types and reminder settings](/reference-assets/images/SignNow_quickbooks/send_invite_settings.png)

Click **Actions on Completion** to configure the completion options.

Select the way of delivering the signed document to recipients, add a redirect link where recipients will be transferred when the document is signed, and set up the payment request if needed.

Click **Apply** to save your changes.

![Actions On Completion panel with the redirect link and the Request a Payment option](/reference-assets/images/SignNow_quickbooks/send_invite_completion_actions.png)

Click **Send Invite** to send the document to the recipient.


---

## Track the signing status

# Track the signing status

Open the SignNow extension from the record where you sent the attachment.

You will see all the documents sent from this record and their signing status.

- Filter document by status, date, or sender.
    
- Sort documents by ascending/descending order, name, creation date, or most recent activity. 
    

![SignNow document list on a QuickBooks invoice with signing statuses](/reference-assets/images/SignNow_quickbooks/signing_status.png)

Click **View Status** to view the detailed signing progress of the document.

![View Status panel with the recipient's signing status and date](/reference-assets/images/SignNow_quickbooks/signing_status_detailed.png)

On the detailed status page, you can track each step, view recipient email addresses, and see the date the document was signed.

> The **View Status** is not available for documents with a **Draft** status.


---

## Download the signed document

# Download the signed document

Click **Open Document** to open the document in the editor.

![SignNow document list with the Open Document and Download buttons and the Download menu](/reference-assets/images/SignNow_quickbooks/download_signed_doc.png)

- If the document has been signed or waiting for others, it opens in view mode.
- If the document is waiting for your signature, it opens in signing session mode.
- If the document has not been sent for signature, it opens in editing mode.

Click **Download** to save the document as a PDF.

To download the document with a detailed history, cancel the invite, delete the document, or take other actions, click the **More actions menu (…)** and select the needed option from the dropdown.

You will be redirected to your SignNow account. Click the **More actions menu (…)** again and select the required action.

![SignNow Documents page with the More actions menu and Download With](/reference-assets/images/SignNow_quickbooks/download_doc_with_history.png)

> Signed documents are saved to the record attachments.
    
You can also access all sent documents in your SignNow account.


---

## Power Automate connector

# SignNow connector for Microsoft Power Automate

Start building your automation with the SignNow eSignature connector. Use it to send documents for signature, track signing status, replace recipients, and more – all triggered by the events you choose.

Common scenarios include:

- Create an **embedded signing link** so recipients can sign documents directly within your app.
- Generate an **embedded sending link** to let others prepare and send documents for signature.
- **Update recipients** or signing order in an existing invite.
- **Track document status** and see who has signed or is pending.
- **Pre-fill document fields** to save time for recipients.
- **Send multiple files as a document group** for signing in a single workflow.
- **Download signed documents** automatically after completion.

## **Prerequisites**

1. A Microsoft 365 account with access to Power Automate.
2. A SignNow account on the US server with an active Site License or an API subscription plan (including free trial).
3. Basic knowledge of building flows in the Power Automate app.

## Authentication

The SignNow connector uses **OAuth 2.0** authentication.

When you add the connector to your flow, you’ll be prompted to:

1. Enter your **SignNow account credentials**.
2. Grant Power Automate permission to access your SignNow data.

Once connected, you can reuse the same connection across flows.

## Connect SignNow to Power Automate

Once you are in Power Automate, select **Connections > + New connection** from the left panel. Then search for *signnow* in the search field.

![Power Automate New connection page with the SignNow connector](/reference-assets/images/Power%20Automate/sn_pa_connections.png)

Select the SignNow connector and click **Create**. 

Sign in using your account credentials.

## Create a flow

Let's create a first flow in Power Automate.

Click **Create** in the left panel and select the way you would like to create a flow:
- Start from blank
- Start from a template
- Start from a connector

Under **Start from blank**, you’ll see several options. The three most common ones are:

- **Automated cloud flow** → runs when a specific trigger happens (e.g., “When an item is created in SharePoint”).
- **Instant cloud flow** → runs manually (e.g., you click a button).
- **Scheduled cloud flow** → runs on a schedule.

Let's select **Start from blank** > **Instant cloud flow** to create a custom flow from scratch and run it manually.

Name your flow and choose how to trigger it. Click **Create**.

![Build an instant cloud flow dialog with the flow name and trigger options](/reference-assets/images/Power%20Automate/sn_pa_flow_creation.png)

On the flow page, hover over the plus sign **(+)** and click it to add an action to the flow.

> You must log into your SignNow account to use the action.

Enter *signnow* in the search bar to view the available list of actions.

Select the action to add it to the flow.

Configure the action.
- Add the required and optional parameters.
- Set up settings.
- Select the **Code view** tab to check the request JSON.
- Select the **Testing** tab to view the testing options.

## SignNow connector actions

An **action** is what you want to happen after your flow is triggered.

Each action may require certain inputs to run correctly. These inputs can come from the trigger or from actions you added earlier in the flow.

When the action runs, it produces an output, which could be a document, a value, or any data you can use in the next steps of your flow.

The following actions are available:

| Action | Description |
|--------|-------------|
| [Create document embedded invite](/docs/power-automate-signnow-embedded-signing-actions#create-document-embedded-invite)| Creates an embedded signing invite for a document. Once created, generate an embedded signing link |
| [Generate document embedded invite link](/docs/power-automate-signnow-embedded-signing-actions#generate-document-embedded-invite-link) | Generates a link for the document embedded invite |
| [Delete document embedded invite](/docs/power-automate-signnow-embedded-signing-actions#delete-document-embedded-invite) | Deletes an embedded invite for a document |
| [Create document embedded sending link](/docs/power-automate-signnow-embedded-sending-actions#create-document-embedded-sending-link) | Generates an embedded sending link for a specific document, allowing third-party users to prepare and send the document for signature |
| [Invite to sign document](/docs/power-automate-signnow-invite-actions#invite-to-sign-a-document) | Creates and sends a field invite for a document to be signed |
| [Get document invite status](/docs/power-automate-signnow-invite-actions#get-document-invite-status) | Retrieves information about a document invite, including the status of each step and action |
| [Replace recipients in document invite](/docs/power-automate-signnow-invite-actions#replace-recipients-in-document-invite) | Replaces recipients in a document invite based on their roles. Can update invite settings such as authentication type, expiration days, and other advanced parameters |
| [Create document group from multiple files](/docs/power-automate-signnow-document-group-actions#create-document-group-from-multiple-files) | Creates a document group by uploading multiple files as base64-encoded strings |
| [Create document group embedded invite](/docs/power-automate-signnow-embedded-signing-actions#create-document-group-embedded-invite) | Creates an embedded signing invite for a document group. Once created, generate an embedded signing link |
| [Generate document group embedded invite link](/docs/power-automate-signnow-embedded-signing-actions#generate-document-group-embedded-invite-link) | Generates a link for the document group embedded invite |
| [Delete document group embedded invite](/docs/power-automate-signnow-embedded-signing-actions#delete-document-group-embedded-invite) | Deletes an embedded invite for a specific document group |
| [Create document group embedded sending link](/docs/power-automate-signnow-embedded-sending-actions#create-document-group-embedded-sending-link) | Generates an embedded sending link for a specific document group, allowing third-party users to prepare and send the document group for signature |
| [Invite to sign document group](/docs/power-automate-signnow-invite-actions#invite-to-sign-a-document-group) | Creates an invite for signing a document group. Supports multistep workflows where different recipients act on the document group at different stages |
| [Get document group invite status](/docs/power-automate-signnow-invite-actions#get-document-group-invite-status) | Retrieves information about a document group invite, including the status of each step and action |
| [Replace recipients in document group invite](/docs/power-automate-signnow-invite-actions#replace-recipients-in-document-group-invite) | Replaces recipients in a document group invite by its invite ID. Can update invite expiration, reminders, reassign permissions, and decline options for each document |


---

## Embedded signing actions

# Embedded signing

Create an embedded invite for recipients to sign a document or a document group, making it easy to integrate signing directly into your existing workflows.

## Create document embedded invite

This action creates an embedded signing invite for a document. Once the invite is created, generate an embedded signing link.

### Input parameters

| Parameter       | Description                                                          |
| --------------- | -------------------------------------------------------------------- |
| **Document ID** | Document ID                                                          |
| **Invite**      | Object with embedded invite settings                                 |
| **Invites**     | Invites (array). Each item includes `email`, `role`, and `order`     |
| **Email**       | Recipient email address                                              |
| **Role**        | Recipient role name e.g. `Signer 1` (viewer roles are not supported) |
| **Order**       | The order of signing (integer, minimum: 1, default: 1)               |


### Advanced parameters

| Parameter       | Description                                                          |
| --------------- | -------------------------------------------------------------------- |
| **Name formula**                   | A formula to generate a completed document name using a prefix (any text) and fillable field data. Example: `Contract\|signer_name\|signed_date`, where `Contract` is the prefix, and `signer_name` and `signed_date` are names of fillable fields. |
| **Advanced parameters**            | Advanced Parameters (array of objects)                                                                                                                                                                                                                                                                                                            |
| **Role**                           | Recipient role name e.g. `Signer 1` (viewer roles are not supported)                                                                                                                                                                                                                                                                              |
| **Language**                       | Specifies the language of the signing session and notification emails for the signer. Possible values: `En` for English, `Es` for Spanish, and `Fr` for French. If not set, the language is determined by the language of your SignNow account                                                                                                    |
| **First name**                     | Recipient first name                                                                                                                                                                                                                                                                                                                              |
| **Last name**                      | Recipient last name                                                                                                                                                                                                                                                                                                                               |
| **Required preset signature name** | Pre-filled text for the signature field, locked for editing by the recipient. Cannot be used with `prefill_signature_name` or `force_new_signature`                                                                                                                                                                                               |
| **Prefill signature name**         | A string with a signature name that appears when a signer clicks a signature field. The signer can edit the signature                                                                                                                                                                                                                             |
| **Require new signature**          | Defines whether the signer can use their saved signature or not. If set to `true`, the signer has to add a new signature. If set to `false`, the signer can use the saved signature                                                                                                                                                               |
| **Redirect URI**                   | The link that opens after the signing session has been completed                                                                                                                                                                                                                                                                                  |
| **Decline redirect URI**           | The link that opens after the recipient declines to sign the document                                                                                                                                                                                                                                                                             |
| **Close redirect URI**             | The link that opens when the recipient clicks Save Progress and Finish Later during a signing session or Close in view mode                                                                                                                                                                                                                       |
| **Redirect target**                | Determines whether to open the redirect URI in a new tab in the browser or in the same tab after the signing session. Possible values: `In the new tab` – opens the link in a new tab, `In the same tab` – opens the link in the same tab                                                                                                         |
| **Authentication type**            | Authentication type used for recipient authentication during the signing session. Allowed values: `Password`, `Phone call`, and `Sms`                                                                                                                                                                                                             |
| **Authentication password**        | Password set for the signer authentication. Required for the `Password` authentication type                                                                                                                                                                                                                                                       |
| **Authentication phone**           | Phone number used to authenticate the signer. Required for the `Phone call` and `Sms` authentication type. Example: `+1XXXXXXXXX`                                                                                                                                                                                                                 |
| **Authentication SMS message**     | Custom sms message sent to the signer, containing the `{password}` placeholder. Used with the `Sms` authentication type. Without this parameter, the signer receives a default sms with an autogenerated password (unlock code) – `SignNow document invite unlock code: 123456`. Example: `Enter the password {password} to unlock your document` |
| **Delivery type**                  | Defines how the invite is sent. Allowed values: `Email`, `Link`                                                                                                                                                                                                                                                                                   |
| **Link expiration**                | In how many minutes the email invite expires. Can be used only if `Delivery type=email`. Valid range: `15–43200` minutes                                                                                                                                                                                                                          |
| **Session expiration**             | In how many minutes the signing session expires. If a link is generated for this invite, the session expiration resets. Applicable only when `Delivery type=email` and for `sign` actions. Valid range: `15–1440` minutes                                                                                                                         |
| **QES signature**                  | Type of QES. Possible values: `Eideasy`, `Nom151`. Used to request QES signatures from signers. All signers in the invite must use the same signature type. To create an invite with QES, the user must belong to an organization with QES enabled                                                                                                |

### Result example

<!--
focus: center
bg: "#D3D3D3"
-->
![Create Document Embedded Invite action in Power Automate with the signer email, role, order, name formula and advanced invite parameters](/reference-assets/images/Power%20Automate/create_embedded_doc_invite.png)

### Output parameters

| Parameter   | Description                       |
| ----------- | --------------------------------- |
| **ID**      | ID of the created embedded invite |
| **Email**   | Recipient email                   |
| **Role ID** | Recipient role ID                 |
| **Order**   | Recipient order of signing        |
| **Status**  | Embedded invite status            |


## Generate document embedded invite link

This action generates a link for the document embedded invite.

### Input parameters

| Parameter | Description |
| ----------- | --------------------------------- |
| **Document ID** (required) | Document ID |
| **Field invite ID** (required) | Embedded invite ID from 'Create Document Embedded Invite' action |
| **Link expiration** | Specifies how many minutes the link will remain active. Valid range: `15-45` minutes |
| **Session expiration** | Specifies how many minutes the signing session will remain active. Valid range: `15-1440` minutes |

### Result example

<!--
focus: center
bg: "#D3D3D3"
-->
![Generate Document Embedded Invite Link action in Power Automate with the document ID, field invite ID, link expiration and session expiration](/reference-assets/images/Power%20Automate/generate_doc_embedded_link.png)

### Output parameters

The output of the action generates the link for the document embedded invite. 

| Parameter | Description |
| ----------- | --------------------------------- |
| **Link** | Generated embedded invite link for the document |

## Delete document embedded invite

This action deletes an embedded invite for a document.

### Input parameters

| Parameter | Description |
| ----------- | --------------------------------- |
| **Document ID** | Document ID. |


### Output parameters

The document embedded invite has been deleted.

---

## Create document group embedded invite

This action creates an embedded signing invite for a document group. Once the invite is created, generate an embedded signing link.

### Input parameters

| Parameter | Description |
| :--- | :--- |
| **ID (required)** | Document group ID. |
| **Invites** | Invites |
| **Order (required)** | Signing order step. All signers assigned to a specific `order` step (e.g., `order: 1`) receive the invite email simultaneously. Emails for the next order step (e.g., `order: 2`) are sent only after all actions in the previous order step are completed. |
| **Signers (required)** | Array of recipients assigned to the document group. |
| **Email (required)** | Recipient email address. |
| **Documents (required)** | Documents assigned to the recpient. |
| **Id (required)** | ID of the document. |
| **Role** | Recipient role in the document. Roles should not be specified for the `view` action. |
| **Action (required)** | The action required from the recipient in the document. Allowed values: `sign`, `view`. |

### Advanced parameters

| Parameter | Description |
| :--- | :--- |
| **Order (required)** | Signing order step. |
| **Email (required)** | Recipient email address. |
| **Language** | Specifies the language of the signing session and notification emails for the signer. Possible values: `En` for English, `Es` for Spanish, and `Fr` for French. If not set, the language is determined by the language of your SignNow account. |
| **First Name** | Recipient first name. |
| **Last Name** | Recipient last name. |
| **Required preset signature name** | Pre-filled text for the signature field, locked for editing by the recipient. |
| **Redirect Uri** | The link that opens after the signing session has been completed. |
| **Decline Redirect Uri** | The link that opens after the recipient declines to sign the document. |
| **Close redirect uri** | The link that opens when the recipient clicks Save Progress and Finish Later during a signing session or Close in view mode. |
| **Redirect target** | Determines whether to open the redirect URI in a new tab in the browser or in the same tab after the signing session. Possible values: `In the new tab`– opens the link in a new tab, `In the same tab`- opens the link in the same tab. |
| **Delivery type** | Defines how the invite is sent. Possible values: `Email` - the invite will be sent by email, `Link` - the invite will be shared via a link. |
| **Link expiration** | In how many minutes the email invite expires. Can be used only if `Delivery type=email`. Valid range: 15–43200 minutes. |
| **Session expiration** | In how many minutes the signing session expires. If a link is generated for this invite, the session expiration resets. Applicable only when 'Delivery type=email' and for `sign` actions. Valid range: 15–1440 minutes |
| **Authentication type** | Authentication type used for recipient authentication during the signing session. Allowed values: `Password`, `Phone call`, and `Sms` |
| **Authentication password** | Password set for the signer's authentication. Required for the `Password` authentication type. |
| **Authentication phone** | Phone number used to authenticate the signer. Required for the `Phone call` and `Sms` authentication type. Example: `+1XXXXXXXXX`. |
| **Authentication SMS message** | Custom sms message sent to the signer, containing the {password} placeholder. Used with the `Sms` authentication type. Without this parameter, the signer receives a default sms with an autogenerated password (unlock code) - `SignNow document invite unlock code: 123456`. <br>Example: `Enter the password {password} to unlock your document.` |
| **QES signature** | Type of QES. Possible values: `Eideasy`, `Nom151`. Used to request QES signatures from signers. All signers in the invite must use the same signature type. To create an invite with QES, the user must belong to an organization with QES enabled. |

### Result example

<!--
focus: center
bg: "#D3D3D3"
-->
![Create Document Group Embedded Invite action in Power Automate with the order, signer email, and each document's ID, role and Sign action](/reference-assets/images/Power%20Automate/create_dg_embedded_invite.png)

### Output parameters

The output of the action produces the ID of the document group embedded invite.

| Parameter | Description |
| :--- | :--- |
| **ID** | The ID of the created embedded invite. |

## Generate document group embedded invite link

This action generates a link for the document group embedded invite.

### Input parameters

| Parameter | Description |
| :--- | :--- |
| **Id (required)** | Document group ID |
| **Invite Id (required)** | ID of the document group embedded invite from 'Create Document Group Embedded Invite' action. |
| **Email (required)** | Recipient email address. |

### Advanced parameters

| Parameter | Description |
| :--- | :--- |
| **Link expiration** | Specifies how many minutes the link will remain active. Valid range:15-45 minutes. |
| **Session expiration** | Specifies how many minutes the signing session will remain active. Valid range: 15-1440 minutes. |

### Result example

<!--
focus: center
bg: "#D3D3D3"
-->
![Generate Document Group Embedded Invite Link action in Power Automate with the embedded invite ID, signer email, link expiration and session expiration](/reference-assets/images/Power%20Automate/generate_dg_embedded_link.png)

### Output parameters

| Parameter | Description |
| :--- | :--- |
| **Link** | The link for document group embedded invite. |

## Delete document group embedded invite

This action deletes an embedded invite for a specific document group.

### Input parameters

| Parameter | Description |
| ----------- | --------------------------------- |
| **Document group ID** | Document group ID. |


### Output parameters

The document group embedded invite has been deleted.


---

## Embedded sending actions

# Embedded sending

Enable users to send documents and document groups within your application by creating an embedded sending link.

## Create document embedded sending link

This action generates an embedded sending link for a specific document, allowing third-party users to prepare and send the document for signature.

### Input parameters

| Parameter | Description |
| :--- | :--- |
| **Id (required)** | Document ID |
| **Type** | Specifies the sending step at which the link should open. Possible values: `Invite`: opens the Send Invite page for the document, where the user can add signer emails, subject, message, etc. `Document`: opens the document in the editor to add fillable fields, then opens the Send Invite page. <br><br> **Invite type in the UI:** ![Send Invite page opened by the embedded sending link](/reference-assets/images/Power%20Automate/sn_pa_embedded_sending_invite_type.png) <br> **Document type in the UI:** ![Document opened in the SignNow editor by the embedded sending link](/reference-assets/images/Power%20Automate/sn_pa_embedded_sending_doc_type.png) |

### Advanced parameters

| Parameter | Description |
| :--- | :--- |
| **Redirect uri** | The page that opens after embedded sending has been set up. Required if `Redirect target` is added. |
| **Link expiration** | Specifies how many minutes the link will remain active. The allowed range: 15 to 45 minutes. Admin-level users can set the duration up to a maximum of 43200 minutes. |
| **Redirect target** | Determines whether to open the redirect URI in a new tab in the browser or in the same tab after the signing session. Possible values:`In the new tab`– opens the link in a new tab,`In the same tab`- opens the link in the same tab. |

### Result example

<!--
focus: center
bg: "#D3D3D3"
-->
![Create Document Embedded Sending Link action in Power Automate with type Invite, redirect URI, link expiration and redirect target](/reference-assets/images/Power%20Automate/embedded_send_doc.png)

### Output parameters

The output of this action retrieves the link for an embedded document sending.

| Parameter | Description |
| :--- | :--- |
| **Url** | The link to the embedded document sending. |

---

## Create document group embedded sending link

This action generates an embedded sending link for a specific document group, allowing third-party users to prepare and send the document group for signature.

### Input parameters

| Parameter | Description |
| :--- | :--- |
| **Id (required)** | Document group ID |
| **Type** | Specifies the sending step at which the embedded link should open: `Manage` — opens the link on the Add documents to document group page; `Edit`: opens the link in the editor; `Send-invite`: opens the link on the Send Invite page.<br><br>**Manage in the UI**: ![Add documents to Document Group page opened by the embedded sending link](/reference-assets/images/Power%20Automate/sn_pa_embedded_sending_dg_manage.png) <br>**Edit in the UI**: ![Document group opened in the SignNow editor by the embedded sending link](/reference-assets/images/Power%20Automate/sn_pa_embedded_sending_edit.png) <br>**Send-invite in the UI**: ![Send Invite page for a document group opened by the embedded sending link](/reference-assets/images/Power%20Automate/sn_pa_embedded_sneding_dg_sendinvite.png) |

### Advanced parameters

| Parameter | Description |
| :--- | :--- |
| **Redirect uri** | The page that opens after embedded sending has been set up. Required if `Redirect target` is added. |
| **Link expiration** | Specifies how many minutes the link will remain active. The allowed range: 15 to 45 minutes. Admin-level users can set the duration up to a maximum of 43200 minutes. |
| **Redirect target** | Determines whether to open the redirect URI in a new tab in the browser or in the same tab after the signing session. Possible values: `In the new tab`– opens the link in a new tab, `In the same tab`- opens the link in the same tab. |

### Result example

<!--
focus: center
bg: "#D3D3D3"
-->
![Create Document Group Embedded Sending Link action in Power Automate with type Manage, redirect URI, link expiration and redirect target](/reference-assets/images/Power%20Automate/embedded_send_dg.png)

### Output parameters

The output of this action retrieves the link for an embedded document group sending.

| Parameter | Description |
| :--- | :--- |
| **Url** | The link to the embedded document group sending. |




---

## Invite to sign actions

# Invite to sign

Send a document or document group for signature to multiple recipients in a role-based order.

## Invite to sign a document

This action creates and sends a field invite for a document to be signed.

### Input parameters

| Parameter | Description |
| :--- | :--- |
| **Id (required)** | Document ID. |
| **Signers** | List of document signers. |
| **Email** | Recipient email address. |
| **Role (required)** | Recipient role name. e.g. Signer 1, Signer 2 |
| **Order (required)** | Order of signing. The signing order defines the sequence in which recipients must sign or fill a document. Once all recipients in an order step complete signing, the document proceeds to the next order step (e.g., 2, 3). Multiple recipients can share the same signing order. |
| **Viewers** | List of document viewers. |
| **Email (required)** | Viewer email address. |
| **Role (required)** | Viewer role name. |
| **Order (required)** | The order of receiving the review request. |
| **Approvers** | List of document approvers. |
| **Email (required)** | Approver email address. |
| **Role (required)** | Approver role name. |
| **Order (required)** | The order of receiving the approval request. |


### Advanced parameters

| Parameter | Description |
| :--- | :--- |
| **Email group** | A group of users that should receive the invite. When one of the users signs the document, it is considered completed. Must be used with the `email groups` advanced parameter. Required if `Email` or `Phone Invite` is not added, but cannot be used at the same time with either of these parameters. |
| **Phone invite** | Recipient phone number. Required for **Invite via SMS**. |
| **Signers advanced** | Signer advanced properties. |
| **Role (required)** | Recipient role name, used for mapping advanced parameters. |
| **Prefill signature name** | Pre-filled text in the signature field, available for editing by signer. |
| **Required preset signature name** | Pre-filled text for the signature field, locked for editing by the recipient. Cannot be used with `Prefill signature name` or `Require new signature`. |
| **Require new signature** | Defines whether the signer can use a saved signature. False – signer can use a saved signature; True – signer must create a new signature. |
| **Allow forwarding** | Defines whether the recipient can forward the invite to another email address. `true`: recipient can forward the invite; `false`: recipient cannot forward the invite. <br>**How it looks in the UI**: ![Signing session More Actions menu with the Forward Invite option](/reference-assets/images/Power%20Automate/sn_pa_allow_reassign.png)|
| **Allow decline by signature** | Defines whether to show the Decline to Sign option on signature fields. True – show the decline option; false – hide the decline option. <br>**How it looks in the UI**: ![Signature field menu in the signing session with the Decline to sign option](/reference-assets/images/Power%20Automate/sn_pa_decline_signature.png)|
| **Send reminder in X days** | X days after the invite, a recipient gets a reminder email (from 1 to 179 days). Must be less than `Days Until Expiration`. |
| **Send reminder in X days before expiration** | X days before expiration, a recipient gets a reminder email (from 1 to 179 days). Must be less than `Days until expiration`. |
| **Send reminder every X days** | Number of days between reminder emails, starting after the invite is sent (from 1 to 7 days). |
| **Days until expiration** | In X days, the invite expires (from 3 to 180 days). |
| **Authentication type** | Authentication type used for recipient authentication during the signing session. Allowed values: `Password`, `Phone call`, and `Sms`. <br>**Example of password authentication**: ![Unlock Document dialog asking the signer for a password](/reference-assets/images/Power%20Automate/sn_pa_password_auth.png)|
| **Authentication password** | Password set for the signer authentication. Required for the `Password` authentication type. |
| **Authentication phone** | Phone number used to authenticate the signer. Required for the `Phone call` and `Sms` authentication type. <br>Example: +1XXXXXXXXX. |
| **Authentication sms message** | Custom sms message sent to the signer, containing the {password} placeholder. Used with the `Sms` authentication type. Without this parameter, the signer receives a default sms with an autogenerated password (unlock code) - `SignNow document invite unlock code: 123456`. <br>Example: Enter the password {password} to unlock your document. |
| **Subject** | Custom email subject for the recipient. |
| **Message** | Custom email message for the recipient. |
| **Redirect uri** | When all the requested fields are completed and signed, the signer is redirected to this URI. |
| **Redirect target** | Determines whether to open the redirect URI in a new tab in the browser or in the same tab after the signing session. Possible values: `In the new tab`– opens the link in a new tab,`In the same tab`- opens the link in the same tab. |
| **Decline redirect uri** | The link that opens after the document has been declined by the recipient. |
| **Close redirect uri** | The link that opens when the recipient clicks Save Progress and Finish Later during a signing session or Close in view mode. |
| **Is finish redirect canceled** | Specifies whether the completion redirect setting is canceled for the organization. True – the redirect is canceled; False – the redirect remains active. |
| **Is close redirect canceled** | Specifies whether the save progress redirect setting is canceled for the organization. True – the redirect is canceled; False – the redirect remains active. |
| **Is decline redirect canceled** | Specifies whether the decline redirect setting is canceled for the organization. True – the redirect is canceled; False – the redirect remains active. |
| **Language** | Specifies the language of the signing session and notification emails for the signer. Possible values: En for English, Es for Spanish, and Fr for French. If not set, the language is determined by the language of your SignNow account. |
| **Viewers advanced** | Viewer advanced properties. |
| **Role (required)** | Viewer role name. Used for mapping advanced parameters. |
| **Subject** | Custom email subject for the viewer. |
| **Message** | Custom email message for the viewer. |
| **Approver advanced** | Approver advanced properties. |
| **Role (required)** | Approver role name. Used for mapping advanced parameters. |
| **Days until expiration** | Number of days before the invite expires |
| **Message** | Custom email message for the approver. |
| **Subject** | Custom email subject for the approver. |
| **Authentication type** | Authentication type used for recipient authentication during the signing session. Allowed values: `Password`, `Phone call`, and `Sms`. |
| **Authentication password** | Password set for the signer authentication. Required for the `Password` authentication type. |
| **Authentication phone** | Phone number used to authenticate the signer. Required for the `Phone call` and `Sms` authentication type. <br>Example: +1XXXXXXXXX. |
| **Authentication sms message** | Custom sms message sent to the signer, containing the {password} placeholder. Used with the `Sms` authentication type. Without this parameter, the signer receives a default sms with an autogenerated password (unlock code) - `SignNow document invite unlock code: 123456`. <br>Example: Enter the password {password} to unlock your document. |
| **Redirect uri** | The URL that opens after the approver approves the document |
| **Redirect target** | Determines whether to open the redirect URI in a new tab in the browser or in the same tab after the signing session. Possible values:`In the new tab`– opens the link in a new tab, `In the same tab`- opens the link in the same tab |
| **From** | Sender email address. Only the email associated with your SignNow account (login email) can be used. If left blank, it is set automatically. |
| **Email groups** | Email groups. |
| **Id** | ID of an email group. A unique 40-character identifier that must be created beforehand. |
| **Name** | A name of the group. Use it in the **Signers** > **Email Group field**. |
| **Emails** | List of email addresses |
| **Email** | Email address that should receive an invite. |
| **CC** | CC recipient emails. |
| **Email** | Email address that should receive an invite. |
| **CC step** | CC steps. |
| **Name** | Name of the step. |
| **Email** | CC recipient email address. |
| **Step** | The order of sending, starting from `1`. |
| **Subject** | Email subject for all recipients. |
| **Message** | Email message for all recipients. |
| **CC subject** | CC email subject for all CC recipients. |
| **CC message** | CC email message for all CC recipients. |
| **QES signature** | Type of QES. Possible values: `Eideasy`, `Nom151`. Used to request QES signatures from signers. All signers in the invite must use the same signature type. To create an invite with QES, the user must belong to an organization with QES enabled. |

### Result example

<!--
focus: center
bg: "#D3D3D3"
-->
![Invite to Sign Document action in Power Automate with the signer email, email group, phone, role and order, and a viewer](/reference-assets/images/Power%20Automate/invite_document.png)

### Output parameters

The output of this action returns the status of the document invite.

| Parameter | Description |
| :--- | :--- |
| **Status** | The document invite status.|


## Replace recipients in document invite

This action replaces recipients in the document invite based on their roles. It also allows updating invite settings such as authentication type, expiration days, and other advanced parameters for each role.

### Input parameters

| Parameter | Description |
| :--- | :--- |
| **Id (required)** | Document ID. |
| **Role (required)** | Role name of the recipient to be replaced. |
| **New email (required)** | New recipient email. |

### Advanced parameters

| Parameter | Description |
| :--- | :--- |
| **Role (required)** | Role name that requires additional invite parameters. |
| **Days until expiration** | In how many days the invite expires. 30 days max. |
| **Allow decline by signature** | Defines whether to show the **Decline to Sign** option on signature fields. True - show the decline option; False - hide the decline option. |
| **Reminder** | In how many days to send a reminder to the recipient. 30 days max. |
| **Authentication type** | Authentication type used for recipient authentication during the signing session. Allowed values: `Password`, `Phone call`, and `Sms`. |
| **Authentication password** | Password set for the signer authentication. Required for the `Password` authentication type. |
| **Authentication phone** | Phone number used to authenticate the signer. Required for the `Phone call` and `Sms` authentication type. <br>Example: +1XXXXXXXXX. |
| **Authentication sms message** | Custom sms message sent to the signer, containing the {password} placeholder. Used with the `Sms` authentication type. Without this parameter, the signer receives a default sms with an autogenerated password (unlock code) - `SignNow document invite unlock code: 123456`. <br>Example: Enter the password {password} to unlock your document. |

### Result example

<!--
focus: center
bg: "#D3D3D3"
-->
![Replace Recipients in Document Invite action in Power Automate with the role, new email and advanced parameters such as expiration and decline](/reference-assets/images/Power%20Automate/doc_replace_recipients.png)

### Output parameters

The output of the action produces an array of replacements. Each array contains these parameters:

| Parameter | Description |
| :--- | :--- |
| **New invite id** | The new document field invite ID. |
| **Role** | Role name of the recipient that was replaced. |
| **New email** | New recipient email. |

## Get document invite status

This action retrieves information about a document invite, including the status of each step and action.

### Input parameters

| Parameter | Description |
| :--- | :--- |
| **Id (required)** | Document ID. |


### Output parameters

The output of this action provides information about the document invite status, including signing steps and recipient details such as email, role, order, action type, invite ID, and status.

| Parameter | Description |
| :--- | :--- |
| **Is document declined** | Indicates whether the document was declined by the signer or approver. Returns `true` if declined, `false` otherwise. |
| **Steps** | List of signing steps with recipient information. |
| **Signing order** | Order of signing. |
| **Signer email** | Recipient email address. |
| **Role name** | Recipient role name. |
| **Action type** | The action required from the recipient in the document. Possible values: `Sign`, `View`, `Approve`, or `FreeFormSign`. |
| **Invite id** | Document invite ID. |
| **Status** | Signing status. Possible values: `created`, `pending`, `fulfilled`, `canceled`, `skipped`. |
| **Declined** | Returns `true` if the recipient of this step declined the document. |
| **Decline reason** | Message provided by the recipient when declining the document. |
| **Created** | Date when the step was created. |
| **Updated** | Date when the step status was last updated. |

---

## Invite to sign a document group

This action creates an invite for signing a document group. You can configure a multistep workflow, where different recipients act on the document group at different stages.

### Input parameters

| Parameter | Description |
| :--- | :--- |
| **Id (required)** | Document group ID. |
| **Invite steps** | An array of steps for the document group invite. Each step contains the signing order, invite email, role name, document, and action for that document. |
| **Order (required)** | Order of signing step: 1 - the recipient(s) sign the document group first, then the document group is sent to 2,3 etc. Several recipients can hold the same order of signing. |
| **Email** | Recipient email address. |
| **Role name (required)** | Recipient role name in the document (can be used to identify fields in the document assigned to this particular recipient). |
| **Action (required)** | Allowed action with a document. Possible values: `View`, `Sign`, `Approve`. |
| **Document id (required)** | ID of the document on which actions are required from this recipient. |

### Advanced parameters

| Parameter | Description |
| :--- | :--- |
| **Email group** | A contact group of recipients. |
| **Advanced** | Advanced properties of the document group invite step. |
| **Required preset signature name** | Pre-filled text for the signature field, locked for editing by the recipient. |
| **Allow forwarding** | Defines whether the recipient can forward the invite to another email address. `true`: recipient can forward the invite; `false`: recipient cannot forward the invite. <br>**How it looks in the UI**: ![Signing session More Actions menu with the Forward Invite option](/reference-assets/images/Power%20Automate/sn_pa_allow_reassign.png)|
| **Allow decline by signature** | Defines whether to show the Decline to Sign option on signature fields. True - show the decline option; False - hide the decline option. <br>**How it looks in the UI:** ![Signature field menu in the signing session with the Decline to sign option](/reference-assets/images/Power%20Automate/sn_pa_decline_signature.png)|
| **Authentication type** | Authentication type used for recipient authentication during the signing session. Allowed values: `Password`, `Phone call`, and `Sms`. <br>**Example of password authentication:** ![Unlock Document dialog asking the signer for a password](/reference-assets/images/Power%20Automate/sn_pa_password_auth.png)|
| **Authentication password** | Password set for the signer authentication. Required for the `Password` authentication type. |
| **Authentication phone** | Phone number used to authenticate the signer. Required for the `Phone call` and `Sms` authentication type. <br>Example: +1XXXXXXXXX. |
| **Authentication message** | Custom sms message sent to the signer, containing the {password} placeholder. Used with the `Sms` authentication type. Without this parameter, the signer receives a default sms with an autogenerated password (unlock code) - `SignNow document invite unlock code: 123456`. |
| **Payment request** | Object that contains details about the payment request. |
| **Merchant id** | The ID of the merchant account added to your organization (workspace). |
| **Currency** | The payment currency requested. |
| **Amount** | The payment amount requested. |
| **Redirect** | Object that contains details about the redirect url properties. |
| **Redirect Uri** | When all the requested fields are completed and signed, the signer is redirected to this URI. |
| **Redirect target** | Determines whether to open the redirect URI in a new tab in the browser or in the same tab after the signing session. Possible values: `In the new tab`– opens the link in a new tab,`In the same tab`- opens the link in the same tab. |
| **Decline redirect uri** | The link that opens after the document has been declined by the recipient. |
| **Close redirect uri** | The link that opens when a signer clicks Save Progress and Finish Later during a signing session or Close in view mode. |
| **Is finish redirect canceled** | Specifies whether the completion redirect setting is canceled for the organization. True – the redirect is canceled; False – the redirect remains active. |
| **Is close redirect canceled** | Specifies whether the save progress redirect setting is canceled for the organization. True – the redirect is canceled; False – the redirect remains active. |
| **Is decline redirect canceled** | Specifies whether the decline redirect setting is canceled for the organization. True – the redirect is canceled; False – the redirect remains active. |
| **Language** | Specifies the language of the signing session and notification emails for the signer. Possible values: `En` for English, `Es` for Spanish, and `Fr` for French. If not set, the language is determined by the language of your SignNow account. |
| **Email** | Objects that define custom email subject, email message, expiration and reminder settings for each recipient within a step. |
| **Order (required)** | Order of signing step: 1 - the recipient(s) sign the document group first, then the document group is sent to 2,3 etc. Several recipients can hold the same order of signing. |
| **Email (required)** | Recipient's email address. |
| **Email group** | A contact group of recipients. |
| **Subject** | Custom email subject for the recipient. |
| **Message** | Custom email message for the recipient. |
| **Days until expiration** | Number of days until the invite expires (from 3 to 180 days). |
| **Send reminder in X days** | X days after the invite, a recipient gets a reminder email (from 1 to 179 days). Must be less than `Days until expiration`. |
| **Send reminder in X days before expiration** | X days before expiration, a recipient gets a reminder email (from 1 to 179 days). Must be less than `Days until expiration`. |
| **Send reminder every X days** | Number of days between reminder emails, starting after the invite is sent (from 1 to 7 days). |
| **Email groups** | Defines a signing group. Required if at least one step contains a signing group (email_group). You can use both an existing email group or create your own. |
| **Id** | ID of an email group. A unique 40-character identifier that must be created beforehand. |
| **Name** | A name of the group. Use it in the **Invite Steps** > **Email Group**. |
| **Emails** | List of recipient email addresses. |
| **Email** | Email address that should receive an invite. |
| **Completion emails** | List of recipients who will receive completion emails. |
| **Email** | Email address of the recipient who will receive the completion email. |
| **Disable document attachment** | Whether to disable sending document attachments with the completion email. Possible values: False - enable document attachment, True - disable document attachment. |
| **Subject** | Custom subject for the completion email. |
| **Message** | Custom message for the completion email. |
| **Sign as merged** | If true, allows API user to send an invite which opens as merged document group in a single document. |
| **Client timestamp** | The timestamp of the document group invite. |
| **Email** | Email address that should receive an invite |
| **QES signature** | Type of QES. Possible values: `Eideasy`, `Nom151`. Used to request QES signatures from signers. All signers in the invite must use the same signature type. To create an invite with QES, the user must belong to an organization with QES enabled. |

### Result example

<!--
focus: center
bg: "#D3D3D3"
-->
![Invite to Sign Document Group action in Power Automate with the step order, signer email, role, Sign action, document ID and advanced options](/reference-assets/images/Power%20Automate/invite_dg.png)

### Output parameters

The output of this action produces the document group invite ID.

| Parameter | Description |
| :--- | :--- |
| **Id** | Document group invite ID. |
| **Pending invite link** | Pending invite link. |

## Replace recipients in document group invite

This action replaces recipients in a document group invite by its invite ID. You can also set an invite expiration, reminders, reassign permissions, and decline options for each document.

### Input parameters

| Parameter | Description |
| :--- | :--- |
| **Id (required)** | Document group ID. |
| **Invite id (required)** | Document group invite ID. |
| **Step id** | ID of the invite step from the document group invite. |
| **Recipient to update** | Email of the recipient to replace. |
| **New recipient** | Email of the new recipient. |

### Advanced parameters

| Parameter | Description |
| :--- | :--- |
| **Expiration days** | In how many days the invite expires; 30 days max. |
| **Reminder** | In how many days to send a reminder to the signer; 30 days max. |
| **Invite action attributes** | Advanced parameters. |
| **Document Id (required)** | Document ID from document group. |
| **Allow forwarding** | Defines whether the recipient can forward the invite to another email address. `true`: recipient can forward the invite; `false`: recipient cannot forward the invite. |
| **Allow decline by signature** | Defines whether to show the Decline to Sign option on signature fields. True: show the decline option; False: hide the decline option. |

### Result example

<!--
focus: center
bg: "#D3D3D3"
-->
![Replace Recipients In Document Group Invite action in Power Automate with the invite ID, step ID, recipient to replace, new recipient, expiration, reminder and document settings](/reference-assets/images/Power%20Automate/replace_recipients_dg.png)

### Output parameters

The output of this action retrieves the status of recipient replacement.

| Parameter | Description |
| :--- | :--- |
| **Status** | Status of recipients replacement. |

## Get document group invite status

This action retrieves information about a document group invite, including the status of each step and action.

### Input parameters

| Parameter | Description |
| :--- | :--- |
| **Id (required)** | Document group ID. |

### Output parameters

The output of this action provides information about the document group invite status, including signing steps and recipient details such as email, role, order, action type on a specific document, invite ID, and status.

| Parameter | Description |
| :--- | :--- |
| **Document group invite ID** | Invite ID of the document group. |
| **Status** | Document group signing status. Possible values: `created`, `pending`, `fulfilled`, `canceled`. |
| **Owner email** | Email address of the document group owner. |
| **Is document declined** | Returns `true` if any document in the group is declined by a signer or approver; otherwise, returns `false`. |
| **Steps** | List of invite steps. |
| **Step id** | Step ID from the document group invite. |
| **Signing order** | Order of signing. |
| **Document id** | Document ID. |
| **Document name** | Document name. |
| **Signer email** | Recipient email address. |
| **Role name** | Recipient role name. |
| **Action type** | The action required from the recipient in the document. Possible values: `Sign`, `View`, `Approve`, or `FreeFormSign`. |
| **Invite id** | ID of the invite step. |
| **Status** | The signing status of the step. |
| **Declined** | True if the recipient in this step declined the document. |
| **Decline reason** | Message provided by the recipient when declining the document. |
| **Created** | Date when the step was created. |
| **Updated** | Date when the step status was updated. |



---

## Document group actions

# Document group actions

Use the document group actions of the SignNow connector in Power Automate to create a document group from multiple files.

## Create document group from multiple files

This action creates a document group by uploading multiple files as base64-encoded strings.

### Input parameters

| Parameter | Description |
| :--- | :--- |
| **Group name (required)** | Enter a name for the document group. |
| **Documents** | List of documents with their names and content as base64-encoded strings. |
| **Name (required)** | Document name with extension, for example: Report.pdf, Letter.docx, and so on. |
| **Content (required)** | Base64-encoded string representing content of the document. |

### Result example

<!--
focus: center
bg: "#D3D3D3"
-->
![Create Document Group from Multiple Files action in Power Automate with the group name and each document's name and Base64 file content](/reference-assets/images/Power%20Automate/create_dg_multiple_files.png)

### Output parameters

The result of this action returns information about the newly created document group.

| Parameter | Description |
| :--- | :--- |
| **Group name** | The name of the created document group. |
| **Group id** | The ID of the created document group. |
| **Documents** | An array of documents included in the group. |
| **Id** | The ID of the individual document within the group. |
| **Name** | The name of the individual document within the group. |



---

## Copy files with SharePoint connector

# Copy files with SharePoint connector

Filter files in a source SharePoint library by criteria and copy the matches into another folder, using Power Automate's SharePoint connector.

**Use case overview**

Useful when files (for example, completed or signed documents) need to end up somewhere other than the default SharePoint integration (Team) folder. Instead of moving files manually, this flow filters a library by file properties and copies only the matching files to a destination folder.

**Prerequisites**

- A Power Automate account with access to the source and destination SharePoint sites
- SharePoint connector permissions on both the source library and the destination folder
- Familiarity with SharePoint's OData filter syntax, used to build the Filter Query

**Flow overview**

```mermaid
flowchart LR
    A["Get files (properties only)"] --> B["For each"]
    B --> C["Copy file"]
```

1. **Get files (properties only)** action retrieves file metadata from the source library, narrowed down by a Filter Query.
2. **For each** loops through the filtered results one file at a time.
3. **Copy file** action copies each file from the loop into the destination folder.

![Power Automate flow with Get files and a Copy file action inside a For each loop](/reference-assets/images/Power%20Automate/copy_files/sn_pa_copy_file_2.png)

## Step 1. Create a new flow

- In Power Automate, go to **My flows**.
- Click **New flow** > **Instant cloud flow** > **Manually trigger a flow**.
- Click **Create**.

![Build an instant cloud flow dialog with the flow name and the manual trigger](/reference-assets/images/Power%20Automate/copy_files/sn_pa_copy_file_1.png)

## Step 2. Set up the Get files (properties only) action

Add the SharePoint action **Get files (properties only)** to the flow.

Click **+** and start typing *sharepoint* in the search bar.

Select the **Get files (properties only)** action.

![Power Automate SharePoint actions list with Get files (properties only)](/reference-assets/images/Power%20Automate/copy_files/sn_pa_copy_file_3.png)

Set up the action parameters.

![Get files (properties only) action with the SharePoint site, Documents library, filter query, top count, folder and nested items settings](/reference-assets/images/Power%20Automate/copy_files/sn_pa_copy_file_4.png)

The table below describes each field shown above.

| Field | Required | Description / what to enter |
| :--- | :--- | :--- |
| **Site Address** | Yes | The source SharePoint site, e.g. `https://contoso.sharepoint.com/sites/sitename`. |
| **Library Name** | Yes | The document library that holds the files you would like to copy, e.g. `Documents`. |
| **Filter Query** | No | Filter that limits which files are returned. See Filter query reference below. |
| **Top Count** | No | Maximum number of files to return, e.g. `50`. |
| **Limit Columns by View** | No | Restrict which columns are returned by selecting an existing library view, e.g. `All Documents`. |
| **Limit Entries to Folder** | No | Restrict the search to one folder. Select the source subfolder here; leave blank to scan the whole library. |
| **Include Nested Items** | No | Whether to also return files from sub-folders. Default = `true`. Set to `No` to copy only the top-level folder. |

### Filter query reference

Key file properties:

| Property | Meaning | Example value |
| :--- | :--- | :--- |
| **FileLeafRef** | File name only | `'Invoice.pdf'` |
| **FileRef** | Full server-relative path | `'/sites/demo/Shared Documents/Invoice.pdf'` |
| **FileDirRef** | Containing folder path | `'/sites/demo/Shared Documents'` |
| **FSObjType** | Item type: `0` = file, `1` = folder | `0` |
| **Modified / Created** | Date columns | `'2026-06-25T00:00:00Z'` |

Filter examples:

| Goal | Filter Query |
| :--- | :--- |
| Only files (exclude folders) | `FSObjType eq 0` |
| Only PDFs | `substringof('.pdf', FileLeafRef) and FSObjType eq 0` |
| Exact file name | `FileLeafRef eq 'Invoice.pdf'` |
| Name starts with "2026" | `startswith(FileLeafRef, '2026')` |
| Modified today or later | `Modified ge '2026-06-25T00:00:00Z'` |
| A choice/text column equals a value | `Status eq 'Approved' and FSObjType eq 0` |

## Step 3. Add Copy file action inside a For each loop

Add the SharePoint **Copy file** action and reference **value** (the file list) from the **Get files (properties only)** step in its fields.

Click **+** and start typing *sharepoint* in the search bar.

Select the **Copy file** action.

Set up the action parameters.

In the **File to Copy** field, select the lightning icon and start typing *identifier* in the search bar.

Select **Identifier** from the **Get files (properties only)** action.

![Copy file action with the dynamic content list showing Identifier from Get files](/reference-assets/images/Power%20Automate/copy_files/sn_pa_copy_file_5.png)

> When you reference value from **Get files (properties only)**, Power Automate automatically wraps **Copy file** in a **For each** loop. You don't need to add the loop manually. The loop runs **Copy file** once per matched file.

![Copy file action placed inside a For each loop after Get files](/reference-assets/images/Power%20Automate/copy_files/sn_pa_copy_file_6.png)

The table below explains each field used to configure the **Copy file** action.

| Field | Required | Description / what to enter |
| :--- | :--- | :--- |
| **Current Site Address** | Yes | The source site that contains the file being copied, e.g. `https://contoso.sharepoint.com/sites/sitename`. Must match the site used in **Get files**. |
| **File to Copy** | Yes | The identifier of the file to copy. Use the dynamic content **Identifier** from the current **For each** item, so each loop pass copies the right file. |
| **Destination Site Address** | Yes | The site that contains the destination library/folder. Can be the same as, or different from, the source site. |
| **Destination Folder** | Yes | The target folder where the copy is placed. Use the folder picker to select the destination folder. |
| **If another file is already there** | Yes | How to handle a name collision at the destination: `Copy with a new name`, `Replace`, or `Fail this action`. |

## Step 4. Save the flow

Click **Save** in the top-right corner of the flow designer.

## Result

Once the flow runs, files matching the Filter Query are copied from the source library into the destination folder, leaving the originals in place.

---

**See also:**

[Getting started with SignNow for SharePoint Online](/docs/sharepoint)



---

## Procore

# SignNow for Procore

Send documents for signature, sign them yourself, and track signing status inside a Procore record, without switching between applications. Route a subcontract from the work order contract it belongs to, send a change order to the owner for approval, or get an inspection sign-off or an incident report signed.

**Requirements**

- SignNow account on the US server with a Site License subscription
- An additional paid SignNow add-on for Procore, purchased on top of the Site License subscription.
- Procore account
- Admin level permissions on the Company level Directory tool to install apps and create app configurations

---

**Next**: [Installation →](/docs/procore-installation)


---

## Procore release notes

# SignNow for Procore release notes

Review the latest improvements to the SignNow for Procore integration.

<details open>

**<summary>October 2026</summary>**

✅ Documented the new way of sending combined documents: a single custom action can now include record attachments, SignNow templates, and the Procore PDF export. See [Create a custom action](/docs/procore-admin-tools#create-a-custom-action), [Send files and templates together](/docs/procore-send-with-signnow#send-files-and-templates-together), [Send a Procore PDF export](/docs/procore-send-with-signnow#send-a-procore-pdf-export), and [Sign a document yourself](/docs/procore-send-with-signnow#sign-a-document-yourself).

✅ Added the [Project documents](/docs/procore-installation#project-documents) section on sharing files across all records in a project.

</details>
<br>


---

## Procore installation

# Install SignNow for Procore

Install the SignNow application in your Procore company, create the app configuration that puts the side panel on your records, and sign in.

## Admin installation

Procore admins can install the SignNow application for the whole company as a custom app. Install it in your Procore company, or in a Procore sandbox to try the integration on test data first.

### Install in a real Procore company

Use the production app key. You do not need a sandbox.

- Sign in to Procore with your company account.
- Follow the steps in [Install the custom app](#install-the-custom-app) and [Create a configuration](#create-a-configuration), using the SignNow production app key.

### Install in a Procore sandbox

A sandbox is a free Procore company that mirrors production behavior. Procore creates it together with your developer app.

**Before you start**

| Item | Why you need it |
| --- | --- |
| A work email address | Procore sends the developer-account confirmation to it |
| The app key of the app you install | See [Install the custom app](#install-the-custom-app) |

**Create a developer account**

- Open [developers.procore.com/signup](https://developers.procore.com/signup).
- Complete the sign-up form.
- Confirm the address from the email that Procore sends.

**Create a developer app**

- Open **My Apps** in the developer portal.
- Select **Create New App**.
- Give the app a name.

Procore creates a sandbox company together with the app, and sends the sandbox credentials to the same email address.

**Sign in to the sandbox**

- Open [login-sandbox.procore.com](https://login-sandbox.procore.com).
- Reset the password if you do not have one.
- Select your app when Procore asks which company to open.

> [!NOTE]
> The sandbox password is separate from the developer-portal password.

### Install the custom app

- Go to **Apps** > **App Management**.
- Select **Install App** > **Install Custom App**.
- Paste the app key from the table below.
- Confirm the installation.

| App | Version | Key | Notes |
| --- | --- | --- | --- |
| Production version | 3.2.5 | `1284f134-e80c-45c2-96a2-a4b60370956c` | Installs in your Procore company |
| Sandbox version | 3.2.5 | `0d67f91c-0748-4aed-923e-cb0b3bc7f582` | Installs in a Procore sandbox |

> [!NOTE]
> These keys identify the app. They are not credentials, and they grant nothing on their own.

The application appears in the **Installed Apps** list with the types **Data Connection, Sidepanel**.

![The SignNow application in the Installed Apps list](/reference-assets/images/procore/installed-apps-list.png)

## Create a configuration

A configuration connects the installed application to your projects. Until a configuration exists, the SignNow side panel does not appear on any Procore record.

- Open the installed application and go to **Configurations** > **Create Configuration**.
- Select one project, or select global scope for all projects.
- Enter a title for the application. Procore shows this title to the user in the side panel.
- Click **Create**.

![The Create Configuration dialog](/reference-assets/images/procore/create-configuration-dialog.png)

The configuration appears on the **Configurations** tab, where you can edit or delete it.

![The Configurations tab with one configuration](/reference-assets/images/procore/app-configurations-tab.png)

> [!WARNING]
> Updating the application removes existing app configurations. Create the configuration again after every update, otherwise the side panel disappears from all records.

## Project documents

Make a file available on every record in a project, for example standard terms or insurance requirements, without attaching it to each record. Procore stores these files in a project custom field:

- In Procore, go to **Company Tools** > **Admin** > **Project Settings** > **Fieldset**. On the **Custom Fields** tab, click **Create Custom Field**, enter a name such as `Project documents`, and select the **File Uploads** field type.
- On the **Fieldsets** tab, open or create a project fieldset, click **Add Custom Field** > **Choose From Existing**, add the field, and click **Save Changes**.
- Open the project and go to **Project Tools** > **Admin**. In **Additional Information**, attach the files to the field and click **Update**.

Files uploaded there are listed in the **Select File** window on every record in the project, together with the files attached to the record.

## Update the application

When a new version is available, Procore shows an **Update Available** badge on the application.

- Go to **Apps** > **App Management** and open the installed application.
- Click **Update App**.
- Create the app configuration again. See [Create a configuration](#create-a-configuration).

![The Update App button on the installed application](/reference-assets/images/procore/update-app-button.png)

## Remove the application

Admins can remove the SignNow application from the Procore company.

- Go to **Apps** > **App Management** and open the installed application.
- Click **Uninstall**.

> [!NOTE]
> Removing the application does not delete existing invites or signed documents. They remain accessible from your SignNow account, and documents already saved to Procore records stay in place.

## Sign in

Once the admin has installed and configured the application, it is available for company users. When you first open the SignNow side panel, a sign-in prompt appears. Click **Log In**, or **Sign up** to create a SignNow account.

![The sign-in prompt in the SignNow side panel](/reference-assets/images/procore/side-panel-sign-in.png)

Sign in to your SignNow account and grant SignNow for Procore access to it by clicking **Grant access to SignNow**.

![Granting SignNow for Procore access to a SignNow account](/reference-assets/images/procore/grant-access-to-signnow.png)

> [!NOTE]
> You need to grant the permissions only once, when you use the SignNow application for the first time.

## Sign out of SignNow

Open the SignNow side panel on any supported Procore record and click the sign-out icon in the row with **Settings**.

Alternatively, in **Settings**, click the **…** icon next to your account at the bottom of the navigation and select **Log out**.

![Signing out from SignNow Settings](/reference-assets/images/procore/log-out-from-admin-area.png)

---

**Next**: [Supported Procore record types →](/docs/procore-record-types)


---

## Supported Procore record types

# Supported Procore record types

The SignNow side panel appears on the detail page of an individual record, in the dock on the right edge of the page. SignNow for Procore works with the following Procore record types:

- RFIs
- Observations
- Work Order Contracts
- Purchase Order Contracts
- Incidents
- Direct Costs
- Inspections
- Punch Items
- Commitment Change Orders
- Potential Change Orders
- Prime Contract Change Orders
- Prime Contracts
- Subcontractor Invoices
- Submittals

These are the record types available in the **Procore Record Type** list when you map template fields and when you add a custom action to a record type.

> [!NOTE]
> Procore PDF Export works on Work Order Contracts, Purchase Order Contracts, Prime Contracts, and their change orders (Commitment Change Orders, Potential Change Orders, Prime Contract Change Orders) in Procore zones US01 and US02.

![The Procore Record Type list](/reference-assets/images/procore/procore-record-type-list.png)

---

**Next**: [Admin tools →](/docs/procore-admin-tools)


---

## Procore admin tools

# Admin tools in SignNow for Procore

Configure templates, document flows, custom actions, and document storage for your company's users from the SignNow side panel. Select **Settings** or **Manage actions in SignNow** to open them.

![Settings and Manage actions in SignNow in the side panel](/reference-assets/images/procore/admin-tools-entry-points.png)

> [!NOTE]
> **Settings** and **Manage actions in SignNow** are available to Procore admins only.

Settings has four areas:

| Area | What you set up |
| --- | --- |
| **Templates** | Documents prepared once — fillable fields, recipient roles, and Procore data mapping — and reused for every signature request. |
| **Document Flows** | Invite settings, recipients, email content, and the Procore fields to update once the document is signed, applied consistently to every invite sent with the flow. |
| **Custom Actions** | One-click buttons in the side panel that send your most common signature requests straight from a Procore record. |
| **Document Storage** | Where completed documents are saved: back to the Procore record, in your SignNow account, or both. |

## Templates

Go to **Settings** and select **Templates**.

Manage all your SignNow templates, including shared and Team templates.

Create new templates from existing documents, or upload PDFs, text files, or images.

Use available options to:

- Filter templates by type: **All Types**, **Templates**, or **Document Group Templates**
- Search templates by name
- Sort by ascending or descending order, name, or date updated

Each row shows the template **Name**, **Template ID**, **Date Updated**, and the number of **Roles**. To rename a template, click **More (…)** next to it and select **Rename**. You can also copy the template ID and view existing roles.

![The Templates page with the More menu open and the Rename option](/reference-assets/images/procore/templates-more-menu-rename.png)

### Create a template

Click **+ Create New Template** and select the document you want to turn into a template. Select multiple documents to create a document group template.

> [!NOTE]
> SignNow supports .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types. Maximum file size: 50 MB.

You can also upload .docx files containing [text tags](/docs/document-generations#fillable-field-tags). The tags are automatically converted into fillable fields when the document is uploaded.

Once created, the new template appears in **Templates**.

### Add fillable fields and manage recipients

Improve the signing experience by customizing documents in the SignNow editor.

Click **Add Fillable Fields** to open the template in the editor.

#### Manage recipients

Recipient roles define how many people are involved in the document and what each of them does. You enter the actual email addresses later, when the template is sent for signature.

- Click **Manage Recipients** in the left-hand panel to open the **Add recipient roles** dialog.
- Name each role, for example `Contractor`, and select the action the recipient performs:
	- **Signer**: Fills out and signs the document
	- **Approver**: Reviews and approves the document to be sent to the next recipients
- Click **Add Role** to add another role.
- Click **Save**.

![Naming recipient roles and selecting the recipient action](/reference-assets/images/procore/add-recipient-roles.png)

#### Add fillable fields

Drag and drop fields onto the document and assign them to recipients. Fields are on two tabs:

- **All Fields** lists every SignNow field type, grouped into **GENERAL**, **PERSONAL DATA**, and **CUSTOM**. They are available to all users without any setup.
- **Favorites** lists the field types you use most often, so you can place them without searching.

Under **SELECT A RECIPIENT FOR WHOM YOU NEED TO ADD OR REQUEST DATA:**, select the recipient the fields belong to, then place the fields on the document. Select a field in the document and use the panel on the right to configure its settings.

Click **Save as Custom Field** in the field settings to reuse a configured field across documents. The saved field keeps its name, type, size, and validation, and appears in the **CUSTOM** group on the **All Fields** tab.

> [!TIP]
> Give the field a descriptive name to easily locate it when pre-filling fields.

![Adding fields for a recipient in the SignNow editor](/reference-assets/images/procore/add-fields-for-recipient.png)

Use the top panel to access document tools.

- Click **Open Preview** to see how the document appears to each recipient.
- Click the help icon to open help for the editing tools.
- Click **Element settings** to open or close the field settings panel.
- Click **Thumbnails** to manage pages.

#### Fill out a document

Use the tools on the top panel to add a text field, checkmark, line, date, or pre-filled text field.

Click **Me (Fill Out Now)** to add your information.

![Filling out a document as the sender](/reference-assets/images/procore/fill-out-now-fields.png)

When your template is ready, click **DONE**.

The template is saved to the list of Templates.

### Pre-fill fillable fields

Configure data mapping between Procore record fields and document fields.

Click **Pre-fill Fillable Fields** next to the template to start mapping document fields to Procore fields.

- Select the **Procore Record Type** to use for pre-filling. For the list of available record types, see [Supported Procore record types](/docs/procore-record-types).

![The Procore Record Type list](/reference-assets/images/procore/procore-record-type-list.png)

- Select the documents with fields to use for pre-filling. Click **Apply**.
- Click **+ Select Fields** to open the document's fillable fields available for mapping. Check the fields you want to pre-fill. Click **Apply**.

![Selecting the document fields to pre-fill](/reference-assets/images/procore/select-fields-for-mapping.png)

> [!NOTE]
> Attachment, stamp, initials, and signature fields cannot be pre-filled. Make sure each template field's validation matches the format of the Procore value mapped to it. For example, a field that accepts only numbers can't be pre-filled with a value that contains letters or symbols.

- In **Select Procore Field**, select the Procore record field that supplies the value.
- Use the **Field Editing** column to define whether recipients can edit the pre-filled data. **Allow Editing** is selected by default. Select **Lock Editing** to keep the pre-filled value read-only.

![The Field Editing options on a mapping row](/reference-assets/images/procore/field-editing-options.png)

- Click the trash bin icon to delete field mapping.

Click **Save** to apply the field mapping.

> [!NOTE]
> Add fillable fields to the template first. **Pre-fill Fillable Fields** becomes available once the template has fields to map.

#### Choose the mapping direction

Each mapping row has an arrow icon between the document field and the Procore record type. Click it to choose what the mapping does:

- **Pre-fill Document Field** — pre-fills the document field from the Procore record.

![Pre-filling the document field only](/reference-assets/images/procore/merge-setting-pre-fill-document-field.png)

- **Pre-fill & Update** — pre-fills the document field from the Procore record and writes the completed value back to the Procore field.

![Pre-filling the document field and updating the Procore field](/reference-assets/images/procore/merge-setting-pre-fill-and-update.png)

To set the direction for several fields at once, select the rows and use the **Merge Settings** dropdown. The same toolbar has **Field Editing** and **Remove Fields**.

![The Merge Settings dropdown](/reference-assets/images/procore/merge-settings-menu.png)

---

## Document flows

A document flow is a reusable configuration that defines invite settings, recipients, and email content for a document or document group, and what to update in Procore once the document is signed. Once created, it can be applied when sending files and templates for signature, ensuring consistent settings across all invites.

To rename or delete a document flow, click **More (…)** next to it and select **Rename** or **Remove**.

![The Document Flows page with the More menu open and the Rename and Remove options](/reference-assets/images/procore/document-flows-more-menu.png)

### Create a document flow

Go to **Settings** and select **Document Flows**, then click **+ Create Document Flow**.

**Add document flow information**

- Enter a name for the document flow.
- Enter a document name. This name is applied to every document sent with the flow, including the signed copies saved back to Procore.
- Define what settings the sender can configure when sending the document for signature.
- Click **Next to Customization** to proceed.

> [!TIP]
> Name the flow after the record type and what it sends, for example `RFI – subcontract for signature`. Admins pick flows by name when they attach one to a custom action, so a name that carries both the record type and the purpose keeps similar flows apart.

![The Details step of a document flow with the flow name, document name, and sender options](/reference-assets/images/procore/document-flow-info_upd.png)

### Customize the invite email subject and body

Add an optional custom subject and message for the email invites sent to the recipients. You can type plain text, or personalize the message with data from the Procore record.

> [!NOTE]
> This configuration overrides email message settings stored in the selected template. To use the original email message from the template, leave this section blank, and proceed to the next step.

To add Procore data to the subject or the body:

- Click **Add record values**.
- Select a **Procore record type**, then select a **Procore field**.
- Copy the generated record value, for example `{{purchase_order_contracts.number}}`, and insert it into the subject or message.

Click **Next to Recipients** to proceed.

![Message step with Add record values open, Purchase Order Contracts and number selected, and record values in the subject and body](/reference-assets/images/procore/customize-email-record-values-wide.png)

### Configure recipients

> [!NOTE]
> This configuration overrides settings stored in the selected template. To use the original recipients from the template, leave this section blank, and proceed to the next step.

Click **+ Add Recipient**.

- Name each recipient role.
- To add a sender as a recipient, check the **Sender's email** box.
- To pull a recipient's email from the Procore record, click **Add record values** and copy the record value into the recipient's email field.
- Use the toggle to define how recipients sign the document: in order or at the same time.
- Click the gear icon to configure password protection, expiration days, reminders, and forwarding for the invite.
- Click **+ Add Recipient** to add additional signers.

> [!NOTE]
> Name each role exactly as it's named in the template. If a role name doesn't match, the recipient is added as a new role without fields, and the template's role keeps its own recipient.

![Recipients step with a Supplier role and the Add record values button](/reference-assets/images/procore/document-flow-recipients-record-values-wide.png)

Click **Next to Actions on Completion** to proceed.

### Set actions on completion

Update the Procore record automatically once the document is signed, for example, set a purchase order's **Status** to **Approved** as soon as every recipient has signed it. This step is optional.

Click **+ Add action**, then:

- In **Record Type**, select the Procore record type the document is sent from.
- In **Procore field**, select the field to update, then set the value in **New value**.
- To update one more field on the same record, click **+ Add field**. A document flow has one action, and the action updates up to two fields.

The **What will happen** box summarizes the update. SignNow applies it to the record the document was sent from when every recipient has signed.

![The Actions on completion step setting Status to Approved on a purchase order](/reference-assets/images/procore/document-flow-actions-on-completion.png)

Enter the new value in the format the field expects:

| Field type | New value |
| --- | --- |
| Status with a fixed list of values | Select a value from the list. See the values below. |
| Yes/no fields, such as **Executed** or **Private** | Enter `true` or `false`. |
| Date | Enter the date as `YYYY-MM-DD`, for example `2026-12-01`. |
| Date and time, such as **Event Date** on incidents | Enter the date and time as `YYYY-MM-DDThh:mm:ssZ`, for example `2026-12-01T09:00:00Z`. |
| Number | Enter a number, for example `5` for **Retainage Percent**. |
| Text | Enter any text. |

These record types offer a fixed list of **Status** values. On the other record types, **Status** is a text field.

| Record type | Status values |
| --- | --- |
| Observations | `initiated`, `ready_for_review`, `not_accepted`, `closed`, `draft` |
| Work Order Contracts | Draft, Out For Bid, Out For Signature, Approved, Complete, Terminated, Void |
| Purchase Order Contracts | Draft, Processing, Submitted, Partially Received, Received, Approved, Closed |
| Incidents | `open`, `closed` |
| Inspections | Open, In Review, Closed |
| Punch Items | Open, Closed |
| Prime Contracts | Draft, Out For Bid, Out For Signature, Approved, Complete, Terminated |

<details>
<summary>Fields you can update, by record type</summary>

| Record type | Fields you can update |
| --- | --- |
| RFIs | Accepted, Draft, Drawing Number, Due Date, Number, Private, Reference, Subject |
| Observations | Description, Due Date, Name, Number, Personal, Priority, Status |
| Work Order Contracts | Accounting Method, Actual Completion Date, Approval Letter Date, Contract Date, Contract Estimated Completion Date, Contract Start Date, Description, Exclusions, Executed, Execution Date, Inclusions, Issued On Date, Letter Of Intent Date, Number, Origin Code, Origin Data, Origin Id, Private, Retainage Percent, Returned Date, Signed Contract Received Date, Status, Title |
| Purchase Order Contracts | Accounting Method, Approval Letter Date, Bill To Address, Contract Date, Delivery Date, Description, Executed, Execution Date, Issued On Date, Letter Of Intent Date, Number, Origin Code, Origin Data, Origin Id, Payment Terms, Private, Retainage Percent, Returned Date, Ship To Address, Ship Via, Status, Title |
| Incidents | Description, Event Date, Private, Recordable, Status, Time Unknown, Title |
| Direct Costs | Description, Direct Cost Date, Origin Data, Origin Id, Payment Date, Received Date, Status, Terms, Vendor Id |
| Inspections | Description, Due At, Inspection Date, Name, Number, Private, Status |
| Punch Items | Cost Impact, Cost Impact Amount, Date Initiated, Description, Name, Position, Priority, Private, Reference, Schedule Impact, Schedule Impact Days, Schedule Risk, Status, Workflow Status |
| Commitment Change Orders | Batch Id, Contract Id, Description, Due Date, Enable SSOV, Executed, Field Change, Invoiced Date, Location Id, Number, Paid, Paid Date, Private, Reference, Revision, Schedule Impact Amount, Signature Required, Signed Change Order Received Date, Status, Title |
| Potential Change Orders | Batch Id, Contract Id, Description, Due Date, Executed, Field Change, Invoiced Date, Location Id, Number, Paid, Paid Date, Private, Reference, Revised Substantial Completion Date, Revision, Schedule Impact Amount, Signature Required, Signed Change Order Received Date, Status, Title |
| Prime Contract Change Orders | Contract Id, Description, Due Date, Executed, Invoiced Date, Number, Paid Date, Private, Revised Substantial Completion Date, Revision, Schedule Impact Amount, Signature Required, Signed Change Order Received Date, Status, Title |
| Subcontractor Invoices | Billing Date, Comment, Final, Invoice Number, Origin Data, Origin Id, Payment Date, Period Id, Requisition End, Requisition Start, Status, Submitted At |
| Submittals | Actual Delivery Date, Buffer Time, Confirmed Delivery Date, Custom Textarea 1, Custom Textfield 1, Description, Design Team Review Time, Due Date, For Record Only, Internal Review Time, Issue Date, Lead Time, Number, Private, Received Date, Required On Site Date, Revision, Source Submittal Log Id, Submit By, Title |
| Prime Contracts | Accounting Method, Actual Completion Date, Allow Comments, Allow Markups, Allow Payment Applications, Allow Payments, Approval Letter Date, Auto Approve Prefilled Requisitions On Payapp, Change Order Level Of Detail, Contract Date, Contract Estimated Completion Date, Contract Start Date, Contract Termination Date, Description, Display Materials Retainage, Display Work Retainage, Enable SSOV, Exclusions, Executed, Execution Date, Inclusions, Issued On Date, Letter Of Intent Date, Number, Private, Retainage Percent, Returned Date, Show Cost Code On Pdf, Show Line Items To Non Admins, Signature Required, Signed Contract Received Date, Status, Substantial Completion Date, Title |

</details>
<br>

If Procore rejects the value, the document still completes and shows a **Procore sync failed** badge on the [Track Document Statuses](/docs/procore-track-document-statuses#procore-sync-failed) page.

Click **Save** to save the document flow configuration.

The document flow appears in the list of flows, where you can edit or delete it. Document flows are applied when creating a custom action.

## Custom actions

Custom actions are reusable buttons in the SignNow side panel for your most common signature requests. Each time a user needs to send a document, they open a Procore record, click the action, and send the document per your configuration. A single custom action can combine record attachments, SignNow templates, and the Procore PDF export in one document group.

### Create a custom action

- Go to **Settings** and select **Custom Actions**, then click **+ Create Custom Action**.
- Enter a name for the custom action and an optional description. Senders see the name in the SignNow side panel.
- In **Select Document Source**, select one or more sources. When you select several, the documents are combined into one document group.

| Source | Description |
| --- | --- |
| Procore PDF Export | The PDF that Procore generates for the record. Available for contract and commitment record types in Procore zones US01 and US02. See [Supported Procore record types](/docs/procore-record-types). |
| SignNow template | Select **SignNow template: selected by the sender** to let the sender choose templates when the action is triggered, or **SignNow template: pre-selected by the Admin** to always send the same template. For a pre-selected template, select it from the list and click **Apply**. |
| File: from the list of files attached to a Procore record | The sender selects files attached to the Procore record. |

- In **Delivery and Invite Settings**, select how the document is completed:
	- **Send for signature**: The document is sent to recipients for signature.
	- **Self Sign: sign the document without sending**: The sender signs the document without sending it to recipients. Self Sign is available with **Procore PDF Export**, **File**, or both.
- Optionally, in **Add the SignNow Document Flow**, select a document flow to send the document with pre-configured invite settings. See [Document flows](#document-flows). Self Sign actions do not use a document flow.
- In **Record Type**, select the Procore record type where the custom action appears. If the action sends a template, select the same record type as in that template and in the document flow. When **Procore PDF Export** is selected, the list shows only the record types that support it.
- Click **Save Custom Action**.

![Custom action with Procore PDF Export and a SignNow template pre-selected by the Admin](/reference-assets/images/procore/new-custom-action-combined-sources.png)


The following source combinations can be saved:

| Document sources | Delivery options |
| --- | --- |
| Procore PDF Export | Send for signature, Self Sign |
| Procore PDF Export + File | Send for signature, Self Sign |
| File | Send for signature, Self Sign |
| Procore PDF Export + SignNow template | Send for signature |
| Procore PDF Export + SignNow template + File | Send for signature |
| SignNow template + File | Send for signature |
| SignNow template | Send for signature |

![Custom action with Procore PDF Export and File selected and Self Sign as the delivery option](/reference-assets/images/procore/custom-action-self-sign-sources.png)

The custom action appears in the **Custom Actions** list. The list shows the following columns:

| Column | Description |
| --- | --- |
| **Name** | The name senders see in the SignNow side panel. |
| **Action Type** | The document sources the action combines, for example **Procore PDF Export, Files and SignNow Templates**. Actions that sign without sending show **Self Sign**. |
| **Record Type** | The Procore record type where the action appears. |
| **Modified Date** | When the action was last saved. |

To change a custom action, click **Edit**. To delete it, click **•••** and select **Remove**.

Use **Search** to find a custom action, and the dropdowns on the top panel to filter the list by record type or date. Click the **Name** or **Modified Date** column heading to sort the list.

![The Custom Actions list with the more actions menu open, showing Remove](/reference-assets/images/procore/custom-actions-list-more-menu.png)

### Use a custom action

Once saved, the custom action appears in the SignNow side panel under **SEND FOR SIGNATURE** on every record of the associated record type.

To use a custom action:

- Go to the Procore record associated with the custom action.
- Open the SignNow side panel from the dock on the right edge of the page.
- Click the custom action to send the document according to your configuration.

![Custom actions in the SignNow side panel](/reference-assets/images/procore/custom-action-in-side-panel.png)

## Document storage

Go to **Settings** and select **Document Storage** to define where signed documents are saved once all parties complete signing. Customize the saving options:

- Turn on **Save completed documents in Procore** to attach completed documents to the Procore record they were sent from.
- Select **Keep document copies in SignNow** to also keep a copy in your SignNow account, then choose **Save in default workspace Team folder** or **Select destination folder**.
- Select **Export with Document History** to save the SignNow audit log alongside the document.
- Select **Save each signed document as a separate file** to save every document in a document group to the Procore record as its own file.

![Document Storage settings](/reference-assets/images/procore/document-storage-settings.png)

**Save completed documents in Procore** is on by default, so documents signed by all recipients are attached to the Procore record they were sent from.

To find a signed document:

- Go to the Procore record the document was sent from.
- Find the signed document in the **Attachments** section of the record.
- Click the file name to open it in the Procore document viewer, where you can page through it and download it.

![Signed documents in the record Attachments](/reference-assets/images/procore/signed-documents-in-attachments.png)

> [!NOTE]
> With **Export with Document History** enabled, a second file is saved alongside the document, prefixed `with_history_`. Its last page is the SignNow E-Signature Audit Log, listing the document name, ID, creation and send times, status, sender, signers, and a table of events.

---

**Next**: [Send with SignNow →](/docs/procore-send-with-signnow)


---

## Send with SignNow from Procore

# Send documents with SignNow from Procore

Send files, templates, and Procore PDF exports for signature from a record, sign documents yourself, and track status. These tools are available once your admin has configured the integration for the company.

**Pre-condition**

Users must sign in to their SignNow account to use the integration. The sign-in screen appears when opening the SignNow side panel for the first time.

To open the side panel, go to a supported Procore record and click **SignNow** in the dock on the right edge of the page. For the list of supported records, see [Supported Procore record types](/docs/procore-record-types).

The side panel has two sections: **SEND FOR SIGNATURE** and **DOCUMENT STATUSES**.

![The SignNow side panel on a Procore record](/reference-assets/images/procore/side-panel-on-a-record.png)

## Send a file for signature

Send files attached to a Procore record for signature.

> [!NOTE]
> For supported file types, see [Create a template](/docs/procore-admin-tools#create-a-template). Maximum file size: 50 MB.

To trigger sending, click **From this record** in the SignNow side panel.

Alternatively, use a custom action configured by your admin.

If a single file is attached to the record, the sending flow opens immediately.

If several files are attached, the **Select File** window opens. It lists the files attached to the record and any [project documents](/docs/procore-installation#project-documents) your admin has added to the project. Select one or more files and set the merge order by dragging and dropping them, then click **Proceed** and follow the steps below to configure and send the invite.

The selected files are merged into a document group. Field mapping applies per document within the group. Recipients are configured for the group as a whole.

![Select File window listing a project document together with the files attached to the record](/reference-assets/images/procore/select-file-with-project-documents.png)

- Edit the document name. Recipients will see this name in their inbox.
- Click **Continue** to proceed to the editor.

![The Document Name step](/reference-assets/images/procore/document-name.png)

- Manage recipients and CC recipients.
- Add fields and assign them to recipients.
- Add your information using the tools on the top panel or **Me (Fill Out Now)**.
- Click **Continue** to proceed to field mapping.

![Preparing the document in the editor](/reference-assets/images/procore/sender-add-fields.png)

- Optionally, map fields in the document to Procore data. See [Pre-fill fillable fields](/docs/procore-admin-tools#pre-fill-fillable-fields).
- Click **Continue** to open the Send Invite page.

![The Map Fields step](/reference-assets/images/procore/map-fields.png)

- Edit the recipient and CC recipients' email addresses and the signing order.
- Customize the invite email subject and message for each recipient.
- Click the gear icon to show the settings. Select a recipient authentication type, set individual expiration and auto reminders, allow document forwarding, and enable or disable the decline option for the signature field.
- Click **Apply** to save the changes.
- Click **Send Invite** (**Send Invite to First Recipient** if recipients receive documents in order) to send the document for signature.

![The Send Invite page with recipient settings](/reference-assets/images/procore/send-invite-recipient-settings.png)

Once all recipients sign, the completed document is saved as an attachment to the Procore record it was sent from. See [Document storage](/docs/procore-admin-tools#document-storage).

## Send a SignNow template

Send SignNow templates for signature from a Procore record.

- Go to the Procore record and open the SignNow side panel.
- Click **From a template**.
- In the **Select Templates** window, select one or multiple templates.

To quickly locate a template:

- Filter templates by type: **All Types**, **Templates**, or **Document Group Templates**
- Show **Only Prepared Templates** or all templates
- Sort templates by name in ascending or descending order
- Switch the view layout between list and grid

![Select Templates window with two templates selected and the Merge order panel](/reference-assets/images/procore/select-templates.png)

> [!NOTE]
> Templates need fillable fields to be sent for signature. Use the **Only Prepared Templates** filter to list the templates that are ready to send. If a template you need is unavailable, ask your admin to add the fields.

Once the templates are selected, click **Proceed** to continue with the sending flow.

The template is pre-configured. Make changes at any step as needed.

If multiple templates are selected, they are merged into a single document group. Field mapping is configured separately for each template within the group, and recipients are configured for the group as a whole.

> [!NOTE]
> When multiple templates are merged into a single document group, the recipient roles configured in each template need to be assigned to the new invite recipients. Add the recipients first, then assign each existing role to them, or click **Assign All to One Recipient** to assign all roles to a single recipient.

- Change the name of the template if needed.
- Add and assign fillable fields and manage the recipients in the editor. See [Add fillable fields and manage recipients](/docs/procore-admin-tools#add-fillable-fields-and-manage-recipients).
- Check and edit the data mapping between the document fields and Procore fields. See [Pre-fill fillable fields](/docs/procore-admin-tools#pre-fill-fillable-fields).
- Edit recipient and CC recipient email addresses, invite email subject and message, signing order, authentication and completion settings, and reminders.

If no changes are needed, click **Continue** at every step to send the document group template according to the configuration.

Alternatively, use a custom action configured by your admin. Depending on the configuration, the template may be pre-selected, or you may be prompted to select one.

Once all recipients sign, the completed document is saved as an attachment to the Procore record it was sent from. See [Document storage](/docs/procore-admin-tools#document-storage).

## Send files and templates together

Send files attached to the record and SignNow templates in one document group. Your admin sets this up as a custom action that combines the **File** and **SignNow template** sources.

- Go to the Procore record and open the SignNow side panel.
- Click the custom action under **SEND FOR SIGNATURE**.
- In the **Select File** window, select the files to send and click **Proceed**.
- In the **Select Templates** window, select the templates to add. A template pre-selected by your admin is already selected and is the only one listed.

![Select Templates window with the admin template selected and a record file and the template in the Merge order panel](/reference-assets/images/procore/select-templates-with-file-and-template.png)

In the **Merge order** panel, drag documents to set their order in the document group, or click **✕** to remove one. Click **Back** to change the selected files.

Click **Proceed** to create the document group, then continue with the sending flow as described in [Send a file for signature](#send-a-file-for-signature).

Once all recipients sign, the completed document is saved as an attachment to the Procore record it was sent from. See [Document storage](/docs/procore-admin-tools#document-storage).

## Send a Procore PDF export

Send the PDF that Procore generates for a contract or commitment record, on its own or together with SignNow templates and files attached to the record. Your admin sets up the sources in a custom action.

- Go to the Procore record and open the SignNow side panel.
- Click the custom action under **SEND FOR SIGNATURE**.

What you see next depends on the sources in the custom action:

- If the action includes files attached to the record, the **Select File** window opens. Select the attachments to add under **Record attachments** and click **Proceed**.
- If the action includes SignNow templates, the **Select Templates** window opens, after **Select File** if the action also includes files. Select the templates to add. A template pre-selected by your admin is already selected and is the only one listed.

The Procore PDF export is listed under **From this record** in the first window that opens and stays selected.

![Select Templates window with the Procore PDF export under From this record and the Merge order panel](/reference-assets/images/procore/select-templates-with-pdf-export.png)

In the **Merge order** panel, drag documents to set their order in the document group, or click **✕** to remove one. The Procore PDF export can be moved but stays in the group.

Click **Proceed** to create the document group. The sending flow continues as configured in the custom action and its document flow.

The Procore PDF export arrives without fillable fields. In the editor, select a recipient and place the fields they need, for example **Signature** and **Date and Time** next to the signature lines of the export. Fields from a template in the group, including pre-filled Procore data, are already in place.

![Signature and date fields placed for the recipient on the Procore PDF export](/reference-assets/images/procore/pdf-export-add-fields.png)

Then continue as described in [Send a file for signature](#send-a-file-for-signature): review the recipients and the invite email, and click **Send Invite**.

Once all recipients sign, the completed document is saved as an attachment to the Procore record it was sent from. See [Document storage](/docs/procore-admin-tools#document-storage).

## Sign a document yourself

Sign a Procore PDF export or files attached to a Procore record without sending them for signature. Your admin sets this up as a custom action with the **Self Sign: sign the document without sending** delivery option.

- Go to the Procore record.
- Open the SignNow side panel and click the custom action configured for Self Sign.
- If the action includes files attached to the record, the **Select File** window opens. The Procore PDF export, if the action includes it, is listed under **From this record** and stays selected. Select the attachments to sign under **Record attachments**, and drag them in the **Merge order** panel to set their order. Click **Proceed**. Alternatively, click **Back to Record** to cancel.

![Select File window with the Procore PDF export and a record attachment selected](/reference-assets/images/procore/self-sign-select-file-with-pdf-export.png)

The documents open for signing as a FreeForm invite, where you place fields anywhere on the document.

- Place the fields you need on the document. On the **Default** tab, the available tools are **My Signature**, **My Initials**, **My Stamp**, **Text**, **Today's Date**, **Check**, and **Line**. Your saved custom fields are on the **Custom** tab.
- Select a placed field to format it in the panel on the right, or use the field toolbar to move, duplicate, or delete it.
- To rename the document, click the pencil icon next to the document name.

![Signing a document as a FreeForm invite](/reference-assets/images/procore/self-sign-freeform-invite.png)

- Click **DONE** to finish signing and close the document.

If you click **DONE** before adding your signature, the **Signature Missing** page opens. Click **Back to Editor** to return to the document and add your signature, or click **Download Document** to save the document as it is.

![Signature Missing page with Back to Editor and Download Document](/reference-assets/images/procore/self-sign-signature-missing.png)

The **Document Complete Successfully** page confirms that you have completed the document. Click **Download Document** to save the finalized copy to your device.

![The Document Complete Successfully page](/reference-assets/images/procore/document-complete-successfully.png)

The signed document is saved as an attachment to the Procore record it was signed from. See [Document storage](/docs/procore-admin-tools#document-storage).

> [!NOTE]
> Self Sign does not use a document flow and sends no invite. The document is completed as soon as you click **DONE**.

---

**Next**: [Track document statuses →](/docs/procore-track-document-statuses)


---

## Track document statuses

# Track document statuses

To check the signing status of sent documents, users and admins can use **DOCUMENT STATUSES** in the SignNow side panel. Statuses update in real time.

- Go to the Procore record the invite was sent from.
- Open the SignNow side panel and click **View documents on this record**.

![The Track Document Statuses page, showing the View Status, Open Document, Download, and More actions on each document row](/reference-assets/images/procore/track-document-statuses.png)

The **Track Document Statuses** page shows all documents sent from this record and their signing status, with the sender, the send date, the template used, and the signers. Each document row carries the actions described in the sections below.

- Filter documents by status, template, date, or sender.
- Sort documents by name, creation date, or most recent activity.

## View the signing status

Click **View Status** to see the detailed signing progress of the document.

On the detailed status page, you can track each step, view recipient email addresses, and see the date the document was signed. While an invite is still in progress, click **Cancel All Invites** to stop the signing process for the document.

> [!NOTE]
> **View Status** is available once the document has been sent. Documents with **Draft** status show the other actions instead.

![The detailed signing status of a document](/reference-assets/images/procore/view-status.png)

## Procore sync failed

If the document flow updates the Procore record on completion and Procore rejects the new value, the document still completes and shows a **Procore sync failed** badge. Hover over the badge to see the error Procore returned, for example *Record not updated: procore.validation_failed*.

![Signed document with the Procore sync failed badge and its error tooltip](/reference-assets/images/procore/procore-sync-failed.png)

To fix it, correct the value in the [document flow](/docs/procore-admin-tools#set-actions-on-completion), then update the record manually for documents that are already completed.

## Open a document

Click **Open Document** to open the document in the SignNow editor, in a new window.

## Download a document

Click **Download** to save the document to your device as a PDF.

## Use more actions

Click **More (...)** on a document row for two more options:

- **View History** — opens your SignNow account, where you can view the document details.
- **Download With History** — opens your SignNow account, where you can download the document with its history.

![The More actions menu on a document](/reference-assets/images/procore/more-actions-menu.png)

---

**Next**: [Troubleshooting →](/docs/procore-troubleshooting)


---

## Procore glossary

# SignNow for Procore glossary

Terms used across the SignNow for Procore guide — invites, fillable fields, templates, document flows, custom actions, and data mapping.

**Signature invite**: A single document or group of documents with or without fillable fields sent for signature to one or multiple recipients.

**Fillable fields**: Editable boxes in the document where recipients can add signatures and data.

**Fill Out Now**: Content that a sender can add to the document, such as text, date, signature, initials, and more.

**Recipient**: A user who receives the document to fill out or approve.

**Sender**: A user who prepares and sends the document for signature.

**Role**: An action assigned to the recipient by the sender. Available roles include signer and approver.

- Signer – fills out and signs the document.
- Approver – reviews and approves the document to be sent to the next recipients.

**Template**: A document or document group with fillable fields that you configure once and reuse as often as needed. Each time you send a template for signature, a new document or document group copy is created.

**FreeForm invite**: A document without fillable fields. It opens so that fields can be placed anywhere on the document.

**Self Sign**: A mode of signing a document yourself, without sending it for signature. The document opens as a FreeForm invite.

**Document flow**: A reusable configuration that defines invite settings, recipients, and email content for a document or document group. Applied when sending documents for signature to ensure consistent settings across all invites.

**Custom action**: A reusable button in the SignNow side panel configured by an admin to trigger a specific SignNow workflow. Custom actions send a Procore PDF export, SignNow templates, files attached to the record, or a combination of them, either for signature or for self-signing. A pre-configured document flow can be included to apply consistent invite settings.

**Procore PDF Export**: The PDF that Procore generates for a contract or commitment record. A custom action can send it for signature or self-signing, on its own or together with templates and files.

**CC recipient**: A user who receives a copy of the document by email but is not required to fill out or sign it.

**Text tags**: Markers embedded in a .docx file that are automatically converted into fillable fields when the document is uploaded to SignNow.

**Document group**: A set of multiple documents sent together as a single invite to one or more recipients.

**Data mapping**: A configuration that links Procore record fields to document fields, so document fields are automatically pre-filled with Procore data when an invite is sent.

**Configuration**: The Procore-side setting that connects the installed application to one or more projects. Without it, the side panel does not appear.

**Side panel**: The SignNow application inside a Procore record page, opened from the dock on the right edge.


---

## Procore troubleshooting

# Troubleshoot SignNow for Procore

Fix a missing SignNow panel, a template you can't select, an empty pre-filled field, or a custom action that won't save.

## The side panel

For setup instructions, see [Installation](/docs/procore-installation).

| Issue | Solution |
|---|---|
| The SignNow panel does not appear on any record | No app configuration covers the project. Go to **Apps** > **App Management**, open the SignNow application, and check the **Configurations** tab. Create a configuration with global scope, or one that selects this project. See [Create a configuration](/docs/procore-installation#create-a-configuration). |
| The panel disappeared from every record after an update | Updating the application removes existing app configurations. Create the configuration again after every update. |
| The panel appears on one project only | The configuration has project scope. Create a configuration with global scope to cover all active and future projects. |
| The panel does not appear on a tool's list page or on the project Home page | The panel is scoped to the detail page of an individual record. Open a record first. |
| SignNow appears on some records but not others | The record type is not supported. Open a record from the list in [Supported Procore record types](/docs/procore-record-types). |

## Templates and mapping

| Issue | Solution |
|---|---|
| **Pre-fill Fillable Fields** is unavailable on a template | The template has no fillable fields yet. Open it with **Add Fillable Fields**, place the fields, and click **DONE**. See [Pre-fill fillable fields](/docs/procore-admin-tools#pre-fill-fillable-fields). |
| A template cannot be selected when sending | Templates need fillable fields to be sent for signature. Use the **Only Prepared Templates** filter to list the templates that are ready to send, and ask your admin to prepare the rest. |
| A pre-filled field arrives empty although the Procore record has data | The Procore value doesn't match the validation type of the mapped template field, for example a field that accepts only numbers mapped to a value that contains letters or hyphens. In SignNow, open the template and make sure the validation type of each mapped field matches the data that pre-fills it. Save the template, then send the document again from the record. |
| A custom action sends a template but no data is pre-filled | The record type on the custom action does not match the one selected in the template. Align both. |

## Custom actions

| Issue | Solution |
|---|---|
| **Save Custom Action** is unavailable and shows "This combination of document sources is not available yet" | The selected sources and delivery option can't be combined. Self Sign works with **Procore PDF Export**, **File**, or both. For an action that includes a SignNow template, select **Send for signature**. See [Create a custom action](/docs/procore-admin-tools#create-a-custom-action). |
| The Procore PDF export cannot be generated | Procore PDF Export works on contract and commitment record types in Procore zones US01 and US02. Check that the custom action uses a record type listed in [Supported Procore record types](/docs/procore-record-types) and that your company is in one of these zones. |

## Sandbox

| Issue | Solution |
|---|---|
| The sandbox login does not accept your password | The sandbox password is separate from the developer-portal password. Reset it at [login-sandbox.procore.com](https://login-sandbox.procore.com). |

---

**Next**: [Glossary →](/docs/procore-glossary)


---

## SignNow for Word and Excel

# SignNow add-in for Microsoft Word 365 and Excel 365

The [SignNow for Microsoft 365](https://marketplace.microsoft.com/en-sa/product/Office365/WA200009828) add-in allows you to complete documents and collect signatures directly from Word 365 and Excel 365, without switching tabs or dealing with disconnected tools.

# Prerequisites

**Note**: The SignNow add-in is currently available for **Microsoft Word Online** and **Microsoft Excel Online** (Microsoft 365).

1. A Microsoft OneDrive account.
2. SignNow account on the US server with an active [Site License subscription](https://snseats.signnow.com/purchase/business_plans/pricing).

**Note**: The SignNow add-in may not be available in all billing regions on the Microsoft App Marketplace. If you see a *"This add-in is not available in your billing region"* error, verify the billing region configured in your Microsoft account settings — the error can appear even in regions where the add-in is listed. If the issue persists, contact SignNow support.

## Installation

Open your document in Word or Excel and click **Home** > **More (…)** in the top ribbon, then select **Add-ins** from the dropdown.

![Word document with the Home ribbon More menu and the Add-ins option](/reference-assets/images/addin_word/add_addin.png)

Type *signnow* in the search bar. Click **Add** next to the SignNow add-in.

![Word Add-ins search with the SignNow add-in and its Add button](/reference-assets/images/addin_word/sn_word_add_addin.png)

Once the SignNow add-in is added to the top ribbon, click the add-in and select **Open SignNow Sidebar**.

![SignNow sidebar in Word with the Welcome to SignNow message and the Log In button](/reference-assets/images/addin_word/signnow_sidebar_login.png)

The SignNow sidebar will open on the right.

- To close the sidebar, click the **X** icon.
- To resize the sidebar, click **More Options (…)**.
- To access your account, click **Log In**.
- If you don’t have an account, click **Sign up for SignNow for free**.

## Log in to SignNow

You can log in to SignNow using:

- **Social accounts:** Microsoft, Google, or Facebook.
- **SignNow, pdfFiller, or airSlate credentials:** Email and password.
- **SSO:** If enabled for your organization.

![SignNow login form with social login buttons, email and password fields, and Log in with SSO](/reference-assets/images/addin_word/signnow_login.png)

Before using the add-in, you must grant access to your SignNow account.

![Screen asking to grant SignNow for Word access to the SignNow account](/reference-assets/images/addin_word/signnow_access.png)

**After installation is complete:**

Select **SignNow** > **Open SignNow Sidebar**.

You can now send documents for signature, sign them yourself, track status, or manage storage options.

**Note:** To log out, click the **Log out** icon. For support, click the **Question (?)** icon to open the Help Center.

![SignNow sidebar in Word with the Log out and Help icons](/reference-assets/images/addin_word/logout_support.png)

## Team collaboration in SignNow

### Where documents are stored in SignNow

When **Keep document copies in SignNow** and **Save in default workspace Team folder** are enabled in [Document Storage](/docs/word-excel-add-in-document-storage), documents sent from the add-in are stored in the Documents folder of your default workspace Team, shared with everyone in that workspace.

> If your account already has a dedicated **OneDrive integration** folder under Private Teams from an earlier installation, it is still supported and continues to store documents sent from the add-in.

![OneDrive integration folder in SignNow Documents under the team folders](/reference-assets/images/addin_word/onedrive_integration_folder.png)

### Team settings (legacy accounts)

If you still use the **OneDrive integration** team, you can add users and customize its sending preferences directly from your SignNow account dashboard.

- Go to **Settings > Private Teams.**
- Locate the **OneDrive integration** team and click **Open Team**.

![SignNow Settings Private Teams list with the OneDrive integration team and the Open Team button](/reference-assets/images/addin_word/onedrive_private_team.png)

From here, you can:

- **Invite members:** Click **Add Users** to invite colleagues to the team.
- **Configure sending:** In the **Sending Settings** section, set up a default email address for all document invites.
- **Rename Team:** Change the team name if desired.

![OneDrive integration team settings with shared folders, document settings and the Sending Settings section with the team name and default sending email](/reference-assets/images/addin_word/onedrive_team_settings.png)



---

## Invite to sign from Word and Excel

# Send invites from SignNow for Word and Excel

Open the document you want to send for signature.

> The add-in supports Word documents (`.docx`) and Excel spreadsheets (`.xlsx`) with a maximum file size of **50 MB**.

In the ribbon, select **SignNow** > **Open SignNow Sidebar**.

Click **Invite to Sign** on the sidebar.

![SignNow sidebar in Word with the Invite to Sign option](/reference-assets/images/addin_word/click_invite_to_sign.png)

Change the document name if needed.

![Document Name step with the editable document name](/reference-assets/images/addin_word/invite_doc_name.png)

Click **Continue** to open the document in the SignNow editor.

## Manage recipients

If your document doesn’t have fillable fields yet, the **Manage Recipients** panel will open automatically.

![Add recipients dialog with two recipients and their roles](/reference-assets/images/addin_word/invite_manage_recipients.png)

- Add recipients and CC recipients.
- Enter email addresses.
- **Customize roles:** Rename roles for clarity (e.g., change *Recipient 1* to *Buyer*).
- **Define access:**
    - **Signer:** Fills out and signs the document.
    - **Approver:** Reviews and approves the document.


>  You can reopen this panel anytime while editing by clicking **Manage Recipients**. Click **Save and Continue** to close it.

## Add fillable fields

Drag and drop fields from the left-side panel anywhere on your document.

Click a field to configure its settings in the right-hand panel:

- Assign the field to a specific recipient.
- Mark as **Required**.
- Adjust position.
- Add a **Payment Request** (available for text fields only).

![Sales contract in the SignNow editor with signature and date fields assigned to the buyer and seller](/reference-assets/images/addin_word/invite_fillable_fields.png)

> If you don’t add any fillable fields, the document will be sent as a FreeForm invite, meaning recipients can place their signatures anywhere on the document.

## Add your data

### **Add your data (pre-filling)**

If you need to add your own information before sending:

- Click **Me (Fill Out Now)** on the left-side panel.
- Add elements like Text, Signature, Today’s Date, Checks, Initials, or Stamps.
- Alternatively, use the quick tools in the upper panel.

![SignNow editor with the Me option and the quick tools for adding your own data](/reference-assets/images/addin_word/invite_add_myself.png)

Click **Save and Close** to proceed.

## Set up and send

On the **Set up and Send** page:

- Add or edit email addresses for Signers and CCs.
- Use the toggle at the top to enforce a sequence.

> The Approver role requires the signing order to be enabled.

- Customize the email subject and body text.

![Send Invite page with three recipients, the signing order and the Actions On Completion button](/reference-assets/images/addin_word/invite_setup_send.png)

- Click the **Gear icon** next to a recipient to set up:
    - 2FA Authentication (Password/Phone).
    - Expiration dates.
    - Reminders.

![Authentication and Settings panel for a recipient with password authentication, expiration and reminders](/reference-assets/images/addin_word/invite_recipient_settings.png)

- Click **Actions on Completion** to configure what happens after signing (e.g., redirect links or document forwarding).

![Actions On Completion panel with the completion email, redirect link and Request a Payment options](/reference-assets/images/addin_word/invite_action_on_completion.png)

When ready, click **Send Invite** (or **Send Invite to First Recipient** if the signing order is enabled).


---

## Sign myself

# Sign myself

Sign a Word or Excel document yourself from the SignNow sidebar, without sending it to anyone else.

In the ribbon, select **SignNow** > **Open SignNow Sidebar**.

Click **Sign Myself** on the SignNow sidebar to sign the document without sending it to others.

![SignNow sidebar in Word with the Sign Myself option](/reference-assets/images/addin_word/sign_myself_sidebar.png)

Rename the document if needed and click **Continue**.

To add your signature and other data, select **Me (Fill Out Now)** on the left panel.

![SignNow editor with the Me option and the quick tools for adding your own data](/reference-assets/images/addin_word/invite_add_myself.png)

Choose between **Default** or **Custom** (saved) fields to add data:

- Text, Signature, Today’s Date, Check, Initials, Stamp.

> Use the top panel for quick additions like text or lines.

### Add your signature

- Click **My Signature** on the left and then anywhere on your Word document.
- Type, draw, or upload the written image of your handwritten signature.

**Tip**: Click **Change style** to modify the font of your typed signature.

![Add Your Signature dialog with a typed signature and the draw and upload options](/reference-assets/images/addin_word/add_signature.png)

When you are ready to add the signature, click **Sign**.

To edit the signature, select it on the document and use the icons to move it, duplicate, change, or delete.

> You can create and save multiple signatures.

![Typed signature placed on the document in the SignNow editor](/reference-assets/images/addin_word/add_signature_icons.png)

Click **Save and Close** to finish, then **Download** the signed document to your device.

![Document Complete Successfully page with the Download Document button](/reference-assets/images/addin_word/add_signature_download.png)



---

## Track documents in Word and Excel

# Track documents in SignNow for Word and Excel

Click **Track Documents** on the sidebar to see all documents sent via the add-in.

![SignNow sidebar in Word with the Track Documents option](/reference-assets/images/addin_word/track_documents_sidebar.png)

- Filter documents by statuses, templates, date, or senders by selecting the corresponding dropdown on the top panel.
- Sort documents by ascending or descending order, recent activity, name, or date created.
- Click **More (…)** on a specific document to see available actions.

> Selecting an action will redirect you to your SignNow web account.

- Click **Open Document** to open the document in view mode.

![SignNow Track Document Statuses page with the More actions menu open](/reference-assets/images/addin_word/track_documents_general.png)

- Click **View Status** to view the detailed document status.

![View Status page with each signing step's recipients and statuses](/reference-assets/images/addin_word/track_documents_view_status.png)

> Selecting **Cancel All Invites** will redirect you to your SignNow account.


---

## Document storage in Word and Excel

# Document storage in SignNow for Word and Excel

Configure where your signed documents are stored.

In the ribbon, select **SignNow** > **Open SignNow Sidebar**.

Click **Document Storage** on the side panel.

![SignNow sidebar in Word with the Document Storage option](/reference-assets/images/addin_word/document_storage_sidebar.png)

In **Document Storage**, define where signed documents are saved. Set the following options:
- Choose whether to save completed documents in OneDrive. Enabled by default.
- Choose whether to keep document copies in SignNow. Enabled by default.
- Choose whether to export documents with their history.
- Choose whether to save each signed document as a separate file.

> By default, documents are stored in both SignNow and OneDrive.

![Document Storage settings with Save completed documents in OneDrive and the SignNow copy options](/reference-assets/images/addin_word/doc_storage_upd.png)

### Store document copies in SignNow

When **Keep document copies in SignNow** is enabled, choose where copies are stored in your SignNow workspace:

- **Save in default workspace Team folder** — (default) Document copies are saved to the Team's Documents folder in your default workspace.
- **Select destination folder** — choose a different SignNow workspace team folder. Only team folders are available; private folders are not listed. The picker lists Team folders from all your workspaces, not only your active one, each labeled as workspace name > folder name.

![Select destination folder dialog listing the team folders](/reference-assets/images/addin_word/word_select_destination_folder.png)

> **Note**: Everyone in your workspace with access to the selected team folder can access the stored documents.

When **Save in default workspace Team folder** is selected, document copies are saved to the Documents folder in your default workspace Team.

If the default workspace can't be identified:

- when you belong to a single workspace, they are saved to that workspace's Documents folder.
- when you belong to several workspaces and can't set a default, they are saved to your personal Documents folder.

## Access signed documents in OneDrive

Once a document is signed by you (via **Sign Myself**) or all signers (via **Invite to Sign**), a PDF copy is automatically saved to your OneDrive in the SignNow folder.

**To access these files:**

- Open OneDrive.
- Navigate to **My files** > **Apps** > **SignNow**.

> Documents are automatically saved only if the **Save completed documents in OneDrive** setting is enabled in the SignNow add-in **Document Storage** (this is on by default). Copies appear in the folder after the signing process is fully completed.

![OneDrive My files with signed documents in the Apps, SignNow folder](/reference-assets/images/addin_word/onedrive_signed_docs.png)


---

## Microsoft Teams

# SignNow for Microsoft Teams

Use the SignNow app for Microsoft Teams to send, sign, and track documents without leaving your Teams workspace.

This guide will take you through the process of installing, configuring and using the SignNow application for your Microsoft Teams workspace in Office 365.

**Requirements:**

- SignNow account on the US server
- A Microsoft Teams account

_Last update: March 2021_

---

## Connect SignNow to cloud services

# Connect SignNow to cloud services

Connect your SignNow account to a cloud storage service to export signed documents for archiving.

1. To connect a cloud storage service, proceed to _Settings_ in the SignNow app. Then, click **Connect Cloud Storage**.

![SignNow app Settings in Microsoft Teams with the Connect Cloud Storage button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.connect.cloud.storage.png)

2. You’ll be redirected to the SignNow web app. Select the service you need and click **Connect**.

![Cloud Storages page in the SignNow web app with the Connect buttons](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.select.storage.png)

Once connected, all signed SignNow documents will be automatically available in the selected cloud storage.


---

## Install SignNow app

# Install SignNow app

Install the SignNow app in Microsoft Teams to send, approve, and track documents for signature without leaving your workspace.

1. You can install the SignNow app to a Microsoft Team workspace or directly to a team or chat:

- How to add SignNow to a Microsoft Teams workspace:

Navigate to _Apps_ in the left panel. Enter _signnow_ in the search line, then select the **SignNow app** from the list.

Click **Add** to install SignNow for your Teams.

![SignNow app page in Microsoft Teams with the Add button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.install.signnow.png)

Once installed, you’ll see the SignNow app icon in the left panel.

For quick access to the SignNow app, you can pin it in the side-bar panel. To do so, right click the SignNow app icon and select **Pin**.

![SignNow app context menu in the Teams sidebar with the Pin option](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.pin.signnow.png)

Alternatively, you can access the SignNow app via the three dots in the side-bar panel.

Select **Get Started** in the SignNow welcome message to start using the SignNow app.

![SignNow welcome message in Teams chat with the Get Started button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.get.started.png)

- add SignNow to a specific team or chat:

Click the arrow, then select **Add to a team** or **Add to a chat from the dropdown**.

![SignNow app page in Teams with the Add dropdown showing Add to a team and Add to a chat](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.add.to.team.chat.png)

Once selected, the **Setup SignNow for a team** pop-up will open. Search for the team or chat you’d like to add SignNow to, then select it from the list. Click **Set up**.

![Set up SignNow for a team dialog with a team channel selected and the Set up button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.add.signnow.to.team.png)

Next, click **Save** in the Welcome to SignNow pop-up to finish installation.

![Welcome to SignNow dialog in Teams with the Save button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.save.signnow.png)

2. You’ll be redirected to the SignNow login page.

Select **Log In**, enter your Microsoft Teams credentials.

![SignNow tab in Microsoft Teams with the Log In button](https://marketing-static.signnow.com/492/images/docs-signnow/signnow-microsoft-teams.jpg)

3. You’ll be redirected to the login page.

Enter your SignNow credentials, then click **Log in**.

You can also log in to SignNow using SSO, Facebook, or Google.

![SignNow login form in Teams with email and password fields and the Facebook, Google and SSO options](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.login.signnow.fb.google.sso.png)

Next, click **Grant access to SignNow**.

![Screen asking to grant SN Integration MS Teams access to the SignNow account](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.grant.access.to.signnow.png)

Once logged in, the SignNow app will open and display all your documents.

When installing the SignNow app for the first time, users may encounter the following issues. Let’s consider the two following cases:

- Approval required: users aren’t allowed to approve consent requests. They can enter a note and submit a request for an administrator to review by clicking **Request approval**.

![Microsoft Approval required dialog with a request note and the Request approval button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.request.approval.png)

Once submitted, users will be informed that an administrator has been notified to review the request.

Administrators (currently selected as request reviewers) will receive an email notification explaining the request along with a link to the Azure portal to review the request in more detail.

![Microsoft Request sent confirmation with the Back to app button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.request.sent.png)

- Need admin approval: users will need to ask the organization administrator to install the app. Once done, select the consent checkbox in the pop-up and click **Accept**.

![Microsoft Permissions requested dialog with the Consent on behalf of your organization checkbox](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.consent.checkbox.accept.popup.png)

This means that the SignNow app is now essentially pre-approved for all users in the tenant.


---

## Using the SignNow Bot

# Using the SignNow Bot

Ask the SignNow Bot in Microsoft Teams for the status of your documents and see which ones wait for you or others to sign.

Let’s take a look at how it works:

1. Navigate to the SignNow chat. Click on the text line and select **What can I do?**

Then, choose an option and hit Enter on your keyboard.

![SignNow Bot command menu in Teams with Help, Check Status, Waiting for Me, Waiting for Others and Logout](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.signnow.bot.png)

Let’s select Check Status in the current example to check the status of recent SignNow documents.

![SignNow Bot reply in Teams with the status of the most recent document](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.recent.document.bot.png)

The SignNow Bot will instantly show all recent documents that can be downloaded or opened for viewing.


---

## Upload documents

# Upload documents

Upload documents to SignNow in Microsoft Teams, send them for signing, create templates, and track their status from the app tabs.

Users will be able to use the five tabs in the SignNow app:

- Documents
- Templates
- Shared Documents
- Shared Templates
- Document Groups

## Upload documents to SignNow

To start working with documents inside SignNow, upload new documents or select from existing ones. If you need to upload new documents, you have two options for doing so.

Let’s take a look at how this works:

1. In your SignNow app, select **Upload Document** in the sidebar panel.

![SignNow Documents page in Teams with the Upload Documents button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.upload.document.button.png)

2. The _Add documents to SignNow_ pop-up will open. There will be three tabs for uploading documents.

To upload a document from your device, select **Upload Document** in the _Upload_ tab.

![Add documents to SignNow dialog with the Upload Document button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.upload.document.png)

- To upload your recently used documents in Microsoft Teams, switch to the _Recent_ tab. Then, select the documents you need and click **Import**.

![Recent tab of the Add documents dialog with two files selected and the Import button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.recent.docs.in.MS.teams.multiple.upload.png)

- To upload documents stored in your Microsoft Teams, switch to the _Microsoft Teams_ tab. Then, choose the needed Team.

![Microsoft Teams tab of the Add documents dialog listing the teams](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.marketing.png)

The list of channels in the selected Team will open. Choose the channel containing the documents (files) you’d like to upload.

![Channel list of the Marketing team in the Add documents dialog](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.content.team.png)

The list of Microsoft Teams documents available for uploading will open. Choose the documents you need and click **Import**.


---

## Documents

# Documents

Rename, prepare, and send your SignNow documents for signature from the Documents tab of the SignNow app in Microsoft Teams.

Start by selecting a document, then choosing the necessary option in the _Document options_ sidebar.

You can rename uploaded documents by clicking **Rename Document**. This option will be unavailable after sending your document for signing.

Add fillable fields to your document before sending it. Otherwise, the **Invite to Sign** button will be disabled.

To do so, select a document and click **Add fields**.

![SignNow Documents page in Teams with a document selected and the Add fields option](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.add.fields.documents.png)

The SignNow editor will open. Drag & drop fields wherever you need on the document.

Once finished, click **SAVE AND CLOSE**.

![Invoice in the SignNow editor in Teams with text, attachment and signature fields added](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.signnow.editor.png)

You can create templates from your documents by clicking **Make Template**. The templates will be instantly created from the selected docs in the _Template_ tab.

You can also move your documents to the _Shared Documents_ tab. This will allow specific users to track the signing status of moved documents.

To do so, select a document, then click **Move to Shared Folder**.

![SignNow Documents page in Teams with a document selected and the Move to Shared Folder option](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.move.to.shared.folder.documents.png)

In the _Move to Shared Documents_ pop-up, select the folder you’d like to move your document to. Then, click **Move**.

![Move to Shared Documents dialog with the shared folders and the Move button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.select.shared.folder.png)

To save documents to Microsoft Teams, select the corresponding option in the sidebar panel.

Next, in the _Save to Microsoft Teams_ pop-up, select the Microsoft Team and the Folder you’d like to save your document to. Then, click **Save**.

![Save to Microsoft Teams dialog with the team folder and the Save button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.save.documents.to.MS.teams.documents.png)

You can also filter your documents by their status.

![Shared documents folder in Teams with the status filter open](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.filter.shared.documents.png)


---

## Document groups

# Document groups

Send several documents to signers in one invite from the Document Groups tab of the SignNow app in Microsoft Teams.

To create a new Document Group, select **Create Document Group** in the option panel.

![Document Groups page in Teams with the Create Document Group button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.create.document.group.png)

The _Add documents to SignNow_ pop-up will open. You can upload:

- documents from your device
- recent documents used in Microsoft Teams
- documents stored in your Microsoft Teams

Once selected, click **Upload Documents**.

![Add documents to SignNow dialog with the upload sources and the Upload Documents button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.upload.document.group.png)

Once uploaded, you can rename your Document Group by clicking **Rename Group**.

This option will be unavailable after sending your Document group for signing.

![Document Groups page in Teams with a group selected and the Rename Group option](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.rename.group.png)

To open your Document Group for editing, select **Open** next to a Document Group you need.

Alternatively, select **Edit Document Group**.

Then, add fillable fields to at least one document in your Document Group. To do so, select a document, then click **Add fields** in the option panel.

<!-- theme: info -->

> **Note!** If you haven’t added fillable fields to documents in the Document Group you’ve created, you can edit it later by selecting **Edit Document Group**.

To upload more documents, select **Upload Docs to Group** in the option panel.

![Document group in Teams with a document selected and the Add Fields option](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.add.fields.document.group.png)

After you’ve added fillable fields to all documents in the Document Group, you’ll be able to send it for signing. To do so, select **Send Group for Signing**.

In the _Invite for Document Group_ window, enter the signer’s email. You can send your invite to multiple users.

In _Advanced Settings_, you can select where to save copies of completed documents (None is selected by default). For Microsoft Teams, click _Select Folder_ to choose a location for signed documents.

Then, click **Send Document Group Invite**.

![Invite for Document Group page with the signer email, save options and the Send Document Group Invite button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.signer.email.document.group.png)

The Document Group will be sent for signing and marked with the _Pending_ status.

![Document Groups page in Teams with a group marked Pending](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.pending.status.document.group.png)

To cancel the invites you’ve sent, select **Cancel Invites**. Then, confirm your action in the _Cancel All Document Group Invites_ pop-up.

![Cancel All Document Group Invites confirmation with the Cancel Invites button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.cancel.invites.popup.png)

That’s it! You’ll get a Bot notification when your Document Group is completed or all documents have been saved to the selected Microsoft Teams folder.


---

## Templates in Microsoft Teams

# Templates in SignNow for Microsoft Teams

Send templates made from your SignNow documents for signing from the Templates tab.

Select a template, then choose an option in the _Template options_ sidebar.

Add fillable fields to your SignNow templates and send them for signing in a couple of clicks.

<!-- theme: info -->

> **Note!** Add fillable fields to your template before sending it. Otherwise, the **Invite to Sign** button will be disabled.

You can also move your templates to _Shared Templates_, if needed.

You can change a template’s name by clicking **Rename Template**. This option will be unavailable after sending your templates for signing.

![Templates page in Teams with a template selected and its options panel](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.template.options.png)


---

## Shared documents

# Shared documents

Share documents with your SignNow team and see who signed them and when, from the Shared documents tab in Microsoft Teams.

<!-- theme: info -->

> **Note!** Be careful not to confuse SignNow teams with Microsoft Teams.

A new folder with the team’s name will be automatically created each time you create a new SignNow team.

To make SignNow teams available to users in _Shared documents_, a team owner should enable them in the SignNow web app.

![Shared Documents tab in Teams with the shared folders](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.shared.documents.tab.png)

Click on the folder you need to open the list of shared documents.

Then, select a document and choose an option:

- **Invite to Sign** is only available for the shared document’s owner

- **Add fields** is only available for a team’s owner (not available for documents with previously added fields in the _Documents_ tab)

- **Open document** is only available for a team’s owner (users will see the **View document** option)

- **Edit document** is only available for the team’s owner

- **Save to Microsoft Teams** is available for all users

![Shared documents folder in Teams with a document selected and its options panel](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.shared.documents.option.panel.png)

<!-- theme: info -->

> **Note!** If you’re not an owner of a team, you’ll need to be invited to a SignNow team in order to view shared documents.

Once you’ve sent a Shared Document for signing, you can cancel your signing request by clicking **Cancel Invites**.

![Shared documents folder in Teams with a pending document and the Cancel Invites option](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.cancel.invites.shared.documents.png)

Then, in the _Cancel Document Invites_ pop-up, confirm your action.

![Cancel Document Invites confirmation with the Cancel Invites button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.cancel.invites.popup.shared.documents.png)

You can also filter your Shared Documents by their status.

![Shared documents folder in Teams with the status filter open](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.filter.shared.documents.png)


---

## Shared templates

# Shared templates

Share templates with your SignNow team from the Shared templates tab of the SignNow app in Microsoft Teams.

<!-- theme: info -->

> **Note!** Be careful not to confuse SignNow teams with Microsoft Teams.

A new folder with the team’s name will be automatically created each time you create a new SignNow team.

Learn how to create a SignNow team [here](https://www.signnow.com/features/easily-create-teams).

<!-- theme: info -->

> **Note!** Permission to make changes to folders is only available to the team’s owners.

![Shared Templates tab in Teams with the shared folders](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.shared.templates.tab.png)

Click on the folder you need to open the list of shared templates.

Then, select a template and choose an option:

- **Edit template** is only available for the shared template’s owner

- **Create a copy** is available for both the team’s owner and users

- **Unshare from Folder** is only available for the team’s owner and allows for moving the selected shared templates from a public folder to a private folder.

![Shared templates folder in Teams with a template selected and its options panel](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.shared.templates.options.png)

If you’re not an owner of a team, you’ll need to be invited to a SignNow team in order to view shared templates.


---

## Search documents

# Search documents

Find SignNow documents from Microsoft Teams chats and channels with the SignNow messaging extension.

To search for SignNow documents in the Microsoft Teams’ chats and channels, you’ll need to install the messaging extension. To do so, follow the steps below:

1. Proceed to _Apps_ in the sidebar panel. Select **Messaging** from the menu, then select the **SignNow app**.

![Microsoft Teams Apps page with Messaging selected and the SignNow app](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.message.extention.png)

2. Select **Open**.

![SignNow app page in Teams with the Open button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.message.extention.open.signnow.png)

3. Navigate to the chat where you need to search for documents.

Click the SignNow icon in the message menu to open the SignNow search window.

Type the document name or any word the document name contains to search for it. The search will display all documents containing the terms you entered.

![SignNow message extension in a Teams chat with document search results](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.search.documents.png)


---

## Send documents for signing

# Send documents for signing

Send documents, templates, and shared items for signature from the SignNow app in Microsoft Teams.

To send your documents, shared documents, templates or shared templates out for signing, select them and click **Invite to Sign** (a document in the example).

Enter a signer’s email and CC (optional). Then, click **Send Invite**.

When you start entering a user’s name or email, you’ll see the list of all matching contacts from Microsoft Teams.

![Invite page in Teams with the signer, CC recipient, save options and the Send Invite button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.send.invite.png)

To adjust additional settings for your signing request, click the gear icon next to a signer.

The window with additional settings will open, allowing you to:

- password-protect the signing invite:

Password protected documents will be displayed at the top of the document list. Users are supposed to click **Unlock** next to a document.

![SignNow Documents page in Teams with a password-protected document and the Unlock button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.unlock.document.png)

Then, enter a password and click **Unlock**.

![Unlock Document dialog with the document password field and the Unlock button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.enter.password.png)

- set an expiration date for your signing invite
- set a reminder for your signing invite

You can adjust settings for each signer separately or apply your settings to all signers in your signing invite by selecting the _Apply settings to all roles_ checkbox.

Once finished, click **Save**.

![Signer settings panel with authentication, expiration and reminder options](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.send.document.settings.png)

You can also save copies of signed documents in a separate folder by applying advanced settings.

To do so, click **Advanced settings** and select the option you need (None or Microsoft Teams).

For Microsoft Teams, click **Select Folder** to choose the location of the signed document.

![Advanced settings with Save copy of completed document to Microsoft Teams and the selected folder](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.advanced.settings.invite.png)

Once the document has been sent, you’ll be able to track the status of the document.

![SignNow Documents page in Teams with a document marked Waiting for Others](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.waiting.for.others.png)

The SignNow Bot will notify Microsoft Teams users about your signature request. Users who are not using Microsoft Teams will receive an email notification.

Users are expected to click **Sign** to open your document for signing in the editor.

![SignNow signature request message in a Teams chat with the Sign button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.signature.request.png)

The SignNow Bot will notify you each time a recipient opens your signing request.

![SignNow Bot notification that the document has been opened by the signer](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.bot.notification.open.png)

Once users sign your documents and / or signed documents are placed in the selected storage, the notification will appear as follows.

You can open a document in the SignNow app editor by clicking **Open**.

Selecting **Open in SharePoint folder** will open a document in the Sharepoint folder it was saved to.

![SignNow Bot notification that the document is signed and saved to a Teams folder, with the Open in SharePoint folder button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.bot.notification.storage.png)

The status of the document will be automatically changed from _Waiting for Others_ to _Signed_.

![SignNow Documents page in Teams with a document marked Signed](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.signed.png)

Download documents directly from the SignNow app. To do so, select the document you need and click **Download** in the sidebar panel.

![SignNow Documents page in Teams with a signed document selected and the Download option](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.download.signed.document.png)

In the _Download_ pop-up, select a download method:

- selecting _None_ will simply download the document
- selecting _History_ will download the document along with the document’s detailed history.

![Download dialog with the None and History options and the Download button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.download.none.history.png)


---

## Share via link

# Share via link

Share a document or template for signing through a link, or add it as a tab in a Microsoft Teams channel.

<!-- theme: info -->

> **Note!** You can generate a sharable link only for documents with a single signer.

1. Select a document/template and click **Invite via Link**.

![SignNow Documents page in Teams with a document selected and the Invite via Link option](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.invite.via.link.png)

2. Copy the generated link.

![Create Invite Link dialog with the copied signing link](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.copy.link.png)

You can now send a link to users via the method that is most convenient for you. You can also add a link directly to the teams as a tab.

To do so, proceed to the Teams tab to select the team you need. Then, click the + icon to add a tab.

![Teams channel with the plus icon for adding a tab](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.add.tab.teams.png)

Next, select the _Website_ tab from the tabs list.

![Add a tab dialog in Teams with the Website app](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.website.tab.png)

In the next pop-up, enter a name for the tab you’re adding and paste the copied invite link. Then, click **Save**.

![Website tab settings with the tab name, the invite link URL and the Save button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.tab.name.link.save.png)

That’s it! The tab will be instantly added to the selected Team channel. Clicking this tab will open the document (from the link) for signing in the SignNow editor right inside the Team channel.


---

## Uninstall

# Uninstall

Remove the SignNow app from Microsoft Teams in a few steps.

1. Right click the SignNow app in the sidebar panel.

<!-- theme: info -->

> **Note!** If you haven’t pinned the SignNow app in the sidebar panel, go to the three dots menu and select SignNow from the list.

![SignNow app context menu in the Teams sidebar with the Uninstall option](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.uninstall.png)

The SignNow app will be instantly uninstalled. However, the SignNow Bot chat will remain.


---

## SignNow for Zapier

# SignNow for Zapier

Send SignNow documents for signature from other apps and file the signed copies automatically via Zapier.

The automation is called a Zap. It starts on a schedule, a webhook, or an app event, like a document completed in SignNow. You can build a Zap in two ways:

- **Build from an AI tool.** Describe the automation in an AI tool you already use, such as Claude, ChatGPT, or Cursor. Your AI tool builds the Zap through Zapier MCP, and Zapier keeps it running after the conversation ends.
- **Build in the Zap editor.** Set up each step yourself on Zapier's website.

Both ways use the same SignNow triggers and actions. To work with Zapier from your own code, use the Zapier SDK. See [For developers and AI agents](/docs/signnow-zapier#for-developers-and-ai-agents).

[Connect SignNow to Zapier](https://zapier.com/apps/signnow/integrations)

---

**Next**: [Get started with Zapier →](/docs/signnow-zapier)


---

## Get started with Zapier

# How do I connect SignNow to my other apps with Zapier?

Send SignNow documents and file signed copies with a Zap, built from your AI tool or in the Zap editor.

A Zap runs a SignNow workflow on a schedule, a webhook, or an app event. AI tools build Zaps through Zapier MCP, and your own code can call SignNow actions through the Zapier SDK.

## What can a Zap do with SignNow?

A Zap starts on a schedule, a webhook, or an app event, like a document completed in SignNow. For every trigger, action, and search with its fields, see [SignNow triggers in Zapier](/docs/signnow-zapier-triggers) and [SignNow actions in Zapier](/docs/signnow-zapier-actions).

Common building blocks:

| You want to | Use this in Zapier |
| --- | --- |
| Start a Zap when every signer has signed | **Document Completed** (trigger) |
| Start a Zap when every signer has signed a document group | **Document Group Completed** (trigger) |
| Send a template with fillable fields to one or more signers | **Create Document From Template & Send Role Invite** |
| Send a template group, by email or SMS | **Create Document Group From Template & Send Role Invite** |
| Send a document from another app | **Upload Document**, then **Invite to Sign** |
| Turn text tags in a file into fillable fields | **Upload Document & Extract Fields** |
| File a document or document group in a folder | **Move Document** or **Move Document Group** |
| Find a document or template by name | **Find** (search) |

## Build a Zap from your AI tool

1. Set up Zapier in your AI tool: connect Zapier to Claude or ChatGPT, or add Zapier to Grok Build (formerly Cursor). For other AI tools, follow the [Zapier MCP quickstart](https://docs.zapier.com/mcp/get-started/quickstart).
2. Describe the workflow. Say what starts it, what each step does, and where the result goes.
3. Your AI tool usually shows a plan before it builds. Review it, test the Zap, and turn it on. If it builds the Zap right away, open it in Zapier and check the steps before you rely on it.

To get started quickly, copy the ready-made prompt on [SignNow on Zapier](https://zapier.com/apps/signnow/integrations) and paste it into your AI tool. It connects Zapier and SignNow, then asks what you want to automate.

Zapier handles the login to each connected app, including SignNow, so you don't give those credentials to your AI tool. Some apps ask you to enter an API key in Zapier when you connect them.

Zaps you already built in the Zap editor keep running as they are. Building from an AI tool doesn't change them.

For current availability, plan requirements, and setup instructions, see [Zapier's guide to building Zaps from an AI tool](https://docs.zapier.com/zaps/get-started-with-zaps).

Your AI tool usually shows the plan before it builds: the trigger, each step, and the values it will use. In this example, Claude plans a Zap that saves completed documents to a Google Drive folder:

![Claude chat showing a request to build a Zap and the build plan Claude returns before building anything: SignNow Document Completed as the trigger, set to return the signed PDF, and Google Drive Upload File as the action, saving the PDF to the SignNow test folder under the document's name.](/reference-assets/images/signnow-zapier/zapier-ai-build-plan.png)

If your AI tool builds the Zap right away, it reports what it built instead. In this example, Claude built a Zap that saves each updated SignNow document to Google Drive and turned it on:

![Claude chat after building a Zap straight away: the Zap is live, starts on the SignNow Document Updated trigger, uploads each updated document's PDF to Google Drive, and passed its test run. The Drive account and the webhook URL are hidden.](/reference-assets/images/signnow-zapier/zapier-ai-build-result.png)

Another example, with a second step:

> When a document is completed in SignNow, save the signed PDF to the "Signed contracts" folder in Google Drive and post the document name in our #sales Slack channel.

## Example workflows

### File signed documents automatically

1. **Starts when:** every signer finishes a document in SignNow (**Document Completed**).
2. **Filters:** continues only for documents that belong to this workflow, for example by document name or template.
3. **Then:** uploads the signed PDF to your storage app and notifies your team.

For a full walkthrough with ClickUp and SharePoint, see [Automate eSignatures in ClickUp](/docs/clickup-zapier-signing-workflow).

### Send onboarding documents when a new hire is created

1. **Starts when:** a new hire is created in your HR system.
2. **Then:** creates a document group from your template group, fills employee data into the fields, and sends it to the HR manager and the employee (**Create Document Group From Template & Send Role Invite**).

For a full walkthrough with Workday, see [Automate eSignatures in Workday](/docs/signnow-workday-automate-esignatures).

## Build a Zap in the Zap editor

1. Go to [SignNow on Zapier](https://zapier.com/apps/signnow/integrations) and create a Zap.
2. Choose a trigger and connect your SignNow account when Zapier asks.
3. Add actions, map fields from earlier steps, test each step, and publish the Zap.

## For developers and AI agents

Zapier MCP is a hosted MCP server at `https://mcp.zapier.com/api/v1/connect` (Streamable HTTP, OAuth). Most AI tools connect from inside the tool. Others can create a server at [mcp.zapier.com](https://mcp.zapier.com). The Zapier SDK (TypeScript) installs with:

```bash
npm install @zapier/zapier-sdk
```

A Zap keeps a SignNow workflow running after the conversation ends. You deploy it once, and it starts on a schedule, like a cron job, on a SignNow webhook trigger such as Document Completed, or on another app's event, and it can pass data to your other apps. For setup and the current tool names, see the [Zapier MCP quickstart](https://docs.zapier.com/mcp/get-started/quickstart) and [Build a workflow](https://docs.zapier.com/mcp/get-started/build-a-workflow).

The [SignNow MCP Server](/docs/mcp-server) gives your AI tool direct access to SignNow templates, documents, invites, and embedded signing. To use it alongside Zapier MCP, see [How do I combine SignNow MCP and Zapier MCP?](/docs/signnow-zapier-mcp-flows).

## Related

- [Webhooks](/docs/guides-webhooks)
- [All SignNow integrations on Zapier](https://zapier.com/apps/signnow/integrations)

---

**Next**: [Sign from your AI tool →](/docs/signnow-zapier-mcp-flows)


---

## Sign from your AI tool

# How do I combine SignNow MCP and Zapier MCP?

Send and check SignNow documents from your AI chat, and let Zapier file the signed copies and run follow-up steps.

Connect both servers to your AI tool, such as Claude or ChatGPT:

- The [SignNow MCP Server](/docs/mcp-server) gives your AI tool direct access to SignNow: it sends documents from templates, checks invite status, sends reminders, and creates signing links.
- Zapier MCP builds Zaps that keep running after the conversation ends, and runs Zaps on request. Set it up with the [Zapier MCP quickstart](https://docs.zapier.com/mcp/get-started/quickstart).

The two servers don't call each other. Your AI tool passes values between them in the conversation, such as a document group ID, and Zaps react to events in your SignNow account, such as a completed document.

The flows below were built and tested with a SignNow account, Zapier, and Google Drive. Replace Google Drive with the storage app you use.

## Flow 1: Send from chat, file the signed copy automatically

**What you get:** you send agreements by asking your AI tool. Each signed agreement lands in a Google Drive folder without anyone filing it.

**Build the Zap once.** Ask your AI tool:

> Using Zapier, build a Zap: when a document group created from my "Service agreement" template group is completed in SignNow, upload the signed PDF to the "Signed agreements" folder in Google Drive, named after the document group.

The Zap your AI tool builds uses:

1. **Document Group Completed** with **Document Group Template** set to your template group and **Return PDF of Document Group** set to **YES**.
2. Google Drive **Upload File**, with **File** mapped to the group's PDF link and **File Name** mapped to the document group name.

**Send from chat whenever you need to.** Ask:

> Send my "Service agreement" template group to client@example.com for signature.

The SignNow MCP Server creates the document group and sends the invite. When the client signs, the Zap saves the PDF to Drive.

## Flow 2: Run a Zap from chat, then track it with SignNow MCP

**What you get:** a Zap holds your fixed sending setup (template group, sender, subject, locked prefilled fields), and you run it from chat with only the values that change. Then you ask about the result in the same conversation.

**Build the Zap once.** Ask your AI tool:

> Using Zapier, build a Zap I can run on demand. It takes a signer email and a client name, creates a document group from my "Service agreement" template group with **Create Document Group From Template & Send Role Invite**, prefills the client name, locks it, and returns the document group ID.

**Run it from chat:**

> Run my service agreement Zap for jane@example.com, client name Acme Corp.

Zapier MCP runs the Zap and returns the new document group ID to the chat. Then ask:

> Has Acme Corp signed yet? If not, send a reminder.

Your AI tool passes the document group ID to the SignNow MCP Server, which reads the invite status and can send a reminder.

Include every value the Zap needs in your request. If one is missing, your AI tool asks for it or fills in a placeholder and tells you which value it used.

In this example, Claude runs a Zap named flow B through Zapier, then checks the invite in SignNow with the document group ID from the run:

![Claude chat running the flow B Zap through Zapier, then checking the invite in SignNow with the document group ID from the run: the run finished and the invite status is pending.](/reference-assets/images/signnow-zapier/mcp-flow2-run-and-status.png)

> [!TIP]
> Combine flows 1 and 2: when the agreement from flow 2 is signed, the Zap from flow 1 files it, because both use the same template group.

## Flow 3: Collect signatures by SMS

**What you get:** signers receive the invite as a text message, which suits field workers and customers who rarely check email.

Ask your AI tool:

> Using Zapier, build a Zap: when a new row is added to my "Work orders" sheet, send my "Work order" template group from SignNow by SMS to the phone number in the row, and prefill the order number.

The Zap uses **Create Document Group From Template & Send Role Invite** with the role's **Delivery** set to **SMS**, **Phone** mapped from the sheet in international format, and an optional **SMS Message** of up to 230 characters. Use the SignNow MCP Server in chat to check who has signed.

## Write good requests

- Name the trigger, the SignNow template or template group, and the destination: "when a document group from my Service agreement template group is completed, upload the PDF to Drive".
- Say which values change per run and which stay fixed.
- Ask your AI tool to show the plan and test the Zap before turning it on.
- Use test documents and your own email while testing. Zap test runs send real invites.

For each trigger and its fields, see [SignNow triggers in Zapier](/docs/signnow-zapier-triggers). For each action, see [SignNow actions in Zapier](/docs/signnow-zapier-actions). For errors, see [SignNow for Zapier: troubleshooting](/docs/signnow-zapier-troubleshooting).

---

**Next**: [SignNow triggers in Zapier →](/docs/signnow-zapier-triggers)


---

## SignNow triggers in Zapier

# SignNow triggers in Zapier

A reference for every SignNow trigger in Zapier, with the fields each takes and the data it returns.

Use these with either way of building a Zap: describe the workflow to an AI tool that has Zapier connected, or set up each step in the Zap editor. The names below are the names Zapier shows. For the current list, see [SignNow on Zapier](https://zapier.com/apps/signnow/integrations).

For the steps that send, manage, and find documents, see [SignNow actions in Zapier](/docs/signnow-zapier-actions).

## Pick the right trigger

| You want to | Use |
| --- | --- |
| Start a Zap when every signer has signed a document | [Document Completed](#document-completed) |
| Start a Zap when every signer has signed a document group | [Document Group Completed](#document-group-completed) |
| Start a Zap when a document is uploaded, changed, or deleted | [New Document](#new-document), [Document Updated](#document-updated), [Document Deleted](#document-deleted) |

## Document Completed

Starts a Zap when every signer has filled in and signed a document.

| Field | What to enter |
| --- | --- |
| **Template** | Optional. Pick a template to start the Zap only for documents created from it. Leave empty to start it for every completed document in the account. The list shows your personal templates and the templates at the top level of each workspace's Team Templates folder. For any other template, enter its 40-character ID as a custom value. |
| **Return PDF of Document** | **YES** (default) returns a link to the signed PDF. |
| **Return Document History** | **YES** returns a link to the signed PDF with the audit trail attached. |
| **Return ZIP** | **YES** returns a link to a ZIP archive with the PDF and any attached files. |

Data you can use in later steps includes the document ID and name, the **Origin Document Id** (the ID of the template the document was created from), the owner, each role's signer email, the values of named fields, the folder, and the file links you asked for (`files.pdf`, `files.pdf_with_history`, `files.zip`).

> [!TIP]
> To run the same steps for several templates, leave **Template** empty and branch on **Origin Document Id** with Paths by Zapier. See [SignNow for Zapier: troubleshooting](/docs/signnow-zapier-troubleshooting).

## Document Group Completed

Starts a Zap when every signer has filled in and signed a document group.

| Field | What to enter |
| --- | --- |
| **Document Group Template** | Optional. Pick a template group to start the Zap only for groups created from it. Leave empty to start it for every completed group. The list shows the template groups you own and those of your workspaces; for any other, enter its ID as a custom value. |
| **Return PDF of Document Group** | **YES** (default) returns a link to the signed PDF of the whole group. |
| **Return Document Group History** | **YES** returns a link to the PDF with the audit trail attached. |
| **Return ZIP** | **YES** returns a ZIP archive with the PDF and attached files. |

Data you can use includes the document group ID and name, its state, the sender's name and email, CC emails, each document in the group with its ID and **Origin Document Id**, and the file links.

## New Document

Starts a Zap when a document is uploaded to SignNow. Set **Return PDF of Document** and **Return Document History** to get file links.

## Document Updated

Starts a Zap when a document is updated, for example when a signer fills in a field. Set **Return PDF of Document** and **Return Document History** to get file links.

## Document Deleted

Starts a Zap when a document is deleted. It has no fields to set.

---

**Next**: [SignNow actions in Zapier →](/docs/signnow-zapier-actions)


---

## SignNow actions in Zapier

# SignNow actions in Zapier

A reference for every SignNow action and search in Zapier, with the fields each takes and the data it returns.

Use these with either way of building a Zap: describe the workflow to an AI tool that has Zapier connected, or set up each step in the Zap editor. The names below are the names Zapier shows. For the current list, see [SignNow on Zapier](https://zapier.com/apps/signnow/integrations).

For the events that start a Zap, see [SignNow triggers in Zapier](/docs/signnow-zapier-triggers).

## Pick the right action

| You want to | Use |
| --- | --- |
| Send a template with fillable fields | [Create Document From Template & Send Role Invite](#create-document-from-template--send-role-invite) |
| Send a template without fillable fields | [Create Document From Template & Send Free Form Invite](#create-document-from-template--send-free-form-invite) |
| Send a template group, by email or SMS | [Create Document Group From Template & Send Role Invite](#create-document-group-from-template--send-role-invite) |
| Build a document from a DOCX file with merge tags | [Generate Document](#generate-document) |
| Send a file from another app | [Upload Document](#upload-document) or [Upload Document & Extract Fields](#upload-document--extract-fields), then [Invite to Sign](#invite-to-sign) |
| Organize documents | [Move Document](#move-document), [Move Document Group](#move-document-group) |
| Stop a signing process | [Cancel Invite to Sign and Delete Document](#cancel-invite-to-sign-and-delete-document), [Cancel Document Group Invite](#cancel-document-group-invite), [Deactivate Signing Link](#deactivate-signing-link) |
| Look up a document, template, or group | [Find](#find) |
| Call any SignNow API endpoint | [API Request (Beta)](#api-request-beta) |

## Actions that send documents

### Create Document From Template & Send Role Invite

Creates a document with fillable fields from a template and sends it to one or more signers, each in a role. Use it when the template has fields.

| Field | What to enter |
| --- | --- |
| **Template** | Required. The template to copy. Same list rules as the **Document Completed** trigger. |
| **Document Name** | Required. The name of the new document. |
| **From** | Required. The email you sign in to SignNow with. |
| **Folder** | Optional. Where to create the document: your Documents folders or a workspace's Team Documents folders. The list shows two levels; for a deeper folder, enter its folder ID. |
| **CC** | Optional. Comma-separated emails that receive a copy. |
| **Subject**, **Message** | Optional. The invite email text. |
| **On Completion** | Who gets the signed document by email: all parties with attachments (default), all parties without attachments, signers only, or nobody. |
| **Redirect After Signing** | Optional. A web address to open after the document is completed. |
| **Line Wrapping** | How text wraps in locked fields: manually (default) or automatically. |
| **Payment Settings** | Optional. **Payer**, **Payment Amount**, **Currency**, and **Merchant Account**, to collect a payment as part of signing. |

After you pick a template, Zapier adds a set of fields for each role in it. Each field label starts with the role name from the template, for example **Manager | Signing Order**:

| Role field | What to enter |
| --- | --- |
| **Signing Order** | Required. Signers with the same number get the invite at the same time. Higher numbers get it after everyone before them has signed. |
| **Email** | The signer's email. Leave it empty to create a signing link instead of sending an invite. |
| **Custom Field** (one per template field) | A value to prefill, often mapped from an earlier step. |
| **Locked Custom Fields** | The prefilled fields the signer can't change. |
| **Authentication Type**, **Authentication Data** | How the signer proves their identity: no authentication, a password, a code by text message, or a phone call. Enter the password or phone number in **Authentication Data**. |
| **Days Until Expiration** | Days before the invite expires. |
| **Send Reminder in X Days**, **Send Reminder every X Days**, **Send Reminder in X Days before Expiration** | Automatic reminder emails. |

Returns the new document's ID and name, the **Origin Document Id**, and the owner.

### Create Document From Template & Send Free Form Invite

Creates a document from a template that has no fillable fields and invites one signer to sign anywhere on it. Fields: **Template**, **Document Name**, **To** (the signer's email), **From**, **Folder**, **Subject**, **Message**, and **Redirect After Signing**.

### Create Document Group From Template & Send Role Invite

Creates a document group from a template group and sends it to one or more signers, each in a role. Use it for packages of several documents.

The group-level fields match the single-document action: **Template Group**, **Document Group Name**, **From**, **Folder**, **CC**, **Subject**, **Message**, **On Completion** (all parties with attachments, signers only, or nobody), **Redirect After Signing**, and **Line Wrapping**.

Each role gets the same fields as above, plus:

| Role field | What to enter |
| --- | --- |
| **Delivery** | **Email** (default), **SMS**, or **Signing Link**. **Signing Link** creates one shareable link for the whole document group instead of an invite: the role becomes an open slot for whoever opens the link, so it needs no email or phone. To turn the link off later, use [Deactivate Signing Link](#deactivate-signing-link). |
| **Email** | Required with email delivery. |
| **Phone** | Required with SMS delivery, in international format, for example `+14155550123`. |
| **SMS Message** | Optional text of the SMS, up to 230 characters. |
| **Subject**, **Message** | Optional email text for this signer only. They replace the group-level subject and message. |

Returns the document group ID and name, its state, the invite ID, the documents, the signers by role, and signing link details (`signing_link`, `signing_link_id`, `signing_link_url`) when the group has a signing link.

On the **Configure** tab, the fields for a role named Manager look like this with email delivery:

![Configure tab of the SignNow action Create Document Group From Template & Send Role Invite, showing the fields for a role named Manager: Signing Order, Delivery set to Email, Email, Subject, Message, Locked Custom Fields and Authentication Type.](/reference-assets/images/signnow-zapier/zapier-group-role-fields.png)

With **Delivery** set to **SMS**, **Phone** and **SMS Message** replace the email fields:

![Configure tab of the SignNow action Create Document Group From Template & Send Role Invite with the Manager role's Delivery set to SMS, showing the Phone field in international format and the SMS Message field.](/reference-assets/images/signnow-zapier/zapier-group-sms-delivery.png)

### Generate Document

Builds a document group from a DOCX file that contains merge tags, ready to send for signature.

| Field | What to enter |
| --- | --- |
| **Template (DOCX)** | Required. The DOCX file with merge tags. |
| **Field Values** | Required. One entry per merge tag: the tag name as the key, the value to insert as the value. Keys must match the tags in the file. |

Returns the ID of the new document group. Send it with a later step, or open it in SignNow.

### Upload Document

Uploads a file to SignNow. Fields: **File** (required) and **Document Name**. Map **File** to the file itself from an earlier step, not to its name.

### Upload Document & Extract Fields

Uploads a file and turns its [text tags](/docs/text-tags) into fillable fields. Fields: **File** (required, a document with text tags) and **Document Name**.

### Invite to Sign

Emails a signing invite for a document without fields or roles. Fields: **Document** (required), **To Email Address**, **From Email Address**, **Subject**, **Message**, and **Redirect After Signing**. The **Document** list shows about 50 recent documents without fields; for others, map the document ID from an earlier step or enter it as a custom value.

## Actions that manage documents

### Move Document

Moves a document into a folder. Fields: **Document** and **Folder**, both required. **Folder** lists your Documents folders and each workspace's Team Documents folders, two levels deep.

### Move Document Group

Moves a document group and its documents into a folder. Fields: **Document Group** and **Folder**, both required.

### Cancel Invite to Sign and Delete Document

Stops a document's signing process. Fields: **Document** (required) and **Action**: cancel the invite (default), move the document to the trash, or delete it permanently.

> [!WARNING]
> **Delete a document forever** removes the document permanently. Test the Zap with **Cancel an invite to sign** first.

### Cancel Document Group Invite

Cancels the active invite on a document group for all its recipients at once. Fields: **Document Group** (required), **Cancellation Reason** (optional), and **Notify Signers** (on by default; turn it off to cancel without emailing signers).

### Deactivate Signing Link

Turns off a document group signing link so nobody can sign with it. Map **Signing Link ID** from the `signing_link_id` value of a **Create Document Group From Template & Send Role Invite** step. Save the ID if you may need to turn the link off later.

### Create Document Group Template From Document Group

Turns an existing document group into a template group, combining its documents into one merged template. Fields: **Document Group** and **Template Name**, both required.

## Search

### Find

Looks up documents, templates, document groups, and template groups.

| Field | What to enter |
| --- | --- |
| **Search by** | Required. One or more of: name, ID, signer email, inviter email, document text. |
| **Search term** | Required. A full or partial name, email, or ID. |

Returns the item's ID, name, type, owner, folder, workspace, and dates. Map the ID into a later step, for example **Move Document**.

## API Request (Beta)

Calls a SignNow API endpoint that no other step covers, with your SignNow connection's authentication added automatically. Set the **URL** of a SignNow API endpoint, the **HTTP Method**, and a JSON **Body** as text. Optional query string parameters and headers are text only; files can't be sent. Turn on **Stop on error** to stop the Zap when SignNow returns an error. For endpoints, see the [API reference](/docs/reference).

For a worked example with API Request steps, see [Automate eSignatures in ClickUp](/docs/clickup-zapier-signing-workflow).

---

**Next**: [SignNow for Zapier: troubleshooting →](/docs/signnow-zapier-troubleshooting)


---

## SignNow for Zapier: troubleshooting

# SignNow for Zapier: troubleshooting

Fix common SignNow Zap problems: missing templates, slow setup, limits, wrong documents, and failed uploads.

Each entry names what you see and what to do. For field details, see [SignNow triggers in Zapier](/docs/signnow-zapier-triggers) and [SignNow actions in Zapier](/docs/signnow-zapier-actions).

## My template doesn't appear in the Template list

The **Template** list shows your personal templates and the templates at the top level of each workspace's Team Templates folder. Template groups are listed in **Template Group** and **Document Group Template** instead.

To use another template:

1. Open the template in [SignNow](https://app.signnow.com).
2. Copy the 40-character ID from the page address.
3. In Zapier, enter the ID in the **Template** field as a custom value.

Also check that the SignNow account connected in Zapier owns the template or belongs to its workspace, and that you picked the action that matches it: **Create Document From Template & Send Role Invite** for a template with fields, **Create Document Group From Template & Send Role Invite** for a template group.

## Setting up the Zap is slow after I pick a template

When you pick a template in **Document Completed**, SignNow subscribes to events for documents created from it, which takes time in accounts with many documents. Leave **Template** empty and filter by template instead, as in the next section.

## Zapier shows "Active subscriptions are limited to 20 subscriptions with this combination"

A SignNow account can have up to 20 active Zaps with a **Document Completed** trigger. Each Zap counts once, whichever template it uses: 20 Zaps with a different template in each reach the limit, while one Zap that branches into 20 paths, one per template, counts as one.

Use one Zap for all your templates:

1. Create a **Document Completed** trigger and leave **Template** empty.
2. Add **Paths by Zapier**.
3. Create one path per template, with a rule that continues only when **Origin Document Id** matches that template's ID.

For documents sent from a document group template, **Origin Document Id** doesn't match any template in the list. Complete one test document from that group template, then copy **Origin Document Id** from the record that **Document Completed** pulls in when you test the trigger.

## My Zap runs for documents it shouldn't

With **Template** empty, **Document Completed** starts the Zap for every completed document in the account. Add a filter step on the document name or **Origin Document Id**, or pick a template in the trigger.

## The upload fails with error 65578 "Invalid file type"

**File** got text instead of a file, usually the file's name or a link to a page rather than the file itself. Map **File** to the file from the earlier step, or to a direct download link, and test the step again.

## A step fails with error 65582

65582 is a general SignNow error code, so the message that comes with it says what went wrong. Open the Zap's run history in Zapier and read the message on the failed step:

- **Document not found**: the template ID in the step is wrong, the template was deleted, or the SignNow account connected in Zapier is no longer a member of the workspace that owns it. Pick the template again, or see [An action can't find my document](#an-action-cant-find-my-document).
- **Modifying invite expiration is not allowed by organization settings**, or the same message about reminders: your organization's settings fix these values. Leave the step's expiration and reminder fields empty.
- **User is not allowed**: the SignNow account connected in Zapier can't use this document or template. Connect an account that owns it or belongs to its workspace.

## An action can't find my document

The **Document** and **Document Group** lists show about 50 recent items from your Documents folder and each workspace's Team Documents folder. For any other item, map its ID from an earlier step, or copy the ID from the page address in SignNow and enter it as a custom value. **Invite to Sign** lists only documents without fields; for a document with fields, use **Create Document From Template & Send Role Invite**.

Also check that the document isn't in the trash and that the SignNow account connected in Zapier owns it.

## Signers receive a text message instead of an email, or no invite

In **Create Document Group From Template & Send Role Invite**, check each role's **Delivery**. **SMS** needs a **Phone** in international format, for example `+14155550123`. **Email** needs an **Email**. **Signing Link** needs neither.

In **Create Document From Template & Send Role Invite**, an empty role **Email** creates a signing link instead of sending an invite.

## My Zap stopped sending documents

1. Open the Zap's run history in Zapier and read the error on the failed step.
2. Check that the SignNow connection in Zapier is still active. Reconnect it if Zapier asks.
3. Check that the template or folder the Zap uses still exists and that you still belong to its workspace.

## Do invites sent through Zapier count toward my invite limit?

Depending on your subscription, invites sent through Zapier may count toward your plan's invite limit, the same way as invites you send from SignNow or other apps. Each invite counts once, however many signers it has, and signing links count the same way. For plan details, see [SignNow pricing](https://www.signnow.com/pricing).

## Get help

If a step still fails, [contact SignNow support](https://www.signnow.com/help/contact-support) with the Zap's run ID, the step that failed, and the error message from Zapier.


---

## Workday and SignNow

# Getting started

Connect SignNow and Workday through Zapier to build automated HR workflows.

Zapier is an automation platform that links apps using automated workflows called Zaps. A Zap has a **trigger** (an event in one app) and one or more **actions** (steps performed in another app). With a SignNow + Zapier connection, you can automatically generate documents, pre-fill them with Workday data, and send them for signature, with no code required.

Start here to connect your SignNow account to Zapier, then build the Workday workflow.

To see every app that connects with SignNow, browse the [SignNow integrations directory on Zapier](https://zapier.com/apps/signnow/integrations).

**Requirements**

- A SignNow account on the US server.
- A Zapier account. Workday is a Zapier premium app, so a paid Zapier plan is required.
- A Workday account with the credentials and permissions needed to connect it to Zapier.

## Connect SignNow to Zapier

1. Sign in to your Zapier account, or create one at [zapier.com](https://zapier.com).
2. In Zapier, open the app directory and search for **SignNow**.
3. Select **SignNow** and connect it, either directly from the app page or when adding it as a step in a new Zap.
4. When prompted, sign in to your SignNow account and authorize Zapier to access it.
5. Your SignNow account is now available to use as a trigger or action in any Zap.

![Zapier home page after connecting the SignNow account](/reference-assets/SignNow_Workday/zapier-home.png)

## SignNow triggers and actions

In a Zap, SignNow can be the **trigger** or the **action**. For example:

**Triggers**

- Document Completed
- New Document
- Document Group Completed

**Actions**

- Create Document From Template & Send Role-Based Invite
- Create Document Group From Template Group & Send Invite
- Invite to Sign

For the full list, see the [SignNow integrations directory on Zapier](https://zapier.com/apps/signnow/integrations).

Once SignNow is connected, build the Zap as described in [Automate eSignatures](/docs/signnow-workday-automate-esignatures).


---

## Automate eSignatures in Workday

# Automate eSignatures for Workday with SignNow

Connect Workday and SignNow through Zapier to send documents for signature automatically. For example, you can build a workflow that sends a document for signature whenever a new hire appears in Workday: SignNow creates a pre-filled document package and sends it to the new hire.

Before you build the Zap, connect your SignNow account to Zapier as described in [Getting started](/docs/signnow-workday).

The quickest way to start is from the [Workday + SignNow page on Zapier](https://zapier.com/apps/workday/integrations/signnow). There you can select a trigger from Workday and an action from SignNow, then connect the apps to start building your Zap. Alternatively, create a new Zap from scratch in your Zapier account.

![Workday and SignNow integration page on Zapier with the New Hire Created trigger and the SignNow action](/reference-assets/SignNow_Workday/workday-signnow-zapier-page.png)

## Build the Zap

### Step 1. Create a template in SignNow

In SignNow, create a document group template (for example, **Employment Agreement Template**) and prepare it for the workflow:

- Add the fields the employee will complete, along with the fields to be pre-filled from Workday, and assign them to the signer recipient (**Employee**).
- Add the HR Manager as an **approver**. Because the approver has no fields to fill, enter the approver's email address directly in the SignNow template.
- Set the signing order so the **HR Manager (approver) is first**, followed by the **employee (signer)**, so the agreement is approved before it reaches the new hire.

![Employment agreement template in the SignNow editor with fields for the HR Manager and the employee](/reference-assets/SignNow_Workday/signnow-template-recipients-upd.png)

### Step 2. Set the trigger

The trigger app is **Workday** with the event **New Hire Created**. Connect your Workday account, then click **Test trigger** to load a sample record.

### Step 3. Add the action

The action app is **SignNow** with the action **Create Document Group From Template & Send Role Invite**. Connect your SignNow account.

![Zapier SignNow action setup with the Create Document Group From Template & Send Role Invite event and the connected account](/reference-assets/SignNow_Workday/zap-signnow-action-setup.png)

### Step 4. Select the template

In **Template Group**, choose your template (**Employment Agreement Template**). Set a **Document Group Name**, for example `Employment Agreement` followed by the employee's name from the trigger.

![Zapier SignNow action configuration with the Employment Agreement Template group, document group name, sender, CC, subject and message](/reference-assets/SignNow_Workday/zap-select-template-group.png)

### Step 5. Map the pre-filled fields

In **Employee | Email**, map the new hire's Workday email address, then add a **Subject** and **Message**. Under **Employee | Custom Field**, map each template field to the matching Workday data:

| Template field | Workday data |
|---|---|
| `employee_name` | Employee full name |
| `employee_id` | Employee / worker ID |
| `employee_title` | Job title |
| `employee_dep` | Department |
| `employee_manager` | Reporting manager |
| `employee_location` | Work location |
| `employee_start` | Start date |
| `employee_salary` | Annual salary |

You do not need to configure the approver here. The HR Manager's email is already set in the template.

![Zapier SignNow action with the employee custom fields: name, ID, title, department, manager, location and date](/reference-assets/SignNow_Workday/zap-map-custom-fields.png)

### Step 6. Lock the pre-filled fields

In **Employee | Locked Custom Fields**, select the fields above so they are read-only and the signer cannot change the Workday data.

### Step 7. Test the action

Click **Test step**. SignNow creates the document group from the template, pre-fills the fields, and sends the invite in the configured order: the HR Manager approves first, then the employee receives it to sign.

### Step 8. Turn on the Zap

Once the test succeeds, publish the Zap.

<!-- theme: success -->

> **Result:** Each time a new hire is created in Workday, the employment agreement is generated with their details pre-filled, approved by the HR Manager, and sent to the new hire to sign, with no manual data entry.

## Related integrations

SignNow connects with other HR platforms through Zapier. You can build a similar workflow with:

- [Workable + SignNow](https://zapier.com/apps/signnow/integrations/workable)
- [All SignNow integrations on Zapier](https://zapier.com/apps/signnow/integrations)

You can also describe this workflow to an AI tool that has Zapier connected, and it builds the Zap for you. See [Build a Zap from your AI tool](/docs/signnow-zapier#build-a-zap-from-your-ai-tool).


---

## ClickUp and SignNow

# Getting started

Connect SignNow and ClickUp through Zapier to send a task's attachment for signature automatically.

Zapier is an automation platform that links apps using automated workflows called Zaps. A Zap has a **trigger** (an event in one app) and one or more **actions** (steps performed in another app). With a SignNow + Zapier connection, you can send documents for signature from a ClickUp task and file the signed copy back, with no code required.

To see every app that connects with SignNow, browse the [SignNow integrations directory on Zapier](https://zapier.com/apps/signnow/integrations).

**Requirements**

- A SignNow account on the US server.
- A Zapier Professional plan. The Free plan runs two-step Zaps, and the ClickUp workflow is longer; Microsoft SharePoint is a Zapier premium app.
- A ClickUp account with access to the workspace holding the tasks.
- SignNow, ClickUp, and Microsoft SharePoint connected in Zapier.

Once the apps are connected, build the Zaps as described in [Automate eSignatures](/docs/clickup-zapier-signing-workflow).


---

## Automate eSignatures in ClickUp

# Automate signing from ClickUp with Zapier

Send a document attached to a ClickUp task for signature, then file the signed copy in SharePoint and on the task.

**Use case overview**

A signing request starts from a ClickUp task: when the task reaches the agreed status, the file attached to it goes out for signature, and the signed copy is stored in SharePoint and re-attached to the originating task. The document travels as a file between the apps, so nobody downloads, re-uploads, or re-attaches anything by hand.

Signing is asynchronous — a signer may take minutes or days — so the workflow is built as two Zaps that hand off to each other through the document name.

Before you build the Zaps, connect your SignNow account to Zapier as described in [Getting started](/docs/clickup).

**Prerequisites**

- ClickUp, Microsoft SharePoint, and SignNow connected in Zapier
- A ClickUp list whose tasks carry the document to be signed as an attachment
- Two statuses on that list: one that starts the workflow, and a separate one for the signed result
- A SharePoint site and folder for signed documents

**Flow overview**

```mermaid
flowchart TD
    A["ClickUp task reaches the signing status"] --> B["ZAP 1: read the attachment,<br>upload to SignNow, send the invite"]
    B --> C["Signer receives an email and signs"]
    C --> D["ZAP 2: SignNow reports the document complete"]
    D --> E["SharePoint stores the signed PDF"]
    D --> F["ClickUp attaches the signed PDF to the task"]
```

> [!WARNING]
> ClickUp's **Private Attachment Links** setting controls whether this workflow can read task attachments. Leave it off — the default — so attachment URLs stay reachable by Zapier. Find it under the Workspace avatar > **Settings** > **Security & Permissions** > **Advanced Permissions**.

## Name documents so the signed file finds its task

When SignNow reports a completed document, the event carries the document, not the ClickUp task it came from. The task ID travels with the document name and comes back the same way.

Zap 1 names every document it uploads:

```
CU-{clickup task id} — {original filename}
```

For example: `CU-869f64nre — sample-service-agreement`

Zap 2 reads the ID back out of that name, and uses the `CU-` prefix to recognize which completed documents belong to this workflow. Treat the document name as system-managed once the invite is out.

## Zap 1: send the document for signature

| Step | App | Event |
| :--- | :--- | :--- |
| 1 | ClickUp | Task Changes *(trigger)* |
| 2 | ClickUp | Find Task by ID |
| 3 | SignNow | Upload Document |
| 4 | SignNow | Invite to Sign |

### Step 1. Watch for a task status change

Add **ClickUp** as the trigger and choose the **Task Changes** event.

![Zapier ClickUp trigger setup with the Task Changes event and the connected account](/reference-assets/images/clickup/zapier-signing-workflow/clickup-trigger-setup.png)

| Field | Required | Description / what to enter |
| :--- | :--- | :--- |
| **Workspace** | Yes | The ClickUp workspace holding the tasks. |
| **Space** | No | The space holding signable tasks. |
| **Folder** | No | The folder, or **No Folder**. |
| **List** | No | The list holding signable tasks. Select this before **Task Status**, which is populated from the list. |
| **What Changed?** | Yes | **Status**. The Zap then wakes only for status changes. |
| **Include Subtasks?** | No | **False**, unless subtasks also carry documents. |
| **Status Type** | No | Leave empty. |
| **Task Status** | No | The exact status that starts the workflow, for example `Complete`. |

![Zapier ClickUp trigger configuration with the workspace, space, list, Status change and Complete task status](/reference-assets/images/clickup/zapier-signing-workflow/clickup-trigger-configure.png)

Two fields narrow by status, and they work together. **Status Type** matches a whole category — `Open`, `Done (including closed)`, or `Closed` — and it filters what **Task Status** offers. Clear Status Type to see every status on the list; a Task Status already chosen is kept.

> [!WARNING]
> Scope the trigger with **Task Status**, not **Status Type**. Zap 2 sets the task to the signed status, which is itself a status change and wakes this trigger again. A trigger scoped to an exact status ignores it. A trigger scoped to the `Done` category matches any status in that category, sends a second invite, and the workflow loops.

Status names belong to the list, so pick from the dropdown rather than assuming a name.

![Zapier ClickUp trigger with the Task Status list showing To Do, In Progress and Complete, with Complete selected](/reference-assets/images/clickup/zapier-signing-workflow/clickup-task-status-dropdown.png)

### Step 2. Read the task and its attachment

Add **ClickUp** > **Find Task by ID**.

| Field | Required | Description / what to enter |
| :--- | :--- | :--- |
| **Task ID** | Yes | **Task Id** from step 1. |
| **Use Custom ID?** | No | **False**, unless the workspace uses custom task IDs. |
| **Include Subtasks?** | No | **False**. |
| **Successful if no search results are found?** | No | **False**, so a task that cannot be read halts the Zap instead of passing empty data on. |
| **If multiple search results are found** | No | Return first search result. |

![Zapier ClickUp Find Task by ID step with the task ID, custom ID, subtask and search result options](/reference-assets/images/clickup/zapier-signing-workflow/clickup-find-task-configure.png)

This step returns the task's attachments. Zapier flattens them into fields prefixed `Attachments`:

| Field | Description |
| :--- | :--- |
| **Attachments Url** | Direct download link — the one to map into SignNow. |
| **Attachments Title** | The original filename, without its extension. |
| **Attachments Extension** | For example `pdf`. Useful for filtering. |
| **Attachments Mimetype** | For example `application/pdf`. |
| **Attachments Size** | File size in bytes. |

> [!NOTE]
> The trigger fires on a status change, and this step reads the attachment at that moment — so attach the document before the task reaches the signing status. When testing, attach a file first, then run the step, or the sample returns no `Attachments` fields.

Map **Attachments Url**. The `Attachments Url W Query` and `Attachments Url W Host` variants carry query parameters that open a preview.

If tasks can carry several attachments, add **Looping by Zapier** > **Create Loop From Line Items** over the attachment URL, with a Filter on **Attachments Extension** so only documents are sent.

### Step 3. Upload the document to SignNow

Add **SignNow** > **Upload Document**.

| Field | Required | Description / what to enter |
| :--- | :--- | :--- |
| **File** | Yes | **Attachments Url** from step 2. Zapier fetches the file and passes it on. |
| **Document Name** | No | `CU-` followed by **ID** from step 2, a separator, and **Attachments Title**. |

![Zapier SignNow Upload Document step with the attachment URL as the file and a document name built from CU-, the task ID and the attachment title](/reference-assets/images/clickup/zapier-signing-workflow/signnow-upload-document-configure.png)

SignNow accepts `.doc`, `.docx`, and `.pdf` files here, and Zapier passes files up to roughly 150 MB. The action calls [Upload document](/docs/document/operations/upload-document).

The document arrives with no fillable fields, so the signer places a signature freely. To capture structured data — name, date, initials bound to a role — add the fields through the API as described in [Add fillable fields with an API request](#add-fillable-fields-with-an-api-request).

### Step 4. Send the invite

Add **SignNow** > **Invite to Sign**.

| Field | Required | Description / what to enter |
| :--- | :--- | :--- |
| **Document** | Yes | **ID** from step 3. |
| **From Email Address** | Yes | The sender address on your SignNow account. |
| **To Email Address** | Yes | **Assignees Email** from step 2. |
| **Subject** | No | For example `Signature requested:` followed by **Name** from step 2. |
| **Message** | No | Free text. Include the ClickUp task URL so the signer has context. |
| **Redirect After Signing** | No | A page to open once signing finishes. |

![Zapier SignNow Invite to Sign step with the uploaded document, the sender, the task assignee as recipient, the subject, message and redirect URL](/reference-assets/images/clickup/zapier-signing-workflow/signnow-invite-to-sign-configure.png)

This action sends a [freeform invite](/docs/doc-freeform-invite/operations/post-freeform-document-id-invite): it addresses the signer by email address, and the signer places a signature anywhere on the document. Role-based invites are covered in the API section below.

## Add fillable fields with an API request

Two extra steps give the signer real fields instead of a free-form signature, while the document still comes from the ClickUp task. Both use SignNow's **API Request (Beta)** action, which signs each call with the SignNow connection already set up in Zapier.

Insert them between steps 3 and 4, and set **Stop on error** to **Yes** on both so a failed call halts the Zap.

### Step 3a. Add the fields

| Field | Description / what to enter |
| :--- | :--- |
| **HTTP Method** | `PUT` |
| **URL** | `https://api.signnow.com/document/` followed by **ID** from step 3 |
| **Additional request headers** | `Content-Type` / `application/json` |
| **Body** | The JSON below |

```json
{
  "fields": [
    {
      "type": "signature",
      "role": "Signer",
      "required": true,
      "page_number": 0,
      "x": 100,
      "y": 600,
      "width": 200,
      "height": 30
    },
    {
      "type": "text",
      "role": "Signer",
      "label": "Full name",
      "required": true,
      "page_number": 0,
      "x": 100,
      "y": 650,
      "width": 200,
      "height": 20
    }
  ]
}
```

![Zapier SignNow API Request step with a PUT request to /document/{id} and a JSON body that adds a signature field](/reference-assets/images/clickup/zapier-signing-workflow/signnow-api-request-add-fields.png)

Each field needs `type`, `role`, `required`, `page_number`, and its position and size. Coordinates are pixels from the top-left of the page, and `page_number` counts from `0`. Available types are `text`, `signature`, `initials`, `stamp`, `checkbox`, `attachment`, `hyperlink`, `radiobutton`, and `enumeration`. See [Edit document](/docs/document/operations/edit-document) for the full field reference.

> [!TIP]
> To place fields accurately, run this step once, open the document in SignNow and drag the fields where they belong, then call [Get document](/docs/document/operations/get-document) and copy the resulting coordinates back into the request body.

> [!NOTE]
> Fields are added while the document is still a draft. Each Zap run uploads a fresh document, so the step always has one to work with. Testing by hand against a document that has already been sent returns an error — upload a new document instead.

### Step 3b. Send a role-based invite

Fields are assigned to a **role**, and the invite binds that role to a person. Replace step 4 with a second **API Request (Beta)**:

| Field | Description / what to enter |
| :--- | :--- |
| **HTTP Method** | `POST` |
| **URL** | `https://api.signnow.com/document/` followed by **ID** from step 3, then `/invite` |
| **Additional request headers** | `Content-Type` / `application/json` |

```json
{
  "to": [
    {
      "email": "signer@example.com",
      "role": "Signer",
      "order": 1,
      "subject": "Signature requested",
      "message": "Please review and sign."
    }
  ],
  "from": "sender@example.com"
}
```

![Zapier SignNow API Request step with a POST request to /document/{id}/invite for a role-based invite](/reference-assets/images/clickup/zapier-signing-workflow/signnow-api-request-role-invite.png)

Map **Assignees Email** from step 2 into the `email` value. In the Body box, type the JSON including its quotes, place the cursor between them, and press **/** to open the field picker so the token sits inside the quotes.

The `role` value must match the role set on the fields. See [Invite to sign](/docs/document-field-invite/operations/post-document-doc-id-invite) for the full request body, and the [Invite to sign](/docs/invite-to-sign) guide for how field and freeform invites differ.

## Zap 2: file the signed document

This is a separate Zap, with its own trigger. The two are linked only by the document name.

| Step | App | Event |
| :--- | :--- | :--- |
| 1 | SignNow | Document Completed *(trigger)* |
| 2 | Filter by Zapier | Only continue if… |
| 3 | Formatter by Zapier | Text > Extract Pattern |
| 4 | Microsoft SharePoint | Upload File |
| 5 | ClickUp | Post Attachment |
| 6 | ClickUp | Update Task |

### Step 5. Trigger on document completion

Add **SignNow** as the trigger and choose **Document Completed**.

| Field | Required | Description / what to enter |
| :--- | :--- | :--- |
| **Template** | No | Leave empty. These documents are uploaded rather than created from a template. |
| **Return PDF of Document** | Yes | **Yes**. This is what hands the signed file to the later steps. |
| **Return Document History** | Yes | **Yes** to make the audit trail available to later steps. |
| **Return ZIP** | Yes | **Yes** to receive the document and its history bundled together. |

![Zapier SignNow Document Completed trigger with Return PDF of Document, Return Document History and Return ZIP set to YES](/reference-assets/images/clickup/zapier-signing-workflow/signnow-document-completed-configure.png)

The signed file arrives as the field **Files Pdf**. Both the SharePoint and ClickUp steps map that same field.

### Step 6. Filter out unrelated documents

Add **Filter by Zapier** and set one condition:

- **Document Name** — **(Text) Starts with** — `CU-`

![Zapier Filter conditions step that continues only when the document name starts with CU-, with a passing test record](/reference-assets/images/clickup/zapier-signing-workflow/zapier-filter-document-name.png)

The trigger fires for every document completed in the SignNow account, so the naming convention doubles as the scope for this Zap. Filters consume no tasks, so placing this before the Formatter also keeps usage down.

### Step 7. Extract the task ID

Add **Formatter by Zapier** > **Text**.

| Field | Description / what to enter |
| :--- | :--- |
| **Transform** | Extract Pattern |
| **Input** | **Document Name** from step 5 |
| **Pattern** | `CU-\s*([A-Za-z0-9]+)` |

![Zapier Formatter Extract Pattern step with a regular expression that captures the task ID after CU- in the document name](/reference-assets/images/clickup/zapier-signing-workflow/zapier-formatter-extract-pattern.png)

The output is the bare ClickUp task ID. The `\s*` in the pattern allows for a space after the prefix.

### Step 8. Store the signed file in SharePoint

Add **Microsoft SharePoint** > **Upload File**.

| Field | Required | Description / what to enter |
| :--- | :--- | :--- |
| **Site** | Yes | The SharePoint site holding the destination folder. |
| **Document Library** | No | Usually `Documents`. |
| **Folder** | No | The folder for signed documents. |
| **File** | Yes | **Files Pdf** from step 5. |
| **File name** | No | **Document Name** from step 5. |
| **If file name exists** | No | **Rename automatically** keeps an earlier signed copy intact. |

![Zapier SharePoint Upload File step with the team site, Documents library, Demo folder, signed PDF, document name and Rename automatically](/reference-assets/images/clickup/zapier-signing-workflow/sharepoint-upload-file-configure.png)

### Step 9. Attach the signed file to the task

Add **ClickUp** > **Post Attachment**.

| Field | Required | Description / what to enter |
| :--- | :--- | :--- |
| **Workspace**, **Space**, **Folder**, **List** | Yes | Where the task lives. |
| **Task** | Yes | The **Output** from step 7. The field accepts a mapped value. |
| **File** | Yes | **Files Pdf** from step 5. |

![Zapier ClickUp Post Attachment step with the task ID from the Formatter step and the signed PDF file](/reference-assets/images/clickup/zapier-signing-workflow/clickup-post-attachment-configure.png)

> [!WARNING]
> Map the file itself into **File**, not the document name. A text value is accepted and converted into a `.txt` file, and the step still reports success — the task then carries a text file instead of the signed PDF. Check the step output: **Extension** reads `pdf` when the mapping is right.

### Step 10. Update the task status

Add **ClickUp** > **Update Task**.

| Field | Description / what to enter |
| :--- | :--- |
| **Task** | The **Output** from step 7. |
| **Task Status** | The signed status, for example `Signed`. |

![Zapier ClickUp Update Task step with the task status set to Signed](/reference-assets/images/clickup/zapier-signing-workflow/clickup-update-task-configure.png)

Use a different status from the one the Zap 1 trigger watches.

## Test the workflow

1. Create a task in the scoped list, assign it to someone with a valid email, and attach a document.
2. Move the task to the signing status. Zap 1 runs.
3. Confirm the document name in SignNow begins with `CU-` and the correct task ID.
4. Sign the document from the invite email.
5. Within a minute or two, the signed PDF appears in the SharePoint folder and on the ClickUp task.
6. Watch the task after Zap 2 sets the signed status — one invite, and no second one.
7. Sign an unrelated document in the same SignNow account and confirm Zap 2 ignores it.

## Adapt the workflow

You can also describe this workflow to an AI tool that has Zapier connected, and it builds the Zap for you. See [Build a Zap from your AI tool](/docs/signnow-zapier#build-a-zap-from-your-ai-tool).

<details>
<summary>Use a SignNow template instead of the task attachment</summary>

A template carries fields drawn in advance and bound to a role, which gives the strongest data capture. The document then comes from SignNow rather than from the task.

Zap 1 becomes two steps:

1. **ClickUp** — Task Changes, configured as above
2. **SignNow** — Create Document From Template & Send Role Invite, with the template, a document name built the same way, the sender address, and the assignee's email mapped to the role

Creation and invite happen in one action, and no upload step is needed. In Zap 2, set the **Template** field on the trigger to the same template — that scopes the trigger, and the `CU-` filter becomes unnecessary.

Role fields appear in the Zapier editor once the template is selected. The action calls [Create document from template](/docs/template/operations/get-template-copy).

</details>

<br>

<details>
<summary>Use text tags in the source document</summary>

**Upload Document & Extract Fields** converts text tags already present in a document into fillable fields assigned to a role. It suits documents generated from a template that can carry tags — every file then arrives ready for signature.

Simple text tags hold each field's details in the document itself, for example `{{t:s;r:y;o:"Signer";w:100;h:15;}}` for a required signature assigned to the role `Signer`. See [Text tags](/docs/text-tags) for the syntax, and [Upload document with tags](/docs/document/operations/upload-document-with-text-tags) for the endpoint behind the action.

Because the fields are assigned to roles, pair this with the role-based invite described above.

</details>

<br>

<details>
<summary>Source the document from SharePoint</summary>

When the unsigned documents live in SharePoint rather than on the task, replace step 2 with **SharePoint** > **Find File in Folder**, matched on the ClickUp task ID in the filename, and pass the result to **Upload Document**.

Storing the SharePoint file path in a ClickUp custom field makes the match more reliable than matching on names.

</details>

<br>

<details>
<summary>Send to several signers</summary>

Use the document group actions: **Create Document Group From Template & Send Role Invite** in Zap 1, with a template group carrying one role per signer, and **Document Group Completed** as the Zap 2 trigger.

Signer addresses can come from ClickUp custom fields — an approver and a counterparty, for example. The action calls [Invite to sign doc group](/docs/doc-group-field-invite/operations/invite-to-sign-document-group).

</details>

<br>

<details>
<summary>Prefill fields with ClickUp data</summary>

Values held on the task — contract amounts, dates, client names — can be written into the document's fields when it is created, so the signer only signs.

**Find Task by ID** returns the task's custom fields, which are then available to map into the template's fields or into the `prefilled_text` property of an API-created field.

</details>

<br>

<details>
<summary>Route signed documents to different folders</summary>

Add **Paths by Zapier** to Zap 2 before the SharePoint step, branching on a ClickUp property such as client, project, or department, with a separate upload per branch.

</details>

<br>

<details>
<summary>Watch for declined and expired invites</summary>

The Zapier trigger reports completed documents. To act on a declined invite or an expired one, subscribe to SignNow's webhooks and catch the events with **Webhooks by Zapier**. See [Webhooks](/docs/guides-webhooks).

</details>


---

## Deprecated

---

## Sharepoint

# Integrate SignNow with SharePoint


Discover how to integrate SignNow into SharePoint to streamline document management and enhance workflow automation. This guide provides clear steps, practical tips, and essential insights for successful integration.

**Requirements:**

- SignNow account on the US server
- SharePoint account
- Full Control permissions to add apps from the SharePoint Store (You already have this if you are a Site Owner)

If you don’t have the Full Control permissions, you can still request an app. The person who manages the App Catalog site can approve or deny requests for adding apps.

<iframe width="560" height="315" src="https://www.youtube.com/embed/BoQD1Ai2rdI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

_Last update: November 2021_

---

## Install

## Install SignNow app to a SharePoint Site

SignNow app is available at SharePoint Store. The installation process takes a couple of minutes.

<!-- theme: warning -->

> In order to install an app, your SharePoint online must have an App Catalog site. To learn about how to create an App Catalog as an Office 365 Global Administrator, see : [Create App Catalog site](https://docs.microsoft.com/en-us/sharepoint/use-app-catalog#step-1-create-the-app-catalog-site-collection)
>

_**For Global Administrators only: Install from the Microsoft Admin Center**_

To install SignNow app for your organization and allow users to install it to their SharePoint sites, go to the Microsoft Admin Center.

![SharePoint app launcher open over Site contents, with an arrow pointing to the Admin app](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/action-menu-admin.jpg)

1. In _Microsoft Admin Center_, go to the **Settings** > **Integrated apps** > **Get Apps**. Select **Get Apps** at the top of the page.

![Microsoft 365 admin center with Settings > Integrated apps highlighted in the left menu](https://marketing-static.signnow.com/564/images/docs-signnow/Microsoft-365-admin-center-settings-integrated-apps.jpg)

![Integrated apps page in the Microsoft 365 admin center with the Get apps button highlighted](https://marketing-static.signnow.com/564/images/docs-signnow/get-apps.jpg)

2. Search for _SignNow for SharePoint Online_, and select the app page. Click on **Get it Now** and follow the instructions

![AppSource search results for signNow with the SignNow for SharePoint Online app highlighted](https://marketing-static.signnow.com/564/images/docs-signnow/search-for-signnow.jpg)

![SignNow for SharePoint Online app page in AppSource with the Get it now button](https://marketing-static.signnow.com/564/images/docs-signnow/get-it-now.jpg)

3. Select **Deploy**.

A green checkmark appears when the add-in is deployed. Follow the on-page instructions to test the add-in.

_**For users with regular access: Request installation**_

1. On the Site where you’d like to add SignNow, go to **Settings** > **Add an app**.

![SharePoint site Settings panel with Add an app highlighted](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/sharepoint-add-an-app.jpg)

2. On the _Your Apps_ page, click **SharePoint Store**.

![Site contents > Your Apps page with SharePoint Store highlighted in the left menu](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/sharepoint-store.jpg)

3. In the SharePoint Store find SignNow: type SignNow into the Search box. Click the SignNow icon.

![SharePoint Store search for signNow with the SignNow app in the results](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/signnow-in-sharepoint-store.jpg)

4. On the SignNow app page, click **Request it**.

![SignNow for SharePoint Online page in the SharePoint Store with the Request it button](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/sharepoint-request-it.jpg)

5. Select if you’d like to install SignNow for specific users or for your whole organization. Click **Request**.

![App Request dialog for SignNow for SharePoint Online with the user options and the Request button](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/sharepoint-request-it-2.jpg)

The SignNow app appears in **Site Contents** - **Your Requests**.

![Site contents > Your Requests page listing the SignNow for SharePoint Online request](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/sharepoint-your-requests.jpg)

The administrator of your SharePoint site must approve the request. When the admin approves your request and deploys the app to your organization (see below), users will be able to see the App in _Site Contents_ > _From Your Organization_ and install it from there.

Go to _Site Contents_ > select _From Your Organization_ > click on _SignNow for SharePoint Online_ > read the Terms and Conditions and the Privacy Statement. If you agree, click **Trust it**. The SignNow app will be installed.

![Site contents > Your Apps page with From Your Organization selected and the SignNow for SharePoint Online app](https://marketing-static.signnow.com/567/images/docs-signnow/app-from-your-org.jpg)

_**For admins of SharePoint Sites (users with Full permissions): Approve installation**_

Admins and users with Full permissions approve the request. In your SharePoint site, go to **Actions menu** > **Admin**.

![SharePoint app launcher open over Site contents, with an arrow pointing to the Admin app](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/action-menu-admin.jpg)

In _Microsoft Admin Center_, click **Show All** in the left sidebar.

![Microsoft 365 admin center with Show all highlighted in the left menu](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/microsoft-365-admin-center-show-all.jpg)

Scroll down and select **Sharepoint**.

![Microsoft 365 admin center left menu expanded, with SharePoint highlighted under Admin centers](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/microsoft-365-admin-center-sharepoint.jpg)

Sharepoint Admin Center opens. Select **apps**.

![Classic SharePoint admin center with apps highlighted in the left menu](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/sharepoint-admin-center-apps.jpg)

In _Apps_, go to the **App catalog**.

![Apps page in the classic SharePoint admin center with the App Catalog link highlighted](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/app-catalog.jpg)

In the _App catalog_, look through the _App requests_ and click on the request marked as _New_.

![App Requests list in the App Catalog with a new SignNow for SharePoint Online request highlighted](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/app-requests.jpg)

Change the request status from _New_ to _Approved_ and click **Save**.

![App request form for SignNow for SharePoint Online with the status set to New and the Save button](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/app-requests-signnow-for-share-point-online.jpg)

Open the request and click **Click here** to view the _App Details_.

![Approved app request form with the Click here to view app details link highlighted](https://marketing-static.signnow.com/567/images/docs-signnow/app-details.jpg)

In the App Details page, click **Add It**.

![SignNow for SharePoint Online app details page with the Add It button](https://marketing-static.signnow.com/567/images/docs-signnow/add-it.jpg)

Now, click **Deploy**.

The App appears on the _App Catalog_ page and will be available to install in the section _From Your Organization_.

![Apps for SharePoint list in the App Catalog showing SignNow for SharePoint Online](https://marketing-static.signnow.com/567/images/docs-signnow/after-deploy.jpg)

**Send with SignNow** will be added to the actions menu in the document.

<!-- theme: success -->

> Note: To start working with the app, go to your document library, select any document and open the context menu. You’ll see the **Send with SignNow** button on the options list.

![SharePoint document library context menu for a selected PDF with Send with SignNow highlighted](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/send-with-signnow.jpg)


---

## Login

## Login to SignNow from SharePoint

To start working with SignNow users should have an account at <https://signnow.com>.

The first time you access SignNow in SharePoint, the app would request your credentials and approve for access. This is a one-time-only procedure.

Select any SignNow action from the actions menu on the document: click **Send with SignNow** or **Open with SignNow**.

![SharePoint document context menu with Send with SignNow and Open with SignNow highlighted](https://marketing-static.signnow.com/480/images/docs-signnow/april-2021-release/signnow-actions.jpg)

The login page opens.

In the bottom left corner, click on the dropdown and select which servers you would like to use. If you skip this step, all your SignNow documents will be stored on the US servers.

Click **Log In** once ready.

![SignNow login screen in SharePoint Online with the server selector (US or EU) and the Log In button](https://marketing-static.signnow.com/671/images/docs-signnow/sn-documentation/servers.png)

---

## Permission requests

The permissions request opens. To start working with the app, please, read and agree to the terms of use. Depending on your level of access, different scenarios might be involved.

**For regular users**

Regular users aren’t allowed to approve permissions requests. At this step, they get a pop-up window where they can enter a note and submit a request for an administrator to review by clicking **Request approval**.

![Microsoft Approval required dialog listing the requested permissions, with a note field and the Request approval button](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.request.approval.png)

Once submitted, users will be informed that an administrator has been notified to review the request.

![Microsoft Request sent confirmation saying the admin has been notified](https://marketing-static.signnow.com/446/images/docs-signnow/microsoft-teams/MS.request.sent.png)

Administrators (currently selected as request reviewers) will receive an email notification explaining the request along with a link to the Azure portal to review the request in more detail.

When Administrators approve users’ request, users can log in once again and wouldn’t have to deal with permissions requests anymore.

**For Administrators (Cloud Admins, App Admins etc.)**

To approve permission requests, Cloud Admins, App Admins must have access to manage all administrative features in Azure Active Directory. This level of access can be granted by a Global Administrator or Privileged Role Administrator in your Organization.

Whether you request access as Cloud/App Admin, or create a custom directory role, please, keep in mind that your role must include [permission to grant permissions to administrators](https://docs.microsoft.com/en-us/azure/active-directory/roles/custom-consent-permissions).

Once you have the permission, you can grant consent to an app as described in the Case 1 for Global Administrators.

**For Global Administrators**

- _Case 1_: how to approve a consent request for the app

Global Administrators can approve permissions and consent requests from users in Azure Active Directory:

1. Navigate to **Azure Active Directory**

2. Open **Enterprise applications** > search **SharePoint and SignNow integration** / **SignNow**

3. Select **Permissions** and then click **Grant admin consent**

4. Agree with the permissions the application requires and grant consent

- _Case 2_: Consent on behalf of the Organization (when users ask the Global Administrator to install the app)

When the Global Administrators installs the app and logs in, they see a checkbox in the permissions request: _Consent on behalf of your Organization_. This checkbox will only show for the Global Admin role, so Cloud Admin and App Admin will not see this checkbox. Please check which role you have as this checkbox might not be visible for non-global admin.

In the _Permissions Request_ pop-up window, select the consent checkbox and click **Accept**.

![Microsoft Permissions requested dialog for SharePoint and SignNow Integration with the consent checkbox and the Accept button](https://marketing-static.signnow.com/480/images/docs-signnow/april-2021-release/permissions-requested.jpg)

This means that the SignNow app is now essentially pre-approved for all users in the tenant.

---

Having the permissions granted, enter your credentials, or use SSO, your Google or Facebook account to log in to SignNow.

![SignNow login pop-up over SharePoint with email and password fields and Facebook and Google sign-in](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/signnow-log-in.jpg)

Grant SignNow SharePoint Integration access to your SignNow account.

![SignNow pop-up asking to grant SignNow SharePoint Integration access to your SignNow account](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/grant-access.jpg)

When you log in successfully, the document opens in SignNow editor (if you started login with _Open with SignNow_) or in _Who is signing?_ settings (if you started with _Send with SignNow_).

![Who is signing dialog in the SignNow editor with the Signer 1 email field](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/start-adding-fields.jpg)


---

## SignNow account settings

## SignNow Settings: Account Info

In SignNow Settings users can check and manage three different kinds of settings: the Account Info, the SharePoint Document Settings, and the SignNow Document settings. In this section we’ll describe the Account info tab.

To access SignNow Settings, go to the ribbon in your Documents folder in SharePoint and select this option.

![SharePoint Documents toolbar overflow menu with SignNow Settings highlighted](https://marketing-static.signnow.com/480/images/docs-signnow/april-2021-release/signnow-settings.jpg)

SignNow Settings open in a pop-up window. The _Account Info_ tab opens by default. Here you can check the account credentials that have been used to log in to this SignNow account. Click **Log Out** if you’d like to change the account.

![SignNow Settings pop-up on the Account Info tab showing the user email, full name and Log Out button](https://marketing-static.signnow.com/480/images/docs-signnow/april-2021-release/account-info.jpg)


---

## SignNow document settings

<!-- theme: info -->

> *Note*: You can a designate a SharePoint folder as a main storage for all documents signed in SignNow. Regardless if the document was signed via a SharePoint integration, mobile app, web app, or other SignNow integrations - the signed copy would be stored in the SharePoint folder you’ve selected.

## SignNow Settings: SignNow Document Settings

In SignNow Settings users can check and manage three different kinds of settings: the Account Info, the SharePoint Document Settings, and the SignNow Document settings. In this section we’ll describe the SignNow Document Settings tab.

To access SignNow Settings, go to the ribbon in your Documents folder in SharePoint and select this option.

![SharePoint Documents toolbar overflow menu with SignNow Settings highlighted](https://marketing-static.signnow.com/480/images/docs-signnow/april-2021-release/signnow-settings.jpg)

SignNow Settings open in a pop-up window. Go to the _SignNow Document Settings_ tab. Here you can set a destination folder where completed SignNow documents will be saved.

![SignNow Settings on the SignNow Document Settings tab with destination folder options for completed documents](https://marketing-static.signnow.com/480/images/docs-signnow/april-2021-release/signNow-document-settings.jpg)

Select one of the options: _Keep completed documents in SignNow_ (default), _Create a SignNow folder in the current SharePoint site_, or _Select an existing folder_ and click **Save**.


---

## Sharepoint document settings

## SignNow Settings: SharePoint Document Settings

In SignNow Settings users can check and manage three different kinds of settings: the Account Info, the SharePoint Document Settings, and the SignNow Document settings. In this section we’ll describe the SharePoint Document Settings tab.

To access SignNow Settings, go to the ribbon in your Documents folder in SharePoint and select this option.

![SharePoint Documents toolbar overflow menu with SignNow Settings highlighted](https://marketing-static.signnow.com/480/images/docs-signnow/april-2021-release/signnow-settings.jpg)

SignNow Settings open in a pop-up window. Go to the _SharePoint Document Settings_ tab. Here you can set a destination folder where completed SharePoint documents will be saved.

![SignNow Settings on the SharePoint Document Settings tab with destination folder options for completed documents](https://marketing-static.signnow.com/480/images/docs-signnow/april-2021-release/sharepoint-document-settings.jpg)

Select one of the options: _Save to document’s original folder_, _Create a SignNow folder in the current SharePoint site_, or _Select an existing folder_ and click **Save**.

<!-- theme: info -->

> Note: This setting works only with the SharePoint site where SignNow app was installed. If you’d like to store documents on another SharePoint site, please add SignNow app to that site and configure **SharePoint Document Settings** again.


---

## Open document with SignNow

## Open document with SignNow

SignNow app allows users to upload any document to their SignNow accounts, so they could add fillable fields to it or turn it into a template. **Open with SignNow** stands for opening a document in SignNow editor.

To upload a document to SignNow, right-click on a document or click the actions menu and select **Open with SignNow** from the dropdown.

![SharePoint document context menu with Open with SignNow highlighted](https://marketing-static.signnow.com/480/images/docs-signnow/april-2021-release/open-with-signnow.jpg)

In the pop-up window, you can rename your document or leave as it is. Click **Continue** once ready.

![Rename Document and Continue dialog with the new document name field and the Continue button](https://marketing-static.signnow.com/671/images/docs-signnow/sn-documentation/open_1.png)

The document opens in SignNow editor.

![Invoice open in the SignNow editor with field tools in the left panel](https://marketing-static.signnow.com/480/images/docs-signnow/april-2021-release/signnow-editor.jpg)

### How to edit a document in SignNow editor:

- [Add fields](https://support.signnow.com/help-center/preparing-doc-for-sending/what-are-fields-labels)
- [Assign roles to fields](https://support.signnow.com/help-center/preparing-doc-for-sending/add-a-signer-in-the-editor)
- [Set signing order](https://support.signnow.com/help-center/preparing-doc-for-sending/what-is-a-signing-order)
- [Add Calculated fields](https://support.signnow.com/help-center/documents-and-templates/add-calculated-fields)
- [Add Conditional fields](https://support.signnow.com/help-center/documents-and-templates/conditional-routing)


---

## Prefill document and send invite

## Prefill a document from SharePoint list and Send Invite

Prefill SignNow templates with the data from SharePoint lists and send them out for signing.

Select the SharePoint list you need to prefill from, click on its action menu and select **Pre-fill and Send with SignNow**.

![SharePoint list item context menu with Pre-fill and Send with SignNow highlighted](https://marketing-static.signnow.com/671/images/docs-signnow/sn-documentation/prefill_1.png)

In the SignNow pop-up window, select a template to prefill, then click **Next to Role Mapping**.

![Select Template step in SignNow with the Job Offer template selected and the Next to Roles Mapping button](https://marketing-static.signnow.com/671/images/docs-signnow/sn-documentation/prefill_2.png)

Rename your document if needed and enter the emails for the signers in the document. Once ready, click **Next to Fields Mapping**.

![Roles Mapping step with the document name and email selectors for Signer 1 and Signer 2](https://marketing-static.signnow.com/671/images/docs-signnow/sn-documentation/prefill_3.png)

Map SignNow fields with the SharePoint columns by selecting the respective values from the dropdowns.

_Tip: When preparing a SignNow template, add labels to the fillable fields to easily recognize them while mapping._

Keep in mind that only Text and Date fields are available for mapping.

Once you’ve finished, click **Next to Rows Data**.

![Fields Mapping step matching SignNow fields to SharePoint list columns](https://marketing-static.signnow.com/671/images/docs-signnow/sn-documentation/prefill_4.png)

Check if the data you’re going to map is correct and proceed **Next to Email Settings**.

![Rows Data step showing the signer emails and mapped field values to check](https://marketing-static.signnow.com/671/images/docs-signnow/sn-documentation/prefill_5.png)

Next, customize the message and subject of your email and send out the document.

By default, the signed documents will be saved to the SharePoint root folder.

To change the destination folder for the completed SharePoint documents, [check this article](/docs/sharepoint-document-settings).

To change the destination folder for the completed SignNow documents, [check this article](/docs/signnow-document-settings).


---

## Merge sharepoint documents and send invite

## Merge SharePoint documents and Send Invite

Merge several documents from SharePoint of different formats, arrange their order, and send them out in SignNow as a single document.

Select documents in your SharePoint account. Click on the action menu on any document and select **Send with SignNow**.

![Two documents selected in a SharePoint library, with Send with SignNow highlighted in the context menu](https://marketing-static.signnow.com/671/images/docs-signnow/sn-documentation/merge_1.png)

In the pop-up window, name the newly merged document and rearrange the documents order by dragging them. Click **Merge and Continue** once ready.

![Merge Documents dialog with the new document name, two documents in merge order and the Merge and Continue button](https://marketing-static.signnow.com/671/images/docs-signnow/sn-documentation/merge_2.png)

The newly merged document opens in SignNow editor. Proceed to work with it as described in [Send with SignNow](/docs/send-with-signnow).


---

## Send with SignNow

## Send with SignNow

Select a document, click on the actions menu and pick **Send with SignNow**.

![SharePoint document library context menu for a selected PDF with Send with SignNow highlighted](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/send-with-signnow.jpg)

In the pop-up window, you can rename your document or leave as it is. Click **Continue** once ready.

![Rename Document and Continue dialog with the new document name field and the Continue button](https://marketing-static.signnow.com/671/images/docs-signnow/sn-documentation/open_1.png)

The document opens in SignNow editor.

![Who is signing dialog in the SignNow editor with the Signer 1 email field](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/start-adding-fields.jpg)

At this point you can prepare a document for signing: add signers, assign roles to them, set the order of signing, and add fillable fields.

**1) Signing Step 1**

At Signing Step 1, add the signers who have to sign this document first. Feel free to add multiple signers. All signers within one step receive the document at the same time.

**2) Add Signer’s address and assign a role**

Signer Role - the identifier that helps you assign specific fields to specific signers, e.g. Signer 1, CEO, Contractor.
At this stage, you can add email addresses for each Signer role or simply add roles and assign the recipients later, while forming an Invite.

**3) Add a role**

Click the blue button to add a Signer role.

**4) Signing Step 2**

Here add the recipients who should receive the document after all Step 1 signers.

**5) Cancel Inviting**

If you click Cancel Inviting, all your edits with Roles and Signing Steps will not be saved.

**6) Start adding fields**

Drag and drop fillable fields anywhere on the document and assign them to the roles you’ve created.

![Who is signing dialog with two signing steps: Signer 1 and Signer 2 sign first, then Signer 3](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/start-adding-fields-2.jpg)

![Invoice open in the SignNow editor with signature fields assigned to different signers and the role list in the field settings](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/add-fields.jpg)

1. Click **Edit Signers** if you’d like to add, edit, or remove Signer roles
2. Select any type of field from the list and drag it onto the document
3. Resize the field by dragging the pinpoints. The asterisk in the corner means this field is required.
4. When you click on the field, the field menu opens on the right. Uncheck the _Required_ box, if you don’t need this field to be required.
5. Assign a role from the dropdown menu. Click **Add role** to add another signer.
6. Click **Save and Invite** when you’re done.

The _Review and Send_ page opens. Customize the email subject and message for every signer. Click _Apply Email To All Roles if it fits_.

![Review and Send page for the invoice with Customize Signer Email and Apply Email To All Roles highlighted](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/review-and-send-1.jpg)

When you’re done, click **Send Invite**.

![Review and Send page showing signers by signing step, Advanced Options and the Send Invite button](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/review-and-send-2.jpg)

**Edit document** opens the Roles and Signing Steps page.

**Advanced Options:**

- _Authentication type_ (for Signer identity verification): Password, Text Message, or Phone Call
- _Days Until Expiration_: how long before this Invite expires
- _Send Reminder in X Days_: set this value to send a reminder to the invitee this many days from today. Setting this value to 0 will send no reminder email.
- _Send Reminder every X Days_: the recipient will get a reminder email every set amount of days.
- _Send Reminder in X Days before Expiration_: the recipient will get a reminder email in the set amount of days before the Invite expires.
- _Allow Forwarding_: the recipient can forward this email to another recipient
- _Allow Recipient to Decline to Sign_: the recipient may decline the Invite.

![Advanced Signer Settings for each signer: authentication, expiration, reminders, forwarding and decline options](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/advanced-options.jpg)

When you send out the document, you’ll see it in your SignNow account. When your Invite is sent, there are a few changes you can still make:

![SignNow Documents list with an invite waiting for others and its menu: Cancel Document Invites, Replace Signer, Resend Invite, Change Expiration](https://marketing-static.signnow.com/444/images/docs-signnow/invite-options.jpg)

- _Cancel the Document invite_ for a specific recipient
- _Replace Signer_: send the same Invite to a different recipient
- _Resend Invite_ in case the email gets filtered out
- _Change Expiration_: change the date when this Invite expires.

When the recipient with Signer 1 role opens the document, they see only the fields assigned to them.

![Signer's view of the invoice showing only the signature field assigned to them](https://marketing-static.signnow.com/444/images/docs-signnow/signer-view.jpg)

When all Signers are done, you’ll receive a signed copy in the same folder that you’ve sent the document from.

![SharePoint document library with the signed copy Signed_Invoice sample.pdf next to the original](https://marketing-static.signnow.com/441/images/docs-signnow/sharepoint/signed-invoice.jpg)


---

## Check document status

## Check document status

To **Check the document status**, go to the ribbon in your _Documents_ folder in SharePoint and select this option.

![SharePoint Documents toolbar with the Check Document Status button highlighted](https://marketing-static.signnow.com/480/images/docs-signnow/april-2021-release/check-document-status.jpg)

When you click **Check the document status**, SignNow web app opens in a pop-up window with a list of documents sent for signature. Document status is under the name of the document.

![SignNow Documents list in a pop-up showing an invoice with the status Waiting for Others](https://marketing-static.signnow.com/480/images/docs-signnow/april-2021-release/document-status-waiting-for-others.jpg)

_Possible document status in SignNow:_

_**Waiting for me**_ - the document has been sent for you (the account owner) to sign but hasn’t been signed or declined yet.

_**Waiting for others**_ - the document has been sent for signature but hasn’t been signed or declined yet.

_**Signed**_ - all the fillable fields in the document have been filled-in and the document was signed by all parties.

_**Pending**_ - all the documents with Waiting for me or Waiting for Others status.


---

## GET /request-logs — Get logs

This endpoint allows API users to retrieve request logs for all of the user's active applications.

## Authorization

bearer

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `per_page` | string | No | Allowed values: any positive integer starting from 1. |
| `page` | string | No | Allowed values: any positive integer starting from 1. |
| `filter:error` | string | No | Possible values: true/false. Format: `?filters=[{"error":{"type": "=", "value":true}}]`` |
| `filter:applicationId` | string | No | Possible values: one or several strings in array. Format: `?filters=[{"applicationId":{"type": "in", "value":["e1656509199c931911e919a00b1906ad1a26a450", "e1656509199c931911e919a00b1906ad1a26a451"]}}]` |
| `filter:method` | string | No | Possible values: array of strings. Format: `?filters=[{"method":{"type": "in", "value": "POST", "PUT]}}]` |
| `filter:uri` | string | No | Possible values: array of strings. Format: `?filters=[{"uri":{"type": "match", "value": "string"}}]` - finds only requests where the uri contains the value of the filter; `?filters=[{"uri":{"type": "like", "value": "user"}}]` - finds requests where the uri contains text from values of the filter. |
| `filter:code` | string | No | Possible values: array of two integers. Format: `?filters=[{"code":{"type": "between", "value": [0,500]}}]` |
| `filter:time` | string | No | Possible values: integer. Format: `?filters=[{"time":{"type": "=", "value": 2}}]` |
| `filter:created` | string | No | Possible values: two integers in array. Format: `?filters=[{"created":{"type": "between", "value": [1565360895, 1565360896]}}]` |
| `sort:created` | string | No | Sort results in ascending or descending order. Possible values: asc/desc. Format: `?sort[email]=asc` |

## Responses

### 200

Successful response. Returns the request logs.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "error": false,
      "created": 1790686076.865,
      "request": {
        "ip": "104.30.XX.XX",
        "uri": "/oauth2/token",
        "body": "{\"grant_type\":\"password\",\"password\":\"*****\",\"scope\":\"*\",\"username\":\"*****\"}",
        "host": "api.signnow.com",
        "query": "{}",
        "method": "POST",
        "source": "PostmanRuntime/2.8.0",
        "headers": "{\"authorization\":\"*****\",\"user-agent\":\"PostmanRuntime/2.8.0\"}"
      },
      "user_id": "",
      "response": {
        "body": "{\"access_token\":\"*****\",\"expires_in\":2592000,\"last_login\":1,\"refresh_token\":\"*****\",\"scope\":\"*\",\"token_type\":\"bearer\"}",
        "code": 200,
        "time": "0.563",
        "headers": "{\"access-control-allow-headers\":\"Authorization\",\"access-control-allow-origin\":\"*\",\"cache-control\":\"no-cache, private\",\"connection\":\"close\",\"content-type\":\"application/json; charset=utf-8\",\"strict-transport-security\":\"max-age=31536000; includeSubDomains\",\"transfer-encoding\":\"chunked\",\"x-burst-limit\":\"100\",\"x-burst-remaining\":\"99\",\"x-envoy-upstream-service-time\":\"561\",\"x-frame-options\":\"SAMEORIGIN\",\"x-request-id\":\"dc741f66a300eb62b6549713fd55fe42\"}"
      },
      "request_id": "dc741f66a300eb62b6549713fd55fe42",
      "api_version": "legacy",
      "application_id": "19afd279a79e69c83f5e7e7276dc081fd3188ef1",
      "application_name": "HubSpot_app",
      "application_owner_email": "user1@example.com"
    },
    {
      "error": false,
      "created": 1790688365.467,
      "request": {
        "ip": "104.30.XX.XX",
        "uri": "/user/documentgroup/templates",
        "body": null,
        "host": "api.signnow.com",
        "query": "{\"limit\":\"5\"}",
        "method": "GET",
        "source": "curl/7.81.0",
        "headers": "{\"authorization\":\"*****\",\"user-agent\":\"curl/7.81.0\"}"
      },
      "user_id": "3cc0095f2a88e3eee94525e01cea1d1fbd1833ca",
      "response": {
        "body": "{\"document_group_template_total_count\":60,\"document_group_templates\":[{\"folder_id\":null,\"is_prepared\":true,\"last_updated\":\"1790588411\",\"own_as_merged\":true,\"owner_email\":\"user1@example.com\",\"template_group_id\":\"7944da508891493ea6d7f8ea73f1e57173fc1218\",\"template_group_name\":\"EmploymentAgreement\",\"templates\":[{\"id\":\"af38758172a0b0506100310eff5026ebea0f5b8d\",\"name\":\"EmploymentAgreement\",\"roles\":[\"Manager\"],\"thumbnail\":{\"large\":\"https://api.signnow.com/document/af38758172a0b0506100310eff5026ebea0f5b8d/thumbnail?size=large\",\"medium\":\"https://api.signnow.com/document/af38758172a0b0506100310eff5026ebea0f5b8d/thumbnail?size=medium\",\"small\":\"https://api.signnow.com/document/af38758172a0b0506100310eff5026ebea0f5b8d/thumbnail?size=small\"}}]},{\"folder_id\":null,\"is_prepared\":false,\"last_updated\":\"1789486292\",\"own_as_merged\":true,\"owner_email\":\"user1@example.com\",\"template_group_id\":\"7ada9238565f56985393f5c58034bc50a21bc69b\",\"template_group_name\":\"DocgenAgreementDemoAug2026\",\"templates\":[{\"id\":\"393fb7916b5ffa329d11f5c434e5d9b484e512a0\",\"name\":\"DocgenAgreementDemoAug2026\",\"roles\":[\"Recipient1\"],\"thumbnail\":{\"large\":\"https://api.signnow.com/document/393fb7916b5ffa329d11f5c434e5d9b484e512a0/thumbnail?size=large\",\"medium\":\"https://api.signnow.com/document/393fb7916b5ffa329d11f5c434e5d9b484e512a0/thumbnail?size=medium\",\"small\":\"https://api.signnow.com/document/393fb7916b5ffa329d11f5c434e5d9b484e512a0/thumbnail?size=small\"}}]},{\"folder_id\":null,\"is_prepared\":true,\"last_updated\":\"1788429634\",\"own_as_merged\":true,\"owner_email\":\"user1@example.com\",\"template_group_id\":\"52732813343be959205438e0d86422e73708b5f1\",\"template_group_name\":\"Subcontract-Agreement-Demo\",\"templates\":[{\"id\":\"06d9e2b1a244510cf82ca3a6976b78ece0b6e821\",\"name\":\"Subcontract-Agreement-Demo\",\"roles\":[\"Contractor\",\"Subcontractor\"],\"thumbnail\":{\"large\":\"https://api.signnow.com/document/06d9e2b1a244510cf82ca3a6976b78ece0b6e821/thumbnail?size=large\",\"medium\":\"https://api.signnow.com/document/06d9e2b1a244510cf82ca3a6976b78ece0b6e821/thumbnail?size=medium\",\"small\":\"https://api.signnow.com/document/06d9e2b1a244510cf82ca3a6976b78ece0b6e821/thumbnail?size=small\"}}]},{\"folder_id\":null,\"is_prepared\":true,\"last_updated\":\"1788428130\",\"own_as_merged\":true,\"owner_email\":\"user1@example.com\",\"template_group_id\":\"eb644ca80954f1f05b6c48484586bbe8deae4303\",\"template_group_name\":\"Subcontract-Agreement-Demo\",\"templates\":[{\"id\":\"7e3fa4858145190e74c18865b6237f2e3995c320\",\"name\":\"Subcontract-Agreement-Demo\",\"roles\":[\"Contractor\",\"Subcontractor\"],\"thumbnail\":{\"large\":\"https://api.signnow.com/document/7e3fa4858145190e74c18865b6237f2e3995c320/thumbnail?size=large\",\"medium\":\"https://api.signnow.com/document/7e3fa4858145190e74c18865b6237f2e3995c320/thumbnail?size=medium\",\"small\":\"https://api.signnow.com/document/7e3fa4858145190e74c18865b6237f2e3995c320/thumbnail?size=small\"}}]},{\"folder_id\":null,\"is_prepared\":false,\"last_updated\":\"1788427220\",\"own_as_merged\":true,\"owner_email\":\"user1@example.com\",\"template_group_id\":\"84869a8cd3455065c8fb80a90be05627f1dc01e5\",\"template_group_name\":\"Subcontract-Agreement-Demo\",\"templates\":[{\"id\":\"dbd3b185a02a5a9f945f443e50d34542edcc6e7e\",\"name\":\"Subcontract-Agreement-Demo\",\"roles\":[],\"thumbnail\":{\"large\":\"https://api.signnow.com/document/dbd3b185a02a5a9f945f443e50d34542edcc6e7e/thumbnail?size=large\",\"medium\":\"https://api.signnow.com/document/dbd3b185a02a5a9f945f443e50d34542edcc6e7e/thumbnail?size=medium\",\"small\":\"https://api.signnow.com/document/dbd3b185a02a5a9f945f443e50d34542edcc6e7e/thumbnail?size=small\"}}]}]}",
        "code": 200,
        "time": "0.213",
        "headers": "{\"cache-control\":\"no-cache, private\",\"connection\":\"close\",\"content-type\":\"application/json\",\"strict-transport-security\":\"max-age=31536000; includeSubDomains\",\"transfer-encoding\":\"chunked\",\"x-envoy-upstream-service-time\":\"126\",\"x-ratelimit-limit\":\"1000\",\"x-ratelimit-remaining\":\"999\",\"x-ratelimit-reset\":\"1790694000\",\"x-request-id\":\"ff8cdac6c108bf892ef2520891c1fcbc\"}"
      },
      "request_id": "ff8cdac6c108bf892ef2520891c1fcbc",
      "api_version": "legacy",
      "application_id": "19afd279a79e69c83f5e7e7276dc081fd3188ef1",
      "application_name": "HubSpot_app",
      "application_owner_email": "user1@example.com"
    }
  ],
  "meta": {
    "pagination": {
      "count": 5,
      "links": {
        "next": "https://api.signnow.com/request-logs?page=2"
      },
      "total": 898,
      "per_page": 5,
      "total_pages": 180,
      "current_page": 1
    }
  }
}
```

### 400

Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

The user doesn't have an active API subscription.

**Example** (`No active subscription`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "User does not have active subscription"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/request-logs" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /request-logs/{request_id} — Get request log

This endpoint allows API users to retrieve the log of a specific request made by an active application.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `request_id` | string | Yes | Can be retrieved from `GET /request-logs` request. |

## Responses

### 200

Successful response. Returns the request log.

**Example** (`Successful response`)

```json
{
  "data": {
    "error": false,
    "created": 1790686076.865,
    "request": {
      "ip": "104.30.XX.XX",
      "uri": "/oauth2/token",
      "body": "{\"grant_type\":\"password\",\"password\":\"*****\",\"scope\":\"*\",\"username\":\"*****\"}",
      "host": "api.signnow.com",
      "query": "{}",
      "method": "POST",
      "source": "PostmanRuntime/2.8.0",
      "headers": "{\"authorization\":\"*****\",\"user-agent\":\"PostmanRuntime/2.8.0\"}"
    },
    "user_id": "",
    "response": {
      "body": "{\"access_token\":\"*****\",\"expires_in\":2592000,\"last_login\":1,\"refresh_token\":\"*****\",\"scope\":\"*\",\"token_type\":\"bearer\"}",
      "code": 200,
      "time": "0.563",
      "headers": "{\"access-control-allow-headers\":\"Authorization\",\"access-control-allow-origin\":\"*\",\"cache-control\":\"no-cache, private\",\"connection\":\"close\",\"content-type\":\"application/json; charset=utf-8\",\"strict-transport-security\":\"max-age=31536000; includeSubDomains\",\"transfer-encoding\":\"chunked\",\"x-burst-limit\":\"100\",\"x-burst-remaining\":\"99\",\"x-envoy-upstream-service-time\":\"561\",\"x-frame-options\":\"SAMEORIGIN\",\"x-request-id\":\"dc741f66a300eb62b6549713fd55fe42\"}"
    },
    "request_id": "dc741f66a300eb62b6549713fd55fe42",
    "api_version": "legacy",
    "application_id": "19afd279a79e69c83f5e7e7276dc081fd3188ef1",
    "application_name": "HubSpot_app",
    "application_owner_email": "user1@example.com"
  }
}
```

### 400

Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

The user doesn't have an active API subscription.

**Example** (`No active subscription`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "User does not have active subscription"
    }
  ]
}
```

### 404

The request log doesn't exist or belongs to another user.

**Example** (`Request log not found`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "Request log with ID `5bf2c0f49210ca7a850cf15cd0f66185` not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/request-logs/{request_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/paid-request-logs — Get paid request logs

This endpoint allows API users to retrieve the logs of paid API requests.

## Authorization

bearer

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `page` | string | No | Allowed values: any positive integer starting from 1. |
| `filter:type` | string | No | Possible values: 'free_form_invite', 'invite_to_sign', 'signing_link', 'document_group_invite', 'bulk_invite'. Format: `?filters=[{"type":{"type":"in","value":["free_form_invite"]}}]` |
| `filter:date` | string | No | Possible values: two integers in array or null. Format: `?filters=[{"date":{"type":"between","value":[null,100]}}]` |

## Responses

### 200

Successful response. Returns the paid request logs.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "62a8f4d295b348239fcd32b6b7e1223f",
      "uri": "/oauth2/token",
      "date": 1572600281,
      "rate": 1,
      "method": "POST",
      "is_seat": false,
      "request_type": "signing_link",
      "application_mode": "production",
      "request_owner_email": "user1@email.com"
    },
    {
      "id": "62b3e1dfe8274acfb65e7c12a9c544d9",
      "uri": "/oauth2/token",
      "date": 1572600281,
      "rate": 1,
      "method": "POST",
      "is_seat": false,
      "request_type": "free_form_invite",
      "application_mode": "development",
      "request_owner_email": "user2@email.com"
    }
  ],
  "meta": {
    "pagination": {
      "count": 2,
      "links": [],
      "total": 2,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

The user doesn't have an active API subscription.

**Example** (`No active subscription`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "User does not have active subscription"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/paid-request-logs" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/paid-request-logs/export — Export paid request logs

This endpoint allows API users to export logs of the paid requests in an XLSX file.

**Notes**

* The `date` filter can cover up to `90` days.
* A request with a bearer token generated by the API dashboard app returns an empty XLSX file.

## Authorization

bearer

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `filter:date` | string | No | Possible values: an array of two dates in `Y-m-d` format, up to `90` days apart. Format: `?filters=[{"date":{"type":"between","value":["2019-10-31","2019-10-31"]}}]` |
| `filter:clientId` | string | No | Possible values: an array of client IDs of the applications to export paid request logs for. Format: `?filters=[{"clientId":{"type":"in","value":["{{client_id}}"]}}]` |
| `filter:type` | string | No | Possible values: an array of request types to export paid request logs for: `free_form_invite`, `invite_to_sign`, `signing_link`, `document_group_invite`, `embedded_invite`, `embedded_group_invite`, `bulk_invite`, `document_group_bulk_invite`, `document_group_free_form_invite`. Format: `?filters=[{"type":{"type":"in","value":["signing_link","bulk_invite"]}}]` |

## Responses

### 200

An XLSX file (`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`) named `api_usage_report.xlsx`, with two sheets:

* **Requests**: one row per paid request, with the columns Request Type, Method, URL, Date, Invites Used, Application name, Application id, and Owner.
* **Totals**: the number of paid requests per request type.

### 400

* Wrong, expired, or missing token.
* `filters` isn't valid JSON.
* The filter isn't supported.
* The `date` filter type isn't `between`.
* The `date` filter value isn't an array of two dates.
* A date isn't in `Y-m-d` format.
* The `date` range is longer than `90` days.
* The `clientId` filter type isn't `in`, its value isn't an array, or a client ID doesn't match any application.
* The `type` filter type isn't `in`, its value isn't an array, or a request type isn't supported.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Wrong client ID`)

```json
{
  "errors": [
    {
      "code": 18002016,
      "message": "Wrong `clientId` values given: \"0d4ad4b1d6a64bf6a8e8b7f0e2f5b5ac\""
    }
  ]
}
```

**Example** (`Wrong date format`)

```json
{
  "errors": [
    {
      "code": 18002005,
      "message": "The `date` filter value should contain a date in format Y-m-d"
    }
  ]
}
```

**Example** (`Unsupported filter`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "Unsupported filter foo was given."
    }
  ]
}
```

**Example** (`Date range too long`)

```json
{
  "errors": [
    {
      "code": 18002006,
      "message": "The `date` filter gap should be 90 days or less"
    }
  ]
}
```

**Example** (`Wrong filters format`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "Wrong filters format."
    }
  ]
}
```

**Example** (`Wrong date filter type`)

```json
{
  "errors": [
    {
      "code": 18002002,
      "message": "The `date` filter expression should be equal to `between`"
    }
  ]
}
```

**Example** (`Wrong type filter type`)

```json
{
  "errors": [
    {
      "code": 18002012,
      "message": "The `type` filter expression should be equal to `in`"
    }
  ]
}
```

**Example** (`type value not an array`)

```json
{
  "errors": [
    {
      "code": 18002013,
      "message": "The `type` filter value should be an array"
    }
  ]
}
```

**Example** (`Unsupported request type`)

```json
{
  "errors": [
    {
      "code": 18002014,
      "message": "The `type` filter value should be `free_form_invite`, `invite_to_sign`, `signing_link`, `document_group_invite`, `embedded_invite`, `embedded_group_invite`, `bulk_invite`, `document_group_bulk_invite` and `document_group_free_form_invite`"
    }
  ]
}
```

**Example** (`Wrong clientId filter type`)

```json
{
  "errors": [
    {
      "code": 18002008,
      "message": "The `clientId` filter expression should be equal to `in`"
    }
  ]
}
```

**Example** (`clientId value not an array`)

```json
{
  "errors": [
    {
      "code": 18002009,
      "message": "The `clientId` filter value should be an array"
    }
  ]
}
```

**Example** (`Date value not an array of two`)

```json
{
  "errors": [
    {
      "code": 18002004,
      "message": "The `date` filter value should be of type array with 2 string or nullable elements"
    }
  ]
}
```

### 403

The user doesn't have an active API subscription.

**Example** (`No active subscription`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "User does not have active subscription"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/paid-request-logs/export" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/paid-request-monthly-totals — Get monthly request totals

This endpoint allows API users to retrieve the number of paid API requests used in each month of the subscription period.

## Authorization

bearer

## Responses

### 200

Successful response. Returns the monthly totals of paid requests.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "201911": {
        "bulk_invite": 0,
        "signing_link": 0,
        "invite_to_sign": 0,
        "free_form_invite": 12,
        "document_group_invite": 0
      }
    },
    {
      "201912": {
        "bulk_invite": 0,
        "signing_link": 0,
        "invite_to_sign": 0,
        "free_form_invite": 0,
        "document_group_invite": 0
      }
    }
  ]
}
```

### 400

Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

The user doesn't have an active API subscription.

**Example** (`No active subscription`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "User does not have active subscription"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/paid-request-monthly-totals" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/paid-request-totals — Get paid requests

This endpoint allows API users to retrieve the total, used, and remaining paid API requests for the current subscription.

## Authorization

bearer

## Responses

### 200

Successful response. Returns the total, used, and remaining API limits.

**Example** (`Successful response`)

```json
{
  "data": {
    "used": 2,
    "total": 10,
    "status": "canceled",
    "expired": 1605830400,
    "used_api": 2,
    "used_web": 0,
    "remaining": 8,
    "subscription_id": "5669503709575433796771245877368750673476045434115951839053246345",
    "used_integration": 0,
    "subscription_type": "paid",
    "has_payment_method": false,
    "overdraft_percentage": null
  }
}
```

### 400

Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

The user doesn't have an API subscription plan.

**Example** (`No API plan`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "User does not have any API Plan"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/paid-request-totals" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /api/v2/events — Create event subscription

This endpoint allows API users to subscribe an external service (`callback_url`) to a specific event related to a user, document, or document group. When the subscribed event occurs, your service receives a notification.

See the full list of available events in the [Webhooks user guide](/docs/guides-webhooks#entity-events).
Use [HMAC verification](/docs/guides-webhooks#hmac-security) for an additional layer of security.

This request works with both Basic and Bearer authorization.

For the request with Bearer authorization only, see [Create event subscription](/docs/manage-event-subscriptions/operations/create-event-subscription-2).

For more information, check out our video tutorial.

<details open>

**<summary>Video tutorial</summary>**

<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>

[Video tutorial](https://www.youtube.com/watch?v=Knd_3VeqtJc)

</details>

> [!NOTE]
> For the payload your service receives for each event, see the response examples in [Get callback info by ID](/docs/callbacks-info/operations/get-v2-dashboard-event-subscriptions-subscription-id-callbacks).

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "event",
    "entity_id"
  ],
  "properties": {
    "event": {
      "type": "string",
      "example": "document.complete",
      "description": "Event that triggers the subscription, for example `document.complete`. See the [list of events](/docs/guides-webhooks#entity-events)."
    },
    "action": {
      "type": "string",
      "description": "Action performed when the event occurs. Optional: `callback` is the only supported action and the default."
    },
    "entity_id": {
      "type": "string",
      "description": "Unique string ID of the entity (e.g., `document_id`, `user_id`, `document_group_id`)."
    },
    "attributes": {
      "type": "object",
      "required": [
        "callback"
      ],
      "properties": {
        "delay": {
          "type": "integer",
          "default": 0,
          "maximum": 100,
          "minimum": 0,
          "description": "Delay in seconds before the webhook is sent after the event triggers."
        },
        "headers": {
          "type": "object",
          "properties": {
            "int_head": {
              "type": "integer",
              "description": "Example integer header."
            },
            "bool_head": {
              "type": "boolean",
              "description": "Example boolean header."
            },
            "float_head": {
              "type": "number",
              "description": "Example float header."
            },
            "string_head": {
              "type": "string",
              "description": "Example string header."
            }
          },
          "description": "Custom HTTP headers to be sent with the callback request (e.g., Authorization tokens)."
        },
        "callback": {
          "type": "string",
          "description": "URL that receives the event callback."
        },
        "secret_key": {
          "type": "string",
          "description": "Secret key used to generate the HMAC signature for verifying request authenticity."
        },
        "use_tls_12": {
          "type": "boolean",
          "description": "Whether TLS 1.2 should be used for the callback request."
        },
        "retry_count": {
          "type": "integer",
          "maximum": 10,
          "minimum": 1,
          "multipleOf": 10,
          "description": "Maximum number of retries if the webhook fails with a 5xx error."
        },
        "integration_id": {
          "type": "string",
          "description": "Optional unique ID to identify the external system integration."
        },
        "docid_queryparam": {
          "type": "boolean",
          "description": "Whether the document ID is included as a query parameter in the callback URL."
        },
        "include_metadata": {
          "type": "boolean",
          "description": "Whether document metadata is included in the callback payload."
        },
        "delete_access_token": {
          "type": "boolean",
          "default": true,
          "description": "If `true`, the access token is removed from the webhook payload for security. Default is `true`."
        }
      },
      "description": "Configuration for the webhook callback."
    }
  },
  "x-examples": {
    "Example 1": {
      "event": "document.complete",
      "action": "callback",
      "entity_id": "document_id",
      "attributes": {
        "headers": {
          "int_head": 12,
          "bool_head": false,
          "float_head": 12.24,
          "string_head": "sample_text"
        },
        "callback": "https://webhook.site/a0093533-766c-456e-b625-97592745216a",
        "use_tls_12": true,
        "integration_id": "Unique ID Integration System",
        "docid_queryparam": true
      },
      "secret_key": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "event": "document.complete",
  "action": "callback",
  "entity_id": "d6e3311eadce49eeff483f6c46ed2d11993840f3",
  "attributes": {
    "delay": 50,
    "headers": {
      "int_head": 12,
      "bool_head": false,
      "float_head": 12.24,
      "string_head": "sample_text"
    },
    "callback": "https://example.com/callback",
    "secret_key": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "use_tls_12": true,
    "retry_count": 3,
    "integration_id": "06eff510132bf8ebef345e2ff7f06a5ea077d398",
    "docid_queryparam": true
  }
}
```

## Responses

### 201

The event subscription was created. The response has no body; the ID of the new subscription is returned in the `Id`, `Location`, and `Link` headers.

### 400

* `attributes` is missing or empty.
* `callback` is missing or empty.
* `callback` is not a string or not a URL.
* The callback host is not allowed.
* `event` is missing, empty or not a supported event name.
* `entity_id` is not 40 characters long.
* `integration_id` is not a string or doesn't exist.
* `secret_key` is empty, not a string or longer than 300 characters.
* `delay` or `retry_count` is not an integer or is out of range.
* `delete_access_token`, `docid_queryparam`, `include_metadata` or `use_tls_12` is not a boolean.
* `headers` is not an array.
* `attributes` contains a field the API doesn't expect.
* An active subscription with the same `entity_id`, `event` and callback URL already exists.
* Incorrect or missing token.

**Example** (`Empty event`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "event must not be empty"
    },
    {
      "code": 400,
      "message": "Event does not exist"
    }
  ]
}
```

**Example** (`Missing event`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "event must not be empty"
    }
  ]
}
```

**Example** (`Empty callback`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "callback must not be empty"
    },
    {
      "code": 15006001,
      "message": "Host is not allowed."
    },
    {
      "code": 400,
      "message": "Unknown callback host or callback host unreachable."
    }
  ]
}
```

**Example** (`Empty secret_key`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "secret_key must not be empty"
    },
    {
      "code": 400,
      "message": "This value is too short. It should have 1 character or more."
    }
  ]
}
```

**Example** (`Missing callback`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "\"callback\" is missing."
    }
  ]
}
```

**Example** (`callback not url`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "callback must be url"
    }
  ]
}
```

**Example** (`delay not integer`)

```json
{
  "errors": [
    {
      "code": 15007034,
      "message": "The `attributes.delay` field must be an integer."
    }
  ]
}
```

**Example** (`headers not array`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "headers must be array"
    }
  ]
}
```

**Example** (`Missing attributes`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "attributes must not be empty"
    }
  ]
}
```

**Example** (`delay out of range`)

```json
{
  "errors": [
    {
      "code": 15007035,
      "message": "The `attributes.delay` field must be between 0 and 100."
    }
  ]
}
```

**Example** (`Incorrect entity_id`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "entity_id must have 40 characters."
    }
  ]
}
```

**Example** (`callback not string`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "callback must be string"
    },
    {
      "code": 400,
      "message": "callback must be url"
    }
  ]
}
```

**Example** (`Incorrect event name`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "Event does not exist"
    }
  ]
}
```

**Example** (`secret_key not string`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "secret_key must be string"
    }
  ]
}
```

**Example** (`use_tls_12 not boolean`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "use_tls_12 must be bool"
    }
  ]
}
```

**Example** (`retry_count not integer`)

```json
{
  "errors": [
    {
      "code": 15007031,
      "message": "The `attributes.retry_count` field must be an integer."
    }
  ]
}
```

**Example** (`Incorrect integration_id`)

```json
{
  "errors": [
    {
      "code": 15007032,
      "message": "Invalid integration id - {integration_id}"
    }
  ]
}
```

**Example** (`retry_count out of range`)

```json
{
  "errors": [
    {
      "code": 15007032,
      "message": "The `attributes.retry_count` field must be between 1 and 10."
    }
  ]
}
```

**Example** (`Callback host not allowed`)

```json
{
  "errors": [
    {
      "code": 15006001,
      "message": "Host is not allowed."
    }
  ]
}
```

**Example** (`integration_id not string`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "integration_id must be string"
    },
    {
      "code": 15007032,
      "message": "Invalid integration id - {integration_id}"
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Subscription already exists`)

```json
{
  "errors": [
    {
      "code": 15006045,
      "message": "Active subscriptions must have different combinations of entityId, eventName, and callbackUrl."
    }
  ]
}
```

**Example** (`Unknown field in attributes`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "\"{field_name}\" was not expected."
    }
  ]
}
```

**Example** (`docid_queryparam not boolean`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "docid_queryparam must be bool"
    }
  ]
}
```

**Example** (`include_metadata not boolean`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "include_metadata must be bool"
    }
  ]
}
```

**Example** (`secret_key exceeds 300 chars`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "secret_key value is too long. It should have 300 character or less."
    }
  ]
}
```

**Example** (`delete_access_token not boolean`)

```json
{
  "errors": [
    {
      "code": 400,
      "message": "delete_access_token must be bool"
    }
  ]
}
```

### 403

**Bearer token authorization:**

* The request is sent with a bearer token that does not belong to the user specified in the `entity_id` parameter.

* The request is sent with a bearer token of a user who is not the owner of the document specified in the `entity_id` parameter.

**Basic authorization:**

* The request is sent by an application that is not within the allowed scope.

* The entity is not allowed for the user (the user is not the owner).

**Example** (`Entity not allowed for user (not an owner)`)

```json
{
  "errors": [
    {
      "message": "Subscription to event is not allowed"
    }
  ]
}
```

### 404

* `entity_id` not found.

**Example** (`An entity from `entity_id` not found`)

```json
{
  "errors": [
    {
      "code": 15006005,
      "message": "Not found entity with id = {entity_id}"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/api/v2/events" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"event": "document.complete", "action": "callback", "entity_id": "d6e3311eadce49eeff483f6c46ed2d11993840f3", "attributes": {"delay": 50, "headers": {"int_head": 12, "bool_head": false, "float_head": 12.24, "string_head": "sample_text"}, "callback": "https://example.com/callback", "secret_key": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "use_tls_12": true, "retry_count": 3, "integration_id": "06eff510132bf8ebef345e2ff7f06a5ea077d398", "docid_queryparam": true}}'
```

---

## GET /api/v2/events — Get event subscriptions

This endpoint allows API users to retrieve information about all event subscriptions created within a specific application.

This request uses Basic authorization. For the request with Bearer authorization, see [Get list of event subscriptions](/docs/manage-event-subscriptions/operations/get-v2-dashboard-event-subscriptions).

## Authorization

basic

## Responses

### 200

List of event subscriptions created by the application.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "48ba2d64d76ed2b86aec79263f599aa3484c4789",
      "event": "document.complete",
      "action": "callback",
      "active": true,
      "created": 1764154675,
      "version": 2,
      "entity_id": 552215426,
      "entity_type": "document",
      "event_count": null,
      "request_method": "post",
      "json_attributes": {
        "use_tls_12": true,
        "callback_url": "https://example.com/callback",
        "docid_queryparam": false,
        "include_metadata": true
      },
      "application_name": "test_app",
      "entity_unique_id": "a5beb9d1b0e50129affe6e13e42d9e5f5942cda7",
      "event_subscription_owner_email": "user@example.com"
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

Invalid basic token.

**Example** (`Invalid basic token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/api/v2/events" \
  -H "Authorization: Basic $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /api/v2/events/{event_subscription_id} — Delete event subscription (basic auth)

This endpoint allows API users to unsubscribe an external service (callback_url) from specific events of a user or document. This request uses Basic authorization. For the request with Bearer authorization, see [Delete event subscription (bearer auth)](/docs/manage-event-subscriptions/operations/delete-v2-event-subscriptions-subscription-id).

## Authorization

basic

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `event_subscription_id` | string | Yes | ID of the event subscription. |

## Responses

### 204

The event subscription was deleted. The response has no body.

### 403

**For basic auth:**

* The application ID in the request differs from the ID of the application that created the event subscription.

**For bearer auth:**

* The event subscription was created by another user.

**Example** (`Unsubscription not allowed`)

```json
{
  "message": "Unsubscription from event is not allowed"
}
```

### 404

Value of "uniqueEventId" doesn't exist in database.

**Example** (`Event subscription not found`)

```json
{
  "message": "UserEventSubscription `uniqueEventId` not found"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/api/v2/events/{event_subscription_id}" \
  -H "Authorization: Basic $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /api/v2/events/{event_subscription_id} — Edit event subscription (basic auth)

This endpoint allows API users to change an existing event subscription. This request uses Basic authorization. For the request with Bearer authorization, see [Update event subscription (bearer auth)](/docs/manage-event-subscriptions/operations/put-v2-event-subscriptions-subscription-id).

## Authorization

basic

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `event_subscription_id` | string | Yes | ID of the event subscription. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "event",
    "entity_id",
    "action",
    "attributes"
  ],
  "properties": {
    "event": {
      "type": "string",
      "example": "document.complete",
      "description": "Event that triggers the subscription, for example `document.complete`. See the [list of events](/docs/guides-webhooks#entity-events)."
    },
    "action": {
      "type": "string",
      "description": "Action to perform when the event occurs. Always `callback`."
    },
    "entity_id": {
      "type": "string",
      "description": "ID of the document, document group, or user the event relates to."
    },
    "attributes": {
      "type": "object",
      "required": [
        "callback"
      ],
      "properties": {
        "headers": {
          "type": "object",
          "description": "Custom headers to send with each callback, as key-value pairs. Values can be strings, numbers, or booleans.",
          "additionalProperties": true
        },
        "callback": {
          "type": "string",
          "description": "URL that receives the callback."
        },
        "use_tls_12": {
          "type": "boolean",
          "description": "Whether to use TLS 1.2 for the callback request."
        },
        "integration_id": {
          "type": "string",
          "description": "ID of the integration the subscription belongs to."
        },
        "docid_queryparam": {
          "type": "boolean",
          "description": "Whether to add the document ID to the callback URL as a query parameter."
        }
      },
      "description": "Callback settings."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "event": "document.complete",
  "action": "callback",
  "entity_id": "d6e3311eadce49eeff483f6c46ed2d11993840f3",
  "attributes": {
    "headers": {
      "int_head": 12,
      "bool_head": false,
      "float_head": 12.24,
      "string_head": "test"
    },
    "callback": "https://example.com/callback",
    "use_tls_12": true,
    "docid_queryparam": false
  }
}
```

## Responses

### 200

The event subscription was updated.

**Example** (`Successful response`)

```json
{
  "id": "48ba2d64d76ed2b86aec79263f599aa3484c4789"
}
```

### 400

* "attributes must not be empty" - "attributes" array is missing or empty.
* "'callback' is missing." -  required parameter "callback" is missing.
* "Action must be equal 'callback'" - required parameter "action" is missing OR value of "action" parameter differs from 'callback'.
* "event must not be empty" - required parameter "event" is missing or has an empty value.
* "event must be string" - value of the "event" parameter is not a string.
* "callback must be string" - value of the "callback" parameter is not a string.
* "callback must be url" - value of "callback" parameter is not an URL.
* "Invalid integration id - {integration_id}" - value of "integration_id" parameter doesn't exist in database.

**Example** (`event`)

```json
"{\n  \"code\": 65582,\n  \"message\": \"event must be string\"\n}"
```

**Example** (`action`)

```json
{
  "message": "Action must be equal 'callback'"
}
```

**Example** (`callback`)

```json
{
  "code": 400,
  "message": "attributes must not be empty"
}
```

**Example** (`attributes`)

```json
{
  "code": 400,
  "message": "attributes must not be empty"
}
```

**Example** (`empty event`)

```json
{
  "code": 65582,
  "message": "event must not be empty"
}
```

**Example** (`integration`)

```json
{
  "message": "Invalid integration id - {integration_id}"
}
```

**Example** (`callback is not an url`)

```json
{
  "code": 400,
  "message": "callback must be url"
}
```

**Example** (`callback is not a string`)

```json
{
  "code": 65582,
  "message": "callback must be string"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/api/v2/events/{event_subscription_id}" \
  -H "Authorization: Basic $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"event": "document.complete", "action": "callback", "entity_id": "d6e3311eadce49eeff483f6c46ed2d11993840f3", "attributes": {"headers": {"int_head": 12, "bool_head": false, "float_head": 12.24, "string_head": "test"}, "callback": "https://example.com/callback", "use_tls_12": true, "docid_queryparam": false}}'
```

---

## GET /v2/event-subscriptions/{subscription_id}/callbacks — Get list of callbacks by event subscription

This endpoint allows API users to get the history of callbacks sent for an event subscription.

The results can be filtered and sorted. If the `sort` parameter is not indicated, the results are sorted by the `start_time` in descending order. The `filters` and `sort` parameters need URL-encoding. 


## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `subscription_id` | string | Yes | ID of the subscription. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `sort:end_time` | string | No | Sort results by the end time. Possible values: asc, desc. Format: `?sort[end_time]=desc` |
| `sort:start_time` | string | No | Sort results by the start time. Possible values: asc, desc. Format: `?sort[start_time]=desc` |
| `sort:code` | string | No | Sort results by the response code. Possible values: asc, desc. Format: `?sort[code]=desc` |
| `filters:initiator_id` | string | No | Search for a string in initiator IDs. Format: `?filters=[{"_OR":[{"initiator_id ":{"type":"like","value":"21a28b47"}}]}]` |
| `filters:date` | string | No | Filter results by the timestamps of start time. Format: `?filters=[{"date":{"type":"between","value":[1580719773,1580720509]}}]` |
| `filters:code` | string | No | Filter results by the response codes. Format: `?filters=[{"code":{"type": "between", "value":[199,299]}}]` |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Responses

### 200

List of callbacks sent for the event subscription.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "5c2d2bb12ae4c2a8ba3ac6dd15df69ec2e3a500a",
      "duration": 0.0743,
      "entity_id": "c829fe1931ddd1eb4e5e8d5ebe2f049f702e3235",
      "event_name": "document.update",
      "entity_type": "document",
      "callback_url": "http://example.com/callback",
      "request_method": "post",
      "request_content": {
        "meta": {
          "event": "document.update",
          "timestamp": 1792672126,
          "environment": "https://api.signnow.com",
          "access_token": "********",
          "callback_url": "http://example.com/callback",
          "initiator_id": "c2fbe5919b42cc30f418c031665450d203c081a1"
        },
        "content": {
          "user_id": "c2fbe5919b42cc30f418c031665450d203c081a1",
          "document_id": "c829fe1931ddd1eb4e5e8d5ebe2f049f702e3235",
          "document_name": "Contract"
        }
      },
      "request_headers": [],
      "application_name": "My app",
      "request_end_time": 1792672130,
      "response_content": "{\"message\":\"Okay\",\"timestamp\":\"2026-10-22 12:28:50.004\"}",
      "request_start_time": 1792672130,
      "response_status_code": 200,
      "event_subscription_id": "317e7632eb3894b9310bc753336661b742ed193c",
      "event_subscription_active": true,
      "event_subscription_owner_email": "user@example.com"
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* Token issue.
* Incorrect filter format (each filter must contain `type` and `value` fields).
* Incorrect filter expression (must be a string).
* Incorrect `code` or `date` filter expression (must be `"type": "between"`).
* Incorrect `initiator_id` filter expression (must be `"type": "like"`).
* Incorrect `code` or `date` filter value (must be an array of 2 integers).
* Incorrect `initiator_id` filter value (must be a string).




**Example** (`Authorization error`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Incorrect filter format`)

```json
{
  "errors": [
    {
      "code": 15006011,
      "message": "Incorrect filter format, filter must have `type` and `value` fields."
    }
  ]
}
```

**Example** (`Incorrect code filter value`)

```json
{
  "errors": [
    {
      "code": 15006015,
      "message": "The `code` filter value must be of type array with 2 integer."
    }
  ]
}
```

**Example** (`Incorrect date filter value`)

```json
{
  "errors": [
    {
      "code": 15006018,
      "message": "The `date` filter value must be of type array with 2 integer."
    }
  ]
}
```

**Example** (`Incorrect filter expression`)

```json
{
  "errors": [
    {
      "code": 15006012,
      "message": "Incorrect filter format, filter `type` must be a string."
    }
  ]
}
```

**Example** (`Incorrect code filter expression`)

```json
{
  "errors": [
    {
      "code": 15006013,
      "message": "The `code` filter expression must be equal to `between`."
    }
  ]
}
```

**Example** (`Incorrect date filter expression`)

```json
{
  "errors": [
    {
      "code": 15006016,
      "message": "The `date` filter expression must be equal to `between`."
    }
  ]
}
```

**Example** (`Incorrect initiator_id filter value`)

```json
{
  "errors": [
    {
      "code": 15006020,
      "message": "The `initiator_id` filter value must be a string."
    }
  ]
}
```

**Example** (`Incorrect initiator_id filter expression`)

```json
{
  "errors": [
    {
      "code": 15006019,
      "message": "The `initiator_id` filter expression must be equal to `like`."
    }
  ]
}
```

### 403

Request with token of another application.

**Example** (`Request with token of another application`)

```json
{
  "errors": [
    {
      "message": "Access to the subscription data is not allowed"
    }
  ]
}
```

### 404

* Request with non-existing subscription_id.
* Request with invalid subscription_id.

**Example** (` Invalid subscription_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/dashboard/event-subscriptions/23@/callbacks/12345"
}
```

**Example** (`Non-existing subscription_id`)

```json
{
  "errors": [
    {
      "message": "UserEventSubscription `949ae2dc5c4b2c437a1aaace0bb60b0abc079e02` not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/event-subscriptions/{subscription_id}/callbacks" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/event-subscriptions/{subscription_id}/callbacks/{callback_id} — Get callback info by ID

This endpoint allows API users to get detailed info about one webhook by its ID.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `callback_id` | string | Yes | ID of the webhook. |
| `subscription_id` | string | Yes | ID of the subscription. |

## Responses

### 200

Depending on the type of event, the `initiator_id` parameter can be placed differently in response body (into the `request_content` object):
* only in the `meta` object if `event_name` is:
  * `document.update`
  * `document.complete`
  * `document.open`
  * `template.copy`
  * `document.fieldinvite.create` etc.
  * `document_group.update`
  * `document_group.invite.create` etc.;
   
* in the `meta` and in the `content` objects if `event_name` is:
  * `document.delete`
  * `document_group.delete`
  * `document_group.open`
  * `user.document_group.open`
  * `document_group.invite.declined`
  * `user.document_group.invite.declined`
  * `document_group.complete`
  * `user.document_group.complete`
  
The type of event also affects the composition of the parameters of the `request_content` object. 

<details>
  <summary>See the callback payload for each event</summary>
<br>  
<table>
<tr>
<td> Event </td> <td> "request_content" object </td>
</tr>
<tr>
<td> <code>document.delete</code> <br> <code>user.document.delete</code> </td>
<td>


```json

{
   "meta": {
      "timestamp": 1748521868,
      "event": "document.delete",
      "environment": "https://api.signnow.com",
      "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
      "callback_url": "https://example.com/webhook?Param={\"docId\":\"f700eef0e3de55b12cef7cbfba2e036f336b245a\"}",
      "access_token": "********",
      "metadata": []
   },
   "content": {
      "document_id": "f700eef0e3de55b12cef7cbfba2e036f336b245a",
      "document_name": "Sample Document",
      "user_id": "b2e8364f412c04037bee10a8db9201a727551443",
      "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
      "initiator_email": "signer@example.com"
   }
}
```

</td>
</tr>
<tr>
<td> <code>document.update</code> <br> <code>user.document.update</code> <br> <code>user.document.create</code> <br> <code>user.document.complete</code> <br> <code>document.complete</code> </td>
<td>


```json

{
   "meta": {
      "timestamp": 1748521868,
      "event": "document.update",
      "environment": "https://api.signnow.com",
      "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
      "callback_url": "https://example.com/webhook?Param={\"docId\":\"f700eef0e3de55b12cef7cbfba2e036f336b245a\"}",
      "access_token": "********",
      "metadata": []
   },
   "content": {
      "document_id": "f700eef0e3de55b12cef7cbfba2e036f336b245a",
      "document_name": "Sample Document",
      "user_id": "b2e8364f412c04037bee10a8db9201a727551443"
   }
}
```

</td>
</tr>
<tr>
<td> <code>document.open</code> <br> <code>user.document.open</code> </td>
<td>


```json

{
   "meta": {
      "timestamp": 1748521868,
      "event": "document.open",
      "environment": "https://api.signnow.com",
      "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
      "callback_url": "https://example.com/webhook?Param={\"docId\":\"f700eef0e3de55b12cef7cbfba2e036f336b245a\"}",
      "access_token": "********",
      "metadata": []
   },
   "content": {
      "document_id": "f700eef0e3de55b12cef7cbfba2e036f336b245a",
      "document_name": "Sample Document",
      "user_id": "b2e8364f412c04037bee10a8db9201a727551443",
      "viewer_user_unique_id": "12b5d12203a916fa07f5b13c362140efebdbce5f"
   }
}
```

</td>
</tr>
<tr>
<td> <code>template.copy</code> <br> <code>user.template.copy</code> </td>
<td>


```json

{
   "meta": {
      "timestamp": 1748521868,
      "event": "template.copy",
      "environment": "https://api.signnow.com",
      "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
      "callback_url": "https://example.com/webhook?Param={\"docId\":\"f700eef0e3de55b12cef7cbfba2e036f336b245a\"}",
      "access_token": "********",
      "metadata": []
   },
   "content": {
      "document_id": "f700eef0e3de55b12cef7cbfba2e036f336b245a",
      "template_id": "c70050bfdf4c4d8187783deaac304cb7cbe450b5",
      "user_id": "b2e8364f412c04037bee10a8db9201a727551443",
      "viewer_user_unique_id": "12b5d12203a916fa07f5b13c362140efebdbce5f"
   }
}
```

</td>
</tr>
<tr>
<td> <code>user.document.fieldinvite.create</code> <br> <code>user.document.fieldinvite.decline</code> <br> <code>user.document.fieldinvite.delete</code> <br> <code>user.document.fieldinvite.signed</code> <br> <code>user.document.fieldinvite.sent</code> <br> <code>user.document.freeform.create</code> <br> <code>user.document.freeform.signed</code> <br> <code>document.fieldinvite.create</code> <br> <code>document.fieldinvite.decline</code> <br> <code>document.fieldinvite.delete</code> <br> <code>document.fieldinvite.signed</code> <br> <code>document.fieldinvite.sent</code> <br> <code>document.freeform.create</code> <br> <code>document.freeform.signed</code> </td>
<td>


```json

{
   "meta": {
      "timestamp": 1748521868,
      "event": "document.fieldinvite.create",
      "environment": "https://api.signnow.com",
      "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
      "callback_url": "https://example.com/webhook?Param={\"docId\":\"f700eef0e3de55b12cef7cbfba2e036f336b245a\"}",
      "access_token": "********",
      "metadata": []
   },
   "content": {
      "document_id": "f700eef0e3de55b12cef7cbfba2e036f336b245a",
      "invite_id": "e575c611b641ea7694c6fa3acf3b2fa6dba14287",
      "signer": "signer@example.com",
      "status": "pending"
   }
}
```

</td>
</tr>
<tr>
<td> <code>user.document.fieldinvite.reassign</code> <br> <code>document.fieldinvite.reassign</code> </td>
<td>


```json

{
   "meta": {
      "timestamp": 1748521868,
      "event": "document.fieldinvite.reassign",
      "environment": "https://api.signnow.com",
      "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
      "callback_url": "https://example.com/webhook?Param={\"docId\":\"f700eef0e3de55b12cef7cbfba2e036f336b245a\"}",
      "access_token": "********",
      "metadata": []
   },
   "content": {
      "document_id": "f700eef0e3de55b12cef7cbfba2e036f336b245a",
      "invite_id": "e575c611b641ea7694c6fa3acf3b2fa6dba14287",
      "signer": "signer@example.com",
      "old_invite_unique_id": "a3c84d21c3631347f854510d6facb30129f9bc06"
   }
}
```

</td>
</tr>
<tr>
<td> <code>user.document.fieldinvite.replace</code> <br> <code>document.fieldinvite.replace</code> </td>
<td>


```json

{
   "meta": {
      "timestamp": 1748521868,
      "event": "document.fieldinvite.replace",
      "environment": "https://api.signnow.com",
      "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
      "callback_url": "https://example.com/webhook?Param={\"docId\":\"f700eef0e3de55b12cef7cbfba2e036f336b245a\"}",
      "access_token": "********",
      "metadata": []
   },
   "content": {
      "document_id": "f700eef0e3de55b12cef7cbfba2e036f336b245a",
      "invite_id": "e575c611b641ea7694c6fa3acf3b2fa6dba14287",
      "signer": "signer@example.com",
      "old_invite_unique_id": "a3c84d21c3631347f854510d6facb30129f9bc06",
      "group_invite": true
   }
}
```

</td>
</tr>
<tr>
<td> <code>user.document_group.create</code> <br> <code>user.document_group.update</code> <br> <code>document_group.update</code> </td>
<td>


```json

{
   "meta": {
      "timestamp": 1748521868,
      "event": "document_group.update",
      "environment": "https://api.signnow.com",
      "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
      "callback_url": "https://example.com/webhook?Param={\"groupId\":\"a1658c1b66afcc757aff9859095927ecb3a55cd3\"}",
      "access_token": "********",
      "metadata": []
   },
   "content": {
      "group_id": "a1658c1b66afcc757aff9859095927ecb3a55cd3",
      "group_name": "Sample Document Group",
      "user_id": "b2e8364f412c04037bee10a8db9201a727551443"
   }
}
```

</td>
</tr>
<tr>
<td> <code>user.document_group.complete</code> <br> <code>document_group.complete</code> </td>
<td>


```json

{
   "meta": {
      "timestamp": 1748521868,
      "event": "document_group.complete",
      "environment": "https://api.signnow.com",
      "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
      "callback_url": "https://example.com/webhook?Param={\"groupId\":\"a1658c1b66afcc757aff9859095927ecb3a55cd3\"}",
      "access_token": "********",
      "metadata": []
   },
   "content": {
      "group_id": "a1658c1b66afcc757aff9859095927ecb3a55cd3",
      "group_name": "Sample Document Group",
      "user_id": "b2e8364f412c04037bee10a8db9201a727551443",
      "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
      "initiator_email": "signer@example.com",
      "completed_at": 1748521868,
      "documents": [
         {
            "document_id": "f700eef0e3de55b12cef7cbfba2e036f336b245a",
            "document_name": "Sample Document",
            "status": "completed"
         }
      ],
      "invite_steps": [
         {
            "order": 1,
            "status": "completed",
            "signers": [
               {
                  "email": "signer@example.com",
                  "role_name": "Signer 1",
                  "action": "sign",
                  "status": "fulfilled",
                  "document_id": "f700eef0e3de55b12cef7cbfba2e036f336b245a",
                  "signed_at": 1748521800
               }
            ]
         }
      ]
   }
}
```

</td>
</tr>
<tr>
<td> <code>document_group.delete</code> <br> <code>user.document_group.delete</code> </td>
<td>


```json

{
   "meta": {
      "timestamp": 1748521868,
      "event": "document_group.delete",
      "environment": "https://api.signnow.com",
      "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
      "callback_url": "https://example.com/webhook?Param={\"groupId\":\"a1658c1b66afcc757aff9859095927ecb3a55cd3\"}",
      "access_token": "********",
      "metadata": []
   },
   "content": {
      "group_id": "a1658c1b66afcc757aff9859095927ecb3a55cd3",
      "group_name": "Sample Document Group",
      "user_id": "b2e8364f412c04037bee10a8db9201a727551443",
      "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
      "initiator_email": "signer@example.com"
   }
}
```

</td>
</tr>
<tr>
<td> <code>document_group.open</code> <br> <code>user.document_group.open</code> </td>
<td>


```json

{
   "meta": {
      "timestamp": 1748521868,
      "event": "document_group.open",
      "environment": "https://api.signnow.com",
      "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
      "callback_url": "https://example.com/webhook?Param={\"groupId\":\"a1658c1b66afcc757aff9859095927ecb3a55cd3\"}",
      "access_token": "********",
      "metadata": []
   },
   "content": {
      "group_id": "a1658c1b66afcc757aff9859095927ecb3a55cd3",
      "group_name": "Sample Document Group",
      "user_id": "b2e8364f412c04037bee10a8db9201a727551443",
      "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
      "initiator_email": "signer@example.com"
   }
}
```

</td>
</tr>
<tr>
<td> <code>user.document_group.invite.create</code> <br> <code>user.document_group.invite.resend</code> <br> <code>user.document_group.invite.update</code> <br> <code>user.document_group.invite.cancel</code> <br> <code>document_group.invite.create</code> <br> <code>document_group.invite.resend</code> <br> <code>document_group.invite.update</code> <br> <code>document_group.invite.cancel</code> </td>
<td>


```json

{
   "meta": {
      "timestamp": 1748521868,
      "event": "document_group.invite.create",
      "environment": "https://api.signnow.com",
      "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
      "callback_url": "https://example.com/webhook?Param={\"groupId\":\"a1658c1b66afcc757aff9859095927ecb3a55cd3\"}",
      "access_token": "********",
      "metadata": []
   },
   "content": {
      "group_id": "a1658c1b66afcc757aff9859095927ecb3a55cd3",
      "group_invite_id": "d4d02074b369b58f303aebc46680b161419072d1",
      "status": "pending"
   }
}
```

</td>
</tr>
<tr>
<td> <code>document_group.invite.declined</code> <br> <code>user.document_group.invite.declined</code> </td>
<td>


```json

{
   "meta": {
      "timestamp": 1748521868,
      "event": "document_group.invite.declined",
      "environment": "https://api.signnow.com",
      "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
      "callback_url": "https://example.com/webhook?Param={\"groupId\":\"a1658c1b66afcc757aff9859095927ecb3a55cd3\"}",
      "access_token": "********",
      "metadata": []
   },
   "content": {
      "group_id": "a1658c1b66afcc757aff9859095927ecb3a55cd3",
      "group_invite_id": "d4d02074b369b58f303aebc46680b161419072d1",
      "status": "canceled",
      "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
      "initiator_email": "signer@example.com"
   }
}
```

> **Note:** For SMS invitees, `initiator_email` contains a system-generated address in the format `sms_signer_{phone_number}@no.reply`.

</td>
</tr>
<tr>
<td> <code>user.document_group.invite.expired</code> </td>
<td>


```json

{
   "meta": {
      "timestamp": 1748521868,
      "event": "user.document_group.invite.expired",
      "environment": "https://api.signnow.com",
      "initiator_id": null,
      "callback_url": "https://example.com/webhook?Param={\"groupId\":\"a1658c1b66afcc757aff9859095927ecb3a55cd3\"}",
      "access_token": "********",
      "metadata": []
   },
   "content": {
      "group_id": "a1658c1b66afcc757aff9859095927ecb3a55cd3",
      "group_name": "Sample Document Group",
      "group_invite_id": "d4d02074b369b58f303aebc46680b161419072d1",
      "step": 2,
      "signers": [
         "signer@example.com",
         "signer2@example.com"
      ]
   }
}
```

</td>
</tr>
</table>

</details>

<br>

`Param` will be added to `callback_url` parameter, if `docid_queryparam` is `true`:

```
"callback_url":"{{callback_url}}?Param={\"groupId\":\"{{document_unique_id}}\"}

```
See [`docid_queryparam`](/docs/manage-event-subscriptions/operations/create-event-subscription-2) details

`access_token` will be added only if `delete_access_token` will be `false`.

<br>

See [`delete_access_token`](/docs/manage-event-subscriptions/operations/create-event-subscription-2) details.




**Example** (`document_group.invite.declined`)

```json
{
  "data": {
    "id": "371a2c3a0743dab8d4804287d996b77e56dabc66",
    "duration": 0.0109,
    "entity_id": "a1658c1b66afcc757aff9859095927ecb3a55cd3",
    "event_name": "document_group.invite.declined",
    "entity_type": "document_group",
    "callback_url": "https://example.com/webhook?Param={\"groupId\":\"a1658c1b66afcc757aff9859095927ecb3a55cd3\"}",
    "request_method": "post",
    "request_content": {
      "meta": {
        "event": "document_group.invite.declined",
        "metadata": [],
        "timestamp": 1748521868,
        "environment": "https://api.signnow.com",
        "access_token": "********",
        "callback_url": "https://example.com/webhook?Param={\"groupId\":\"a1658c1b66afcc757aff9859095927ecb3a55cd3\"}",
        "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423"
      },
      "content": {
        "status": "canceled",
        "group_id": "a1658c1b66afcc757aff9859095927ecb3a55cd3",
        "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
        "group_invite_id": "d4d02074b369b58f303aebc46680b161419072d1",
        "initiator_email": "signer@example.com"
      }
    },
    "request_headers": {
      "Content-Type": "application/json"
    },
    "application_name": "Sample Application",
    "request_end_time": 1748521868,
    "response_content": "{\"message\":\"Okay\",\"timestamp\":\"2025-05-29 10:24:28\"}",
    "request_start_time": 1748521868,
    "response_status_code": 200,
    "event_subscription_id": "a1658c1b66afcc757aff9859095927ecb3a55cd3",
    "event_subscription_active": true,
    "event_subscription_owner_email": "owner@example.com"
  }
}
```

**Example** (``initiator_id` only in `meta` object`)

```json
{
  "data": {
    "id": "371a2c3a0743dab8d4804287d996b77e56dabc66",
    "duration": 0.0109,
    "entity_id": "f700eef0e3de55b12cef7cbfba2e036f336b245a",
    "event_name": "document.update",
    "entity_type": "document",
    "callback_url": "https://example.com/webhook?Param={\"docId\":\"f700eef0e3de55b12cef7cbfba2e036f336b245a\"}",
    "request_method": "post",
    "request_content": {
      "meta": {
        "event": "document.update",
        "metadata": [],
        "timestamp": 1748521868,
        "environment": "https://api.signnow.com",
        "access_token": "********",
        "callback_url": "https://example.com/webhook?Param={\"docId\":\"f700eef0e3de55b12cef7cbfba2e036f336b245a\"}",
        "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423"
      },
      "content": {
        "user_id": "b2e8364f412c04037bee10a8db9201a727551443",
        "document_id": "f700eef0e3de55b12cef7cbfba2e036f336b245a",
        "document_name": "Sample Document"
      }
    },
    "request_headers": {
      "Content-Type": "application/json"
    },
    "application_name": "Sample Application",
    "request_end_time": 1748521868,
    "response_content": "{\"message\":\"Okay\",\"timestamp\":\"2025-05-29 10:24:28\"}",
    "request_start_time": 1748521868,
    "response_status_code": 200,
    "event_subscription_id": "a1658c1b66afcc757aff9859095927ecb3a55cd3",
    "event_subscription_active": true,
    "event_subscription_owner_email": "owner@example.com"
  }
}
```

**Example** (``initiator_id` in `meta` and `content` objects`)

```json
{
  "data": {
    "id": "371a2c3a0743dab8d4804287d996b77e56dabc66",
    "duration": 0.0109,
    "entity_id": "f700eef0e3de55b12cef7cbfba2e036f336b245a",
    "event_name": "document.delete",
    "entity_type": "document",
    "callback_url": "https://example.com/webhook?Param={\"docId\":\"f700eef0e3de55b12cef7cbfba2e036f336b245a\"}",
    "request_method": "post",
    "request_content": {
      "meta": {
        "event": "document.delete",
        "metadata": [],
        "timestamp": 1748521868,
        "environment": "https://api.signnow.com",
        "access_token": "********",
        "callback_url": "https://example.com/webhook?Param={\"docId\":\"f700eef0e3de55b12cef7cbfba2e036f336b245a\"}",
        "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423"
      },
      "content": {
        "user_id": "b2e8364f412c04037bee10a8db9201a727551443",
        "document_id": "f700eef0e3de55b12cef7cbfba2e036f336b245a",
        "initiator_id": "c3150254674a3129b28dd20e4049baacec3dc423",
        "document_name": "Sample Document",
        "initiator_email": "signer@example.com"
      }
    },
    "request_headers": {
      "Content-Type": "application/json"
    },
    "application_name": "Sample Application",
    "request_end_time": 1748521868,
    "response_content": "{\"message\":\"Okay\",\"timestamp\":\"2025-05-29 10:24:28\"}",
    "request_start_time": 1748521868,
    "response_status_code": 200,
    "event_subscription_id": "a1658c1b66afcc757aff9859095927ecb3a55cd3",
    "event_subscription_active": true,
    "event_subscription_owner_email": "owner@example.com"
  }
}
```

### 400

* Wrong, expired, or missing token.
* Request with valid bearer token but application deactivated/deleted.
* Request authenticated with Basic token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

Request with token of another application.

**Example** (`Request with token of another application`)

```json
{
  "errors": [
    {
      "message": "Access to the subscription data is not allowed"
    }
  ]
}
```

### 404

* The event subscription doesn't exist.
* The callback doesn't exist.

**Example** (`Callback_id not found`)

```json
{
  "errors": [
    {
      "message": "CallbackResponseLog `12345` not found"
    }
  ]
}
```

**Example** (`Non-existing subscription_id`)

```json
{
  "errors": [
    {
      "message": "UserEventSubscription `94309f71ce0738d501a8b05351ae6676a126f85b` not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/event-subscriptions/{subscription_id}/callbacks/{callback_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/event-subscriptions/{subscription_id}/callbacks/{callback_id}/resend — Resend callback

This endpoint allows API users to resend a failed callback.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `callback_id` | string | Yes | ID of the callback. |
| `subscription_id` | string | Yes | ID of the event subscription. |

## Responses

### 200

The callback was sent again.

**Example** (`Successful response`)

```json
{
  "message": "Webhook resend successful."
}
```

### 400

* Incorrect or missing token.
* Either `callback_url` is still unavailable or it returns an error.

**Example** (`Error persists`)

```json
{
  "code": 15006043,
  "message": "Failed to send callback. Check the current callback info endpoint for details."
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* User is trying to resend a successful callback.
* Thus subscription is deactivated.
* Either access token or subscription ID belongs to another user.

**Example** (`Incorrect user`)

```json
{
  "code": 15006004,
  "message": "Event subscription is not allowed."
}
```

**Example** (`Deactivated subscription`)

```json
{
  "code": 15006041,
  "message": "Event subscription has to be active to resend a webhook."
}
```

**Example** (`Resending successful callback`)

```json
{
  "code": 15006042,
  "message": "Successful webhook resending is not allowed."
}
```

### 404

* `subscription_id` does not exist.
* `callback_id` does not exist.
* Incorrect `subscription_id`.
* Incorrect `callback_id`.

**Example** (`Incorrect callback_id`)

```json
{
  "404": "Unable to find a route to match the URI: /v2/event-subscriptions/1234567890123456789012345678901234567890/callbacks/null/resend "
}
```

**Example** (`Incorrect subscription_id`)

```json
{
  "404": "Unable to find a route to match the URI: /v2/event-subscriptions/null/callbacks/1234567890123456789012345678901234567890/resend "
}
```

**Example** (`callback_id does not exist`)

```json
{
  "code": 15006006,
  "message": "CallbackResponseLog `218111` not found"
}
```

**Example** (`subscription_id does not exist`)

```json
{
  "code": 15006003,
  "message": "Event subscription not found."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/event-subscriptions/{subscription_id}/callbacks/{callback_id}/resend" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## GET /v2/event-subscriptions/callbacks — Get list of callbacks

This endpoint allows API users to get the history of webhook callbacks sent for their event subscriptions. Each item contains the event, the callback request and the response returned by the callback URL.

**Notes**

* The results can be filtered and sorted with the `filters` and `sort` query parameters.
* If `sort` is not set, the results are sorted by `start_time` in descending order.
* The results are paginated. Use the links in `meta.pagination.links` to get the adjacent pages.

## Authorization

bearer

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `sort:end_time` | string | No | Sort results by the end time. Possible values: asc, desc. Format: `?sort[end_time]=desc` |
| `sort:start_time` | string | No | Sort results by the start type. Possible values: asc, desc. Format: `?sort[start_time]=desc` |
| `sort:code` | string | No | Sort results by the response code. Possible values: asc, desc. Format: `?sort[code]=desc` |
| `sort:event` | string | No | Sort results by the specific type of event (from A to Z). Possible values: asc, desc. Format: `?sort[event]=desc` |
| `sort:application` | string | No | Sort results by the application name (from A to Z). Possible values: asc, desc. Format: `?sort[application]=desc` |
| `filters:entity_id, callback_url, initiator_id` | string | No | Search for a string in entity IDs, callback URLs, and initiator IDs. Format: `?filters=[{"_OR":[{"entity_id":{"type":"like","value":"21a28b47"}},{"callback_url":{"type":"like","value":"21a28b47"}},{"initiator_id":{"type":"like","value":"21a28b47"}}]}]` |
| `filters:date` | string | No | Filter results by the timestamps. Format: `?filters=[{"date":{"type":"between","value":[1580719773,1580720509]}}]` |
| `filters:code` | string | No | Filter results by the response codes. Format: `?filters=[{"code":{"type": "between", "value":[199,299]}}]` |
| `filters:event` | string | No | Filter results by the specific type of event. Format: `?filters=[{"event":{"type": "in", "value":["document.create", "document.update"]}}]` |
| `filters:event_type` | string | No | Filter results by the event type. Possible values: 'user', 'document', 'document_group'. Format: `?filters=[{"event_type":{"type": "in", "value":["user", "document", "document_group"]}}]` |
| `filters:application` | string | No | Filter results by the application. Format: `?filters=[{"application":{"type": "in", "value":["applicationUniqueId1", "applicationUniqueId2"]}}]` |

## Request Body

**Schema**

```json
{
  "type": "object"
}
```

## Responses

### 200

Returns a paginated list of callback requests sent for the user's event subscriptions, with request and response details for each.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "2a2998b51f3d16a999b7d10e2d6db0af7ed81a65",
      "duration": 0.3825,
      "entity_id": "0285088abdb3aca33283a12b02bea3fc6898c905",
      "event_name": "document_group.invite.create",
      "entity_type": "document_group",
      "callback_url": "https://example.com/callback",
      "request_method": "post",
      "request_content": {
        "meta": {
          "event": "document_group.invite.create",
          "timestamp": 1792417045,
          "environment": "https://api.signnow.com",
          "access_token": "********",
          "callback_url": "https://example.com/callback",
          "initiator_id": "35b9c32390bd97ad45fa9cc28d061dfa6bf24c32"
        },
        "content": {
          "status": "pending",
          "group_id": "0285088abdb3aca33283a12b02bea3fc6898c905",
          "step_order": 1,
          "group_invite_id": "2a28fd3118acdac07b5790b00cd5987b3504d349"
        }
      },
      "request_headers": [],
      "application_name": "My application",
      "request_end_time": 1792417060,
      "response_content": "{\"status\":\"accepted\"}",
      "request_start_time": 1792417060,
      "response_status_code": 202,
      "event_subscription_id": "5c882f5c3dc38e40987f47c4cf9bc7d90360b46d",
      "event_subscription_active": true,
      "event_subscription_owner_email": "user@example.com"
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": {
        "next": "https://api.signnow.com/v2/event-subscriptions/callbacks?page=2"
      },
      "total": 829,
      "per_page": 1,
      "total_pages": 829,
      "current_page": 1
    }
  }
}
```

### 400

* Incorrect filter format (each filter must contain type and value fields).
* Incorrect filter expression (must be a string).
* Incorrect `application`, `event`, or `event_type` filter expression (must be `"type": "in"`).
* Incorrect `code` or `date` filter expression (must be `"type": "between"`).
* Incorrect `entity_id`, `callback_url`, or `initiator_id` filter expression (must be `"type": "like"`).
* Incorrect `application`, `event_type`, or `event` filter value (must be an array of strings).
* Incorrect `application` filter value item (must be 40 symbols long or shorter and can contain only lowercase latin letters and digits).
* Incorrect `event_type` filter value item (allowed values are `document`, `document_group`, `user`, and `template`).
* Incorrect `event` filter value item (allowed values are listed [here](/docs/guides-webhooks#entity-events)).
* Incorrect `code` or `date` filter value (must be an array of 2 integers).
* Incorrect `entity_id`, `callback_url`, or `initiator_id` filter value (must be a string).


**Example** (`Incorrect filter format`)

```json
{
  "errors": [
    {
      "code": 15006011,
      "message": "Invalid filter format, filter must have `type` and `value` fields."
    }
  ]
}
```

**Example** (`Incorrect code filter value`)

```json
{
  "errors": [
    {
      "code": 15006015,
      "message": "The `code` filter value must be of type array with 2 integer."
    }
  ]
}
```

**Example** (`Incorrect date filter value`)

```json
{
  "errors": [
    {
      "code": 15006018,
      "message": "The `date` filter value must be of type array with 2 integer."
    }
  ]
}
```

**Example** (`Incorrect filter expression`)

```json
{
  "errors": [
    {
      "code": 15006012,
      "message": "Invalid filter format, filter `type` must be a string."
    }
  ]
}
```

**Example** (`Incorrect event filter value`)

```json
{
  "errors": [
    {
      "code": 15006033,
      "message": "The `event` filter value must be an array of strings."
    }
  ]
}
```

**Example** (`Incorrect code filter expression`)

```json
{
  "errors": [
    {
      "code": 15006013,
      "message": "The `code` filter expression must be equal to `between`."
    }
  ]
}
```

**Example** (`Incorrect date filter expression`)

```json
{
  "errors": [
    {
      "code": 15006016,
      "message": "The `date` filter expression must be equal to `between`."
    }
  ]
}
```

**Example** (`Incorrect entity_id filter value`)

```json
{
  "errors": [
    {
      "code": 15006020,
      "message": "The `entity_id` filter value must be a string."
    }
  ]
}
```

**Example** (`Incorrect event filter expression`)

```json
{
  "errors": [
    {
      "code": 15006031,
      "message": "The `event` filter expression must be equal to `in`"
    }
  ]
}
```

**Example** (`Incorrect event filter value item`)

```json
{
  "errors": [
    {
      "code": 15006034,
      "message": "The `event` must be one of valid events."
    }
  ]
}
```

**Example** (`Incorrect event_type filter value`)

```json
{
  "errors": [
    {
      "code": 15006029,
      "message": "The `event_type` filter value must be an array of strings."
    }
  ]
}
```

**Example** (`Incorrect application filter value`)

```json
{
  "errors": [
    {
      "code": 15006023,
      "message": "The `application` filter value should be an array of strings."
    }
  ]
}
```

**Example** (`Incorrect callback_url filter value`)

```json
{
  "errors": [
    {
      "code": 15006025,
      "message": "The `callback_url` filter value must be a string."
    }
  ]
}
```

**Example** (`Incorrect initiator_id filter value`)

```json
{
  "errors": [
    {
      "code": 15006027,
      "message": "The `initiator_id` filter value must be a string."
    }
  ]
}
```

**Example** (`Incorrect entity_id filter expression`)

```json
{
  "errors": [
    {
      "code": 15006019,
      "message": "The `entity_id` filter expression must be equal to `like`."
    }
  ]
}
```

**Example** (`Incorrect event_type filter expression`)

```json
{
  "errors": [
    {
      "code": 15006037,
      "message": "The `event_type` filter expression must be equal to `in`."
    }
  ]
}
```

**Example** (`Incorrect event_type filter value item`)

```json
{
  "errors": [
    {
      "code": 15006030,
      "message": "The `event_type` must be one of 'document', 'document_group', 'user', 'template'."
    }
  ]
}
```

**Example** (`Incorrect application filter expression`)

```json
{
  "errors": [
    {
      "code": 15006021,
      "message": "The `application` filter expression must be equal to `in`."
    }
  ]
}
```

**Example** (`Incorrect application filter value item`)

```json
{
  "errors": [
    {
      "code": 15006036,
      "message": "The `application` filter item length must be 40 and it should contain only characters in [a-z0-9]."
    }
  ]
}
```

**Example** (`Incorrect callback_url filter expression`)

```json
{
  "errors": [
    {
      "code": 15006024,
      "message": "The `callback_url` filter expression must be equal to `like`."
    }
  ]
}
```

**Example** (`Incorrect initiator_id filter expression`)

```json
{
  "errors": [
    {
      "code": 15006026,
      "message": "The `initiator_id` filter expression must be equal to `like`."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/event-subscriptions/callbacks" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/brands/{brand_id}/resources/email-cc-invite — Brand invite CC email

This endpoint allows users to add and edit branding for CC emails that are sent with invite emails.

Branding for invite CC emails is available for the following invite types:

* [Document field invite](/docs/document-field-invite/operations/post-document-doc-id-invite)
* [Document group field invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group)
* [Document freeform invite](/docs/doc-freeform-invite/operations/post-freeform-document-id-invite)
* [Document group freeform invite](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites)

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "en": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom text indicating sender."
        },
        "subject": {
          "type": "string",
          "maxLength": 300,
          "description": "Email subject text. Placeholder `{sender_email}` is available."
        },
        "body_header": {
          "type": "string",
          "maxLength": 300,
          "description": "Email header text. Placeholder `{sender_email}` is available."
        },
        "ccd_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom CC message text. Placeholder `{cc_emails}` that lists other recipients of CC emails is available."
        },
        "body_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Email body text. Placeholders `{document_name}`, `{sender_email}`, and `{signer_email}` are available. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `300` characters, including tags."
        },
        "footer_message": {
          "type": "string",
          "maxLength": 4096,
          "description": "Email footer text. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `4096` characters, including tags."
        }
      },
      "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/branding-email-resources#language-branding)."
    }
  },
  "x-examples": {
    "Example 1": {
      "en": {
        "from": "From user ",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message EN"
      },
      "es": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      },
      "fr": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "en": {
    "from": "Sender Name",
    "subject": "{sender_email} has CC'd you on an invitation",
    "body_header": "{sender_email} has CC'd you on an invitation",
    "ccd_message": "You have been CC\u2019d on this invitation along with {cc_emails}.",
    "body_message": "<p>{sender_email} has invited {signer_email} to review and sign: <b>{document_name}</b>.</p>",
    "footer_message": "<p><b>Unique Solutions Inc.</b></p>"
  },
  "es": {
    "from": "Nombre del remitente",
    "subject": "{sender_email} te ha puesto en copia en una invitaci\u00f3n",
    "body_header": "{sender_email} te ha puesto en copia en una invitaci\u00f3n",
    "ccd_message": "Se te ha copiado en esta invitaci\u00f3n junto con {cc_emails}.",
    "body_message": "{sender_email} ha invitado a {signer_email} a revisar y firmar: {document_name}.",
    "footer_message": "Unique Solutions Inc."
  },
  "fr": {
    "from": "Nom de l'exp\u00e9diteur",
    "subject": "{sender_email} vous a mis en copie d'une invitation",
    "body_header": "{sender_email} vous a mis en copie d'une invitation",
    "ccd_message": "Vous avez \u00e9t\u00e9 mis en copie de cette invitation avec {cc_emails}.",
    "body_message": "{sender_email} a invit\u00e9 {signer_email} \u00e0 examiner et signer: {document_name}.",
    "footer_message": "Unique Solutions Inc."
  }
}
```

## Responses

### 204

Success, no content

### 400

* `body_message` is longer than 300 characters.
* `footer_message` is longer than 4096 characters.
* `body_message` contains HTML that is not allowed: a tag outside the allowed list, a tag with an attribute, an unclosed or misnested tag, or an HTML comment.
* `footer_message` contains HTML that is not allowed.
* Incorrect placeholder found.

**Example** (`Incorrect placeholder`)

```json
{
  "errors": [
    {
      "code": 25002081,
      "message": "Invalid placeholder found, expected {sender_email}, {signer_email}, {document_name}."
    }
  ]
}
```

**Example** (`body_message too long`)

```json
{
  "errors": [
    {
      "code": 25002060,
      "message": "The 'body_message' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`footer_message too long`)

```json
{
  "errors": [
    {
      "code": 25002061,
      "message": "The 'footer_message' attribute must not exceed 4096 characters."
    }
  ]
}
```

**Example** (`body_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

**Example** (`footer_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002383,
      "message": "The 'footer_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

### 404

Brand with this `brand_id` doesn't exist.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-cc-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"en": {"from": "Sender Name", "subject": "{sender_email} has CC'\''d you on an invitation", "body_header": "{sender_email} has CC'\''d you on an invitation", "ccd_message": "You have been CC\u2019d on this invitation along with {cc_emails}.", "body_message": "<p>{sender_email} has invited {signer_email} to review and sign: <b>{document_name}</b>.</p>", "footer_message": "<p><b>Unique Solutions Inc.</b></p>"}, "es": {"from": "Nombre del remitente", "subject": "{sender_email} te ha puesto en copia en una invitaci\u00f3n", "body_header": "{sender_email} te ha puesto en copia en una invitaci\u00f3n", "ccd_message": "Se te ha copiado en esta invitaci\u00f3n junto con {cc_emails}.", "body_message": "{sender_email} ha invitado a {signer_email} a revisar y firmar: {document_name}.", "footer_message": "Unique Solutions Inc."}, "fr": {"from": "Nom de l'\''exp\u00e9diteur", "subject": "{sender_email} vous a mis en copie d'\''une invitation", "body_header": "{sender_email} vous a mis en copie d'\''une invitation", "ccd_message": "Vous avez \u00e9t\u00e9 mis en copie de cette invitation avec {cc_emails}.", "body_message": "{sender_email} a invit\u00e9 {signer_email} \u00e0 examiner et signer: {document_name}.", "footer_message": "Unique Solutions Inc."}}'
```

---

## GET /v2/brands/{brand_id}/resources/email-cc-invite — Get invite CC email branding

This endpoint allows API users to view branding for CC emails that are sent with invite emails.

**Notes**

* The response contains only the languages and fields saved for the brand. Fields that were never set are omitted.
* If the brand has no `email-cc-invite` resource, the endpoint returns `404` with code `25002036`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Email branding of the brand resource, grouped by language. Only the languages and fields saved for the brand are returned.

**Example** (`Successful response`)

```json
{
  "data": {
    "en": {
      "from": "Sender Name",
      "subject": "{sender_email} has CC'd you on an invitation",
      "body_header": "{sender_email} has CC'd you on an invitation",
      "ccd_message": "You have been CC\u2019d on this invitation along with {cc_emails}.",
      "body_message": "{sender_email} has invited {signer_email} to review and sign: {document_name}.",
      "footer_message": "Unique Solutions Inc."
    },
    "es": {
      "from": "Nombre del remitente",
      "subject": "{sender_email} te ha puesto en copia en una invitaci\u00f3n",
      "body_header": "{sender_email} te ha puesto en copia en una invitaci\u00f3n",
      "ccd_message": "Se te ha copiado en esta invitaci\u00f3n junto con {cc_emails}.",
      "body_message": "{sender_email} ha invitado a {signer_email} a revisar y firmar: {document_name}.",
      "footer_message": "Unique Solutions Inc."
    },
    "fr": {
      "from": "Nom de l'exp\u00e9diteur",
      "subject": "{sender_email} vous a mis en copie d'une invitation",
      "body_header": "{sender_email} vous a mis en copie d'une invitation",
      "ccd_message": "Vous avez \u00e9t\u00e9 mis en copie de cette invitation avec {cc_emails}.",
      "body_message": "{sender_email} a invit\u00e9 {signer_email} \u00e0 examiner et signer: {document_name}.",
      "footer_message": "Unique Solutions Inc."
    }
  }
}
```

### 404

Brand with this `brand_id` doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-cc-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/brands/{brand_id}/resources/email-cc-invite — Delete invite CC email branding

This endpoint allows users to remove branding for CC emails that are sent with invite emails.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 404

Brand with this `brand_id` doesn't exist.

**Example** (`Brand not found`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-cc-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/brands/{brand_id}/resources/email-cc-invite-reassign — Brand reassign CC email

This endpoint allows users to add and edit branding for CC emails that are sent with reassign emails.

Branding for reassign CC emails is available for the following invite types:

* [Document field invite](/docs/document-field-invite/operations/post-document-doc-id-invite)
* [Document group field invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group)

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "en": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom text indicating sender."
        },
        "subject": {
          "type": "string",
          "maxLength": 300,
          "description": "Email subject text. Placeholder `{sender_email}` is available."
        },
        "body_header": {
          "type": "string",
          "maxLength": 300,
          "description": "Email header text."
        },
        "ccd_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom CC message text. Placeholder `{cc_emails}` that lists other recipients of CC emails is available."
        },
        "body_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Email body text. Placeholders `{document_name}`, `{sender_email}`, `{old_signer_email}`, and `{new_signer_email}` are available. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `300` characters, including tags."
        },
        "footer_message": {
          "type": "string",
          "maxLength": 4096,
          "description": "Email footer text. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `4096` characters, including tags."
        }
      },
      "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/branding-email-resources#language-branding)."
    }
  },
  "x-examples": {
    "Example 1": {
      "en": {
        "from": "From user ",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message EN"
      },
      "es": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      },
      "fr": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "en": {
    "from": "Sender Name",
    "subject": "{sender_email} has CC'd you in an invitation",
    "body_header": "An invitation you were CC'd in was forwarded to another recipient",
    "ccd_message": "The following people were cc'd:\n{cc_emails}",
    "body_message": "<p>{old_signer_email} forwarded their invitation to {new_signer_email} to fill out and sign <b>{document_name}</b> from {sender_email}.</p>",
    "footer_message": "<p><b>Unique Solutions Inc.</b></p>"
  },
  "es": {
    "from": "Nombre del remitente",
    "subject": "{sender_email} te ha puesto en CC en una invitaci\u00f3n",
    "body_header": "Una invitaci\u00f3n en la que estabas en CC fue reenviada a otro destinatario",
    "ccd_message": "Se copi\u00f3 a las siguientes personas en el env\u00edo:\n{cc_emails}",
    "body_message": "{old_signer_email} ha reenviado su invitaci\u00f3n a {new_signer_email} para completar y firmar {document_name} de parte de {sender_email}.",
    "footer_message": "Unique Solutions Inc."
  },
  "fr": {
    "from": "Nom de l'exp\u00e9diteur",
    "subject": "{sender_email} vous a mis en CC dans une invitation",
    "body_header": "Une invitation dans laquelle vous \u00e9tiez en CC a \u00e9t\u00e9 transf\u00e9r\u00e9e \u00e0 un autre destinataire.",
    "ccd_message": "Les personnes suivantes \u00e9taient en cc:\n{cc_emails}",
    "body_message": "{old_signer_email} a transf\u00e9r\u00e9 son invitation \u00e0 {new_signer_email} pour remplir et signer {document_name} de la part de {sender_email}.",
    "footer_message": "Unique Solutions Inc."
  }
}
```

## Responses

### 204

Success, no content

### 400

* `body_message` is longer than 300 characters.
* `footer_message` is longer than 4096 characters.
* `body_message` contains HTML that is not allowed: a tag outside the allowed list, a tag with an attribute, an unclosed or misnested tag, or an HTML comment.
* `footer_message` contains HTML that is not allowed.
* Incorrect placeholder found.

**Example** (`Incorrect placeholder`)

```json
{
  "errors": [
    {
      "code": 25002081,
      "message": "Invalid placeholder found, expected {old_signer_email}, {new_signer_email}, {document_name}, {sender_email}."
    }
  ]
}
```

**Example** (`body_message too long`)

```json
{
  "errors": [
    {
      "code": 25002060,
      "message": "The 'body_message' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`footer_message too long`)

```json
{
  "errors": [
    {
      "code": 25002061,
      "message": "The 'footer_message' attribute must not exceed 4096 characters."
    }
  ]
}
```

**Example** (`body_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

**Example** (`footer_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002383,
      "message": "The 'footer_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

### 404

Brand with this `brand_id` doesn't exist.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-cc-invite-reassign" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"en": {"from": "Sender Name", "subject": "{sender_email} has CC'\''d you in an invitation", "body_header": "An invitation you were CC'\''d in was forwarded to another recipient", "ccd_message": "The following people were cc'\''d:\n{cc_emails}", "body_message": "<p>{old_signer_email} forwarded their invitation to {new_signer_email} to fill out and sign <b>{document_name}</b> from {sender_email}.</p>", "footer_message": "<p><b>Unique Solutions Inc.</b></p>"}, "es": {"from": "Nombre del remitente", "subject": "{sender_email} te ha puesto en CC en una invitaci\u00f3n", "body_header": "Una invitaci\u00f3n en la que estabas en CC fue reenviada a otro destinatario", "ccd_message": "Se copi\u00f3 a las siguientes personas en el env\u00edo:\n{cc_emails}", "body_message": "{old_signer_email} ha reenviado su invitaci\u00f3n a {new_signer_email} para completar y firmar {document_name} de parte de {sender_email}.", "footer_message": "Unique Solutions Inc."}, "fr": {"from": "Nom de l'\''exp\u00e9diteur", "subject": "{sender_email} vous a mis en CC dans une invitation", "body_header": "Une invitation dans laquelle vous \u00e9tiez en CC a \u00e9t\u00e9 transf\u00e9r\u00e9e \u00e0 un autre destinataire.", "ccd_message": "Les personnes suivantes \u00e9taient en cc:\n{cc_emails}", "body_message": "{old_signer_email} a transf\u00e9r\u00e9 son invitation \u00e0 {new_signer_email} pour remplir et signer {document_name} de la part de {sender_email}.", "footer_message": "Unique Solutions Inc."}}'
```

---

## GET /v2/brands/{brand_id}/resources/email-cc-invite-reassign — Get reassign CC email branding

This endpoint allows API users to view branding for CC emails that are sent with reassign emails.

**Notes**

* The response contains only the languages and fields saved for the brand. Fields that were never set are omitted.
* If the brand has no `email-cc-invite-reassign` resource, the endpoint returns `404` with code `25002036`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Email branding of the brand resource, grouped by language. Only the languages and fields saved for the brand are returned.

**Example** (`Successful response`)

```json
{
  "data": {
    "en": {
      "from": "Sender Name",
      "subject": "{sender_email} has CC'd you in an invitation",
      "body_header": "An invitation you were CC'd in was forwarded to another recipient",
      "ccd_message": "The following people were cc'd:\n{cc_emails}",
      "body_message": "{old_signer_email} forwarded their invitation to {new_signer_email} to fill out and sign {document_name} from {sender_email}.",
      "footer_message": "Unique Solutions Inc."
    },
    "es": {
      "from": "Nombre del remitente",
      "subject": "{sender_email} te ha puesto en CC en una invitaci\u00f3n",
      "body_header": "Una invitaci\u00f3n en la que estabas en CC fue reenviada a otro destinatario",
      "ccd_message": "Se copi\u00f3 a las siguientes personas en el env\u00edo:\n{cc_emails}",
      "body_message": "{old_signer_email} ha reenviado su invitaci\u00f3n a {new_signer_email} para completar y firmar {document_name} de parte de {sender_email}.",
      "footer_message": "Unique Solutions Inc."
    },
    "fr": {
      "from": "Nom de l'exp\u00e9diteur",
      "subject": "{sender_email} vous a mis en CC dans une invitation",
      "body_header": "Une invitation dans laquelle vous \u00e9tiez en CC a \u00e9t\u00e9 transf\u00e9r\u00e9e \u00e0 un autre destinataire.",
      "ccd_message": "Les personnes suivantes \u00e9taient en cc:\n{cc_emails}",
      "body_message": "{old_signer_email} a transf\u00e9r\u00e9 son invitation \u00e0 {new_signer_email} pour remplir et signer {document_name} de la part de {sender_email}.",
      "footer_message": "Unique Solutions Inc."
    }
  }
}
```

### 404

Brand with this `brand_id` doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-cc-invite-reassign" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/brands/{brand_id}/resources/email-cc-invite-reassign — Delete reassign CC email branding

This endpoint allows users to remove branding for CC emails that are sent with reassign emails.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 404

Brand with this `brand_id` doesn't exist.

**Example** (`Brand not found`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-cc-invite-reassign" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/brands/{brand_id}/resources/email-cc-invite-signed — Brand freeform signed CC email

This endpoint allows users to add and edit branding for CC emails that are sent when a freeform invite is signed. If an invite has multiple signers, the CC email is sent every time a document or document group is signed. 

Branding for freeform signed CC emails is available for the following invite types:

* [Document freeform invite](/docs/doc-freeform-invite/operations/post-freeform-document-id-invite)
* [Document group freeform invite](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites)

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "en": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom text indicating sender."
        },
        "subject": {
          "type": "string",
          "maxLength": 300,
          "description": "Email subject text. Placeholder `{signer_email}` is available."
        },
        "body_header": {
          "type": "string",
          "maxLength": 300,
          "description": "Email header text. Placeholder `{signer_email}` is available."
        },
        "ccd_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom CC message text. Placeholder `{cc_emails}` that lists other recipients of CC emails is available."
        },
        "body_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Email body text. Placeholders `{signer_email}`, `{document_name}`, and `{sender_email}` are available. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `300` characters, including tags."
        },
        "footer_message": {
          "type": "string",
          "maxLength": 4096,
          "description": "Email footer text. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `4096` characters, including tags."
        }
      },
      "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/branding-email-resources#language-branding)."
    }
  },
  "x-examples": {
    "Example 1": {
      "en": {
        "from": "From user ",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message EN"
      },
      "es": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      },
      "fr": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "en": {
    "from": "Sender Name",
    "subject": "{signer_email} Has Signed Document",
    "body_header": "{signer_email} has completed an invitation you were CC\u2019d on",
    "ccd_message": "You have been CC\u2019d on this invitation along with {cc_emails}.",
    "body_message": "<p>{signer_email} has completed and signed <b>{document_name}</b> sent by {sender_email}.</p>",
    "footer_message": "<p><b>Unique Solutions Inc.</b></p>"
  },
  "es": {
    "from": "Nombre del remitente",
    "subject": "{signer_email} ha firmado el documento",
    "body_header": "{signer_email} ha completado una invitaci\u00f3n en la que estabas en CC.",
    "ccd_message": "Se te ha copiado en esta invitaci\u00f3n junto con {cc_emails}.",
    "body_message": "{signer_email} ha completado y firmado {document_name} enviado por {sender_email}.",
    "footer_message": "Unique Solutions Inc."
  },
  "fr": {
    "from": "Nom de l'exp\u00e9diteur",
    "subject": "{signer_email} a sign\u00e9 le document",
    "body_header": "{signer_email} a compl\u00e9t\u00e9 une invitation dans laquelle vous \u00e9tiez en CC",
    "ccd_message": "Vous avez \u00e9t\u00e9 mis en copie de cette invitation avec {cc_emails}.",
    "body_message": "{signer_email} a rempli et sign\u00e9 {document_name} envoy\u00e9 par {sender_email}.",
    "footer_message": "Unique Solutions Inc."
  }
}
```

## Responses

### 204

Success, no content

### 400

* `body_message` is longer than 300 characters.
* `footer_message` is longer than 4096 characters.
* `body_message` contains HTML that is not allowed: a tag outside the allowed list, a tag with an attribute, an unclosed or misnested tag, or an HTML comment.
* `footer_message` contains HTML that is not allowed.
* Incorrect placeholder found.

**Example** (`Incorrect placeholder`)

```json
{
  "errors": [
    {
      "code": 25002081,
      "message": "Invalid placeholder found, expected {signer_email}, {document_name}, {sender_email}."
    }
  ]
}
```

**Example** (`body_message too long`)

```json
{
  "errors": [
    {
      "code": 25002060,
      "message": "The 'body_message' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`footer_message too long`)

```json
{
  "errors": [
    {
      "code": 25002061,
      "message": "The 'footer_message' attribute must not exceed 4096 characters."
    }
  ]
}
```

**Example** (`body_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

**Example** (`footer_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002383,
      "message": "The 'footer_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

### 404

Brand with this `brand_id` doesn't exist.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-cc-invite-signed" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"en": {"from": "Sender Name", "subject": "{signer_email} Has Signed Document", "body_header": "{signer_email} has completed an invitation you were CC\u2019d on", "ccd_message": "You have been CC\u2019d on this invitation along with {cc_emails}.", "body_message": "<p>{signer_email} has completed and signed <b>{document_name}</b> sent by {sender_email}.</p>", "footer_message": "<p><b>Unique Solutions Inc.</b></p>"}, "es": {"from": "Nombre del remitente", "subject": "{signer_email} ha firmado el documento", "body_header": "{signer_email} ha completado una invitaci\u00f3n en la que estabas en CC.", "ccd_message": "Se te ha copiado en esta invitaci\u00f3n junto con {cc_emails}.", "body_message": "{signer_email} ha completado y firmado {document_name} enviado por {sender_email}.", "footer_message": "Unique Solutions Inc."}, "fr": {"from": "Nom de l'\''exp\u00e9diteur", "subject": "{signer_email} a sign\u00e9 le document", "body_header": "{signer_email} a compl\u00e9t\u00e9 une invitation dans laquelle vous \u00e9tiez en CC", "ccd_message": "Vous avez \u00e9t\u00e9 mis en copie de cette invitation avec {cc_emails}.", "body_message": "{signer_email} a rempli et sign\u00e9 {document_name} envoy\u00e9 par {sender_email}.", "footer_message": "Unique Solutions Inc."}}'
```

---

## GET /v2/brands/{brand_id}/resources/email-cc-invite-signed — Get freeform signed CC email branding

This endpoint allows API users to view branding for CC emails that are sent when a freeform invite is signed. If an invite has multiple signers, the CC email is sent every time a document or document group is signed.

**Notes**

* The response contains only the languages and fields saved for the brand. Fields that were never set are omitted.
* If the brand has no `email-cc-invite-signed` resource, the endpoint returns `404` with code `25002036`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Email branding of the brand resource, grouped by language. Only the languages and fields saved for the brand are returned.

**Example** (`Successful response`)

```json
{
  "data": {
    "en": {
      "from": "Sender Name",
      "subject": "{signer_email} Has Signed Document",
      "body_header": "{signer_email} has completed an invitation you were CC\u2019d on",
      "ccd_message": "You have been CC\u2019d on this invitation along with {cc_emails}.",
      "body_message": "{signer_email} has completed and signed {document_name} sent by {sender_email}.",
      "footer_message": "Unique Solutions Inc."
    },
    "es": {
      "from": "Nombre del remitente",
      "subject": "{signer_email} ha firmado el documento",
      "body_header": "{signer_email} ha completado una invitaci\u00f3n en la que estabas en CC.",
      "ccd_message": "Se te ha copiado en esta invitaci\u00f3n junto con {cc_emails}.",
      "body_message": "{signer_email} ha completado y firmado {document_name} enviado por {sender_email}.",
      "footer_message": "Unique Solutions Inc."
    },
    "fr": {
      "from": "Nom de l'exp\u00e9diteur",
      "subject": "{signer_email} a sign\u00e9 le document",
      "body_header": "{signer_email} a compl\u00e9t\u00e9 une invitation dans laquelle vous \u00e9tiez en CC",
      "ccd_message": "Vous avez \u00e9t\u00e9 mis en copie de cette invitation avec {cc_emails}.",
      "body_message": "{signer_email} a rempli et sign\u00e9 {document_name} envoy\u00e9 par {sender_email}.",
      "footer_message": "Unique Solutions Inc."
    }
  }
}
```

### 404

Brand with this `brand_id` doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-cc-invite-signed" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/brands/{brand_id}/resources/email-cc-invite-signed — Delete freeform signed CC email branding

This endpoint allows users to remove branding for CC emails that are sent when a freeform invite is signed. If an invite has multiple signers, the CC email is sent every time a document or document group is signed. 

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 404

Brand with this `brand_id` doesn't exist.

**Example** (`Brand not found`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-cc-invite-signed" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/brands/{brand_id}/resources/email-cc-invite-completed — Brand invite completed CC email

This endpoint allows users to add and edit branding for CC emails that are sent when an invite to sign is completed.

Branding for invite completed CC emails is available for the following invite types:

* [Document field invite](/docs/document-field-invite/operations/post-document-doc-id-invite)
* [Document group field invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group)
* [Document freeform invite](/docs/doc-freeform-invite/operations/post-freeform-document-id-invite)
* [Document group freeform invite](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites)

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "en": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom text indicating sender."
        },
        "subject": {
          "type": "string",
          "maxLength": 300,
          "description": "Email subject text. Placeholder `{document_name}` is available."
        },
        "body_header": {
          "type": "string",
          "maxLength": 300,
          "description": "Email header text. Placeholder `{document_name}` is available."
        },
        "ccd_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom CC message text. Placeholder `{cc_emails}` that lists other recipients of CC emails is available."
        },
        "body_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Email body text. Placeholders `{document_name}` and `{sender_email}` are available. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `300` characters, including tags."
        },
        "footer_message": {
          "type": "string",
          "maxLength": 4096,
          "description": "Email footer text. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `4096` characters, including tags."
        }
      },
      "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/branding-email-resources#language-branding)."
    }
  },
  "x-examples": {
    "Example 1": {
      "en": {
        "from": "From user ",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message EN"
      },
      "es": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      },
      "fr": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "en": {
    "from": "Sender Name",
    "subject": "{document_name} Has Been Completed",
    "body_header": "All recipients have completed an invitation you were CC'd in",
    "ccd_message": "You have been CC\u2019d on this invitation along with {cc_emails}.",
    "body_message": "<p>All recipients have filled out and signed <b>{document_name}</b> sent by {sender_email}.</p>",
    "footer_message": "<p><b>Unique Solutions Inc.</b></p>"
  },
  "es": {
    "from": "Nombre del remitente",
    "subject": "{document_name} se ha completado",
    "body_header": "Todos los destinatarios han completado una invitaci\u00f3n en la que estabas en copia",
    "ccd_message": "Se te ha copiado en esta invitaci\u00f3n junto con {cc_emails}.",
    "body_message": "Todos los destinatarios han completado y firmado {document_name} enviado por {sender_email}.",
    "footer_message": "Unique Solutions Inc."
  },
  "fr": {
    "from": "Nom de l'exp\u00e9diteur",
    "subject": "{document_name} a \u00e9t\u00e9 finalis\u00e9",
    "body_header": "Tous les destinataires ont compl\u00e9t\u00e9 une invitation \u00e0 laquelle vous avez \u00e9t\u00e9 en copie",
    "ccd_message": "Vous avez \u00e9t\u00e9 mis en copie de cette invitation avec {cc_emails}.",
    "body_message": "Tous les destinataires ont rempli et sign\u00e9 {document_name} envoy\u00e9 par {sender_email}.",
    "footer_message": "Unique Solutions Inc."
  }
}
```

## Responses

### 204

Success, no content

### 400

* `body_message` is longer than 300 characters.
* `footer_message` is longer than 4096 characters.
* `body_message` contains HTML that is not allowed: a tag outside the allowed list, a tag with an attribute, an unclosed or misnested tag, or an HTML comment.
* `footer_message` contains HTML that is not allowed.
* Incorrect placeholder found.

**Example** (`Incorrect placeholder`)

```json
{
  "errors": [
    {
      "code": 25002081,
      "message": "Invalid placeholder found, expected {document_name}, {sender_email}."
    }
  ]
}
```

**Example** (`body_message too long`)

```json
{
  "errors": [
    {
      "code": 25002060,
      "message": "The 'body_message' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`footer_message too long`)

```json
{
  "errors": [
    {
      "code": 25002061,
      "message": "The 'footer_message' attribute must not exceed 4096 characters."
    }
  ]
}
```

**Example** (`body_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

**Example** (`footer_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002383,
      "message": "The 'footer_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

### 404

Brand with this `brand_id` doesn't exist.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-cc-invite-completed" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"en": {"from": "Sender Name", "subject": "{document_name} Has Been Completed", "body_header": "All recipients have completed an invitation you were CC'\''d in", "ccd_message": "You have been CC\u2019d on this invitation along with {cc_emails}.", "body_message": "<p>All recipients have filled out and signed <b>{document_name}</b> sent by {sender_email}.</p>", "footer_message": "<p><b>Unique Solutions Inc.</b></p>"}, "es": {"from": "Nombre del remitente", "subject": "{document_name} se ha completado", "body_header": "Todos los destinatarios han completado una invitaci\u00f3n en la que estabas en copia", "ccd_message": "Se te ha copiado en esta invitaci\u00f3n junto con {cc_emails}.", "body_message": "Todos los destinatarios han completado y firmado {document_name} enviado por {sender_email}.", "footer_message": "Unique Solutions Inc."}, "fr": {"from": "Nom de l'\''exp\u00e9diteur", "subject": "{document_name} a \u00e9t\u00e9 finalis\u00e9", "body_header": "Tous les destinataires ont compl\u00e9t\u00e9 une invitation \u00e0 laquelle vous avez \u00e9t\u00e9 en copie", "ccd_message": "Vous avez \u00e9t\u00e9 mis en copie de cette invitation avec {cc_emails}.", "body_message": "Tous les destinataires ont rempli et sign\u00e9 {document_name} envoy\u00e9 par {sender_email}.", "footer_message": "Unique Solutions Inc."}}'
```

---

## GET /v2/brands/{brand_id}/resources/email-cc-invite-completed — Get invite completed CC email branding

This endpoint allows API users to view branding for CC emails that are sent when an invite to sign is completed.

**Notes**

* The response contains only the languages and fields saved for the brand. Fields that were never set are omitted.
* If the brand has no `email-cc-invite-completed` resource, the endpoint returns `404` with code `25002036`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Email branding of the brand resource, grouped by language. Only the languages and fields saved for the brand are returned.

**Example** (`Successful response`)

```json
{
  "data": {
    "en": {
      "from": "Sender Name",
      "subject": "{document_name} Has Been Completed",
      "body_header": "All recipients have completed an invitation you were CC'd in",
      "ccd_message": "You have been CC\u2019d on this invitation along with {cc_emails}.",
      "body_message": "All recipients have filled out and signed {document_name} sent by {sender_email}.",
      "footer_message": "Unique Solutions Inc."
    },
    "es": {
      "from": "Nombre del remitente",
      "subject": "{document_name} se ha completado",
      "body_header": "Todos los destinatarios han completado una invitaci\u00f3n en la que estabas en copia",
      "ccd_message": "Se te ha copiado en esta invitaci\u00f3n junto con {cc_emails}.",
      "body_message": "Todos los destinatarios han completado y firmado {document_name} enviado por {sender_email}.",
      "footer_message": "Unique Solutions Inc."
    },
    "fr": {
      "from": "Nom de l'exp\u00e9diteur",
      "subject": "{document_name} a \u00e9t\u00e9 finalis\u00e9",
      "body_header": "Tous les destinataires ont compl\u00e9t\u00e9 une invitation \u00e0 laquelle vous avez \u00e9t\u00e9 en copie",
      "ccd_message": "Vous avez \u00e9t\u00e9 mis en copie de cette invitation avec {cc_emails}.",
      "body_message": "Tous les destinataires ont rempli et sign\u00e9 {document_name} envoy\u00e9 par {sender_email}.",
      "footer_message": "Unique Solutions Inc."
    }
  }
}
```

### 404

Brand with this `brand_id` doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-cc-invite-completed" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/brands/{brand_id}/resources/email-cc-invite-completed — Delete invite completed CC email branding

This endpoint allows users to remove branding for CC emails that are sent when an invite to sign is completed.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 404

Brand with this `brand_id` doesn't exist.

**Example** (`Brand not found`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-cc-invite-completed" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/brands/{brand_id}/resources/email-cc-invite-step-completed — Brand step completed CC email

This endpoint allows users to add and edit branding for CC emails that are sent when a step of an invite is completed.

Branding for step completed CC emails is available for [document field invites](/docs/document-field-invite/operations/post-document-doc-id-invite).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "en": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom text indicating sender."
        },
        "subject": {
          "type": "string",
          "maxLength": 300,
          "description": "Email subject text. Placeholder `{document_name}` is available."
        },
        "body_header": {
          "type": "string",
          "maxLength": 300,
          "description": "Email header text. Placeholder `{step_number}` is available."
        },
        "ccd_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom CC message text. Placeholder `{cc_emails}` that lists other recipients of CC emails is available."
        },
        "body_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Email body text. Placeholders `{step_number}` and `{document_name}` are available. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `300` characters, including tags."
        },
        "footer_message": {
          "type": "string",
          "maxLength": 4096,
          "description": "Email footer text. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `4096` characters, including tags."
        }
      },
      "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/branding-email-resources#language-branding)."
    }
  },
  "x-examples": {
    "Example 1": {
      "en": {
        "from": "From user ",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message EN"
      },
      "es": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      },
      "fr": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "en": {
    "from": "Sender Name",
    "subject": "Step completion email for document: {document_name}",
    "body_header": "All recipients have completed step {step_number} of an invitation you were CC\u2019d in",
    "ccd_message": "The following people were cc\u2019d:\n{cc_emails}",
    "body_message": "<p>This email is sent on the completion of step: {step_number} via signNow.</p>",
    "footer_message": "<p><b>Unique Solutions Inc.</b></p>"
  },
  "es": {
    "from": "Nombre del remitente",
    "subject": "Correo electr\u00f3nico de finalizaci\u00f3n del paso para el documento: {document_name}",
    "body_header": "Todos los destinatarios han completado el paso {step_number} de una invitaci\u00f3n en la que fuiste incluido en CC",
    "ccd_message": "Se copi\u00f3 a las siguientes personas en el env\u00edo:\n{cc_emails}",
    "body_message": "Este correo electr\u00f3nico se env\u00eda al completar el paso: {step_number} a trav\u00e9s de signNow.",
    "footer_message": "Unique Solutions Inc."
  },
  "fr": {
    "from": "Nom de l'exp\u00e9diteur",
    "subject": "E-mail de fin d`\u00e9tape pour le document: {document_name}",
    "body_header": "Tous les destinataires ont compl\u00e9t\u00e9 l'\u00e9tape {step_number} d'une invitation dans laquelle vous avez \u00e9t\u00e9 mis en copie",
    "ccd_message": "Les personnes suivantes \u00e9taient en cc:\n{cc_emails}",
    "body_message": "Cet e-mail est envoy\u00e9 \u00e0 la fin de l`\u00e9tape: {step_number} via signNow.",
    "footer_message": "Unique Solutions Inc."
  }
}
```

## Responses

### 204

Success, no content

### 400

* `body_message` is longer than 300 characters.
* `footer_message` is longer than 4096 characters.
* `body_message` contains HTML that is not allowed: a tag outside the allowed list, a tag with an attribute, an unclosed or misnested tag, or an HTML comment.
* `footer_message` contains HTML that is not allowed.
* Incorrect placeholder found.

**Example** (`Incorrect placeholder`)

```json
{
  "errors": [
    {
      "code": 25002081,
      "message": "Invalid placeholder found, expected {document_name}, {step_number}."
    }
  ]
}
```

**Example** (`body_message too long`)

```json
{
  "errors": [
    {
      "code": 25002060,
      "message": "The 'body_message' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`footer_message too long`)

```json
{
  "errors": [
    {
      "code": 25002061,
      "message": "The 'footer_message' attribute must not exceed 4096 characters."
    }
  ]
}
```

**Example** (`body_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

**Example** (`footer_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002383,
      "message": "The 'footer_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

### 404

Brand with this `brand_id` doesn't exist.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-cc-invite-step-completed" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"en": {"from": "Sender Name", "subject": "Step completion email for document: {document_name}", "body_header": "All recipients have completed step {step_number} of an invitation you were CC\u2019d in", "ccd_message": "The following people were cc\u2019d:\n{cc_emails}", "body_message": "<p>This email is sent on the completion of step: {step_number} via signNow.</p>", "footer_message": "<p><b>Unique Solutions Inc.</b></p>"}, "es": {"from": "Nombre del remitente", "subject": "Correo electr\u00f3nico de finalizaci\u00f3n del paso para el documento: {document_name}", "body_header": "Todos los destinatarios han completado el paso {step_number} de una invitaci\u00f3n en la que fuiste incluido en CC", "ccd_message": "Se copi\u00f3 a las siguientes personas en el env\u00edo:\n{cc_emails}", "body_message": "Este correo electr\u00f3nico se env\u00eda al completar el paso: {step_number} a trav\u00e9s de signNow.", "footer_message": "Unique Solutions Inc."}, "fr": {"from": "Nom de l'\''exp\u00e9diteur", "subject": "E-mail de fin d`\u00e9tape pour le document: {document_name}", "body_header": "Tous les destinataires ont compl\u00e9t\u00e9 l'\''\u00e9tape {step_number} d'\''une invitation dans laquelle vous avez \u00e9t\u00e9 mis en copie", "ccd_message": "Les personnes suivantes \u00e9taient en cc:\n{cc_emails}", "body_message": "Cet e-mail est envoy\u00e9 \u00e0 la fin de l`\u00e9tape: {step_number} via signNow.", "footer_message": "Unique Solutions Inc."}}'
```

---

## GET /v2/brands/{brand_id}/resources/email-cc-invite-step-completed — Get step completed CC email branding

This endpoint allows API users to view branding for CC emails that are sent when a step of an invite is completed.

**Notes**

* The response contains only the languages and fields saved for the brand. Fields that were never set are omitted.
* If the brand has no `email-cc-invite-step-completed` resource, the endpoint returns `404` with code `25002036`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Email branding of the brand resource, grouped by language. Only the languages and fields saved for the brand are returned.

**Example** (`Successful response`)

```json
{
  "data": {
    "en": {
      "from": "Sender Name",
      "subject": "Step completion email for document: {document_name}",
      "body_header": "All recipients have completed step {step_number} of an invitation you were CC\u2019d in",
      "ccd_message": "The following people were cc\u2019d:\n{cc_emails}",
      "body_message": "This email is sent on the completion of step: {step_number} via signNow.",
      "footer_message": "Unique Solutions Inc."
    },
    "es": {
      "from": "Nombre del remitente",
      "subject": "Correo electr\u00f3nico de finalizaci\u00f3n del paso para el documento: {document_name}",
      "body_header": "Todos los destinatarios han completado el paso {step_number} de una invitaci\u00f3n en la que fuiste incluido en CC",
      "ccd_message": "Se copi\u00f3 a las siguientes personas en el env\u00edo:\n{cc_emails}",
      "body_message": "Este correo electr\u00f3nico se env\u00eda al completar el paso: {step_number} a trav\u00e9s de signNow.",
      "footer_message": "Unique Solutions Inc."
    },
    "fr": {
      "from": "Nom de l'exp\u00e9diteur",
      "subject": "E-mail de fin d`\u00e9tape pour le document: {document_name}",
      "body_header": "Tous les destinataires ont compl\u00e9t\u00e9 l'\u00e9tape {step_number} d'une invitation dans laquelle vous avez \u00e9t\u00e9 mis en copie",
      "ccd_message": "Les personnes suivantes \u00e9taient en cc:\n{cc_emails}",
      "body_message": "Cet e-mail est envoy\u00e9 \u00e0 la fin de l`\u00e9tape: {step_number} via signNow.",
      "footer_message": "Unique Solutions Inc."
    }
  }
}
```

### 404

Brand with this `brand_id` doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-cc-invite-step-completed" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/brands/{brand_id}/resources/email-cc-invite-step-completed — Delete step completed CC email branding

This endpoint allows users to remove branding for CC emails that are sent when a step of an invite is completed.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 404

Brand with this `brand_id` doesn't exist.

**Example** (`Brand not found`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-cc-invite-step-completed" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/crm/contacts/{contact_id}/groups — Get contact groups list by contact

This endpoint allows API users to get the list of groups a CRM contact belongs to.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `contact_id` | string | Yes | Contact ID. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `per_page` | string | No | How many search items to view per page. Allowed values: positive integers from 1 to 100. |
| `page` | string | No | How many pages to fit the results in. Allowed values: any positive integer starting from 1. |

## Responses

### 200

List of groups the contact belongs to.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "238c53a926bdecb699a0b507fea988d2c773ff41",
      "name": "Clients",
      "created_at": 1792671821,
      "updated_at": 1792671811
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* Request with any of these cases: invalid token of user, expired token of user, empty header, authorization = null, authorization without value.
* Request with incorrect `per_page` parameter type.
* Request with `per_page` less than 0.
* Request with `per_page` more than 100.
* Request with incorrect `page` parameter type.
* Request with `page` less than 0.


**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

**Example** (`Incorrect `page` parameter type`)

```json
{
  "code": 27400904,
  "message": "Query parameter `page` must be a digit"
}
```

**Example** (`Request with `page` less than 0`)

```json
{
  "code": 27400905,
  "message": "Query parameter `page` must be more than 0"
}
```

**Example** (`Incorrect `per_page` parameter type`)

```json
{
  "code": 27400901,
  "message": "Query parameter `per_page` must be a digit"
}
```

**Example** (`Request with `per_page` less than 0`)

```json
{
  "code": 27400902,
  "message": "Query parameter `per_page` must be more than 0"
}
```

**Example** (`Request with `per_page` more than 100`)

```json
{
  "code": 27400903,
  "message": "Query parameter `per_page` must be less than or equal 100"
}
```

### 404

Contact does not exist or does not belong to authorized user.

**Example** (`Contact does not exist `)

```json
{
  "code": 27404001,
  "message": "Contact `contactUniqueId` not found"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/crm/contacts/{contact_id}/groups" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/crm/groups — Create contact group

This endpoint allows API users to create a group of CRM contacts.

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "The new contact group name."
    }
  },
  "x-examples": {
    "Example 1": {
      "name": "My client`s group"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "name": "Key clients"
}
```

## Responses

### 201

The contact group was created.

**Example** (`Successful response`)

```json
{
  "data": {
    "id": "238c53a926bdecb699a0b507fea988d2c773ff41"
  }
}
```

### 400

* Wrong, expired, or missing token.
* The group name is missing or empty.
* The group name is not a string.
* The group name contains invalid characters.
* The group name is too long.

**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

**Example** (`Group name length exceeded`)

```json
{
  "code": 27405005,
  "message": "Group name length must be not more than 40 characters"
}
```

**Example** (`Group name must be a string`)

```json
{
  "code": 27405003,
  "message": "Group name must be a string"
}
```

**Example** (`Group name contains invalid characters`)

```json
{
  "code": 27405004,
  "message": "Group name contains invalid characters"
}
```

**Example** (`Request without group name or empty group name`)

```json
{
  "code": 27405002,
  "message": "Group name is required"
}
```

### 405

Method not allowed.

**Example** (`Not allowed to use this HTTP method`)

```json
{
  "message": "The GET method is not supported for this route. Supported methods: DELETE."
}
```

### 422

Group name already exists.

**Example** (`Group name already exists`)

```json
{
  "code": 27405006,
  "message": "Group with such a name already exists"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/crm/groups" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "Key clients"}'
```

---

## GET /v2/crm/groups — Get the list of groups

This endpoint allows API users to get the list of contact groups.

## Authorization

bearer

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `filters: id` | string | No | Format: `filters=[{"id":{"type":"in","value": ["01e1b9606f674bc9653502c3d3f8394b9a39a475"]}}]` |
| `filters: name` | string | No | Format: `filters=[{"name":{"type":"like","value":"My group"}}]` |
| `per_page` | string | No | How many search items to view per page. Allowed values: positive integers from 1 to 100. |
| `page` | string | No | How many pages to fit the results in. Allowed values: any positive integer starting from 1. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Accept` | string | No | application/json |

## Responses

### 200

List of contact groups.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "238c53a926bdecb699a0b507fea988d2c773ff41",
      "name": "Clients",
      "created_at": 1792671811,
      "updated_at": 1792671811
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 1,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* Request with any of these cases: invalid token of user, expired token of user, empty header, authorization = null, authorization without value.
* Request with incorrect `per_page` parameter type.
* Request with `per_page` less than 0.
* Request with `per_page` more than 100.
* Request with incorrect `page` parameter type.
* Request with `page` less than 0.
* Request without `filter` parameters value or type.
* Request with invalid type of `filter` parameter type.
* Request with invalid expression of `email` filter parameter type.
* Request with invalid type of `email` filter parameter value.
* Request with invalid expression of `name` filter parameter type.
* Request with invalid type of `name` filter parameter value.
* Request with invalid filter format.
* Request with invalid `sort` value.
* Request with invalid `sort` order value.
* Request with invalid `sort` format (expected array).
* Request with invalid `sort` format (more than one field for sorting).


**Example** (`Invalid sort value`)

```json
{
  "code": 27400906,
  "message": "The `sort` key must be one of the following values:` created_at`, `full_name`, `company_name`, `email`, `last_interaction_at`"
}
```

**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

**Example** (`Invalid filter format`)

```json
{
  "code": 0,
  "message": "Wrong filters format."
}
```

**Example** (`Incorrect `per_page` type`)

```json
{
  "code": 27400901,
  "message": "Query parameter `per_page` must be a digit"
}
```

**Example** (`Invalid `sort` order value`)

```json
{
  "code": 27400907,
  "message": "The `sort` value must be one of the following values: `asc, desc`"
}
```

**Example** (`Incorrect `page` parameter type`)

```json
{
  "code": 27400904,
  "message": "Query parameter `page` must be a digit"
}
```

**Example** (`Request with `page` less than 0`)

```json
{
  "code": 27400905,
  "message": "Query parameter `page` must be more than 0"
}
```

**Example** (`Invalid data type of `type` filter`)

```json
{
  "code": 27400052,
  "message": "Invalid filter format, filter `type` should be string"
}
```

**Example** (`Invalid type of email filter value`)

```json
{
  "code": 27400054,
  "message": "The `email` filter value should be of type string"
}
```

**Example** (`Invalid type of `name` filter value`)

```json
{
  "code": 27400056,
  "message": "The `first_name` filter value should be of type string"
}
```

**Example** (`Request with `per_page` less than 0`)

```json
{
  "code": 27400902,
  "message": "Query parameter `per_page` must be more than 0"
}
```

**Example** (`Invalid sort format (expected array)`)

```json
{
  "code": 0,
  "message": "Expected array, but got {{ type }}: {{ value }}"
}
```

**Example** (`Request with `per_page` more than 100`)

```json
{
  "code": 27400903,
  "message": "Query parameter `per_page` must be less than or equal 100"
}
```

**Example** (`Invalid expression of email filter type`)

```json
{
  "code": 27400053,
  "message": "The `email` filter expression should be `=` or `like`"
}
```

**Example** (`Invalid expression of `name` filter type`)

```json
{
  "code": 27400055,
  "message": "The `first_name` filter expression should be equal to `like`"
}
```

**Example** (`Invalid `sort` format (more than one field)`)

```json
{
  "code": 27400908,
  "message": "The `sort` must contain only one field for sorting"
}
```

**Example** (`Request without `filter` parameters value or type`)

```json
{
  "code": 27400051,
  "message": "Invalid filter format, filter must have `type` and `value` fields"
}
```

### 404

Contact does not exist or does not belong to authorized user.

**Example** (`Contact does not exist or does not belong to authorized user`)

```json
{
  "code": 27404001,
  "message": "Contact `contactUniqueId` not found"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/crm/groups" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/crm/groups/{group_id} — Get contact group

This endpoint allows API users to get the details of a contact group.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `group_id` | string | Yes | ID of the contact group. |

## Responses

### 200

Contact group details.

**Example** (`Successful response`)

```json
{
  "data": {
    "id": "238c53a926bdecb699a0b507fea988d2c773ff41",
    "name": "Clients",
    "created_at": 1792671811,
    "updated_at": 1792671811,
    "contacts_count": 1
  }
}
```

### 400

* Wrong, expired, or missing token.

**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

### 404

* Contacts group not found.
* Contacts group does not belong to authorized user.

**Example** (`Contacts group not found`)

```json
{
  "code": 27405001,
  "message": "Group not found"
}
```

**Example** (`Contacts group does not belong to authorized user`)

```json
{
  "code": 27405001,
  "message": "Group not found"
}
```

### 405

Method not allowed.

**Example** (`Not allowed to use this HTTP method`)

```json
{
  "message": "The DELETE method is not supported for this route. Supported methods: GET."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/crm/groups/{group_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/crm/groups/{group_id} — Update contact group

Allows users to rename the contact group.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `group_id` | string | Yes | ID of the contact group. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "The updated group name."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "name": "Sales contacts"
}
```

## Responses

### 204

Contacts group has been updated successfully

### 400

* Wrong, expired, or missing token.
* The group name is missing or empty.
* The group name is not a string.
* The group name contains invalid characters.
* The group name is too long.

**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

**Example** (`Group name length exceeded`)

```json
{
  "code": 27405005,
  "message": "Group name length must be not more than 40 characters"
}
```

**Example** (`Group name must be a string`)

```json
{
  "code": 27405003,
  "message": "Group name must be a string"
}
```

**Example** (`Group name contains invalid characters`)

```json
{
  "code": 27405004,
  "message": "Group name contains invalid characters"
}
```

**Example** (`Request without group name or empty group name`)

```json
{
  "code": 27405002,
  "message": "Group name is required"
}
```

### 404

Contacts group not found or does not belong to authorized user.

**Example** (`Contacts group not found `)

```json
{
  "code": 27405001,
  "message": "Group not found"
}
```

### 405

Method not allowed.

**Example** (`Not allowed to use this HTTP method`)

```json
{
  "message": "The GET method is not supported for this route. Supported methods: DELETE."
}
```

### 422

Group name already exists.

**Example** (`Group name already exists`)

```json
{
  "code": 27405006,
  "message": "Group with such a name already exists"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/crm/groups/{group_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "Sales contacts"}'
```

---

## DELETE /v2/crm/groups/{group_id} — Remove contact group

Allows users to delete the contact group.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `group_id` | string | Yes | ID of the contact group. |

## Responses

### 204

	
Contacts group has been deleted successfully

### 400

* Wrong, expired, or missing token.

**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

### 404

* Contacts group not found.
* Contacts group does not belong to authorized user.

**Example** (`Contacts group not found`)

```json
{
  "code": 27405001,
  "message": "Group not found"
}
```

**Example** (`Contacts group does not belong to authorized user`)

```json
{
  "code": 27405001,
  "message": "Group not found"
}
```

### 405

Method not allowed.

**Example** (`Not allowed to use this HTTP method`)

```json
{
  "message": "The DELETE method is not supported for this route. Supported methods: GET."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/crm/groups/{group_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/crm/groups/{group_id}/contacts — Get contacts from group

This endpoint allows API users to get the contacts in a contact group.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `group_id` | string | Yes | ID of the group. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `sort` | string | No | Format: `sort[last_interaction_at]="desc"`. Allowed values: `asc` for ascending order, `desc` for descending order. |
| `filter:owners` | string | No | Format: `filters=[{"owners":{"type":IN,"value":["e62e1fd42f3bfe4646c29e1aca535de5218c40be"]}}] |
| `filters:shared_with_me` | string | No | Format: `filters=[{"shared_with_me":{"type":"=","value":"true"}}]` |
| `combined filter with `OR` for email `first_name` and `last_name` and `full_name`` | string | No | Format: `filters=[{"_OR":[{"email":{"type":"like","value":"%value%"}},{"first_name":{"type":"like","value":"%value%"}},{"last_name":{"type":"like","value":"%value%"}},{"full_name":{"type":"like","value":"%value%"}}]}]` |
| `combined filter with `OR`` | string | No | Format: `filters=[{"_OR":[{"interaction":{"type":">","value":1652965774}},{"company":{"type":"=","value":"Best company"}}]}]` |
| `combined filter` | string | No | Format: `filters=[{"interaction":{"type":">","value":1652918152}, "company":{"type":"=","value":"Best company"}}]` |
| `filters:interaction_before` | string | No | Filter by interaction before. Format: `filters=[{"interaction":{"type":"<","value":1652918152}}]` |
| `filters:interaction_after` | string | No | Filter by interaction after. Format: `filters=[{"interaction":{"type":">","value":1652918152}}]` |
| `filters:not_company` | string | No | Filter out users without a company. Format: `filters=[{"company":{"type":"!=","value":"Best company"}}]` |
| `filters:company` | string | No | Filter by company. Format: `filters=[{"company":{"type":"=","value":"Best company"}}]` |
| `filters:full_name` | string | No | Filter by contact last name. Format: `filters=[{"full_name":{"type":"like","value":"value"}}]` |
| `filters:last_name` | string | No | Filter by contact last name. Format: `filters=[{"last_name":{"type":"like","value":"value"}}]` |
| `filters:first_name` | string | No | Filter by contact first name. Format: `filters=[{"first_name":{"type":"like","value":"value"}}]` |
| `filters:email ` | string | No | Filter by email. Format: `filters=[{"email":{"type":"=","value":"crm@email.com"}}]` |
| `per_page` | string | No | How many search items to view per page. Allowed values: positive integers from 1 to 100. |
| `page` | string | No | How many pages to fit the results in. Allowed values: any positive integer starting from 1. |

## Responses

### 200

List of contacts in the group.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "14cfd7a1dc6ebb1b172f7e790fd573b4eb689c64",
      "meta": {
        "created_at": 1792671820,
        "updated_at": 1792671820,
        "interacted_at": 1792671820
      },
      "email": "user@example.com",
      "phone": {
        "number": "2025550123",
        "country_code": "US"
      },
      "address": {
        "city": "Albany",
        "state": "New York",
        "street": "1 Main St",
        "country": "US",
        "zip_code": "12207",
        "apartment": "2"
      },
      "company": {
        "name": "Test Co",
        "job_title": "QA"
      },
      "last_name": "Smith",
      "first_name": "John",
      "description": "Key client"
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* Request with any of these cases: invalid token of user, expired token of user, empty header, authorization = null, authorization without value.
* Request with incorrect `per_page` parameter type.
* Request with `per_page` less than 0.
* Request with `per_page` more than 100.
* Request with incorrect `page` parameter type.
* Request with `page` less than 0.
* Request without `filter` parameters value or type.
* Request with invalid type of `filter` parameter type.
* Request with invalid expression of `email` filter parameter type.
* Request with invalid type of `email` filter parameter value.
* Request with invalid expression of `first_name` filter parameter type.
* Request with invalid type of `first_name` filter parameter value.
* Request with invalid expression of `last_name` filter parameter type.
* Request with invalid type of `last_name` filter parameter value.
* Request with invalid expression of `full_name` filter parameter type.
* Request with invalid type of `full_name` filter parameter value.
* Request with invalid expression of `company` filter parameter type.
* Request with invalid type of `company` filter parameter value.
* Request with invalid expression of `interaction` filter parameter type.
* Request with invalid type of `interaction` filter parameter value.
* Request with invalid filter format.
* Request with invalid `sort` value.
* Request with invalid `sort` order value.
* Request with invalid `sort` format (expected array).
* Request with invalid `sort` format (more than one field for sorting).
* Request with invalid expression of `shared_with_me` filter parameter type.
* Request with invalid type of `shared_with_me` filter parameter type.
* Request with invalid type of `shared_with_me` filter parameter value.
* Request with invalid expression of `owners` filter parameter type.
* Request with invalid type of `owners` filter parameter type.
* Request with invalid type of `owners` filter parameter value.

**Example** (`Invalid sort value`)

```json
{
  "code": 27400906,
  "message": "The `sort` key must be one of the following values:` created_at`, `full_name`, `company_name`, `email`, `last_interaction_at`"
}
```

**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

**Example** (`Invalid filter format`)

```json
{
  "code": 0,
  "message": "Wrong filters format."
}
```

**Example** (`Invalid `sort` order value`)

```json
{
  "code": 27400907,
  "message": "The `sort` value must be one of the following values: `asc, desc`"
}
```

**Example** (`Incorrect `page` parameter type`)

```json
{
  "code": 27400904,
  "message": "Query parameter `page` must be a digit"
}
```

**Example** (`Request with `page` less than 0`)

```json
{
  "code": 27400905,
  "message": "Query parameter `page` must be more than 0"
}
```

**Example** (`Invalid type of email filter value`)

```json
{
  "code": 27400054,
  "message": "The `email` filter value should be of type string"
}
```

**Example** (`Invalid type of owners filter type`)

```json
{
  "code": 274001152,
  "message": "The `owners` filter value should be of type string"
}
```

**Example** (`Incorrect `per_page` parameter type`)

```json
{
  "code": 27400901,
  "message": "Query parameter `per_page` must be a digit"
}
```

**Example** (`Invalid type of owners filter value`)

```json
{
  "code": 27400153,
  "message": "The `owners` contains invalid unique_id (\"123\")"
}
```

**Example** (`Request with `per_page` less than 0`)

```json
{
  "code": 27400902,
  "message": "Query parameter `per_page` must be more than 0"
}
```

**Example** (`Invalid sort format (expected array)`)

```json
{
  "code": 0,
  "message": "Expected array, but got {{ type }}: {{ value }}"
}
```

**Example** (`Invalid type of company filter value`)

```json
{
  "code": 27400062,
  "message": "The `company` filter value should be of type string"
}
```

**Example** (`Request with `per_page` more than 100`)

```json
{
  "code": 27400903,
  "message": "Query parameter `per_page` must be less than or equal 100"
}
```

**Example** (`Invalid data type of the `type` filter`)

```json
{
  "code": 27400052,
  "message": "Invalid filter format, filter `type` should be string"
}
```

**Example** (`Invalid expression of email filter type`)

```json
{
  "code": 27400053,
  "message": "The `email` filter expression should be `=` or `like`"
}
```

**Example** (`Invalid type of `full_name` filter value`)

```json
{
  "code": 27400060,
  "message": "The `full_name` filter value should be of type string"
}
```

**Example** (`Invalid type of `last_name` filter value`)

```json
{
  "code": 27400058,
  "message": "The `last_name` filter value should be of type string"
}
```

**Example** (`Invalid type of interaction filter value`)

```json
{
  "code": 27400064,
  "message": "The `interaction` filter value should be of type integer and contain not more than 10 characters"
}
```

**Example** (`Invalid expression of company filter type`)

```json
{
  "code": 27400061,
  "message": "The `company` filter expression should be one of `=`, `!=`, `like"
}
```

**Example** (`Invalid type of `first_name` filter value`)

```json
{
  "code": 27400056,
  "message": "The `first_name` filter value should be of type string"
}
```

**Example** (`Invalid expression of `owners` filter type`)

```json
{
  "code": 27400151,
  "message": "The `owners` filter expression should be `in`"
}
```

**Example** (`Invalid type of shared_with_me filter type`)

```json
{
  "code": 27400066,
  "message": "The `shared_with_me` filter value should be of type string"
}
```

**Example** (`Invalid `sort` format (more than one field)`)

```json
{
  "code": 27400908,
  "message": "The `sort` must contain only one field for sorting"
}
```

**Example** (`Invalid expression of full_name filter type`)

```json
{
  "code": 27400059,
  "message": "The `full_name` filter expression should be equal to `like`"
}
```

**Example** (`Invalid type of shared_with_me filter value`)

```json
{
  "code": 27400067,
  "message": "The `shared_with_me` filter value should be `true` or `false`"
}
```

**Example** (`Invalid expression of `last_name` filter type`)

```json
{
  "code": 27400057,
  "message": "The `last_name` filter expression should be equal to `like`"
}
```

**Example** (`Invalid expression of interaction filter type`)

```json
{
  "code": 27400063,
  "message": "The `interaction` filter expression should be `<` or `>`"
}
```

**Example** (`Invalid expression of `first_name` filter type`)

```json
{
  "code": 27400055,
  "message": "The `first_name` filter expression should be equal to `like`"
}
```

**Example** (`Invalid expression of shared_with_me filter type`)

```json
{
  "code": 27400065,
  "message": "The `shared_with_me` filter expression should be `=`"
}
```

**Example** (`Request without `filter` parameters value or type`)

```json
{
  "code": 27400051,
  "message": "Invalid filter format, filter must have `type` and `value` fields"
}
```

### 404

Contact group not found or does not belong to authorized user.

**Example** (`Contact group not found or does not belong to authorized user`)

```json
{
  "code": 27404001,
  "message": "Contact `contactUniqueId` not found"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/crm/groups/{group_id}/contacts" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/crm/groups/{group_id}/contacts/{contact_id} — Add contact to group

This endpoint allows API users to add a contact to a contact group.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `contact_id` | string | Yes | ID of the contact. |
| `group_id` | string | Yes | ID of the contact group. |

## Responses

### 200

The contact has been added to the group. The response body is empty.

### 400

* Wrong, expired, or missing token.

**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

### 404

* Contacts group not found or does not belong to authorized user.
* Contact does not exist or does not belong to authorized user.

**Example** (`Contact does not exist `)

```json
{
  "code": 27404001,
  "message": "Contact `contactUniqueId` not found"
}
```

**Example** (`Contact does not exist 2`)

```json
{
  "code": 27404001,
  "message": "Contact `contactUniqueId` not found"
}
```

**Example** (`Contacts group not found `)

```json
{
  "code": 27405001,
  "message": "Group not found"
}
```

### 405

Method not allowed.

**Example** (`Not allowed to use this HTTP method`)

```json
{
  "message": "The GET method is not supported for this route. Supported methods: DELETE."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/crm/groups/{group_id}/contacts/{contact_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## DELETE /v2/crm/groups/{group_id}/contacts/{contact_id} — Remove contact from group

Allows users to delete the contact from the group.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `contact_id` | string | Yes | ID of the contact. |
| `group_id` | string | Yes | ID of the contact group. |

## Responses

### 204

Contact successfully deleted from group

### 400

* Wrong, expired, or missing token.

**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

### 404

* Contacts group not found or does not belong to authorized user.
* Contact does not exist or does not belong to authorized user.
* Contact does not exist or does not belong to authorized user or does not exist in group.
* Contact does not exist in group.

**Example** (`Contact does not exist `)

```json
{
  "code": 27404001,
  "message": "Contact `contactUniqueId` not found"
}
```

**Example** (`Contact does not exist 2`)

```json
{
  "code": 27404001,
  "message": "Contact `contactUniqueId` not found"
}
```

**Example** (`Contacts group not found`)

```json
{
  "code": 27405001,
  "message": "Group not found"
}
```

**Example** (`Contact does not exist in group`)

```json
{
  "code": 27405007,
  "message": "Contact not found in current group"
}
```

### 405

Method not allowed.

**Example** (`Not allowed to use this HTTP method`)

```json
{
  "message": "The GET method is not supported for this route. Supported methods: DELETE."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/crm/groups/{group_id}/contacts/{contact_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/crm/contacts — Create CRM contact

This endpoint allows API users to create a CRM contact.

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "email"
  ],
  "properties": {
    "email": {
      "type": "string",
      "description": "The new contact email address."
    },
    "phone": {
      "type": "object",
      "properties": {
        "number": {
          "type": "string",
          "description": "Contact phone number. Must be 10 or 16 characters."
        },
        "country_code": {
          "type": "string",
          "description": "Contact country code. Must be 2 characters."
        }
      },
      "description": "Object that holds details of the phone number."
    },
    "address": {
      "type": "object",
      "properties": {
        "city": {
          "type": "string",
          "description": "The city where the contact is located. Maximum 128 characters."
        },
        "state": {
          "type": "string",
          "description": "The state where the contact is located (only for United States). Maximum 128 characters."
        },
        "street": {
          "type": "string",
          "description": "The street where the contact is located. Maximum 255 characters."
        },
        "country": {
          "type": "string",
          "description": "The country where the contact is located. Required when `zip_code` parameters is specified."
        },
        "zip_code": {
          "type": "string",
          "description": "Zip code of the area where the contact is located. Maximum 10 characters."
        },
        "apartment": {
          "type": "string",
          "description": "The apartment office where the contact is located. Maximum 255 characters."
        }
      },
      "description": "Object that holds details about the contact address."
    },
    "company": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the company. Maximum 128 characters."
        },
        "job_title": {
          "type": "string",
          "description": "Job title of the contact in this company. Maximum 128 characters."
        }
      },
      "description": "Object that holds details about the company that this contact represents."
    },
    "last_name": {
      "type": "string",
      "description": "The new contact last name. Maximum 128 characters."
    },
    "first_name": {
      "type": "string",
      "description": "The new contact first name. Maximum 128 characters."
    },
    "description": {
      "type": "string",
      "description": "Contact description. Maximum 408 characters."
    }
  },
  "x-examples": {
    "Example 1": {
      "email": "example@mail.com",
      "phone": {
        "number": "3333333333",
        "country_code": "US"
      },
      "address": {
        "city": "New york",
        "state": "New York",
        "street": "5 avenue, 17",
        "country": "US",
        "zip_code": "11111",
        "apartment": "26"
      },
      "company": {
        "name": "Marvel company",
        "job_title": "CEO"
      },
      "last_name": "contact last name",
      "first_name": "contact name",
      "description": "Any details about this person"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "email": "user@example.com",
  "phone": {
    "number": "3333333333",
    "country_code": "US"
  },
  "address": {
    "city": "New York",
    "state": "New York",
    "street": "5th Avenue",
    "country": "US",
    "zip_code": "11111",
    "apartment": "26"
  },
  "company": {
    "name": "Example Inc.",
    "job_title": "CEO"
  },
  "last_name": "Doe",
  "first_name": "John",
  "description": "Key client"
}
```

## Responses

### 201

The contact was created.

**Example** (`Successful response`)

```json
{
  "data": {
    "id": "14cfd7a1dc6ebb1b172f7e790fd573b4eb689c64"
  }
}
```

### 400

* Request with any of cases: invalid token, expired token, empty header, authorization = null, authorization without value.
* Request with incorrect body parameters, see examples.


**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

**Example** (`Invalid email address`)

```json
{
  "code": 27400002,
  "message": "Invalid email"
}
```

**Example** (`Field `number` not a string`)

```json
{
  "code": 27400003,
  "message": "Field `number` must be a string"
}
```

**Example** (`Field `number` length limits`)

```json
{
  "code": 27400004,
  "message": "Field `number` must be 10 or 15 characters"
}
```

**Example** (`The `email` field is missing`)

```json
{
  "code": 27400001,
  "message": "The `email` field is required"
}
```

**Example** (`Field `city` must be a string`)

```json
{
  "code": 27400021,
  "message": "Field `city` must be a string"
}
```

**Example** (`Field `name` must be a string`)

```json
{
  "code": 27400011,
  "message": "Field `name` must be a string"
}
```

**Example** (`Field `state` must be a string`)

```json
{
  "code": 27400023,
  "message": "Field `state` must be a string"
}
```

**Example** (`The `city` field length limits`)

```json
{
  "code": 27400022,
  "message": "The `city` field length must not be more than 128 characters"
}
```

**Example** (`The `name` field length limits`)

```json
{
  "code": 27400012,
  "message": "The `name` field length must not be more than 128 characters"
}
```

**Example** (`Field `street` must be a string`)

```json
{
  "code": 27400017,
  "message": "Field `street` must be a string"
}
```

**Example** (`The `state` field length limits`)

```json
{
  "code": 27400024,
  "message": "The `state` field length must not be more than 128 characters"
}
```

**Example** (`Field `country` must be a string`)

```json
{
  "code": 27400015,
  "message": "Field `country` must be a string"
}
```

**Example** (`The `street` field length limits`)

```json
{
  "code": 27400018,
  "message": "The `street` field length must not be more than 255 characters"
}
```

**Example** (`Field `zip_code` must be a string`)

```json
{
  "code": 27400025,
  "message": "Field `zip_code` must be a string"
}
```

**Example** (`The `country` field length limits`)

```json
{
  "code": 27400016,
  "message": "The `country` field length must not be more than 2 characters"
}
```

**Example** (`Field `apartment` must be a string`)

```json
{
  "code": 27400019,
  "message": "Field `apartment` must be a string"
}
```

**Example** (`Field `job_title` must be a string`)

```json
{
  "code": 27400013,
  "message": "Field `job_title` must be a string"
}
```

**Example** (`Field `last_name` must be a string`)

```json
{
  "code": 27400007,
  "message": "Field `last_name` must be a string"
}
```

**Example** (`The `zip_code` field length limits`)

```json
{
  "code": 27400026,
  "message": "The `zip_code` field length must not be more than 10 characters"
}
```

**Example** (`Field `first_name` must be a string`)

```json
{
  "code": 27400005,
  "message": "Field `first_name` must be a string"
}
```

**Example** (`The `apartment` field length limits`)

```json
{
  "code": 27400020,
  "message": "The `apartment` field length must not be more than 255 characters"
}
```

**Example** (`The `job_title` field length limits`)

```json
{
  "code": 27400014,
  "message": "The `job_title` field length must not be more than 128 characters"
}
```

**Example** (`The `last_name` field length limits`)

```json
{
  "code": 27400008,
  "message": "The `last_name` field length must not be more than 128 characters"
}
```

**Example** (`Field `description` must be a string`)

```json
{
  "code": 27400028,
  "message": "Field `description` must be a string"
}
```

**Example** (`The `first_name` field length limits`)

```json
{
  "code": 27400006,
  "message": "The `first_name` field length must not be more than 128 characters"
}
```

**Example** (`Field `country_code` must be a string`)

```json
{
  "code": 27400009,
  "message": "Field `country_code` must be a string"
}
```

**Example** (`The `description` field length limits`)

```json
{
  "code": 27400029,
  "message": "The `description` field length must not be more than 408 characters"
}
```

**Example** (`The `city` contains invalid characters`)

```json
{
  "code": 27400036,
  "message": "The `city` field contains invalid characters"
}
```

**Example** (`The `name` contains invalid characters`)

```json
{
  "code": 27400033,
  "message": "The `name` field contains invalid characters"
}
```

**Example** (`The `state` contains invalid characters`)

```json
{
  "code": 27400039,
  "message": "The `state` field contains invalid characters"
}
```

**Example** (`The `street` contains invalid characters`)

```json
{
  "code": 27400037,
  "message": "The `street` field contains invalid characters"
}
```

**Example** (`The `country` contains invalid characters`)

```json
{
  "code": 27400035,
  "message": "The `country` field contains invalid characters"
}
```

**Example** (`The `apartment` contains invalid characters`)

```json
{
  "code": 27400038,
  "message": "The `apartment` field contains invalid characters"
}
```

**Example** (`The `job_title` contains invalid characters`)

```json
{
  "code": 27400034,
  "message": "The `job_title` field contains invalid characters"
}
```

**Example** (`The `last_name` contains invalid characters`)

```json
{
  "code": 27400031,
  "message": "The `last_name` field contains invalid characters"
}
```

**Example** (`The `first_name` contains invalid characters`)

```json
{
  "code": 27400030,
  "message": "The `first_name` field contains invalid characters"
}
```

**Example** (`The `phone_country_code` field length limits`)

```json
{
  "code": 27400010,
  "message": "The `phone_country_code` field length must be 2 characters"
}
```

**Example** (`The `country` field should be with `zip_code``)

```json
{
  "code": 27400027,
  "message": "The `country` field should be provided when provide `zip_code`"
}
```

**Example** (`The `description` contains invalid characters`)

```json
{
  "code": 27400032,
  "message": "The `description` field contains invalid characters"
}
```

**Example** (`The `country_code` contains invalid characters`)

```json
{
  "code": 27400040,
  "message": "The `country_code` field contains invalid characters"
}
```

### 422

* User already has a contact with this email.
* Zip code does not match the country.
* Invalid country name provided.
* Invalid state name provided. Only for United States.
* Invalid phone country code provided.

**Example** (`Invalid country name provided`)

```json
{
  "code": 27422003,
  "message": "Invalid country"
}
```

**Example** (`Invalid phone country code provided`)

```json
{
  "code": 27422005,
  "message": "Invalid country_code"
}
```

**Example** (`Zip code does not match the country`)

```json
{
  "code": 27422002,
  "message": "Unsupported zip_code"
}
```

**Example** (`Invalid state name. Only for United States`)

```json
{
  "code": 27422004,
  "message": "Invalid state"
}
```

**Example** (`User already has a contact with this email`)

```json
{
  "code": 27422001,
  "message": "Contact already exists"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/crm/contacts" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email": "user@example.com", "phone": {"number": "3333333333", "country_code": "US"}, "address": {"city": "New York", "state": "New York", "street": "5th Avenue", "country": "US", "zip_code": "11111", "apartment": "26"}, "company": {"name": "Example Inc.", "job_title": "CEO"}, "last_name": "Doe", "first_name": "John", "description": "Key client"}'
```

---

## GET /v2/crm/contacts — Get the list of CRM contacts

This endpoint allows API users to get the list of CRM contacts available to the user.

## Authorization

bearer

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `sort` | string | No | Default value: `sort[last_interaction_at] = 'desc'`. Allowed values: `asc` - ascending order.; `desc` - descending order. |
| `filters: owners` | string | No | Format: `filters=[{"owners":{"type":"IN","value":["e665a46196f7ffb994fb938e5e784da1a3b70905"]}}] |
| `filters: shared with me` | string | No | Format: `filters=[{"shared_with_me":{"type":"=","value":"true"}}]` |
| `filters: combined filter with `OR` for `email`, `first_name`, `last_name`, and `full_name`` | string | No | Format: `filters=[{"_OR":[{"email":{"type":"like","value":"%value%"}},{"first_name":{"type":"like","value":"%value%"}},{"last_name":{"type":"like","value":"%value%"}},{"full_name":{"type":"like","value":"%value%"}}]}]` |
| `filters: combined filter with `OR`` | string | No | Format: `filters=[{"_OR":[{"interaction":{"type":">","value":1652965774}},{"company":{"type":"=","value":"The best company"}}]}]` |
| `filters: combined filter` | string | No | Format: `filters=[{"interaction":{"type":">","value":1652918152}, "company":{"type":"=","value":"Best company"}}]` |
| `filters: interaction before` | string | No | Format: `filters=[{"interaction":{"type":"<","value":1652918152}}]` |
| `filters: interaction after` | string | No | Format: `filters=[{"interaction":{"type":">","value":1652918152}}]` |
| `filters: not company` | string | No | Format: `filters=[{"company":{"type":"!=","value":"the best company"}}]` |
| `filters: company` | string | No | Format: `filters=[{"company":{"type":"=","value":"The best company"}}]` |
| `filters: full_name` | string | No | Format: `filters=[{"full_name":{"type":"like","value":"value"}}]` |
| `filters: last_name` | string | No | Format: `filters=[{"last_name":{"type":"like","value":"value"}}]` |
| `filters: first_name` | string | No | Format: `filters=[{"first_name":{"type":"like","value":"value"}}]` |
| `filters: email` | string | No | Format: `filters=[{"email":{"type":"=","value":"crm@email.com"}}]` |
| `per_page` | integer | No | How many search items to view per page. Allowed values: positive integers from 1 to 100. |
| `page` | integer | No | How many pages to fit the results in. Allowed values: any positive integer starting from 1. |

## Responses

### 200

List of contacts available to the user.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "14cfd7a1dc6ebb1b172f7e790fd573b4eb689c64",
      "meta": {
        "created_at": 1792671820,
        "updated_at": 1792671820,
        "interacted_at": 1792671820
      },
      "email": "user@example.com",
      "phone": {
        "number": "2025550123",
        "country_code": "US"
      },
      "address": {
        "city": "Albany",
        "state": "New York",
        "street": "1 Main St",
        "country": "US",
        "zip_code": "12207",
        "apartment": "2"
      },
      "company": {
        "name": "Test Co",
        "job_title": "QA"
      },
      "last_name": "Smith",
      "first_name": "John",
      "description": "Key client"
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* Wrong, expired, or missing token.
* Request with incorrect per_page parameter type.
* Request with incorrect per_page parameter value.
* Request with incorrect page parameter type.
* Request with incorrect page parameter value.
* Request without filter parameters value or type.
* Request with invalid type of filter parameter type.
* Request with invalid expression of email filter parameter type.
* Request with invalid type of email filter parameter value.
* Request with invalid expression of first_name filter parameter type.
* Request with invalid type of first_name filter parameter value.
* Request with invalid expression of last_name filter parameter type.
* Request with invalid type of last_name filter parameter value.
* Request with invalid expression of full_name filter parameter type.
* Request with invalid type of full_name filter parameter value.
* Request with invalid expression of company filter parameter type.
* Request with invalid type of company filter parameter value.
* Request with invalid expression of interaction filter parameter type.
* Request with invalid type of interaction filter parameter value.
* Request with invalid filter format.
* Request with invalid sort value.
* Request with invalid sort direction value.
* Request with invalid sort format.
* Request with invalid expression of shared_with_me filter parameter type.
* Request with invalid type of shared_with_me filter parameter type.
* Request with invalid type of shared_with_me filter parameter value.
* Request with invalid expression of owners filter parameter type.
* Request with invalid type of owners filter parameter type.
* Request with invalid type of owners filter parameter value.

**Example** (`Invalid sort value`)

```json
{
  "code": 27400906,
  "message": "The `sort` key must be one of the following values:` created_at`, `full_name`, `company_name`, `email`, `last_interaction_at`"
}
```

**Example** (`Invalid sort format`)

```json
{
  "code": 0,
  "message": "Expected array, but got {{ type }}: {{ value }}"
}
```

**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

**Example** (`Invalid filter format`)

```json
{
  "code": 0,
  "message": "Wrong filters format."
}
```

**Example** (`Invalid sort format 2`)

```json
{
  "code": 27400908,
  "message": "The `sort` must contain only one field for sorting"
}
```

**Example** (`Invalid sort direction value`)

```json
{
  "code": 27400907,
  "message": "The `sort` value must be one of the following values: `asc, desc`"
}
```

**Example** (`Incorrect `page` parameter type`)

```json
{
  "code": 27400904,
  "message": "Query parameter `page` must be a digit"
}
```

**Example** (`Incorrect `page` parameter value`)

```json
{
  "code": 27400905,
  "message": "Query parameter `page` must be more than 0"
}
```

**Example** (`Invalid type of email filter value`)

```json
{
  "code": 27400054,
  "message": "The `email` filter value should be of type string"
}
```

**Example** (`Invalid type of owners filter type`)

```json
{
  "code": 274001152,
  "message": "The `owners` filter value should be of type string"
}
```

**Example** (`Incorrect `per_page` parameter type`)

```json
{
  "code": 27400901,
  "message": "Query parameter `per_page` must be a digit"
}
```

**Example** (`Invalid expression of email filter `)

```json
{
  "code": 27400053,
  "message": "The `email` filter expression should be `=` or `like`"
}
```

**Example** (`Invalid type of owners filter value`)

```json
{
  "code": 27400153,
  "message": "The `owners` contains invalid unique_id (\"123\")"
}
```

**Example** (`Incorrect `per_page` parameter value`)

```json
{
  "code": 27400902,
  "message": "Query parameter `per_page` must be more than 0"
}
```

**Example** (`Invalid type of company filter value`)

```json
{
  "code": 27400062,
  "message": "The `company` filter value should be of type string"
}
```

**Example** (`Incorrect `per_page` parameter value 2`)

```json
{
  "code": 27400903,
  "message": "Query parameter `per_page` must be less than or equal 100"
}
```

**Example** (`Invalid type of full_name filter value`)

```json
{
  "code": 27400060,
  "message": "The `full_name` filter value should be of type string"
}
```

**Example** (`Invalid type of last_name filter value`)

```json
{
  "code": 27400058,
  "message": "The `last_name` filter value should be of type string"
}
```

**Example** (`Invalid data type of the `type` filter `)

```json
{
  "code": 27400052,
  "message": "Invalid filter format, filter `type` should be string"
}
```

**Example** (`Invalid type of first_name filter value`)

```json
{
  "code": 27400056,
  "message": "The `first_name` filter value should be of type string"
}
```

**Example** (`Invalid expression of first_name filter `)

```json
{
  "code": 27400055,
  "message": "The `first_name` filter expression should be equal to `like`"
}
```

**Example** (`Invalid expression of owners filter type`)

```json
{
  "code": 27400151,
  "message": "The `owners` filter expression should be `in`"
}
```

**Example** (`Invalid type of interaction filter value`)

```json
{
  "code": 27400064,
  "message": "The `interaction` filter value should be of type integer and contain not more than 10 characters"
}
```

**Example** (`Invalid expression of company filter type`)

```json
{
  "code": 27400061,
  "message": "The `company` filter expression should be one of `=`, `!=`, `like"
}
```

**Example** (`Invalid type of shared_with_me filter type`)

```json
{
  "code": 27400066,
  "message": "The `shared_with_me` filter value should be of type string"
}
```

**Example** (`Invalid expression of full_name filter type`)

```json
{
  "code": 27400059,
  "message": "The `full_name` filter expression should be equal to `like`"
}
```

**Example** (`Invalid expression of last_name filter type`)

```json
{
  "code": 27400057,
  "message": "The `last_name` filter expression should be equal to `like`"
}
```

**Example** (`Invalid type of shared_with_me filter value`)

```json
{
  "code": 27400067,
  "message": "The `shared_with_me` filter value should be `true` or `false`"
}
```

**Example** (`Invalid expression of interaction filter type`)

```json
{
  "code": 27400063,
  "message": "The `interaction` filter expression should be `<` or `>`"
}
```

**Example** (`Request without filter parameters value or type`)

```json
{
  "code": 27400051,
  "message": "Invalid filter format, filter must have `type` and `value` fields"
}
```

**Example** (`Invalid expression of shared_with_me filter type`)

```json
{
  "code": 27400065,
  "message": "The `shared_with_me` filter expression should be `=`"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/crm/contacts" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/crm/contacts/{contact_id} — Get CRM contact info

This endpoint allows API users to get the details of a CRM contact by its ID.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `contact_id` | string | Yes | The ID of the CRM contact. |

## Responses

### 200

Contact details.

**Example** (`Successful response`)

```json
{
  "data": {
    "id": "14cfd7a1dc6ebb1b172f7e790fd573b4eb689c64",
    "meta": {
      "created_at": 1792671820,
      "updated_at": 1792671820,
      "interacted_at": 1792671820
    },
    "email": "user@example.com",
    "phone": {
      "number": "2025550123",
      "country_code": "US"
    },
    "address": {
      "city": "Albany",
      "state": "New York",
      "street": "1 Main St",
      "country": "US",
      "zip_code": "12207",
      "apartment": "2"
    },
    "company": {
      "name": "Test Co",
      "job_title": "QA"
    },
    "last_name": "Smith",
    "first_name": "John",
    "description": "Key client"
  }
}
```

### 400

* Wrong, expired, or missing token.

**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

### 404

* Request to contact that doesn`t belong to user or was deleted.
* Request with wrong contact id in path parameter.

**Example** (`Incorrect contact id in path parameter`)

```json
{
  "code": 404,
  "message": "Unable to find a route to match the URI: v2/crm/contacts/6d02d56cc4b70e15c15d5a3f4391506891e263fe"
}
```

**Example** (`Contact doesn`t belong to user or was deleted`)

```json
{
  "code": 27404001,
  "message": "Contact 8fdd6243fab513d4bbf6d2ad6c07b2339d980941 not found"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/crm/contacts/{contact_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/crm/contacts/{contact_id} — Update a CRM contact

Updates details in the CRM Contact.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `contact_id` | string | Yes | The ID of the CRM contact. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "email"
  ],
  "properties": {
    "email": {
      "type": "string",
      "description": "The new contact email address."
    },
    "phone": {
      "type": "object",
      "properties": {
        "number": {
          "type": "string",
          "description": "Contact phone number. Must be 10 or 16 characters."
        },
        "country_code": {
          "type": "string",
          "description": "Contact country code. Must be 2 characters."
        }
      },
      "description": "Object that holds details of the phone number."
    },
    "address": {
      "type": "object",
      "properties": {
        "city": {
          "type": "string",
          "description": "The city where the contact is located. Maximum 128 characters."
        },
        "state": {
          "type": "string",
          "description": "The state where the contact is located (only for United States). Maximum 128 characters."
        },
        "street": {
          "type": "string",
          "description": "The street where the contact is located. Maximum 255 characters."
        },
        "country": {
          "type": "string",
          "description": "The country where the contact is located. Required when `zip_code` parameters is specified."
        },
        "zip_code": {
          "type": "string",
          "description": "Zip code of the area where the contact is located. Maximum 10 characters."
        },
        "apartment": {
          "type": "string",
          "description": "The apartment office where the contact is located. Maximum 255 characters."
        }
      },
      "description": "Object that holds details about the contact address."
    },
    "company": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the company. Maximum 128 characters."
        },
        "job_title": {
          "type": "string",
          "description": "Job title of the contact in this company. Maximum 128 characters."
        }
      },
      "description": "Object that holds details about the company that this contact represents."
    },
    "last_name": {
      "type": "string",
      "description": "The new contact last name. Maximum 128 characters."
    },
    "first_name": {
      "type": "string",
      "description": "The new contact first name. Maximum 128 characters."
    },
    "description": {
      "type": "string",
      "description": "Contact description. Maximum 408 characters."
    }
  },
  "x-examples": {
    "Example 1": {
      "email": "example@mail.com",
      "phone": {
        "number": "3333333333",
        "country_code": "US"
      },
      "address": {
        "city": "New york",
        "state": "New York",
        "street": "5 avenue, 17",
        "country": "US",
        "zip_code": "11111",
        "apartment": "26"
      },
      "company": {
        "name": "Marvel company",
        "job_title": "CEO"
      },
      "last_name": "contact last name",
      "first_name": "contact name",
      "description": "Any details about this person"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "email": "example@mail.com",
  "phone": {
    "number": "3333333333",
    "country_code": "US"
  },
  "address": {
    "city": "New york",
    "state": "New York",
    "street": "5 avenue, 17",
    "country": "US",
    "zip_code": "11111",
    "apartment": "26"
  },
  "company": {
    "name": "Marvel company",
    "job_title": "CEO"
  },
  "last_name": "contact last name",
  "first_name": "contact name",
  "description": "Any details about this person"
}
```

## Responses

### 204

Contact has been updated successfully

### 400

* Request with any of cases: invalid token, expired token, empty header, authorization = null, authorization without value.
* Request with incorrect body parameters, see examples.


**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

**Example** (`Field `number` limits`)

```json
{
  "code": 27400004,
  "message": "Field `number` must be 10 or 15 characters"
}
```

**Example** (`Invalid email address`)

```json
{
  "code": 27400002,
  "message": "Invalid email"
}
```

**Example** (`Field `number` not a string`)

```json
{
  "code": 27400003,
  "message": "Field `number` must be a string"
}
```

**Example** (`The `email` field is missing`)

```json
{
  "code": 27400001,
  "message": "The `email` field is required"
}
```

**Example** (`Field `city` must be a string`)

```json
{
  "code": 27400021,
  "message": "Field `city` must be a string"
}
```

**Example** (`Field `name` must be a string`)

```json
{
  "code": 27400011,
  "message": "Field `name` must be a string"
}
```

**Example** (`Field `state` must be a string`)

```json
{
  "code": 27400023,
  "message": "Field `state` must be a string"
}
```

**Example** (`The `city` field length limits`)

```json
{
  "code": 27400022,
  "message": "The `city` field length must not be more than 128 characters"
}
```

**Example** (`The `name` field length limits`)

```json
{
  "code": 27400012,
  "message": "The `name` field length must not be more than 128 characters"
}
```

**Example** (`Field `street` must be a string`)

```json
{
  "code": 27400017,
  "message": "Field `street` must be a string"
}
```

**Example** (`The `state` field length limits`)

```json
{
  "code": 27400024,
  "message": "The `state` field length must not be more than 128 characters"
}
```

**Example** (`Field `country` must be a string`)

```json
{
  "code": 27400015,
  "message": "Field `country` must be a string"
}
```

**Example** (`The `street` field length limits`)

```json
{
  "code": 27400018,
  "message": "The `street` field length must not be more than 255 characters"
}
```

**Example** (`Field `zip_code` must be a string`)

```json
{
  "code": 27400025,
  "message": "Field `zip_code` must be a string"
}
```

**Example** (`The `country` field length limits`)

```json
{
  "code": 27400016,
  "message": "The `country` field length must not be more than 2 characters"
}
```

**Example** (`Field `apartment` must be a string`)

```json
{
  "code": 27400019,
  "message": "Field `apartment` must be a string"
}
```

**Example** (`Field `job_title` must be a string`)

```json
{
  "code": 27400013,
  "message": "Field `job_title` must be a string"
}
```

**Example** (`Field `last_name` must be a string`)

```json
{
  "code": 27400007,
  "message": "Field `last_name` must be a string"
}
```

**Example** (`The `zip_code` field length limits`)

```json
{
  "code": 27400026,
  "message": "The `zip_code` field length must not be more than 10 characters"
}
```

**Example** (`Field `first_name` must be a string`)

```json
{
  "code": 27400005,
  "message": "Field `first_name` must be a string"
}
```

**Example** (`The `apartment` field length limits`)

```json
{
  "code": 27400020,
  "message": "The `apartment` field length must not be more than 255 characters"
}
```

**Example** (`The `job_title` field length limits`)

```json
{
  "code": 27400014,
  "message": "The `job_title` field length must not be more than 128 characters"
}
```

**Example** (`The `last_name` field length limits`)

```json
{
  "code": 27400008,
  "message": "The `last_name` field length must not be more than 128 characters"
}
```

**Example** (`Field `description` must be a string`)

```json
{
  "code": 27400028,
  "message": "Field `description` must be a string"
}
```

**Example** (`The `first_name` field length limits`)

```json
{
  "code": 27400006,
  "message": "The `first_name` field length must not be more than 128 characters"
}
```

**Example** (`Field `country_code` must be a string`)

```json
{
  "code": 27400009,
  "message": "Field `country_code` must be a string"
}
```

**Example** (`The `description` field length limits`)

```json
{
  "code": 27400029,
  "message": "The `description` field length must not be more than 408 characters"
}
```

**Example** (`The `city` contains invalid characters`)

```json
{
  "code": 27400036,
  "message": "The `city` field contains invalid characters"
}
```

**Example** (`The `name` contains invalid characters`)

```json
{
  "code": 27400033,
  "message": "The `name` field contains invalid characters"
}
```

**Example** (`The `state` contains invalid characters`)

```json
{
  "code": 27400039,
  "message": "The `state` field contains invalid characters"
}
```

**Example** (`The `street` contains invalid characters`)

```json
{
  "code": 27400037,
  "message": "The `street` field contains invalid characters"
}
```

**Example** (`The `country` contains invalid characters`)

```json
{
  "code": 27400035,
  "message": "The `country` field contains invalid characters"
}
```

**Example** (`The `apartment` contains invalid characters`)

```json
{
  "code": 27400038,
  "message": "The `apartment` field contains invalid characters"
}
```

**Example** (`The `job_title` contains invalid characters`)

```json
{
  "code": 27400034,
  "message": "The `job_title` field contains invalid characters"
}
```

**Example** (`The `last_name` contains invalid characters`)

```json
{
  "code": 27400031,
  "message": "The `last_name` field contains invalid characters"
}
```

**Example** (`The `first_name` contains invalid characters`)

```json
{
  "code": 27400030,
  "message": "The `first_name` field contains invalid characters"
}
```

**Example** (`The `phone_country_code` field length limits`)

```json
{
  "code": 27400010,
  "message": "The `phone_country_code` field length must be 2 characters"
}
```

**Example** (`The `country` field should be with `zip_code``)

```json
{
  "code": 27400027,
  "message": "The `country` field should be provided when provide `zip_code`"
}
```

**Example** (`The `description` contains invalid characters`)

```json
{
  "code": 27400032,
  "message": "The `description` field contains invalid characters"
}
```

**Example** (`The `country_code` contains invalid characters`)

```json
{
  "code": 27400040,
  "message": "The `country_code` field contains invalid characters"
}
```

### 404

* No contact found.
* Attempt to edit shared contact.

**Example** (`No contact found`)

```json
{
  "code": 27404001,
  "message": "Contact `4693ff76178c900f3802a558e1e885268f617ba4` not found"
}
```

**Example** (`Attempt to edit shared contact`)

```json
{
  "code": 27400913,
  "message": "You are not allowed to perform this action"
}
```

### 422

* User already has a contact with this email.
* Zip code does not match the country.
* Invalid country name provided.
* Invalid state name provided. Only for United States.
* Invalid phone country code provided.

**Example** (`Invalid country name provided`)

```json
{
  "code": 27422003,
  "message": "Invalid country"
}
```

**Example** (`Invalid phone country code provided`)

```json
{
  "code": 27422005,
  "message": "Invalid country_code"
}
```

**Example** (`Zip code does not match the country`)

```json
{
  "code": 27422002,
  "message": "Unsupported zip_code"
}
```

**Example** (`Invalid state name. Only for United States`)

```json
{
  "code": 27422004,
  "message": "Invalid state"
}
```

**Example** (`User already has a contact with this email`)

```json
{
  "code": 27422001,
  "message": "Contact already exists"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/crm/contacts/{contact_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email": "example@mail.com", "phone": {"number": "3333333333", "country_code": "US"}, "address": {"city": "New york", "state": "New York", "street": "5 avenue, 17", "country": "US", "zip_code": "11111", "apartment": "26"}, "company": {"name": "Marvel company", "job_title": "CEO"}, "last_name": "contact last name", "first_name": "contact name", "description": "Any details about this person"}'
```

---

## DELETE /v2/crm/contacts/{contact_id} — Remove a CRM contact

Deletes a CRM Contact.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `contact_id` | string | Yes | The ID of the CRM contact. |

## Responses

### 204

Contact has been deleted successfully.

### 400

* Wrong, expired, or missing token.

**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

### 404

* No contact found or contact does not belong to authorized user or contact is already deleted.
* Request with wrong contact id in path parameter.

**Example** (`No contact found `)

```json
{
  "code": 27404001,
  "message": "Contact 8fab3b0ca6f5962685837897de437f591f7e206b not found"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/crm/contacts/{contact_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/crm/contacts/import — Import CRM contacts in bulk

This endpoint allows API users to import contacts from a CSV file into the authenticated user account. Users can map CSV columns to contact fields and configure how duplicate contacts are handled.

**Notes:**
* The CSV file must contain a header row. Data rows start from line 2.
* Rows where the email value is missing or invalid are skipped and reported under `failed`.
* Rows with invalid non-email fields (phone, address, etc.) are still created with those fields set to `null` and reported as `created_partial`.
* CSV separator is auto-detected from the header row (supported: `,`, `;`, `\t`, `|`).
* Phone country codes are auto-detected from the phone number format (e.g., `+1` → `US`, `+44` → `GB`).
* If `duplicates` is not specified and duplicate contacts (by email) already exist, a `409 Conflict` is returned.

**Sample CSV**

```csv
First Name,Last Name,Email,Phone,Company Name,Job Title,Country,Street Address,Apartment,City,State,ZIP Code,Description
John,Smith,john@example.com,5551234567,Sample Company,Manager,US,17 Station St,Suite 101,Brookline,Massachusetts,02445,This is a sample contact to demonstrate how the columns should be filled out. Don't forget to remove this contact before importing your contacts.
```

> Values in `mapping[...]` must exactly match the column headers in your CSV (case-sensitive, including spaces and punctuation). Set an optional `mapping[...]` to `null` to skip a field.


## Authorization

bearer

## Form Data Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `file` | string | Yes | CSV file to import. Maximum size: 5 MB. Maximum rows: 3000 (excluding header). |
| `duplicates` | string | No | Duplicate handling strategy. Allowed values: `skip`, `replace`. If omitted, the request returns `409 Conflict` when contacts with matching emails already exist. |
| `mapping[email]` | string | Yes | Maps the contact email to a CSV column. The value is the column header name in your CSV. Required. Email values in the column must be valid and cannot end with `@no.reply`. Example value: `Email`. |
| `mapping[first_name]` | string | No | Maps the contact first name to a CSV column. The value is the column header name. Maximum 128 characters. Example value: `First Name`. |
| `mapping[last_name]` | string | No | Maps the contact last name to a CSV column. The value is the column header name. Maximum 128 characters. Example value: `Last Name`. |
| `mapping[description]` | string | No | Maps the contact description to a CSV column. The value is the column header name. Maximum 408 characters. Example value: `Description`. |
| `mapping[phone]` | string | No | Maps the contact phone number to a CSV column. The value is the column header name. Phone values must contain 10–15 digits; country code is auto-detected from the format. Example value: `Phone`. |
| `mapping[company][name]` | string | No | Maps the company name to a CSV column. The value is the column header name. Maximum 128 characters. Example value: `Company Name`. |
| `mapping[company][job_title]` | string | No | Maps the contact job title to a CSV column. The value is the column header name. Maximum 128 characters. Example value: `Job Title`. |
| `mapping[address][country]` | string | No | Maps the contact country to a CSV column. The value is the column header name. Country values must use ISO 2-character codes. Required when `mapping[address][zip_code]` is provided. Example value: `Country`. |
| `mapping[address][street]` | string | No | Maps the street address to a CSV column. The value is the column header name. Maximum 255 characters. Example value: `Street Address`. |
| `mapping[address][apartment]` | string | No | Maps the apartment / unit to a CSV column. The value is the column header name. Maximum 255 characters. Example value: `Apartment`. |
| `mapping[address][city]` | string | No | Maps the city to a CSV column. The value is the column header name. Maximum 128 characters. Example value: `City`. |
| `mapping[address][state]` | string | No | Maps the state to a CSV column. The value is the column header name. United States only. Maximum 128 characters. Example value: `State`. |
| `mapping[address][zip_code]` | string | No | Maps the zip code to a CSV column. The value is the column header name. Maximum 10 characters. Requires `mapping[address][country]` to be provided. Example value: `ZIP Code`. |

## Responses

### 201

Contacts imported successfully.

**Example** (`Successful response`)

```json
{
  "data": {
    "failed": {
      "rows": [
        5,
        12,
        27
      ],
      "count": 3
    },
    "created": 45,
    "created_partial": {
      "rows": [
        8,
        19
      ],
      "count": 2
    }
  }
}
```

### 400

* Missing or incorrect bearer token.
* Incorrect `mapping` type.
* The `mapping` is empty.
* The `file` is missing or larger than 5 MB.
* Incorrect `file` type.
* Incorrect file extension.

**Example** (`Incorrect `file` type`)

```json
{
  "errors": [
    {
      "code": 27405153,
      "message": "The `file` type is invalid."
    }
  ]
}
```

**Example** (`The `mapping` is empty`)

```json
{
  "errors": [
    {
      "code": 27405149,
      "message": "The `mapping` value can not be empty."
    }
  ]
}
```

**Example** (`Incorrect `mapping` type`)

```json
{
  "errors": [
    {
      "code": 27405148,
      "message": "The `mapping` should be of type array."
    }
  ]
}
```

**Example** (`Incorrect file extension`)

```json
{
  "errors": [
    {
      "code": 27405155,
      "message": "The allowed file extension is .csv."
    }
  ]
}
```

**Example** (`Missing or incorrect bearer token`)

```json
{
  "errors": [
    {
      "code": 1537,
      "message": "invalid_token"
    }
  ]
}
```

**Example** (`The `file` is missing or larger than 5 MB`)

```json
{
  "errors": [
    {
      "code": 27405152,
      "message": "The `file` is required and maximum allowed file size is 5 MB."
    }
  ]
}
```

### 409

Returned when the `duplicates` parameter is not set and contacts with matching emails already exist.

**Example** (`Returned when the `duplicates` parameter is not set and contacts with matching emails already exist`)

```json
{
  "errors": [
    {
      "code": 27405161,
      "message": "Duplicate contacts found"
    }
  ]
}
```

### 422

* Incorrect `mapping` value.
* Incorrect `duplicates` value.
* The `file` exceeds 5 MB.
* The `file` exceeds 3000 lines.
* The `file` is empty.
* The email column is missing in the file.
* Some mapping columns are missing in the file.
* Unable to import contacts.

**Example** (`The `file` is empty`)

```json
{
  "errors": [
    {
      "code": 27405157,
      "message": "File can not be empty"
    }
  ]
}
```

**Example** (`The `file` exceeds 5 MB`)

```json
{
  "errors": [
    {
      "code": 27405154,
      "message": "The maximum allowed file size is 5 MB"
    }
  ]
}
```

**Example** (`Incorrect `mapping` value`)

```json
{
  "errors": [
    {
      "code": 27405150,
      "message": "The `mapping` value is invalid"
    }
  ]
}
```

**Example** (`Unable to import contacts`)

```json
{
  "errors": [
    {
      "code": 27405160,
      "message": "Unable to import contacts. Please, try again later"
    }
  ]
}
```

**Example** (`Incorrect `duplicates` value`)

```json
{
  "errors": [
    {
      "code": 27405151,
      "message": "Duplicates should be [\"skip\", \"replace\"]"
    }
  ]
}
```

**Example** (`The `file` exceeds 3000 lines`)

```json
{
  "errors": [
    {
      "code": 27405156,
      "message": "The maximum allowed file size is 3000 lines"
    }
  ]
}
```

**Example** (`The email column is missing in the file`)

```json
{
  "errors": [
    {
      "code": 27405158,
      "message": "Column with email is required"
    }
  ]
}
```

**Example** (`Some mapping columns are missing in the file`)

```json
{
  "errors": [
    {
      "code": 27405159,
      "message": "Columns from mapping are missed in file"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/crm/contacts/import" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## GET /v2/brands/{brand_id}/{resource} — Get resource details (deprecated)

This endpoint is deprecated. To get a brand resource, use the Get endpoint of that resource instead.

This endpoint allows users to get an information about a brand resource (general/editor/logo/email).

> [!WARNING]
> To get a brand resource, use the endpoint for that resource: [`GET /v2/brands/{brand_id}/resources/general`](/docs/general-branding/operations/get-v2-brands-brand-id-general), [`GET /v2/brands/{brand_id}/resources/editor`](/docs/general-branding/operations/get-v2-brands-brand-id-editor), [`GET /v2/brands/{brand_id}/resources/logo`](/docs/general-branding/operations/get-v2-brands-brand-id-logo), or one of the [email brand resources](/docs/branding-email-resources).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |
| `resource` | string | Yes | Possible values: `general`, `editor`, `logo`, `email`. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Responses

### 200

OK

**Example** (`Successful response`)

```json
{
  "data": {
    "general": {}
  }
}
```

### 400

* Request without token/with invalid external bearer token/ with external app basic token
* Request with a valid bearer token from another user logged in
* Request with bearer token from user authorised with external token from app they don’t own

**Example** (`Request with valid bearer token from another user logged in`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`Request without token/with invalid external bearer token/ with external app basic token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 404

* Request with bearer token from user authorised with external token from app they don’t own
* Request with `brand_id` which does not exist/ deleted
* Request with resource which does not exist/ deleted

**Example** (`Request with `brand_id` which does not exist/ deleted`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`example-1Request with resource which does not exist/ deleted`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: email."
}
```

**Example** (`Request with bearer token from user authorised with external token from app they don’t own`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}/{resource}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/brands/{brand_id}/{resource} — Delete resource (deprecated)

This endpoint is deprecated. To delete a brand resource, use the Delete endpoint of that resource instead.

This endpoint allows users to delete a brand resource.

> [!WARNING]
> To delete a brand resource, use the endpoint for that resource: [`DELETE /v2/brands/{brand_id}/resources/general`](/docs/general-branding/operations/delete-v2-brands-brand-id-resources-general), [`DELETE /v2/brands/{brand_id}/resources/editor`](/docs/general-branding/operations/delete-v2-brands-brand-id-resources-editor), [`DELETE /v2/brands/{brand_id}/resources/logo`](/docs/general-branding/operations/delete-v2-brands-brand-id-resources-logo), or one of the [email brand resources](/docs/branding-email-resources).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |
| `resource` | string | Yes | Possible values: `general`, `editor`, `logo`, `email`. |

## Responses

### 204

Success, no content

### 400

* Request without token/with invalid external bearer token/ with external app basic token
* Request with a valid bearer token from another user logged in
* Request with bearer token from user authorised with external token from app they don’t own

**Example** (`Request with valid bearer token from another user logged in`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`Request without token/with invalid external bearer token/ with external app basic token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 404

* Request with bearer token from user authorised with external token from app they don’t own
* Request with `brand_id` which does not exist/ deleted
* Request with resource which does not exist/ deleted

**Example** (`Request with `brand_id` which does not exist/ deleted`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`example-1Request with resource which does not exist/ deleted`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: email."
}
```

**Example** (`Request with bearer token from user authorised with external token from app they don’t own`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/brands/{brand_id}/{resource}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/brands/{brand_id}/assign — Assign brand (deprecated)

This endpoint is deprecated. To assign a brand, use the assign endpoint for an application, document, or document group instead.

This endpoint allows users to assign branding to an entity.

> [!WARNING]
> To assign a brand, use [`PUT /v2/applications/{application_id}/brand`](/docs/general-branding/operations/put-v2-applications-application-id-brand), [`PUT /v2/documents/{document_id}/brand`](/docs/general-branding/operations/put-v2-documents-document-id-brand), or [`PUT /v2/document-groups/{document_group_id}/brand`](/docs/general-branding/operations/put-v2-document-groups-document-group-id-brand), depending on the entity.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "entity_type",
    "entity_unique_id"
  ],
  "properties": {
    "entity_type": {
      "type": "string",
      "description": "Must be `application`, `document`, `document_group`. Coming soon:  `organization`."
    },
    "entity_unique_id": {
      "type": "string",
      "description": "The specified application ID."
    }
  },
  "x-examples": {
    "Example 1": {
      "entity_id": "{entity_unique_id}",
      "entity_type": "invite|application|user|team|organization"
    }
  }
}
```

**Example** (`Document`)

```json
{
  "entity_type": "document",
  "entity_unique_id": "34XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
```

**Example** (`Application`)

```json
{
  "entity_type": "application",
  "entity_unique_id": "56XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
```

**Example** (`Document Group`)

```json
{
  "entity_type": "document_group",
  "entity_unique_id": "12XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
```

## Responses

### 201

Created

### 400

* Request without token/with invalid external bearer token/ with external app basic token
* Request with valid bearer token from other user logged in
* Request with invalid payload
* Request with `entity_type` is not string
* Request with `entity_type` is missing
* Request with `entity_type` is empty
* Request with `entity_type` is not `application`, `document`, `document_group`
* Request with `entity_unique_id` is not string
* Request with `entity_unique_id` is missing
* Request with `entity_unique_id` is empty
* Request when brand assignment already exists for the `application`, `document`, `document_group`

**Example** (`Request with invalid payload`)

```json
{
  "errors": [
    {
      "code": 25002017,
      "message": "Invalid payload given."
    }
  ]
}
```

**Example** (`Request with entity_id is missing`)

```json
{
  "errors": [
    {
      "code": 25002023,
      "message": "Entity unique id is required."
    }
  ]
}
```

**Example** (`Request with entity_type is empty`)

```json
{
  "errors": [
    {
      "code": 25002020,
      "message": "Entity type must not be an empty string."
    }
  ]
}
```

**Example** (`Request with entity_type is missing`)

```json
{
  "errors": [
    {
      "code": 25002019,
      "message": "Entity type is required."
    }
  ]
}
```

**Example** (`Request with entity_type is not string`)

```json
{
  "errors": [
    {
      "code": 25002018,
      "message": "Entity type must be a string."
    }
  ]
}
```

**Example** (`Request with entity_unique_id is empty`)

```json
{
  "errors": [
    {
      "code": 25002024,
      "message": "Entity unique id must not be an empty string."
    }
  ]
}
```

**Example** (`Request with entity_type is not application`)

```json
{
  "errors": [
    {
      "code": 25002021,
      "message": "Entity type contains an unexpected value."
    }
  ]
}
```

**Example** (`Request with entity_unique_id is not string`)

```json
{
  "errors": [
    {
      "code": 25002022,
      "message": "Entity unique id must be a string."
    }
  ]
}
```

**Example** (`Request with valid bearer token from other user logged in`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`Request when brand assignment already exists for the application`)

```json
{
  "errors": [
    {
      "code": 25002028,
      "message": "Brand assignment already exists for provided entity."
    }
  ]
}
```

**Example** (`Request without token/with invalid external bearer token/ with external app basic token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with `entity_unique_id` does not exist - 40 characters
* Request with another user’s `entity_unique_id`
* Request with `entity_unique_id` for deleted/deactivated application

**Example** (`Request with another user’s entity_unique_id`)

```json
{
  "errors": [
    {
      "code": 25002026,
      "message": "Action allowed only for the assignment owner."
    }
  ]
}
```

**Example** (`Request with entity_id for deleted/deactivated application`)

```json
{
  "errors": [
    {
      "code": 25002026,
      "message": "Action allowed only for the assignment owner."
    }
  ]
}
```

**Example** (`Request with entity_unique_id does not exist - 40 characters`)

```json
{
  "errors": [
    {
      "code": 25002026,
      "message": "Action allowed only for the assignment owner."
    }
  ]
}
```

### 404

* Request with a Bearer token from a user authorised with an external token from the app they don’t own
* Request with `brand_id` which does not exist

**Example** (`Request with brand_id which does not exist`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Request with a Bearer token from a user authorised with an external token from the app they don’t own`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/brands/{brand_id}/assign" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"entity_type": "document", "entity_unique_id": "34XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"}'
```

---

## PUT /v2/brands/{brand_id}/resources/email — Create email brand resource (deprecated)

This endpoint is deprecated. To brand emails, use the email general resource and the resource for each email type instead.

This endpoint allows users to create and update an email brand resource.

> [!WARNING]
> To brand emails, use [`PUT /v2/brands/{brand_id}/resources/email-general`](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-general) for the logo, buttons, sender email and SignNow references, and [`PUT /v2/brands/{brand_id}/resources/email-invite`](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-invite), [`PUT /v2/brands/{brand_id}/resources/email-invite-reassign`](/docs/general-email-branding/operations/put-v2-brands-brand-id-1-resources-email-invite-reassign) and [`PUT /v2/brands/{brand_id}/resources/email-invite-reminder`](/docs/general-email-branding/operations/put-v2-brands-brand-id-resources-email-invite-reminder) for the email texts.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "description": "Sender's email address."
    },
    "logo": {
      "type": "object",
      "properties": {
        "position": {
          "type": "string",
          "description": "Logo position on the email page. Possible values: `left`, `middle`, `right`."
        }
      },
      "description": "Logo object that contains attributes for logo positioning on the email page."
    },
    "buttons": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Button main color in hex color code."
        },
        "background": {
          "type": "string",
          "description": "Button background in hex color code."
        }
      },
      "description": "Button object that contains button attributes."
    },
    "subject": {
      "type": "string",
      "description": "Email subject."
    },
    "body_header": {
      "type": "string",
      "description": "Email header text. Up to 300 symbols."
    },
    "body_message": {
      "type": "string",
      "description": "Body text. Up to 300 hundred symbols."
    },
    "sender_email": {
      "type": "string",
      "description": "Valid email address for `Contact Sender` button."
    },
    "footer_message": {
      "type": "string",
      "description": "Footer text. Up to 300 symbols."
    },
    "signnow_references": {
      "type": "boolean",
      "description": "Whether or not to show links to signNow mobile apps. Possible values: true, false."
    }
  },
  "x-examples": {
    "Example 1": {
      "from": "valid@email",
      "logo": {
        "position": "left|middle|right"
      },
      "buttons": {
        "color": "#232323",
        "background": "#232323"
      },
      "subject": "Some subject text.",
      "body_header": "any text",
      "body_message": "any text",
      "sender_email": "valid@email",
      "footer_message": "any text",
      "signnow_references": true
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "from": "valid@email",
  "logo": {
    "position": "left|middle|right"
  },
  "buttons": {
    "color": "#232323",
    "background": "#232323"
  },
  "subject": "Some subject text.",
  "body_header": "any text",
  "body_message": "any text",
  "sender_email": "valid@email",
  "footer_message": "any text",
  "signnow_references": true
}
```

## Responses

### 201

Created

### 400

* Request without token/with invalid external bearer token/ with external app basic token
* Request for `brand_id` where brand resource `email` already exists
* Request without body
* Request with `position` parameter values are invalid
* Request with `position` parameter values are not string
* Request with `color` parameter value which is not string
* Request with `color` parameter value that doesn’t match the pattern (/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/)
* Request with `background` parameter value which is not string
* Request with `background` parameter value that doesn’t match the pattern (/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/)
* Request with `subject-text` parameter value which is not string
* Request with `subject-text` parameter value which are more than 300 characters
* Request with `from-email` parameter value which is not string
* Request with `from-email` parameter values which is not a valid email
* Request with `header-text` parameter value which is not a string
* Request with `header-text` parameter value which is more than 300 characters
* Request with `payload-text` parameter value which is not string
* Request with `payload-text` parameter value which is more than 300 characters
* Request with `signature` parameter value which is not string
* Request with `signature` parameter value which is more than 300 characters
* Request with `show-mobile-devices` parameter value which is not a boolean
* Request with `contact-sender` parameter value which is not string
* Request with `contact-sender` parameter value which is not a valid email

**Example** (`Request without body`)

```json
{
  "errors": [
    {
      "code": 2500202,
      "message": "Invalid payload given."
    }
  ]
}
```

**Example** (`Request with `position` parameter values are invalid`)

```json
{
  "errors": [
    {
      "code": 25002048,
      "message": "The 'position' attribute is invalid, allowed values: left, middle, right."
    }
  ]
}
```

**Example** (`Request with `position` parameter values are not string`)

```json
{
  "errors": [
    {
      "code": 25002047,
      "message": "The 'position' attribute must be a string."
    }
  ]
}
```

**Example** (`Request with `color` parameter value which is not string`)

```json
{
  "errors": [
    {
      "code": 25002006,
      "message": "The 'color' attribute must be a string."
    }
  ]
}
```

**Example** (`Request with `signature` parameter value which is not string`)

```json
{
  "errors": [
    {
      "code": 25002054,
      "message": "The 'signature' attribute must be a string."
    }
  ]
}
```

**Example** (`Request with `background` parameter value which is not string`)

```json
{
  "errors": [
    {
      "code": 25002004,
      "message": "The 'background' attribute must be a string."
    }
  ]
}
```

**Example** (`Request with `from-email` parameter value which is not string`)

```json
{
  "errors": [
    {
      "code": 25002050,
      "message": "The 'from-email' attribute must be a string."
    }
  ]
}
```

**Example** (`Request with `payload-text` parameter value which is not string`)

```json
{
  "errors": [
    {
      "code": 25002053,
      "message": "The 'payload-text' attribute must be a string."
    }
  ]
}
```

**Example** (`Request with `subject-text` parameter value which is not string`)

```json
{
  "errors": [
    {
      "code": 25002049,
      "message": "The 'subject-text' attribute must be a string."
    }
  ]
}
```

**Example** (`Request with `header-text` parameter value which is not a string`)

```json
{
  "errors": [
    {
      "code": 25002052,
      "message": "The 'header-text' attribute must be a string."
    }
  ]
}
```

**Example** (`Request with `contact-sender` parameter value which is not string`)

```json
{
  "errors": [
    {
      "code": 25002056,
      "message": "The 'contact-sender' attribute must be a string."
    }
  ]
}
```

**Example** (`Request for `brand_id` where brand resource `email` already exists`)

```json
{
  "errors": [
    {
      "code": 25002035,
      "message": "Brand resource already exists. Resource name: email."
    }
  ]
}
```

**Example** (`Request with `from-email` parameter values which is not a valid email`)

```json
{
  "errors": [
    {
      "code": 25002051,
      "message": "The 'from-email' attribute must be a valid email address."
    }
  ]
}
```

**Example** (`Request with `contact-sender` parameter value which is not a valid email`)

```json
{
  "errors": [
    {
      "code": 25002057,
      "message": "The 'contact-sender' attribute must be a valid email address."
    }
  ]
}
```

**Example** (`Request with `show-mobile-devices` parameter value which is not a boolean`)

```json
{
  "errors": [
    {
      "code": 25002055,
      "message": "The 'show-mobile-devices' attribute must be a boolean."
    }
  ]
}
```

**Example** (`Request with `signature` parameter value which is more than 300 characters`)

```json
{
  "errors": [
    {
      "code": 25002061,
      "message": "The 'signature' attribute must be less, than 300 characters."
    }
  ]
}
```

**Example** (`Request with `header-text` parameter value which is more than 300 characters`)

```json
{
  "errors": [
    {
      "code": 25002059,
      "message": "The 'header-text' attribute must be less, than 300 characters."
    }
  ]
}
```

**Example** (`Request with `payload-text` parameter value which is more than 300 characters`)

```json
{
  "errors": [
    {
      "code": 25002060,
      "message": "The 'payload-text' attribute must be less, than 300 characters."
    }
  ]
}
```

**Example** (`Request with `subject-text` parameter value which are more than 300 characters`)

```json
{
  "errors": [
    {
      "code": 25002058,
      "message": "The 'subject-text' attribute must be less, than 300 characters."
    }
  ]
}
```

**Example** (`Request without token/with invalid external bearer token/ with external app basic token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Request with `color` parameter value that doesn’t match the pattern (/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/)`)

```json
{
  "errors": [
    {
      "code": 25002007,
      "message": "The 'color' attribute format is invalid."
    }
  ]
}
```

**Example** (`Request with `background` parameter value that doesn’t match the pattern (/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/)`)

```json
{
  "errors": [
    {
      "code": 25002005,
      "message": "The 'background' attribute format is invalid."
    }
  ]
}
```

### 403

*Request with a valid bearer token from another user logged in
* Request with bearer token from user, authorised with external token from app they don’t own

**Example** (`Request with valid bearer token from another user logged in`)

```json
{
  "code": "25002030,",
  "message": "No access to the brand."
}
```

**Example** (`Request with bearer token from user, authorised with external token from app they don’t own`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

### 404

* Request with `brand_id` that doesn't exist or is deleted
* Request with `brand_id` which is null or invalid (not 40 characters)

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"from": "valid@email", "logo": {"position": "left|middle|right"}, "buttons": {"color": "#232323", "background": "#232323"}, "subject": "Some subject text.", "body_header": "any text", "body_message": "any text", "sender_email": "valid@email", "footer_message": "any text", "signnow_references": true}'
```

---

## GET /v2/brands/{brand_id}/resources/email — Get email brand resource (deprecated)

This endpoint is deprecated. To get email branding, use the email general resource and the resource for each email type instead.

Allows users to retrieve branding for email resource.

> [!WARNING]
> To get email branding, use [`GET /v2/brands/{brand_id}/resources/email-general`](/docs/general-email-branding/operations/get-v2-brands-brand-id-resources-email-general) for the logo, buttons, sender email and SignNow references, and [`GET /v2/brands/{brand_id}/resources/email-invite`](/docs/general-email-branding/operations/get-v2-brands-brand-id-resources-email-invite), [`GET /v2/brands/{brand_id}/resources/email-invite-reassign`](/docs/general-email-branding/operations/get-v2-brands-brand-id-resources-email-invite-reassign) and [`GET /v2/brands/{brand_id}/resources/email-invite-reminder`](/docs/general-email-branding/operations/get-v2-brands-brand-id-resources-email-reminder) for the email texts.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Responses

### 200

Success

**Example** (`Successful response`)

```json
{
  "data": {
    "from": "senderemail@emaildomain.com",
    "logo": {
      "position": "middle"
    },
    "buttons": {
      "color": "#de4991",
      "background": "#f59758"
    },
    "subject": "My custom email",
    "body_header": "Customized letter example",
    "body_message": "This is example of message text",
    "sender_email": "senderemail@emaildomain.com",
    "footer_message": "Customized footer text",
    "signnow_references": true
  }
}
```

### 400

* Request with resource which does not exist/ is deleted
* Request without token/with invalid external bearer token/ with external app basic token
*Request with a valid bearer token from another user logged in

**Example** (`Request with resource which does not exist/ is deleted`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: email."
}
```

**Example** (`Request with valid bearer token from another user logged in`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`Request without token/with invalid external bearer token/ with external app basic token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 404

* Request with brand_id which does not exist/ is deleted
* Request with bearer token from a user authorised with external token from the app they don’t own

**Example** (`Request with brand_id which does not exist/ is deleted`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Request with bearer token from a user authorised with external token from the app they don’t own`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/brands/{brand_id}/unassign — Unassign brand (deprecated)

This endpoint is deprecated. To unassign a brand, use the unassign endpoint for an application, document, or document group instead.

This endpoint allows users to unassign branding from an entity.

> [!WARNING]
> To unassign a brand, use [`DELETE /v2/applications/{application_id}/brand`](/docs/general-branding/operations/delete-v2-applications-application-id-brand), [`DELETE /v2/documents/{document_id}/brand`](/docs/general-branding/operations/delete-v2-documents-document-id-brand), or [`DELETE /v2/document-groups/{document_group_id}/brand`](/docs/general-branding/operations/delete-v2-document-groups-document-group-id-brand), depending on the entity.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "entity_type",
    "entity_id"
  ],
  "properties": {
    "entity_id": {
      "type": "string",
      "description": "The specified application ID."
    },
    "entity_type": {
      "type": "string",
      "description": "Must be `application`. Coming soon: `invite`, `organization`."
    }
  },
  "x-examples": {
    "Example 1": {
      "entity_id": "{entity_unique_id}",
      "entity_type": "application"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "entity_id": "12XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "entity_type": "application"
}
```

## Responses

### 204

No Content

### 400

* Request without token/with invalid external bearer token/ with external app basic token
* Request with valid bearer token from other user logged in
* Request with invalid payload
* Request with `entity_type` is not string
* Request with `entity_type` is missing
* Request with `entity_type` is empty
* Request with `entity_type` is not `application`
* Request with `entity_id` is not string
* Request with `entity_id` is missing
* Request with `entity_id` is empty
* Request when brand assignment already exists for the application

**Example** (`Request with invalid payload`)

```json
{
  "code": 25002017,
  "message": "Invalid payload given."
}
```

**Example** (`Request with entity_id is empty`)

```json
{
  "code": 25002024,
  "message": "Entity unique id must not be an empty string."
}
```

**Example** (`Request with entity_id is missing`)

```json
{
  "code": 25002023,
  "message": "Entity unique id is required."
}
```

**Example** (`Request with entity_type is empty`)

```json
{
  "code": 25002020,
  "message": "Entity type must not be an empty string."
}
```

**Example** (`Request with entity_type is missing`)

```json
{
  "code": 25002019,
  "message": "Entity type is required."
}
```

**Example** (`Request with entity_type is not string`)

```json
{
  "code": 25002018,
  "message": "Entity type must be a string."
}
```

**Example** (`Request with entity_type is not application`)

```json
{
  "code": 25002021,
  "message": "Entity type contains an unexpected value."
}
```

**Example** (`Request with entity_unique_id is not string`)

```json
{}
```

**Example** (`Request with valid bearer token from other user logged in`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`Request when brand assignment already exists for the application`)

```json
{
  "code": 25002028,
  "message": "Brand assignment already exists for provided entity."
}
```

**Example** (`Request without token/with invalid external bearer token/ with external app basic token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with `entity_id` does not exist - 40 characters
* Request with another user’s `entity_id`
* Request with `entity_id` for deleted/deactivated application

**Example** (`Request with another user’s entity_id`)

```json
{
  "code": 25002026,
  "message": "Action allowed only for the assignment owner."
}
```

**Example** (`Request with entity_id does not exist - 40 characters`)

```json
{
  "code": 25002026,
  "message": "Action allowed only for the assignment owner."
}
```

**Example** (`Request with entity_id for deleted/deactivated application`)

```json
{
  "code": 25002026,
  "message": "Action allowed only for the assignment owner."
}
```

### 404

* Request with a Bearer token from a user authorised with an external token from the app they don’t own
* Request with `brand_id` which does not exist

**Example** (`Request with brand_id which does not exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Request with a Bearer token from a user authorised with an external token from the app they don’t own`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/brands/{brand_id}/unassign" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"entity_id": "12XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "entity_type": "application"}'
```

---

## PUT /v2/organizations/{organization_id}/brands/{brand_id}/resources/email — Create org email brand resource (deprecated)

This endpoint is deprecated. To brand organization emails, use the org email general and org email invite brand resources instead.

This endpoint allows users to create an email brand resource for an organization. Only an admin or moderator of the organization can perform this action.

> [!WARNING]
> This endpoint still saves the email settings, but stores them in granular email resources instead of an `email` resource:
>
> * `logo`, `buttons`, `sender_email` and `signnow_references` are saved to `email-general`.
> * `subject`, `from`, `body_header`, `body_message` and `footer_message` are saved to `email-invite`, `email-invite-reassign` and `email-invite-reminder`, in English (`en`).
>
> Use [Create org email general brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-general) and [Create org email invite brand resource](/docs/organization-branding/operations/put-v2-organizations-organization-id-brands-brand-id-resources-email-invite) instead.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "description": "Sender's email address."
    },
    "logo": {
      "type": "object",
      "properties": {
        "position": {
          "type": "string",
          "description": "Logo position on the email page. Possible values: `left`, `middle`, and `right`."
        }
      },
      "description": "Logo object that contains attributes for logo positioning on the email page."
    },
    "buttons": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Button main color in HEX color code."
        },
        "background": {
          "type": "string",
          "description": "Button background in HEX color code."
        }
      },
      "description": "Button object that contains button attributes."
    },
    "subject": {
      "type": "string",
      "description": "Email subject."
    },
    "body_header": {
      "type": "string",
      "description": "Email header text. Up to 300 symbols."
    },
    "body_message": {
      "type": "string",
      "description": "Body text. Up to 300 symbols."
    },
    "sender_email": {
      "type": "string",
      "description": "Valid email address for `Contact Sender` button."
    },
    "footer_message": {
      "type": "string",
      "description": "Footer text. Up to 300 symbols."
    },
    "signnow_references": {
      "type": "boolean",
      "description": "Whether or not to show links to SignNow mobile apps."
    }
  },
  "x-examples": {
    "Example 1": {
      "from": "valid@email",
      "logo": {
        "position": "left|middle|right"
      },
      "buttons": {
        "color": "#232323",
        "background": "#232323"
      },
      "subject": "Some subject text.",
      "body_header": "any text",
      "body_message": "any text",
      "sender_email": "valid@email",
      "footer_message": "any text",
      "signnow_references": true
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "from": "from@email.com",
  "logo": {
    "position": "left"
  },
  "buttons": {
    "color": "#232323",
    "background": "#232323"
  },
  "subject": "Subject text",
  "body_header": "Body header text",
  "body_message": "Body text",
  "sender_email": "sender@email.com",
  "footer_message": "Footer text",
  "signnow_references": true
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* Brand resource logo already exists for this `brand_id`.
* Request without body.
*  `position` is incorrect.
*  `position` is not a string.
*  `color` is not a string.
*  `color` is not a HEX color code.
*  `background` is not a string.
*  `background` is not a HEX color code.
*  `subject-text` is not a string.
*  `subject-text` is longer than 300 characters.
*  `contact-sender` is not a string.
*  `contact-sender` is not a valid email address.
*  `from-email` is not a string.
*  `from-email` is not a valid email address.
*  `header-text` is not a string.
*  `header-text` is longer than 300 characters.
*  `body_message` is not a string.
*  `body_message` is longer than 300 characters.
*  `footer_message` is not a string.
*  `footer_message` is longer than 300 characters.
*  `signnow_references` is not a boolean.


**Example** (`color not string`)

```json
{
  "errors": [
    {
      "code": 25002006,
      "message": "The 'color' attribute must be a string."
    }
  ]
}
```

**Example** (`position not string`)

```json
{
  "errors": [
    {
      "code": 25002047,
      "message": "The 'position' attribute must be a string."
    }
  ]
}
```

**Example** (`Request without body`)

```json
{
  "errors": [
    {
      "code": 2500202,
      "message": "Invalid payload given."
    }
  ]
}
```

**Example** (`header-text too long`)

```json
{
  "errors": [
    {
      "code": 25002059,
      "message": "The 'header-text' attribute must be less, than 300 characters."
    }
  ]
}
```

**Example** (`background not string`)

```json
{
  "errors": [
    {
      "code": 25002004,
      "message": "The 'background' attribute must be a string."
    }
  ]
}
```

**Example** (`body_message too long`)

```json
{
  "errors": [
    {
      "code": 25002060,
      "message": "The 'body_message' attribute must be less, than 300 characters."
    }
  ]
}
```

**Example** (`from-email not string`)

```json
{
  "errors": [
    {
      "code": 25002050,
      "message": "The 'from-email' attribute must be a string."
    }
  ]
}
```

**Example** (`subject-text too long`)

```json
{
  "errors": [
    {
      "code": 25002058,
      "message": "The 'subject' attribute must be less, than 300 characters."
    }
  ]
}
```

**Example** (`header-text not string`)

```json
{
  "errors": [
    {
      "code": 25002052,
      "message": "The 'header-text' attribute must be a string."
    }
  ]
}
```

**Example** (`body_message not string`)

```json
{
  "errors": [
    {
      "code": 25002053,
      "message": "The 'body_message' attribute must be a string."
    }
  ]
}
```

**Example** (`footer_message too long`)

```json
{
  "errors": [
    {
      "code": 25002061,
      "message": "The 'footer_message' attribute must be less, than 300 characters."
    }
  ]
}
```

**Example** (`subject-text not string`)

```json
{
  "errors": [
    {
      "code": 25002049,
      "message": "The 'subject' attribute must be a string."
    }
  ]
}
```

**Example** (`Incorrect position value`)

```json
{
  "errors": [
    {
      "code": 25002048,
      "message": "The 'position' attribute is invalid, allowed values: left, middle, right."
    }
  ]
}
```

**Example** (`color not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002007,
      "message": "The 'color' attribute format is invalid."
    }
  ]
}
```

**Example** (`contact-sender not string`)

```json
{
  "errors": [
    {
      "code": 25002056,
      "message": "The 'sender_email' attribute must be a string."
    }
  ]
}
```

**Example** (`footer_message not string`)

```json
{
  "errors": [
    {
      "code": 25002054,
      "message": "The 'footer_message' attribute must be a string."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`from-email not email address`)

```json
{
  "errors": [
    {
      "code": 25002051,
      "message": "The 'from-email' attribute must be a valid email address."
    }
  ]
}
```

**Example** (`Email resource already exists`)

```json
{
  "errors": [
    {
      "code": 25002035,
      "message": "Brand resource already exists. Resource name: email."
    }
  ]
}
```

**Example** (`background not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002005,
      "message": "The 'background' attribute format is invalid."
    }
  ]
}
```

**Example** (`signnow_references not boolean`)

```json
{
  "errors": [
    {
      "code": 25002055,
      "message": "The 'signnow_references' attribute must be a boolean."
    }
  ]
}
```

**Example** (`contact-sender not email address`)

```json
{
  "errors": [
    {
      "code": 25002057,
      "message": "The 'sender_email' attribute must be a valid email address."
    }
  ]
}
```

### 403

* The brand exists but it is not an organization brand.
* The user is neither admin, nor moderator of the organization.

**Example** (`Non-organization brand`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User not admin or moderator`)

```json
{
  "code": 25006002,
  "message": "Insufficient organization rights."
}
```

### 404

* The organization is not found.
* The brand is not found.
* `brand_id` cannot be null.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`brand_id is null`)

```json
{
  "404": "Unable to find a route to match the URI: v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/email"
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"from": "from@email.com", "logo": {"position": "left"}, "buttons": {"color": "#232323", "background": "#232323"}, "subject": "Subject text", "body_header": "Body header text", "body_message": "Body text", "sender_email": "sender@email.com", "footer_message": "Footer text", "signnow_references": true}'
```

---

## GET /v2/organizations/{organization_id}/brands/{brand_id}/resources/email — Get org email brand resource (deprecated)

This endpoint is deprecated. To get organization email branding, use the org email general and org email invite brand resources instead.

This endpoint allows users to retrieve organization branding for an email resource.

> [!WARNING]
> The `email` brand resource has been replaced by granular email resources (`email-general`, `email-invite`, `email-invite-reassign` and `email-invite-reminder`), so this endpoint no longer returns data and responds with `404`.
>
> Use [Get org email general brand resource](/docs/organization-branding/operations/get-v2-organizations-organization-id-brands-brand-id-resources-email-general) and [Get org email invite brand resource](/docs/organization-branding/operations/get-v2-organizations-organization-id-brands-brand-id-resources-email-invite) instead.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Success

**Example** (`Successful response`)

```json
{
  "data": {
    "from": "from@email.com",
    "logo": {
      "position": "left"
    },
    "buttons": {
      "color": "#232323",
      "background": "#232323"
    },
    "subject": "Subject text",
    "body_header": "Body header text",
    "body_message": "Body text",
    "sender_email": "sender@email.com",
    "footer_message": "Footer text",
    "signnow_references": true
  }
}
```

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is neither admin, nor moderator of the organization.
* The user is authorized with a token from an app they don’t own.
* The brand exists but it is not an organization brand.

**Example** (`Non-organization brand`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

**Example** (`User not admin or moderator`)

```json
{
  "code": 25006002,
  "message": "Insufficient organization rights."
}
```

### 404

* The organization is not found.
* The brand is not found.
* `brand_id` cannot be null.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`brand_id is null`)

```json
{
  "404": "Unable to find a route to match the URI: v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/email"
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/organizations/{organization_id}/brands/{brand_id}/resources/email — Delete org email brand resource (deprecated)

This endpoint is deprecated. To delete organization email branding, use the org email general and org email invite brand resources instead.

This endpoint allows users to delete an email brand resource for an organization. Only an admin or moderator of the organization can perform this action.

> [!WARNING]
> The `email` brand resource has been replaced by granular email resources (`email-general`, `email-invite`, `email-invite-reassign` and `email-invite-reminder`), so this endpoint no longer removes data and responds with `404`.
>
> Use [Delete org email general brand resource](/docs/organization-branding/operations/delete-v2-organizations-organization-id-brands-brand-id-resources-email-general) and [Delete org email invite brand resource](/docs/organization-branding/operations/delete-v2-organizations-organization-id-brands-brand-id-resources-email-invite) instead.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is authorized with a token from an app they don’t own.
* The brand exists but it is not an organization brand.
* The user is neither admin, nor moderator of the organization.

**Example** (`Non-organization brand`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

**Example** (`User not admin or moderator`)

```json
{
  "code": 25006002,
  "message": "Insufficient organization rights."
}
```

### 404

* The organization is not found.
* The brand is not found.
* `brand_id` cannot be null.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`brand_id is null`)

```json
{
  "404": "Unable to find a route to match the URI: v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/email"
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /team/{team_id}/documentgroup/template/{doc_group_id}/share — Share doc group template (deprecated)

This endpoint is deprecated. To add a document group template to a team space, move it into a team folder instead.

This endpoint allows user to share their document group templates with a team.

> [!WARNING]
> To add a DGT to a team space, move it into a team folder or subfolder using [`PATCH /v2/document-group-templates/{doc_group_template_id}/move`](/docs/document-group-template/operations/patch-v2-document-group-templates-doc-group-template-id-move).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `team_id` | string | Yes | ID of the team. |
| `doc_group_id` | string | Yes | ID of the document group template. |

## Responses

### 200

**Example** (`Successful response`)

```json
{
  "result": "success"
}
```

### 400

* User is not in the team.
* Document group template not found.
* User doesn't own document group template.
* Team not found.

**Example** (`Team not found`)

```json
{
  "code": 66391,
  "message": "Team not found"
}
```

**Example** (`User is not in the team`)

```json
{
  "code": 65582,
  "message": "User is not part of this team"
}
```

**Example** (`User doesn't own the DGT`)

```json
{
  "code": 65582,
  "message": "User does not own document group template"
}
```

**Example** (`Doc group template not found`)

```json
{
  "code": 65536,
  "message": "unable to find document group template"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/team/{team_id}/documentgroup/template/{doc_group_id}/share" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## DELETE /team/{team_id}/documentgroup/template/{doc_group_id}/share — Delete doc group templates for a team (deprecated)

This endpoint is deprecated. To remove a document group template from a team space, move it to a personal folder instead.

This endpoint allows team user to delete their document group templates from team and team admins to delete any document group templates.

> [!WARNING]
> To remove a DGT from the team space, move it back to a personal folder using [`PATCH /v2/document-group-templates/{doc_group_template_id}/move`](/docs/document-group-template/operations/patch-v2-document-group-templates-doc-group-template-id-move).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `team_id` | string | Yes | ID of the team. |
| `doc_group_id` | string | Yes | ID of the document group template. |

## Responses

### 200

**Example** (`Successful response`)

```json
{
  "result": "success"
}
```

### 400

* Document group template not found.
* User is not in the team.
* User doesn't own the document group template.
* Team not found.

**Example** (`Team not found`)

```json
{
  "code": 66391,
  "message": "Team not found"
}
```

**Example** (`User not in the team`)

```json
{
  "code": 65582,
  "message": "User is not part of this team"
}
```

**Example** (`Doc group template not found`)

```json
{
  "code": 65536,
  "message": "unable to find document group template"
}
```

**Example** (`User not owner of doc group template`)

```json
{
  "code": 65582,
  "message": "User does not own document group template"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/team/{team_id}/documentgroup/template/{doc_group_id}/share" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /team/{team_id}/documentgroup/templates — Get team doc group templates (deprecated)

This endpoint is deprecated. To get the document group templates shared with a team, get the contents of the team folder instead.

This endpoint returns all document group templates shared with the team.

> [!WARNING]
> To retrieve DGTs shared with a team, fetch the contents of the team folder or subfolder with [`GET /folder/{folder_id}`](/docs/folder/operations/get-folder-by-id) and set `entity_type` to `dgt`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `team_id` | string | Yes | ID of the team. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `limit` | string | Yes | Maximum number of document group templates to return. Min: `1`, Max: `50`. |
| `offset` | string | No | Number of document group templates to skip before the results start. Min: `0`. |

## Responses

### 200

**Example** (`Successful response`)

```json
{
  "document_group_templates": [
    {
      "templates": [
        {
          "id": "bcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
          "name": "Template 1",
          "roles": [
            "Signer 1"
          ],
          "thumbnail": {
            "large": "http://example.com/document/bcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
            "small": "http://example.com/document/bcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
            "medium": "http://example.com/document/bcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
          }
        },
        {
          "id": "efXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
          "name": "Template with fixed role and field",
          "roles": [
            "Signer 1"
          ],
          "thumbnail": {
            "large": "http://example.com/document/bcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
            "small": "http://example.com/document/bcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
            "medium": "http://example.com/document/bcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
          }
        }
      ],
      "owner_email": "owner@email.com",
      "last_updated": "1534146166",
      "template_group_id": "23XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "template_group_name": "Template group 2"
    }
  ],
  "document_group_template_total_count": 1
}
```

### 400

* Incorrect or missing `limit`
* User is not in the team
* Incorrect or missing `offset`
* Team not found

**Example** (`Team not found`)

```json
{
  "code": 66391,
  "message": "Team not found"
}
```

**Example** (`User is not in the team`)

```json
{
  "code": 65582,
  "message": "User is not part of this team"
}
```

**Example** (`Incorrect or missing limit`)

```json
{
  "code": 65582,
  "message": "The limit query parameter is required and must be between 1 and 50"
}
```

**Example** (`Incorrect or missing offset`)

```json
{
  "code": 65582,
  "message": "The offset query parameter is required and must be 0 or greater"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/team/{team_id}/documentgroup/templates" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /document/{document_id}/invite — Create freeform invite

This endpoint allows API users to create and send a FreeForm invite to sign a document.

**FreeForm Invite**

A FreeForm invite is an invite with a document that does not contain fields; recipients can add their signature anywhere on the document.
> [!NOTE]
> A FreeForm invite can be sent to the sender's own email address.

**Schedule a freeform invite**

To send a FreeForm invite at a later time, use the [Schedule document invite](/docs/scheduled-document-invite/operations/post-document-scheduled-invite) endpoint with `is_freeform_invite: true`.

> [!NOTE]
> Custom `subject` and `message` require a paid API plan, an API free trial, or a Site License.
>
> On a free trial or without a paid subscription, a document can have up to `10` signers in freeform invites (`200` on other plans), `subject` can have up to `100` characters, and `message` up to `200` characters.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "to",
    "from"
  ],
  "properties": {
    "cc": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Email addresses for CC recipients."
    },
    "to": {
      "type": "string",
      "description": "The signer's email address. **Note**: A FreeForm invite can be sent to the sender's own email address."
    },
    "from": {
      "type": "string",
      "description": "Sender's email address. you can use only the email address associated with your SignNow account (login email) as \"from\" address."
    },
    "message": {
      "type": "string",
      "description": "Email body message for the signer. Requires a paid API plan, an API free trial, or a Site License. Max `200` characters on a free trial or without a paid subscription."
    },
    "subject": {
      "type": "string",
      "description": "Email subject for the signer. Requires a paid API plan, an API free trial, or a Site License. Max `100` characters on a free trial or without a paid subscription."
    },
    "language": {
      "enum": [
        "en",
        "es",
        "fr"
      ],
      "type": "string",
      "description": "Sets the language of the signing session and notification emails for the signer. Possible values: `en` for English, `es` for Spanish, and `fr` for French. If not set, the language is determined by the language of your SignNow account. If emails are branded, you can set up [your own](/docs/branding-email-resources#language-branding) email texts in different languages."
    },
    "cc_message": {
      "type": "string",
      "description": "CC email body message for the recipients."
    },
    "cc_subject": {
      "type": "string",
      "description": "CC email subject for the recipients."
    },
    "document_id": {
      "type": "string"
    },
    "sms_message": {
      "type": "string",
      "description": "Custom SMS message."
    },
    "redirect_uri": {
      "type": "string",
      "description": "When a document is signed, the signer is redirected to this URI.",
      "x-stoplight": {
        "id": "hx17h6kf77u06"
      }
    },
    "redirect_target": {
      "enum": [
        "blank",
        "self"
      ],
      "type": "string",
      "default": "blank",
      "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab, default value.",
      "x-stoplight": {
        "id": "n3vxxi91s6n8l"
      }
    },
    "close_redirect_uri": {
      "type": "string",
      "description": "The link that opens after a signer selects the **Close** button.",
      "x-stoplight": {
        "id": "4ij7p7xbcoqi1"
      }
    }
  },
  "x-examples": {
    "Example 1": {
      "cc": [
        "cc-recipient@email.com"
      ],
      "to": "signer@email.com",
      "from": "sender@email.com",
      "message": "You've been invited to sign a document",
      "subject": "You've been invited to sign a document",
      "language": "en",
      "cc_message": "Message for CC",
      "cc_subject": "Subject for CC",
      "document_id": "d963dabec415d9dc40c2e1e999c586a5b66b5b25",
      "sms_message": "{sender_email} your document is here {invite_url}"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "cc": [
    "user2@example.com"
  ],
  "to": "user1@example.com",
  "from": "user@example.com",
  "message": "You have been invited to sign a document",
  "subject": "You have been invited to sign a document",
  "language": "en",
  "cc_message": "Message for CC",
  "cc_subject": "Subject for CC",
  "document_id": "c1bd339e4d320295e0f239fcc4caad6d98bd42be",
  "sms_message": "{sender_email} your document is here {invite_url}",
  "redirect_uri": "https://example.com/done",
  "redirect_target": "blank",
  "close_redirect_uri": "https://example.com/close"
}
```

## Responses

### 200

The freeform invite was sent.

**Example** (`Successful response`)

```json
{
  "id": "93a824e6a14f512c1bbcc2ee430e5562c6b96a3b",
  "result": "success",
  "callback_url": "none"
}
```

### 400

* Incorrect or missing token.
* Invite not found.
* Document not found.
* Incorrect `to` email.
* Incorrect `from` email.
* `from` email is not document owner.
* Document has fields.
* Empty `to` email.
* Empty `from` email.
* `cc` is not an array.
* Empty `cc`.
* `cc` contains incorrect emails.
* `cc_subject` is not a string.
* `cc_subject` is too long.
* UTF 4-byte characters in `cc_subject` are not supported.
* Empty `cc_subject`.
* `cc_message` is not a string.
* `cc_message` is longer than 1000 characters.
* UTF 4-byte characters in `cc_message` are not supported.
* Empty `cc_message`.
* `language` is not a string.
* Incorrect `language`.
* `redirect_uri` is not a string.
* `redirect_uri` is not a correct URL address.
* `redirect_uri` is longer than 2048 characters.
* UTF 4-byte characters in `redirect_uri` are not supported.
* `close_redirect_uri` is not a string.
* Empty `close_redirect_uri`.
* `close_redirect_uri` is not a correct URL address.
* `close_redirect_uri` is longer than 2048 characters.
* `redirect_target` is not a string.
* Incorrect `redirect_target`. Allowed values: `self`, `blank`.
* One of redirect URLs is required if `redirect_target` is added.
* Custom `subject` or `message` without a paid API plan, an API free trial, or a Site License.
* `subject` is longer than `100` characters, `message` is longer than `200` characters, or the document has more than `10` freeform invite signers (on a free trial or without a paid subscription).

**Example** (`Empty `cc` array`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "CC must not be empty."
    }
  ]
}
```

**Example** (`Empty `to` email`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "To must not be empty."
    }
  ]
}
```

**Example** (`Empty cc_message`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The cc_message value must not be empty string."
    }
  ]
}
```

**Example** (`Empty cc_subject`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The cc_subject value must not be empty string."
    }
  ]
}
```

**Example** (`Invite not found`)

```json
{
  "errors": [
    {
      "code": 66502,
      "message": "Field invite not found"
    }
  ]
}
```

**Example** (``cc` not an array`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "CC must be an array."
    }
  ]
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document not found"
    }
  ]
}
```

**Example** (`Empty `from` email`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "To must not be empty."
    }
  ]
}
```

**Example** (`Incorrect language`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `language` attribute is invalid, allowed values: en, fr, es."
    }
  ]
}
```

**Example** (`Document has fields`)

```json
{
  "errors": [
    {
      "code": 65594,
      "message": "Cannot send invite for document with fields"
    }
  ]
}
```

**Example** (`cc_message too long`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The cc_message value is too long. It should have 1000 character or less."
    }
  ]
}
```

**Example** (`cc_subject too long`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The cc_subject value is too long. It should have 500 character or less."
    }
  ]
}
```

**Example** (`language not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `language` must be a string."
    }
  ]
}
```

**Example** (`Incorrect `to` email`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "To must be a valid email."
    }
  ]
}
```

**Example** (`Missing redirect URL`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "One of the `redirect_uri` fields is required when `redirect_target` is added."
    }
  ]
}
```

**Example** (`cc_subject not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The cc_subject must be a string."
    }
  ]
}
```

**Example** (`redirect_uri too long`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Parameter `redirect_uri` must not exceed 2048 characters."
    }
  ]
}
```

**Example** (`Incorrect `from` email`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "From must be a valid email."
    }
  ]
}
```

**Example** (`cc_message not string.`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The cc_message must be a string."
    }
  ]
}
```

**Example** (`redirect_uri not a URL`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Parameter `redirect_uri` must be a valid URL"
    }
  ]
}
```

**Example** (`redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Parameter `redirect_uri` must be a string"
    }
  ]
}
```

**Example** (`Empty close_redirect_uri`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `close_redirect_uri` field must not be empty."
    }
  ]
}
```

**Example** (`Message too long on trial`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Message is too long."
    }
  ]
}
```

**Example** (`Subject too long on trial`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Subject is too long."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`redirect_target not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "One of the `redirect_uri` fields is required when `redirect_target` is added."
    }
  ]
}
```

**Example** (`close_redirect_uri too long`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Parameter `close_redirect_uri` must not exceed 2048 characters."
    }
  ]
}
```

**Example** (`close_redirect_uri not a URL`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `close_redirect_uri` field contains a URL in an invalid format."
    }
  ]
}
```

**Example** (`More than 10 signers on trial`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "One document cannot have more 10 signers in free form invite"
    }
  ]
}
```

**Example** (`Personalization not available`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Upgrade your subscription plan to personalize invite subject and message."
    }
  ]
}
```

**Example** (`close_redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `close_redirect_uri` field must be a string."
    }
  ]
}
```

**Example** (``cc` contains incorrect emails`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "CC must contain valid emails."
    }
  ]
}
```

**Example** (`Incorrect redirect_target value`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `redirect_target` field is invalid, allowed values: self, blank."
    }
  ]
}
```

**Example** (``from` email not document owner`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Email not found"
    }
  ]
}
```

**Example** (`UTF 4-byte chars in redirect_uri`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "4-byte characters in `redirect_uri` are not supported\""
    }
  ]
}
```

**Example** (`UTF 4-byte characters in cc_message `)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "4-byte characters in cc_message are not supported."
    }
  ]
}
```

**Example** (`UTF 4-byte characters in cc_subject `)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "4-byte characters in cc_subject are not supported.."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/document/{document_id}/invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"cc": ["user2@example.com"], "to": "user1@example.com", "from": "user@example.com", "message": "You have been invited to sign a document", "subject": "You have been invited to sign a document", "language": "en", "cc_message": "Message for CC", "cc_subject": "Subject for CC", "document_id": "c1bd339e4d320295e0f239fcc4caad6d98bd42be", "sms_message": "{sender_email} your document is here {invite_url}", "redirect_uri": "https://example.com/done", "redirect_target": "blank", "close_redirect_uri": "https://example.com/close"}'
```

---

## PUT /invite/{invite_id}/cancel — Cancel freeform invite

This endpoint allows API users to cancel a freeform invite and specify the cancellation reason.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `invite_id` | string | Yes | ID of the invite or signature request. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "reason": {
      "type": "string",
      "maxLength": 1000,
      "description": "The reason for canceling the invite.",
      "x-stoplight": {
        "id": "jhmdiyr647dtg"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "reason": "The document was sent by mistake."
}
```

## Responses

### 200

The freeform invite was cancelled.

**Example** (`Successful response`)

```json
{
  "id": "93a824e6a14f512c1bbcc2ee430e5562c6b96a3b"
}
```

### 400

* Invalid authorization.
* Field invite not found.
* Document not found.
* Incorrect invite id or signature request id.

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document not found"
    }
  ]
}
```

**Example** (`Invalid authorization`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Field invite not found`)

```json
{
  "errors": [
    {
      "code": 66502,
      "message": "Field invite not found"
    }
  ]
}
```

**Example** (`Incorrect invite id or signature request id`)

```json
{
  "errors": [
    {
      "code": 66360,
      "message": "Signature request not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/invite/{invite_id}/cancel" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"reason": "The document was sent by mistake."}'
```

---

## GET /v2/documents/{document_id}/free-form-invites — Get freeform invites

This endpoint allows API users to retrieve the list of FreeForm invites for a document.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `per_page` | integer | No | How many search items to view per page. Allowed values: positive integers from 1 to 100. |
| `page` | integer | No | How many pages to fit the results in. Allowed values: any positive integer starting from 1. |
| `filters` | array | No | JSON encoded array of filters. |

## Responses

### 200

Successful response. Returns the FreeForm invites of the document with their status. `data` is empty if no FreeForm invites were sent.

**Example** (`No invites`)

```json
{
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

**Example** (`Invite has been canceled`)

```json
{
  "data": [
    {
      "id": "5b459e784adb0ed64b216c7a45a4bf57400ab65e",
      "email": "signer1@email.com",
      "status": "canceled",
      "created": 1578561895
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

**Example** (`Correct request (invite sent)`)

```json
{
  "data": [
    {
      "id": "5b459e784adb0ed64b216c7a45a4bf57400ab65e",
      "email": "signer1@email.com",
      "status": "pending",
      "created": 1578561895
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

**Example** (`Invite accepted, document signed`)

```json
{
  "data": [
    {
      "id": "960adf0e4244e17d6cb8da6904a37324e0116263",
      "email": "signer1@email.com",
      "status": "fulfilled",
      "created": 1578562606
    }
  ],
  "meta": {
    "pagination": {
      "count": 2,
      "links": [],
      "total": 2,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* Wrong, expired, or missing token.
* Document not found.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/documents/{document_id}/free-form-invites" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/document-groups/{document_group_id}/embedded-invites — Create embedded invite

This endpoint allows users to create an embedded signing invite for a document group. Once the invite is created, generate an embedded signing link using [`POST /document-groups/{{document_group_id}}/embedded-invites/{{embedded_invite_id}}/link`](/docs/doc-group-embedded-signing/operations/generate-link-for-embedded-invite-document-group)  with the ID you got in the response.

Before sending your request, ensure the following:
* You are the owner of the document group to be signed.
* Every document in the payload is a part of a document group.
* The document group contains at least one document.
* The document group is not part of any other invite (pending or signed).
* At least one document in the document group contains fields.
* Signers' email addresses are unique and do not exceed 150 characters.
* All roles or role IDs in the document group are included in the invite (specifying extra roles will result in an error).

**Action types** in `documents`:

* `sign`: the recipient signs the document.
* `view`: the recipient views the document.
* `approve`: the recipient approves the document without signing or filling fields. Only one approver is allowed per invite step, the step must not include other actions, and all document IDs in the document group must be listed for the approver.

Parameters `role` and `role_id` can be retrieved from the response from [`GET /document/{{document_id}}`](/docs/document/operations/get-document). Specify a role either by `role` (unique role name, e.g. “Signer 1”), `role_id` (unique role identifier), or both `role` and `role_id`. Ensure they correspond to each other.

Use these parameters to customize the request:

<details>
<summary><b>Recipient authentication for the signing session</b></summary>

Use the `authentication` object to set up the signer's authentication for the signing session.

* Authentication type: `phone`, method: `sms`. Note that `sms_message` parameter must contain `{password}` placeholder.
This method is used to authenticate the signer using a password sent via SMS.

```json
"authentication": {
    "type": "phone",
    "method": "sms",
    "phone": "+1XXXXXXXXX",
    "sms_message": "Custom test message with {password}"
}
```

* Authentication type: `phone`,  method: `phone_call`
This method is used to authenticate the signer with a password delivered via a phone call.

```json
"authentication": {
    "type": "phone",
    "method": "phone_call",
    "phone": "+1XXXXXXXXX"
}
```
* Authentication type: `password`
This method is used to authenticate the signer using a pre-set password.

```json
"authentication": {
    "type": "password",
    "password": "123456"
}
```
</details>
<br>

<details>

<summary><b>auth_method</b> used in the integrated application</summary>

The `auth_method` parameter is defined by the application owner to specify the method used to authenticate the recipient (signer or approver) within the integrated application.
Possible values are: `password`, `email`, `social`, `mfa`, `biometric`, `other`, `none`.

**Note**: The `auth_method` parameter does not influence the recipient's authentication method during the signing or approval session. Use the `authentication` object to configure authentication for the session.

</details>
</br>

<details>

<summary><b>from_email, from_name</b></summary>

Use `from_email` and `from_name` parameters to customize the appearance of the sender's email address and name. 

Note that both parameters are optional and applicable only when `delivery_type`=`email`.

Explore the three scenarios of passing the `from_name` and `from_email` parameters:

**When both `from_email` and `from_name` are passed:**

The custom `from_name` appears:

- in email subject of the invite, reassign, reminder, and completed emails.

The custom `from_email` appears:

- in email body of the invite, reassign, reminder, and completed emails.
- when clicking **Contact Sender** and in **Reply-to** in the emails.
- in the signing session: when clicking **Contact Sender** in the **More Actions** menu.

---

**When only `from_email` is passed:**

The local part of `from_email` (before `@`) appears:

- in email subject of the invite, reassign, reminder, and completed emails.

The custom `from_email` appears:

- in email body of the invite, reassign, reminder, and completed emails.
- when clicking **Contact Sender** and in **Reply-to** in the emails.
- in the signing session: when clicking **Contact Sender** in the **More Actions** menu.

---

**When only `from_name` is passed:**

The custom `from_name` appears:

- in email subject of the invite, reassign, reminder, and completed emails.

The default (owner’s) `from_email` appears:

- in email body of the invite, reassign, reminder, and completed emails.
- when clicking **Contact Sender** and in **Reply-to** in the emails.
- in the signing session: when clicking **Contact Sender** in the **More Actions** menu.

</details>

<br>

Learn more about [embedded signing](/docs/guides-embedded-signing).


## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "invites"
  ],
  "properties": {
    "invites": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "order",
          "signers"
        ],
        "properties": {
          "order": {
            "type": "integer",
            "example": 1,
            "description": "Order step. On \"order\": 1, all recipients of this step receive an email with the invite at the same time. Only when they complete all the actions, the \"order\": 2 emails are sent."
          },
          "signers": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "email",
                "auth_method",
                "documents"
              ],
              "properties": {
                "email": {
                  "type": "string",
                  "example": "signer1@email.com",
                  "description": "Recipient's email to receive the invite."
                },
                "message": {
                  "type": "string",
                  "example": "Please review the invoice and sign it at your earliest convenience.",
                  "maxLength": 5000,
                  "description": "Invite email message. Available if the `delivery_type` = `email`. Overrides branding settings when sending emails."
                },
                "subject": {
                  "type": "string",
                  "example": "Review and sign the invoice.",
                  "maxLength": 1000,
                  "description": "Invite email subject. Available if the `delivery_type` = `email`. Overrides branding settings when sending emails."
                },
                "language": {
                  "enum": [
                    "en",
                    "es",
                    "fr"
                  ],
                  "type": "string",
                  "example": "en",
                  "description": "Sets the language of the signing session for the recipient. Possible values: `en` for English, `es` for Spanish, `fr` for French."
                },
                "documents": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "id",
                      "role",
                      "action"
                    ],
                    "properties": {
                      "id": {
                        "type": "string",
                        "example": "cd78bf43ce4b454b89d8bcd535437a939687d77a",
                        "description": "ID of the document."
                      },
                      "role": {
                        "type": "string",
                        "example": "Signer 1",
                        "description": "Recipient role in the document."
                      },
                      "action": {
                        "enum": [
                          "sign",
                          "view",
                          "approve"
                        ],
                        "type": "string",
                        "example": "sign",
                        "description": "Action required in the document. Allowed values: `sign`, `view`, `approve`."
                      }
                    }
                  },
                  "minItems": 1,
                  "description": "Array of documents in the document group that the recipient is assigned to. For each document in the array, the document ID, role, and action are specified.",
                  "uniqueItems": true
                },
                "last_name": {
                  "type": "string",
                  "example": "Doe",
                  "description": "Recipient's last name."
                },
                "signature": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "Type of the QES. Allowed values are `eideasy`, `nom151`. For more information, see [QES user guide](/docs/qualified-electronic-signature).",
                      "x-stoplight": {
                        "id": "f52xc03m68mhr"
                      }
                    }
                  },
                  "description": "This object is used to request QES signatures from signers. To create an embedded invite with QES, a user must be a member of an organization with QES settings enabled. If QES is specified, it must be used for all signers in the invite.",
                  "x-stoplight": {
                    "id": "4l37sc9i5nrai"
                  }
                },
                "first_name": {
                  "type": "string",
                  "example": "John",
                  "description": "Recipient's first name."
                },
                "auth_method": {
                  "enum": [
                    "password",
                    "email",
                    "mfa",
                    "social",
                    "biometric",
                    "other",
                    "none"
                  ],
                  "type": "string",
                  "example": "none",
                  "description": "Defines the method used to authenticate the recipient within the integrated application. Allowed values: `password`, `email`, `mfa`, `biometric`, `social`, `other`, `none`."
                },
                "redirect_uri": {
                  "type": "string",
                  "example": "https://example.com",
                  "description": "The link that opens after the signing session has been completed. Not applicable for `approve` action."
                },
                "authentication": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "password",
                      "description": "Authentication type used for the recipient authentication during the signing session. Required inside `authentication` object. Allowed values: `phone`, `password`.",
                      "x-stoplight": {
                        "id": "jhnd9v2akswlc"
                      }
                    },
                    "phone": {
                      "type": "string",
                      "example": "+1XXXXXXXXX",
                      "description": "Phone number used to authenticate the recipient. Required inside `authentication` object with the `phone` method.",
                      "x-stoplight": {
                        "id": "17bkxyj2hyn20"
                      }
                    },
                    "method": {
                      "enum": [
                        "sms",
                        "phone_call"
                      ],
                      "type": "string",
                      "example": "sms",
                      "description": "Method of the `phone` authentication type. Required inside `authentication` object with the `phone` authentication type. Allowed values: `sms`, `phone_call`.",
                      "x-stoplight": {
                        "id": "05v5ow6u33pl7"
                      }
                    },
                    "password": {
                      "type": "string",
                      "example": "123456",
                      "description": "Password set for the recipient authentication. Required inside the `authentication` object with the `password` authentication type.",
                      "x-stoplight": {
                        "id": "djknubzhv860p"
                      }
                    },
                    "sms_message": {
                      "type": "string",
                      "example": "Enter the password {password} to unlock your document.",
                      "maxLength": 140,
                      "description": "Custom sms message sent to the recipient, containing the {password} placeholder. Used with the `sms` method. Without this parameter, the recipient receives a default sms with an autogenerated password (unlock code) - \"SignNow document invite unlock code: 123456\".",
                      "x-stoplight": {
                        "id": "qtiiuw1moy109"
                      }
                    }
                  },
                  "description": "Authentication settings used to verify the recipient's identity.",
                  "x-stoplight": {
                    "id": "sv5qxsfa96acg"
                  }
                },
                "delivery_type ": {
                  "type": "string",
                  "example": "link",
                  "description": "Defines how the invite is sent. Allowed values: `email`, `link`."
                },
                "link_expiration": {
                  "type": "integer",
                  "maximum": 43200,
                  "minimum": 15,
                  "description": "In how many minutes the email invite expires. Can be used only if `delivery_type`=`email`."
                },
                "redirect_target": {
                  "enum": [
                    "blank",
                    "self"
                  ],
                  "type": "string",
                  "default": "self",
                  "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Allowed values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab. Not applicable for `approve` action."
                },
                "close_redirect_uri": {
                  "type": "string",
                  "example": "https://example.com",
                  "description": "The link that opens when a recipient clicks **Save Progress and Finish Later** during a signing session or **Close** in view mode. Not applicable for `approve` action.",
                  "x-stoplight": {
                    "id": "nydnzpctz8foj"
                  }
                },
                "session_expiration": {
                  "type": "integer",
                  "maximum": 1440,
                  "minimum": 15,
                  "description": "In how many minutes the signing session expires. If a link is generated for this invite, the session expiration is reset. Can be used only if `delivery_type=email` and only for sign actions.",
                  "x-stoplight": {
                    "id": "tdzp2yb274yqj"
                  }
                },
                "force_new_signature": {
                  "type": "integer",
                  "example": 0,
                  "description": "Defines whether the signer can use their saved signature or not. If set to 1, the signer has to add a new signature. If set to 0, the signer can use the saved signature."
                },
                "decline_redirect_uri": {
                  "type": "string",
                  "example": "https://example.com",
                  "description": "The link that opens after the signing session has been declined by the recipient. Not applicable for `approve` action."
                },
                "prefill_signature_name": {
                  "type": "string",
                  "example": "John Doe",
                  "maxLength": 255,
                  "description": "The text displayed in the Signature field. The signer can edit this value."
                },
                "required_preset_signature_name": {
                  "type": "string",
                  "example": "John Doe",
                  "description": "The text displayed in the Signature field. The signer cannot edit this value. Cannot be used simultaneously with `prefill_signature_name` or `force_new_signature` for the same role."
                }
              }
            },
            "minItems": 1,
            "description": "Array of recipient objects that must receive their invites at this step. Each object contains: recipient's email address, authentication method, documents they are assigned to, and the role assigned to them in the documents.",
            "uniqueItems": true
          }
        }
      },
      "minItems": 1,
      "description": "Array of invite objects that includes order and settings for different recipients.",
      "uniqueItems": true
    },
    "from_name": {
      "type": "string",
      "example": "Jane Doe",
      "maxLength": 300,
      "description": "Use this attribute to customize the name that appears in email subject of the invite, reassign, reminder, and completed emails. Note: applicable when `delivery_type`=`email`."
    },
    "from_email": {
      "type": "string",
      "example": "sender@email.com",
      "maxLength": 255,
      "description": "Use this attribute to customize the email address that appears: 1) in the invite, reassign, reminder, and completed emails: in email subject (part before @) and email body; when clicking Contact Sender, and in Reply-to; 2) in the signing session: when clicking the Contact Sender button in the More Actions menu. Note: applicable when `delivery_type`=`email`."
    }
  }
}
```

**Example** (`Request with QES`)

```json
{
  "invites": [
    {
      "order": 1,
      "signers": [
        {
          "email": "signer1@email.com",
          "message": "Please review the invoice and sign it at your earliest convenience.",
          "subject": "Sign the invoice",
          "language": "es",
          "documents": [
            {
              "id": "43d827e0f4cdd4dec50dc88d5eb3ef9ccf957a88",
              "role": "Signer 1",
              "action": "sign"
            },
            {
              "id": "ff3bbf4c3012fed8075abfcc2c5879eb32d9c16a",
              "action": "view"
            }
          ],
          "last_name": "Doe",
          "signature": {
            "type": "eideasy"
          },
          "first_name": "John",
          "auth_method": "none",
          "redirect_uri": "https://example.com",
          "delivery_type": "email",
          "authentication": {
            "type": "password",
            "password": "12345qwerty"
          },
          "link_expiration": 15,
          "redirect_target": "blank",
          "close_redirect_uri": "https://example.com",
          "session_expiration": 15,
          "decline_redirect_uri": "https://signnow.com",
          "prefill_signature_name": "Recipient signature"
        }
      ]
    },
    {
      "order": 2,
      "signers": [
        {
          "email": "signer2@email.com",
          "language": "en",
          "documents": [
            {
              "id": "43d827e0f4cdd4dec50dc88d5eb3ef9ccf957a88",
              "role": "Signer 2",
              "action": "sign"
            }
          ],
          "signature": {
            "type": "eideasy"
          },
          "auth_method": "none",
          "authentication": {
            "type": "phone",
            "phone": "+12025550147",
            "method": "phone_call"
          }
        }
      ]
    }
  ],
  "from_name": "Jane Doe",
  "from_email": "sender@email.com"
}
```

**Example** (`Request with approver and signer authentication`)

```json
{
  "invites": [
    {
      "order": 1,
      "signers": [
        {
          "email": "approver@email.com",
          "language": "en",
          "documents": [
            {
              "id": "43d827e0f4cdd4dec50dc88d5eb3ef9ccf957a88",
              "role": "Approver 1",
              "action": "approve"
            },
            {
              "id": "ff3bbf4c3012fed8075abfcc2c5879eb32d9c16a",
              "role": "Approver 1",
              "action": "approve"
            },
            {
              "id": "740b0acf271c7e44a12816cbde328b9eaf83fd8c",
              "role": "Approver 1",
              "action": "approve"
            },
            {
              "id": "dabf044ff39d691707264cd94dc10ece891aa120",
              "role": "Approver 1",
              "action": "approve"
            }
          ],
          "last_name": "Williams",
          "first_name": "Sarah",
          "auth_method": "none",
          "authentication": {
            "type": "phone",
            "phone": "+12025550147",
            "method": "sms",
            "sms_message": "Verification code is {password}"
          }
        }
      ]
    },
    {
      "order": 2,
      "signers": [
        {
          "email": "signer1@email.com",
          "message": "Please review the invoice and sign it at your earliest convenience.",
          "subject": "Sign the invoice",
          "language": "es",
          "documents": [
            {
              "id": "43d827e0f4cdd4dec50dc88d5eb3ef9ccf957a88",
              "role": "Signer 1",
              "action": "sign"
            },
            {
              "id": "ff3bbf4c3012fed8075abfcc2c5879eb32d9c16a",
              "action": "view"
            }
          ],
          "last_name": "Doe",
          "first_name": "John",
          "auth_method": "none",
          "redirect_uri": "https://example.com",
          "delivery_type": "email",
          "authentication": {
            "type": "password",
            "password": "12345qwerty"
          },
          "link_expiration": 15,
          "redirect_target": "blank",
          "close_redirect_uri": "https://example.com",
          "session_expiration": 15,
          "decline_redirect_uri": "https://signnow.com",
          "prefill_signature_name": "Recipient signature"
        }
      ]
    },
    {
      "order": 3,
      "signers": [
        {
          "email": "signer2@email.com",
          "language": "en",
          "documents": [
            {
              "id": "43d827e0f4cdd4dec50dc88d5eb3ef9ccf957a88",
              "role": "Signer 2",
              "action": "sign"
            }
          ],
          "auth_method": "none",
          "authentication": {
            "type": "phone",
            "phone": "+12025550147",
            "method": "phone_call"
          }
        },
        {
          "email": "signer3@email.com",
          "language": "en",
          "documents": [
            {
              "id": "740b0acf271c7e44a12816cbde328b9eaf83fd8c",
              "role": "Signer 3",
              "action": "sign"
            },
            {
              "id": "dabf044ff39d691707264cd94dc10ece891aa120",
              "role": "Signer 3",
              "action": "sign"
            }
          ],
          "auth_method": "none",
          "authentication": {
            "type": "phone",
            "phone": "+12025550147",
            "method": "sms",
            "sms_message": "Enter the password to unlock your document. Password: {password}"
          }
        }
      ]
    }
  ],
  "from_name": "Jane Doe",
  "from_email": "sender@email.com"
}
```

## Responses

### 201

Returns the ID of the created invite object.

**Example** (`Successful response`)

```json
{
  "data": {
    "id": "132795de6dca9f933bb81207938ecff83bb2be95"
  }
}
```

### 400

* Document in the payload is not part of document group.
* Document group has no documents.
* Document group has no fields.
* Nonexistent role in payload.
* Not all document roles were used.
* Orders are not unique.
* The order sequence is incorrect.
* Doc ID is not unique for one signer within a step.
* {Document ID + role} must be unique across the entire payload.
* Email is not unique within a single step.

**Validation errors**:

* The `required_preset_signature_name` is not a string.
* The `required_preset_signature_name` value is empty.
* The `required_preset_signature_name` is too long (should be less than 255 characters).
* The `required_preset_signature_name` contains unsupported characters.
* The `language` is not a string.
* The `language` attribute is incorrect, allowed values: `en`, `fr`, `es`.
* Field `redirect_uri` is not a string.
* Field `redirect_uri` is empty.
* Field `redirect_uri` is not a valid URL.
* Field `decline_redirect_uri` is not a string.
* Field `decline_redirect_uri` is empty.
* Field `decline_redirect_uri` is not a valid URL.
* The `redirect_target` value is not a string.
* The `redirect_target` attribute is incorrect, allowed values: `self`, `blank`.
* The one of `redirect_uri` fields is required when `redirect_target` is added.
* Parameter `redirect_uri` is too long (must not exceed 2048 characters).
* Parameter `decline_redirect_uri` is too long (must not exceed 2048 characters).
* Parameter `delivery_type` is not a string.
* Incorrect `delivery_type` value. Possible values: `email`, `link`.
* Parameter `link_expiration` is not an integer.
* Parameter `link_expiration` is incorrect (must be equal to 15 or more).
* Parameter `link_expiration` is incorrect (must be equal to 45 or less).
* Parameter `link_expiration` can only be used if `delivery_type=email`.
* Parameter `session_expiration` is not an integer.
* Parameter `session_expiration` is out of range.
* Parameter `session_expiration` is used with an incorrect `delivery_type` value.
* Parameter `session_expiration` is used with an incorrect action.
* Parameter `subject` in `signers` is not a string.
* Parameter `subject` in `signers` is empty.
* Parameter `subject` in `signers` is too long.
* Parameter `subject` in `signers` contains unsupported characters.
* Parameter `subject` in `signers` is used when `delivery_type` is not `email`.
* Parameter `message` in `signers` is not a string.
* Parameter `message` in `signers` is empty.
* Parameter `message` in `signers` is too long.
* Parameter `message` in `signers` contains unsupported characters.
* Parameter `message` in `signers` is used when `delivery_type` is not `email`.
* The `prefill_signature_name` format is wrong.
* The `prefill_signature_name` is empty.
* The`prefill_signature_name` contains unsupported characters.
* The `prefill_signature_name` is too long.

**Recipient authentication errors**:

* The `authentication.method` value is incorrect.
* The `authentication` field is empty.
* The `authentication.type` value type is incorrect.
* The `authentication.type` field is required.
* The `authentication.type` field value is incorrect.
* The `authentication.password` value type is incorrect.
* The `authentication.password` field is required.
* The `authentication.method` value type is incorrect.
* The `authentication.method` field is required.
* The `authentication.method` value is incorrect.
* The `authentication.phone` value type is incorrect.
* The `authentication.phone` field is required.
* The `authentication.phone` value is incorrect.
* The `authentication.sms_message` value type is incorrect.
* The `authentication.sms_message` value is too long.
* The `authentication.sms_message` value contains unsupported characters.
* The `authentication.sms_message` must include a {password} placeholder.
* The `authentication` is set for recipients with unsupported actions.
* The `authentication` must be used when the `sign_as_merged` field is set to `true`.



**QES-specific errors**:

* The `signature.type` value  is empty.
* The `signature.type` value is not supported.
* Multiple signers were found in a single step.
* Different signature providers assigned to signers.
* The `signature` field type is incorrect.
* The `signature.type` value type is incorrect.
* The user is not part of the organization.
* The organization has no advanced sign provider enabled.

**Approve-action errors**:

* The `action` value is not one of `sign`, `view`, `approve`.
* More than one `approve` action is used in the same invite step.
* An invite step with an `approve` action also includes other actions.
* Not all document group document IDs are listed for the approver.
* The `role` field is missing for an approve action.
* Custom `subject` or `message` for a signer with `delivery_type` `email`, without a paid API plan, an API free trial, or a Site License.
* Custom authentication `sms_message` without a paid API plan, an API free trial, or a Site License.

**Example** (`Message is empty`)

```json
{
  "errors": [
    {
      "code": 19021107,
      "message": "The `message` field in `signers` must not be empty string."
    }
  ]
}
```

**Example** (`Subject is empty`)

```json
{
  "errors": [
    {
      "code": 19021103,
      "message": "The `subject` field in `signers` must not be empty string."
    }
  ]
}
```

**Example** (`Orders not unique`)

```json
{
  "errors": [
    {
      "code": 19017030,
      "message": "Orders must be unique."
    }
  ]
}
```

**Example** (`Message is too long`)

```json
{
  "errors": [
    {
      "code": 19021108,
      "message": "The `message` field in `signers` must contain no more than 5000 characters."
    }
  ]
}
```

**Example** (`Subject is too long`)

```json
{
  "errors": [
    {
      "code": 19021104,
      "message": "The `subject` field in `signers` must contain no more than 1000 characters."
    }
  ]
}
```

**Example** (`signature.type empty`)

```json
{
  "errors": [
    {
      "code": 19021076,
      "message": "The `signature.type` must not be empty for elements in the `signers` array."
    }
  ]
}
```

**Example** (`Message is not string`)

```json
{
  "errors": [
    {
      "code": 19021106,
      "message": "The `message` field in `signers` must be a string."
    }
  ]
}
```

**Example** (`Subject is not string`)

```json
{
  "errors": [
    {
      "code": 19021102,
      "message": "The `subject` field in `signers` must be a string."
    }
  ]
}
```

**Example** (`Invalid order sequence`)

```json
{
  "errors": [
    {
      "code": 19017031,
      "message": "Orders must begin with 1 and the increment between orders must be equal to one."
    }
  ]
}
```

**Example** (`Action value is invalid`)

```json
{
  "errors": [
    {
      "code": 19021026,
      "message": "The `action` must be one of the following types: `sign`, `view`, `approve`."
    }
  ]
}
```

**Example** (`Authentication is empty`)

```json
{
  "errors": [
    {
      "code": 19021083,
      "message": "The authentication field in signers must not be empty."
    }
  ]
}
```

**Example** (`Incorrect delivery_type`)

```json
{
  "errors": [
    {
      "code": 19021064,
      "message": "The `delivery_type` field is invalid, allowed values: email, link."
    }
  ]
}
```

**Example** (`link_expiration too big`)

```json
{
  "errors": [
    {
      "code": 19022006,
      "message": "The `link_expiration` field must be less than or equal to 45 minutes."
    }
  ]
}
```

**Example** (`User not in organization`)

```json
{
  "errors": [
    {
      "code": 19022009,
      "message": "Organization is required to send an invite with advanced signing."
    }
  ]
}
```

**Example** (`delivery_type not string`)

```json
{
  "errors": [
    {
      "code": 19021063,
      "message": "The `delivery_type` field must be a string."
    }
  ]
}
```

**Example** (`Redundant link_expiration`)

```json
{
  "errors": [
    {
      "code": 19021067,
      "message": "The `link_expiration` field must be used if the `delivery_type` field contains `email`."
    }
  ]
}
```

**Example** (`Role required for approve`)

```json
{
  "errors": [
    {
      "code": 19021035,
      "message": "Field `role` is required for sign, approve actions."
    }
  ]
}
```

**Example** (`No advanced sign providers`)

```json
{
  "errors": [
    {
      "code": 19022008,
      "message": "The sender organization\u2019s advanced sign provider is not valid."
    }
  ]
}
```

**Example** (`link_expiration too little`)

```json
{
  "errors": [
    {
      "code": 19021066,
      "message": "The `link_expiration` field must be greater than or equal to 15 minutes."
    }
  ]
}
```

**Example** (`Nonexistent role in payload`)

```json
{
  "errors": [
    {
      "code": 19018004,
      "message": "Role {{ roleName }} is not found on document {{ documentUniqueId }}."
    }
  ]
}
```

**Example** (`Signature type is incorrect`)

```json
{
  "errors": [
    {
      "code": 19021081,
      "message": "The `signature` field in `signers` must be an array."
    }
  ]
}
```

**Example** (`link_expiration not integer`)

```json
{
  "errors": [
    {
      "code": 19021065,
      "message": "The `link_expiration` field must be an integer."
    }
  ]
}
```

**Example** (`Document group has no fields`)

```json
{
  "errors": [
    {
      "code": 19018002,
      "message": "At least one document in document group must contain fields."
    }
  ]
}
```

**Example** (`signature.type not supported`)

```json
{
  "errors": [
    {
      "code": 19021077,
      "message": "The `signature.type` attribute is not valid, allowed values: \"eideasy\", \"nom151\"."
    }
  ]
}
```

**Example** (`Approver missing document IDs`)

```json
{
  "errors": [
    {
      "code": 19022014,
      "message": "For an `approve` action, all document IDs from the document group must be specified."
    }
  ]
}
```

**Example** (`Different signature providers`)

```json
{
  "errors": [
    {
      "code": 19021079,
      "message": "The `signature.type` fields must be the same for all signers."
    }
  ]
}
```

**Example** (`Multiple signers for one step`)

```json
{
  "errors": [
    {
      "code": 19021080,
      "message": "Must have only one signer per step if a signature field exists."
    }
  ]
}
```

**Example** (`session_expiration for viewer`)

```json
{
  "errors": [
    {
      "code": 19021075,
      "message": "The `session_expiration` field must be used if at least one of the `action` field in `documents` contains `sign`."
    }
  ]
}
```

**Example** (`session_expiration not integer`)

```json
{
  "errors": [
    {
      "code": 19021072,
      "message": "The `session_expiration` field must be an integer."
    }
  ]
}
```

**Example** (`Authentication.type is required`)

```json
{
  "errors": [
    {
      "code": 19021085,
      "message": "The authentication.type field in signers is required."
    }
  ]
}
```

**Example** (`Document group has no documents`)

```json
{
  "errors": [
    {
      "code": 19018001,
      "message": "Document group must contain at least one document."
    }
  ]
}
```

**Example** (`More than one approve in a step`)

```json
{
  "errors": [
    {
      "code": 19021122,
      "message": "Only one `approve` action is allowed per invite step."
    }
  ]
}
```

**Example** (`SMS customization not available`)

```json
{
  "errors": [
    {
      "code": 19022011,
      "message": "Upgrade your subscription plan to customize SMS for authorization."
    }
  ]
}
```

**Example** (`prefill_signature_name is empty`)

```json
{
  "errors": [
    {
      "code": 19021121,
      "message": "The `prefill_signature_name` value must not be empty string."
    }
  ]
}
```

**Example** (`prefill_signature_name too long`)

```json
{
  "errors": [
    {
      "code": 19021120,
      "message": "The `prefill_signature_name` is too long. It should have 255 characters or less."
    }
  ]
}
```

**Example** (`session_expiration out of range`)

```json
{
  "errors": [
    {
      "code": 19021073,
      "message": "The `session_expiration` must be between 15 and 1440."
    }
  ]
}
```

**Example** (`Authentication.phone is required`)

```json
{
  "errors": [
    {
      "code": 19021093,
      "message": "The authentication.phone field in signers is required."
    }
  ]
}
```

**Example** (`Not all document roles were used`)

```json
{
  "errors": [
    {
      "code": 19018003,
      "message": "Role {{ roleName }} on document {{ documentUniqueId }} was not specified."
    }
  ]
}
```

**Example** (`session_expiration with no email`)

```json
{
  "errors": [
    {
      "code": 19021074,
      "message": "The `session_expiration` field must be used if the `delivery_type` field contains `email`."
    }
  ]
}
```

**Example** (`Authentication.method is required`)

```json
{
  "errors": [
    {
      "code": 19021090,
      "message": "The authentication.method field in signers is required."
    }
  ]
}
```

**Example** (`Email customization not available`)

```json
{
  "errors": [
    {
      "code": 19022012,
      "message": "Upgrade your subscription plan to personalize invite subject and message."
    }
  ]
}
```

**Example** (`Authentication with sign_as_merged`)

```json
{
  "errors": [
    {
      "code": 19021101,
      "message": "The authentication field must be used if the sign_as_merged field is set to true."
    }
  ]
}
```

**Example** (`Authentication.method is incorrect`)

```json
{
  "errors": [
    {
      "code": 19021082,
      "message": "The `authentication.method` field in `signers` is invalid."
    }
  ]
}
```

**Example** (`Authentication.password is required`)

```json
{
  "errors": [
    {
      "code": 19021088,
      "message": "The authentication.password field is required."
    }
  ]
}
```

**Example** (`Email is not unique within one step`)

```json
{
  "errors": [
    {
      "code": 19017032,
      "message": "Email must be unique within one invite step."
    }
  ]
}
```

**Example** (`prefill_signature_name not a string`)

```json
{
  "errors": [
    {
      "code": 19021118,
      "message": "Field `prefill_signature_name` must be a string."
    }
  ]
}
```

**Example** (`Approve step mixed with other actions`)

```json
{
  "errors": [
    {
      "code": 19021123,
      "message": "An invite step with an `approve` action must not include any other actions."
    }
  ]
}
```

**Example** (`Authentication.phone type is incorrect`)

```json
{
  "errors": [
    {
      "code": 19021092,
      "message": "The authentication.phone field in signers must be a string."
    }
  ]
}
```

**Example** (`Authentication.sms_message is too long`)

```json
{
  "errors": [
    {
      "code": 19021096,
      "message": "The authentication.sms_message field in signers must contain no more than 140 characters."
    }
  ]
}
```

**Example** (`Authentication.type value is incorrect`)

```json
{
  "errors": [
    {
      "code": 19021086,
      "message": "The `authentication.type` field in signers is invalid."
    }
  ]
}
```

**Example** (`signature.type value type is incorrect`)

```json
{
  "errors": [
    {
      "code": 19021078,
      "message": "The `signature.type` must be a string."
    }
  ]
}
```

**Example** (`Authentication.method type is incorrect`)

```json
{
  "errors": [
    {
      "code": 19021089,
      "message": "The authentication.method field in signers must be a string."
    }
  ]
}
```

**Example** (`Authentication.phone value is incorrect`)

```json
{
  "errors": [
    {
      "code": 19021094,
      "message": "The authentication.phone field in signers contains an invalid phone number."
    }
  ]
}
```

**Example** (`Message contains unsupported characters`)

```json
{
  "errors": [
    {
      "code": 19021109,
      "message": "The `message` field in `signers` must not contain 4-byte characters."
    }
  ]
}
```

**Example** (`Subject contains unsupported characters`)

```json
{
  "errors": [
    {
      "code": 19021105,
      "message": "The `subject` field in `signers` must not contain 4-byte characters."
    }
  ]
}
```

**Example** (`Authentication.method value is incorrect`)

```json
{
  "errors": [
    {
      "code": 19021091,
      "message": "The `authentication.method` field in `signers` is invalid."
    }
  ]
}
```

**Example** (`Message is used with wrong delivery_type`)

```json
{
  "errors": [
    {
      "code": 19021110,
      "message": "In `signers`, the `subject` or `message` fields must be used if the `delivery_type` field contains `email`."
    }
  ]
}
```

**Example** (`Subject is used with wrong delivery_type`)

```json
{
  "errors": [
    {
      "code": 19021110,
      "message": "In `signers`, the `subject` or `message` fields must be used if the `delivery_type` field contains `email`."
    }
  ]
}
```

**Example** (`Authentication.password type is incorrect`)

```json
{
  "errors": [
    {
      "code": 19021087,
      "message": "The authentication.password field in signers must be a string."
    }
  ]
}
```

**Example** (`Authentication set for unsupported actions`)

```json
{
  "errors": [
    {
      "code": 19021100,
      "message": "The authentication field must be used if at least one action field in documents contains sign."
    }
  ]
}
```

**Example** (`Authentication.sms_message type is incorrect`)

```json
{
  "errors": [
    {
      "code": 19021095,
      "message": "The authentication.sms_message field in signers must be a string."
    }
  ]
}
```

**Example** (`Authentication.sms_message without placeholder`)

```json
{
  "errors": [
    {
      "code": 19021098,
      "message": "The authentication.sms_message field in signers must contain {password} placeholder."
    }
  ]
}
```

**Example** (`Doc Id is not unique for one signer within step`)

```json
{
  "errors": [
    {
      "code": 19017023,
      "message": "Document id must be unique for signer within one step."
    }
  ]
}
```

**Example** (`prefill_signature_name contains 4-byte characters`)

```json
{
  "errors": [
    {
      "code": 19021119,
      "message": "UTF 4-byte characters in `prefill_signature_name` are not supported."
    }
  ]
}
```

**Example** (`Authentication.sms_message has unsupported symbols`)

```json
{
  "errors": [
    {
      "code": 19021097,
      "message": "The authentication.sms_message field in signers must not contain 4-byte characters."
    }
  ]
}
```

**Example** (`{Document id + role} must be unique in all payload`)

```json
{
  "errors": [
    {
      "code": 19017033,
      "message": "Document id with role must be unique."
    }
  ]
}
```

**Example** (`Document in the payload is not part of document group`)

```json
{
  "errors": [
    {
      "code": 19018005,
      "message": "Document {documentUniqueId} is not part of the document group."
    }
  ]
}
```

### 403

User doesn't own the document group.

**Example** (`User doesn't own the document group`)

```json
{
  "code": 19001010,
  "message": "Current user is not document group owner."
}
```

### 422

Group invite already exists.

**Example** (`Group invite already exists`)

```json
{
  "errors": [
    {
      "code": 19001030,
      "message": "A group invite already exists for this document group."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/embedded-invites" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"invites": [{"order": 1, "signers": [{"email": "signer1@email.com", "message": "Please review the invoice and sign it at your earliest convenience.", "subject": "Sign the invoice", "language": "es", "documents": [{"id": "43d827e0f4cdd4dec50dc88d5eb3ef9ccf957a88", "role": "Signer 1", "action": "sign"}, {"id": "ff3bbf4c3012fed8075abfcc2c5879eb32d9c16a", "action": "view"}], "last_name": "Doe", "signature": {"type": "eideasy"}, "first_name": "John", "auth_method": "none", "redirect_uri": "https://example.com", "delivery_type": "email", "authentication": {"type": "password", "password": "12345qwerty"}, "link_expiration": 15, "redirect_target": "blank", "close_redirect_uri": "https://example.com", "session_expiration": 15, "decline_redirect_uri": "https://signnow.com", "prefill_signature_name": "Recipient signature"}]}, {"order": 2, "signers": [{"email": "signer2@email.com", "language": "en", "documents": [{"id": "43d827e0f4cdd4dec50dc88d5eb3ef9ccf957a88", "role": "Signer 2", "action": "sign"}], "signature": {"type": "eideasy"}, "auth_method": "none", "authentication": {"type": "phone", "phone": "+12025550147", "method": "phone_call"}}]}], "from_name": "Jane Doe", "from_email": "sender@email.com"}'
```

---

## DELETE /v2/document-groups/{document_group_id}/embedded-invites — Delete embedded invites

Deletes embedded invites for a document group.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Responses

### 204

Successful response. The embedded invites are deleted.

### 400

Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

The user isn't the document group owner.

**Example** (`Not the document group owner`)

```json
{
  "errors": [
    {
      "code": 19001010,
      "message": "Current user is not document group owner."
    }
  ]
}
```

### 404

The document group doesn't exist.

**Example** (`Document group not found`)

```json
{
  "errors": [
    {
      "code": 19002010,
      "message": "Document group `0aa11112b0ed40aab8cab111a76a6eea07f0000e` not found."
    }
  ]
}
```

### 422

The document group has no active embedded invites.

**Example** (`No active embedded invites`)

```json
{
  "errors": [
    {
      "code": 19001037,
      "message": "The document group does not have an active invitation."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/embedded-invites" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/document-groups/{document_group_id}/embedded-invites/{embedded_invite_id}/link — Generate embedded invite link

This endpoint allows API users to generate a link for a document group embedded invite.

Copy the document group embedded invite `id` from the response [`POST /v2/document-groups/{{document_group_id}}/embedded-invites`](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group). 

In your request specify:
* `email`: Signer's email address.

* `auth_method`: Pre-defined in [`POST /v2/document-groups/{document_group_id}/embedded-invites`](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group) request method used to authenticate the signer within the integrated application.


## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `embedded_invite_id` | string | Yes | ID of the embedded document group invite. |
| `document_group_id` | string | Yes | Document group ID. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "email",
    "auth_method"
  ],
  "properties": {
    "email": {
      "type": "string",
      "example": "signer1@email.com",
      "description": "Recipient's email address."
    },
    "auth_method": {
      "enum": [
        "password",
        "email",
        "mfa",
        "social",
        "biometric",
        "other",
        "none"
      ],
      "type": "string",
      "description": "Defines the method used to authenticate the recipient within the integrated application. Allowed values: `password`, `email`, `mfa`, `social`, `biometric`, `other`, `none`. Must match the value specified when creating the embedded invite."
    },
    "link_expiration": {
      "type": "integer",
      "maximum": 45,
      "minimum": 15,
      "description": "Specifies how many minutes the link will remain active. The allowed range is 15 to 45 minutes."
    },
    "session_expiration": {
      "type": "integer",
      "maximum": 1440,
      "minimum": 15,
      "description": "Specifies how many minutes the signing session will remain active.",
      "x-stoplight": {
        "id": "kkrakpitk9oc3"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "email": "j.doe@mail.com",
  "auth_method": "none",
  "link_expiration": 15,
  "session_expiration": 15
}
```

## Responses

### 200

Success. Returns a link for embedded invite.

**Example** (`Successful response`)

```json
{
  "data": {
    "link": "https://example.com/document_group/014978f4f32238a53bfe3adc97e9dfdb7f2d924c"
  }
}
```

### 400

* 19020009 - `session_expiration` is not an integer.
* 19020010 - `session_expiration` is out of range.

**Example** (`session_expiration not integer`)

```json
{
  "errors": [
    {
      "code": 19020009,
      "message": "The `session_expiration` field must be an integer."
    }
  ]
}
```

**Example** (`session_expiration out of range`)

```json
{
  "errors": [
    {
      "code": 19020010,
      "message": "The `session_expiration` field must be between 15 and 1440."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/embedded-invites/{embedded_invite_id}/link" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email": "j.doe@mail.com", "auth_method": "none", "link_expiration": 15, "session_expiration": 15}'
```

---

## GET /v2/document-groups/{document_group_id}/recipients — Get doc group recipients

This endpoint allows API users to retrieve the list of recipients of a document group invite.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Responses

### 200

Success with email group block

**Example** (`Successful response`)

```json
{
  "data": {
    "cc": [
      "cc_recipient1@email.com",
      "cc_recipient2@email.com"
    ],
    "order_type": null,
    "recipients": [
      {
        "name": "Buyer",
        "email": "buyer@email.com",
        "order": 1,
        "documents": [
          {
            "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
            "role": "Buyer_viewer_role_id_05ffe410-4fbf-49be-a9a4-9583c11d1b40",
            "action": "view"
          },
          {
            "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
            "role": "Buyer",
            "action": "sign"
          }
        ],
        "attributes": {
          "message": "Please contact for any questions",
          "subject": "Review and sign documents",
          "reminder": {
            "remind_after": 3,
            "remind_before": 5,
            "remind_repeat": 7
          },
          "redirect_uri": "https://example.com",
          "allow_reassign": "0",
          "authentication": {
            "type": "password",
            "value": "1233456"
          },
          "i_am_recipient": false,
          "expiration_days": 30,
          "redirect_target": "blank",
          "allow_forwarding": false,
          "close_redirect_uri": "https://close-redirect-uri.com",
          "show_decline_button": true,
          "decline_by_signature": 0,
          "decline_redirect_uri": "https://signnow.com"
        },
        "email_group": {
          "id": null
        },
        "phone_invite": null
      },
      {
        "name": "Seller",
        "email": "seller@email.com",
        "order": 2,
        "documents": [
          {
            "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
            "role": "Seller_viewer_role_id_ab14c5a0-aaac-4949-898c-12e7dba34d56",
            "action": "view"
          },
          {
            "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
            "role": "Seller",
            "action": "sign"
          }
        ],
        "attributes": {
          "message": "Please contact for any questions",
          "subject": "Review and sign documents",
          "reminder": {
            "remind_after": 3,
            "remind_before": 5,
            "remind_repeat": 7
          },
          "redirect_uri": "https://example.com",
          "allow_reassign": "0",
          "authentication": {
            "type": "password",
            "value": "1233456"
          },
          "i_am_recipient": false,
          "expiration_days": 30,
          "redirect_target": "blank",
          "allow_forwarding": false,
          "close_redirect_uri": "https://close-redirect-uri.com",
          "show_decline_button": true,
          "decline_by_signature": 0,
          "decline_redirect_uri": "https://signnow.com"
        },
        "email_group": {
          "id": null
        },
        "phone_invite": null
      },
      {
        "name": "Approver",
        "email": "approver@email.com",
        "order": 3,
        "documents": [
          {
            "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
            "role": "Approver",
            "action": "approve"
          },
          {
            "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
            "role": "Approver",
            "action": "approve"
          }
        ],
        "attributes": {
          "email": "approver@email.com",
          "message": "Please contact for any questions",
          "subject": "Review and approve documents",
          "document_id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
          "redirect_uri": "https://www.signnow.com/",
          "authentication": {
            "type": "password",
            "value": "1233456"
          },
          "expiration_days": 30
        },
        "email_group": {
          "id": null
        },
        "phone_invite": null
      },
      {
        "name": "Viewer",
        "email": "viewer@email.com",
        "order": 4,
        "documents": [
          {
            "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
            "role": "Viewer_viewer_role_id_57ae5e63-ff8e-40fc-9452-a4296b6d7353",
            "action": "view"
          },
          {
            "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
            "role": "Viewer_viewer_role_id_d11e1726-8366-4fde-8354-e3dfece72ad8",
            "action": "view"
          }
        ],
        "attributes": {
          "message": "Please contact for any questions",
          "subject": "Review documents"
        },
        "email_group": {
          "id": null
        },
        "phone_invite": null
      }
    ],
    "general_reminder": {
      "remind_after": 3,
      "remind_before": 5,
      "remind_repeat": 7
    },
    "unmapped_documents": [
      {
        "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
        "role": "Viewer",
        "action": "view"
      },
      {
        "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
        "role": "Buyer",
        "action": "view"
      },
      {
        "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
        "role": "Seller",
        "action": "view"
      },
      {
        "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
        "role": "Viewer",
        "action": "view"
      }
    ],
    "general_expiration_days": 30,
    "allowed_unmapped_sign_documents": []
  }
}
```

### 400

* Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

Access to DocumentGroup is denied.

**Example** (`Access to DocumentGroup is denied`)

```json
{
  "errors": [
    {
      "message": "Access to DocumentGroup is denied"
    }
  ]
}
```

### 404

- Document group is not found.
- Document with incorrect UID.

**Example** (`Document group not found`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "Document group `b1488106c73d8497dc1fc5e4eb061119400cd47c` not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/recipients" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/document-groups/{document_group_id}/recipients — Edit doc group recipients

This endpoint allows API users to add or remove document group recipients. Users can edit recipients' emails, roles and role actions, signing order, CC recipients, and more. 

You cannot edit recipients for a document group with an active signature invite.

> To pre-fill recipients' information when sending an invite, `name` must match `role`.

**Recipients and roles in document groups**

- The same email address can have multiple roles in a document group — for example, if the recipient acts as "Agent" in one document and "Manager" in another.
- The API creates a separate entry for each role, so the same email address may appear multiple times in the response.

**Example:** If recipient@example.com is assigned as "Agent" in Document A and "Manager" in Document B, the response will contain two separate entries for recipient@example.com — one per role.

**Mapping tip:** When mapping recipients in your integration, group by email address rather than by role name.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "recipients"
  ],
  "properties": {
    "cc": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of email addresses for CC recipients."
    },
    "order_type": {
      "enum": [
        "at_the_same_time",
        "recipient_order",
        "advanced_order",
        null
      ],
      "type": "string",
      "x-nullable": true,
      "description": "Recipient routing rule applied to all recipients in the invite. `at_the_same_time` - all at once; `recipient_order` - sequential by `order` parameter; `advanced_order` - advanced rules."
    },
    "recipients": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "order",
          "documents"
        ],
        "properties": {
          "name": {
            "type": "string",
            "example": "Signer",
            "maxLength": 255,
            "description": "Recipient's name."
          },
          "email": {
            "type": "string",
            "example": "signer@email.com",
            "description": "Recipient's email address."
          },
          "order": {
            "type": "integer",
            "example": 1,
            "maximum": 27,
            "minimum": 1,
            "description": "Order of receiving the document group invite."
          },
          "documents": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "role",
                "action"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "example": "b12e4a885b513a6d9c4c2e7c2b7fa06a013ae4af",
                  "description": "Document ID."
                },
                "role": {
                  "type": "string",
                  "example": "Signer",
                  "description": "Recipient's role name."
                },
                "action": {
                  "enum": [
                    "sign",
                    "view",
                    "approve"
                  ],
                  "type": "string",
                  "example": "sign",
                  "description": "Allowed action with a document. Possible values:\u00a0`view`,\u00a0`sign`,`approve`."
                }
              }
            },
            "description": "List of documents, recipient roles, and allowed actions. Should contain at least one document."
          },
          "attributes": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string",
                "example": "{fullName} shared {documentName} for signing.",
                "description": "Invite email message. Supports {documentName} and {fullName} placeholders.",
                "x-stoplight": {
                  "id": "qan1mztdutmy8"
                }
              },
              "subject": {
                "type": "string",
                "example": "Review and sign {documentName}",
                "description": "Invite email subject. Supports {documentName} and {fullName} placeholders.",
                "x-stoplight": {
                  "id": "y9twpi8sfo304"
                }
              },
              "reminder": {
                "type": "object",
                "properties": {
                  "remind_after": {
                    "type": "integer",
                    "example": 5,
                    "description": "Send the reminder email to the recipient after the set amount of days. `remind_after` must be less than `expiration_days`.",
                    "x-stoplight": {
                      "id": "aooht17ng8icb"
                    }
                  },
                  "remind_before": {
                    "type": "integer",
                    "example": 5,
                    "description": "Send the reminder email to the recipient in a set amount of days before the invite expiration. `remind_before` must be less than `expiration_days`.",
                    "x-stoplight": {
                      "id": "9qctgsiy7rifo"
                    }
                  },
                  "remind_repeat": {
                    "type": "integer",
                    "example": 5,
                    "description": "Send the reminder email to the recipient every set amount of days. `remind_repeat` must be less than `expiration_days`.",
                    "x-stoplight": {
                      "id": "el656mcqf80tg"
                    }
                  }
                },
                "description": "Reminder email settings. Available for `sign` action.",
                "x-stoplight": {
                  "id": "b33n1k6zzi15v"
                }
              },
              "redirect_uri": {
                "type": "string",
                "example": "https://www.signnow.com/",
                "description": "The link that opens after the signing session has been completed.",
                "x-stoplight": {
                  "id": "2l6u9ewl8ll6b"
                }
              },
              "authentication": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "example": "phone",
                    "description": "Type of the recipient authentication: `phone`, `password`, `sn_login` (the recipient signs in to SignNow), or `sso_login` (the recipient signs in through SSO; requires an active SSO configuration for the organization). Required inside the `authentication` object.",
                    "x-stoplight": {
                      "id": "9ae1zmcvpw34e"
                    }
                  },
                  "phone": {
                    "type": "string",
                    "example": "+12345678",
                    "description": "The phone number for the recipient's authentication. Required with type `phone`.",
                    "x-stoplight": {
                      "id": "9b4drjivktdud"
                    }
                  },
                  "value": {
                    "type": "string",
                    "example": "123456",
                    "description": "The password to unlock the document group. \nRequired inside the `authentication` object with the `password` authentication type.",
                    "x-stoplight": {
                      "id": "hsd4byyqurb2o"
                    }
                  },
                  "method": {
                    "enum": [
                      "sms",
                      "phone_call"
                    ],
                    "type": "string",
                    "example": "phone_call",
                    "description": "Phone authentication type. Required inside the `authentication` object with the `phone` authentication type. Allowed values: `sms`, `phone_call`.",
                    "x-stoplight": {
                      "id": "u31vc46s7v1xo"
                    }
                  },
                  "sms_message": {
                    "type": "string",
                    "example": "Enter the password {password} to unlock your document.",
                    "description": "Custom SMS message sent to the recipient, containing the {password} placeholder. Used with the `sms` method. Without this parameter, the signer receives a default SMS with an autogenerated password (unlock code): \u201cSignNow document invite unlock code: 123456.\u201d",
                    "x-stoplight": {
                      "id": "vgfizr1ipgdw5"
                    }
                  }
                },
                "description": "Recipient authentication settings. Available for recipients with `sign` and `approve` actions. Can not be used when `allow_forwarding`is set to true.",
                "x-stoplight": {
                  "id": "8lox972m304ir"
                }
              },
              "i_am_recipient": {
                "type": "boolean",
                "description": "Set to `true` if the document sender is also a recipient. Available for `sign` action.",
                "x-stoplight": {
                  "id": "p4g1cvn49ad71"
                }
              },
              "expiration_days": {
                "type": "integer",
                "example": 10,
                "maximum": 180,
                "minimum": 3,
                "description": "Days until the invite expires. Available for `sign`and `approve` actions.",
                "x-stoplight": {
                  "id": "u8ik63srv3nju"
                }
              },
              "redirect_target": {
                "type": "string",
                "example": "blank",
                "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab.",
                "x-stoplight": {
                  "id": "sp2u7ayk1z0na"
                }
              },
              "allow_forwarding": {
                "type": "boolean",
                "description": "Whether recipients are allowed to reassign the invite to a different email address. Available for `sign` action.",
                "x-stoplight": {
                  "id": "x3wlb3chmc6fa"
                }
              },
              "close_redirect_uri": {
                "type": "string",
                "example": "https://www.signnow.com/",
                "description": "The link that opens when a signer clicks\u00a0**Save Progress and Finish Later**\u00a0during a signing session or\u00a0**Close**\u00a0in view mode. Available for `sign ` action.",
                "x-stoplight": {
                  "id": "uo3cjzscn2a3b"
                }
              },
              "show_decline_button": {
                "type": "boolean",
                "description": "Whether to show the Decline button on signature fields. Available for `sign` action.",
                "x-stoplight": {
                  "id": "0p20nxgun6f1z"
                }
              },
              "decline_redirect_uri": {
                "type": "string",
                "example": "https://www.signnow.com/",
                "description": "The URL that opens after the recipient declines the document. Available for `sign` action.",
                "x-stoplight": {
                  "id": "uy9r0yvhyzc9w"
                }
              }
            },
            "description": "Signature invite attributes.",
            "x-stoplight": {
              "id": "ayx0tk19n5dzs"
            }
          },
          "email_group": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "example": "296f8dc89ed0d6de89fc7e5615371aaae19e12e1",
                "description": "ID of the email group.",
                "x-stoplight": {
                  "id": "jt1ghuxp7tk2b"
                }
              }
            },
            "description": "Group of recipients, such as a [CRM Contact group](/docs/contact-groups/operations/post-v2-crm-groups). Use either `email` or `email_group`, but not both simultaneously.",
            "x-stoplight": {
              "id": "yukislphhrr6x"
            }
          }
        }
      },
      "description": "List of document group recipients. Should contain at least one recipient."
    },
    "general_reminder": {
      "type": "object",
      "properties": {
        "remind_after": {
          "type": "integer",
          "description": "Days after invite is sent before a reminder is delivered. Must be less than `general_expiration_days`."
        },
        "remind_before": {
          "type": "integer",
          "description": "Days before expiration when a reminder is delivered. Must be less than `general_expiration_days`."
        },
        "remind_repeat": {
          "type": "integer",
          "description": "Days between repeated reminders."
        }
      },
      "x-nullable": true,
      "description": "Default `reminder` applied to all recipients in the invite."
    },
    "general_expiration_days": {
      "type": "integer",
      "maximum": 180,
      "minimum": 1,
      "x-nullable": true,
      "description": "Default `expiration_days` applied to all recipients in the invite. Min: `1`, Max: `180`. Default: `30`."
    }
  },
  "x-examples": {
    "Example 1": {
      "cc": [
        "test@test.com",
        "test2@test.com"
      ],
      "order_type": "recipient_order",
      "recipients": [
        {
          "name": "Recipient 1",
          "email": "emailtest@test.test",
          "order": 1,
          "documents": [
            {
              "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a7412",
              "role": "Actor name",
              "action": "sign"
            },
            {
              "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a74aa",
              "role": "Viewer name",
              "action": "view"
            }
          ],
          "attributes": {
            "message": "test message",
            "subject": "test subject",
            "reminder": {
              "remind_after": 10,
              "remind_before": 10,
              "remind_repeat": 10
            },
            "signature": {
              "type": "eideasy"
            },
            "redirect_uri": "https://redirect-uri.com",
            "authentication": {
              "type": "type",
              "phone": "phone number",
              "value": "value for the paas protection",
              "method": "method name"
            },
            "i_am_recipient": true,
            "expiration_days": 10,
            "allow_forwarding": true,
            "close_redirect_uri": "https://close-redirect-uri.com",
            "show_decline_button": true,
            "decline_redirect_uri": "https://decline-redirect-uri.com"
          },
          "phone_invite": null
        }
      ],
      "general_reminder": {
        "remind_after": 3,
        "remind_before": 5,
        "remind_repeat": 7
      },
      "unmapped_documents": [
        {
          "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a749f",
          "role": "Actor name",
          "action": "sign"
        }
      ],
      "general_expiration_days": 30,
      "allowed_unmapped_sign_documents": [
        {
          "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a749f",
          "role": "Actor name",
          "recipient": "Recipient 1"
        }
      ]
    }
  }
}
```

**Example** (`Request for editing document group recipients`)

```json
{
  "cc": [
    "viewer1@email.com",
    "viewer2@email.com"
  ],
  "order_type": "recipient_order",
  "recipients": [
    {
      "name": "Recipient 1",
      "order": 1,
      "documents": [
        {
          "id": "f4746754be954e92beafca9460ce5f83b87db885",
          "role": "Recipient 1",
          "action": "sign"
        },
        {
          "id": "edbbec96a0354d22997abef44232d7fbc60683e6",
          "role": "Recipient 1",
          "action": "sign"
        }
      ],
      "attributes": {
        "message": "test message",
        "subject": "test subject",
        "reminder": {
          "remind_after": 5,
          "remind_before": 5,
          "remind_repeat": 5
        },
        "redirect_uri": "https://www.signnow.com/",
        "authentication": {
          "type": "password",
          "value": "1233456"
        },
        "i_am_recipient": false,
        "expiration_days": 10,
        "allow_forwarding": false,
        "close_redirect_uri": "https://www.signnow.com/",
        "show_decline_button": true,
        "decline_redirect_uri": "https://www.signnow.com/"
      }
    },
    {
      "name": "Recipient 2",
      "email": "signer2@email.com",
      "order": 1,
      "documents": [
        {
          "id": "f4746754be954e92beafca9460ce5f83b87db885",
          "role": "Recipient 2",
          "action": "sign"
        },
        {
          "id": "edbbec96a0354d22997abef44232d7fbc60683e6",
          "role": "Recipient 2",
          "action": "view"
        }
      ]
    }
  ],
  "general_reminder": {
    "remind_after": 3,
    "remind_before": 5,
    "remind_repeat": 7
  },
  "general_expiration_days": 30
}
```

## Responses

### 200

Successfully updated document group recipients.

**Example** (`Successful response`)

```json
{
  "data": {
    "cc": [
      "viewer1@email.com",
      "viewer2@email.com"
    ],
    "order_type": null,
    "recipients": [
      {
        "name": "Recipient 1",
        "email": "signer1@email.com",
        "order": 1,
        "documents": [
          {
            "id": "f4746754be954e92beafca9460ce5f83b87db885",
            "role": "Recipient 1",
            "action": "sign"
          },
          {
            "id": "edbbec96a0354d22997abef44232d7fbc60683e6",
            "role": "Recipient 1",
            "action": "sign"
          }
        ],
        "attributes": {
          "message": "test message 1",
          "subject": "test subject",
          "reminder": {
            "remind_after": 5,
            "remind_before": 5,
            "remind_repeat": 5
          },
          "redirect_uri": "https://www.signnow.com/",
          "authentication": {
            "type": "password",
            "value": "123456"
          },
          "i_am_recipient": false,
          "expiration_days": 10,
          "allow_forwarding": false,
          "close_redirect_uri": "https://www.signnow.com/",
          "show_decline_button": true,
          "decline_redirect_uri": "https://www.signnow.com/"
        }
      },
      {
        "name": "Recipient 2",
        "email": "signer2@email.com",
        "order": 1,
        "documents": [
          {
            "id": "f4746754be954e92beafca9460ce5f83b87db885",
            "role": "Recipient 2",
            "action": "sign"
          },
          {
            "id": "edbbec96a0354d22997abef44232d7fbc60683e6",
            "role": "Recipient 2",
            "action": "view"
          }
        ],
        "attributes": {},
        "phone_invite": null
      }
    ],
    "general_reminder": {
      "remind_after": 3,
      "remind_before": 5,
      "remind_repeat": 7
    },
    "general_expiration_days": 30,
    "allowed_unmapped_sign_documents": []
  }
}
```

### 400

* Wrong, expired, or missing token.
* Document is not in DocumentGroup.
* One of the roles doesn't exist.
* The same role can't be used twice.
* Recipients must be an array.
* Name parameter is required.
* Email field must be a valid email.
* Order must be an integer.
* Documents must be not null.
* Incorrect document id provided.
* Incorrect action of the document.
* Recipients must be not empty.
* Role must be a string.
* The name field must be a maximum 255 symbols length.
* The order field must be from 1 to 127.
* Action parameter is required.
* Action must be a string.
* Name must be a string.
* Email must be a string.
* Documents must be an array.
* Order parameter is required.
* Document id must be not blank.
* Document id must be a string.
* Document role must be not blank.
* The same name can't be used twice with the same order. Wrong recipient name: test; first order: 1; second order: 1.
* For viewers allowed only attribute.message, attribute.subject and attribute.i_am_recipient .
* At the same time, only one recipient can have attribute.i_am_recipient = true.
* Forbidden to use attribute.allow_forwarding with attribute.authentication at the same time.
* The type field in attributes.authentication should be of type string.
* The type field in attributes.authentication should be phone or password.
* The type field in attributes.authentication must be not null.
* The value field in attributes.authentication must be a maximum 5000 symbols length.
* The value field in attributes.authentication should be of type string.
* The value field in attributes.authentication should not be empty string.
* 4-byte characters in attributes.authentication.value are not supported.
* The phone field in attributes.authentication should be of type string.
* The phone field in attributes.authentication should have a valid phone format for U.S. and Canada.
* The phone field in attributes.authentication should not be empty string.
* The phone field in attributes.authentication is required when type is phone.
* The method field in attributes.authentication should be of type string.
* The method field in attributes.authentication should be sms or phone_call.
* The method field is required when authentication.type = phone.
* The phone field in attributes.authentication should not be empty string.
* The remind_after must be less than attributes.expiration_days.
* The remind_before must be less than attributes.expiration_days.
* The remind_repeat must be less than attributes.expiration_days.
* The remind_after field in attributes.reminder attribute must be an integer.
* The remind_repeat field in attributes.reminder attribute must be an integer.
* The remind_before field in attributes.reminder attribute must be an integer.
* The remind_after field in attributes.reminder cannot be less than 0.
* The remind_repeat field in attributes.reminder cannot be less than 0.
* The remind_before field in attributes.reminder cannot be less than 0.
* The remind_after field in attributes.reminder should be less then or equal 179.
* The remind_repeat field in attributes.reminder should be less then or equal 179.
* The remind_before field in attributes.reminder should be less then or equal 179.
* The attributes.type:password is allowed to use only with attributes.value.
* The attributes.type:phone isnt allowed to use withattributes.value`.
* The i_am_recipient field in attributes should be used with owners email`.
* The `cc` emails are not valid.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`cc emails not valid`)

```json
{
  "errors": [
    {
      "code": 13020043,
      "message": "The `cc` field must contain valid emails."
    }
  ]
}
```

**Example** (`Name must be a string`)

```json
{
  "errors": [
    {
      "code": 13020013,
      "message": "name must be a string"
    }
  ]
}
```

**Example** (`Role must be a string`)

```json
{
  "errors": [
    {
      "code": 13020010,
      "message": "role must be a string"
    }
  ]
}
```

**Example** (`Email must be a string`)

```json
{
  "errors": [
    {
      "code": 13020015,
      "message": "email must be a string"
    }
  ]
}
```

**Example** (`Action must be a string`)

```json
{
  "errors": [
    {
      "code": 13020011,
      "message": "action must be a string"
    }
  ]
}
```

**Example** (`Order must be an integer`)

```json
{
  "errors": [
    {
      "code": 13020019,
      "message": "order must be an integer"
    }
  ]
}
```

**Example** (`Documents must be an array`)

```json
{
  "errors": [
    {
      "code": 13020016,
      "message": "documents must be an array"
    }
  ]
}
```

**Example** (`Documents must be not null`)

```json
{
  "errors": [
    {
      "code": 13020023,
      "message": "documents must be not null"
    }
  ]
}
```

**Example** (`Name parameter is required`)

```json
{
  "errors": [
    {
      "code": 13020014,
      "message": "'name' parameter is required"
    }
  ]
}
```

**Example** (`Order parameter is required`)

```json
{
  "errors": [
    {
      "code": 13020018,
      "message": "'order' parameter is required"
    }
  ]
}
```

**Example** (`Recipients must be an array`)

```json
{
  "errors": [
    {
      "code": 13020002,
      "message": "Recipients must be an array"
    }
  ]
}
```

**Example** (`Action parameter is required`)

```json
{
  "errors": [
    {
      "code": 13020012,
      "message": "'action' parameter is required"
    }
  ]
}
```

**Example** (`Document id must be a string`)

```json
{
  "errors": [
    {
      "code": 13020021,
      "message": "document id must be an string"
    }
  ]
}
```

**Example** (`Recipients must be not empty`)

```json
{
  "errors": [
    {
      "code": 13020025,
      "message": "recipients must be not empty"
    }
  ]
}
```

**Example** (`Document id must be not blank`)

```json
{
  "errors": [
    {
      "code": 13020020,
      "message": "document id must be not blank"
    }
  ]
}
```

**Example** (`Incorrect document id provided`)

```json
{
  "errors": [
    {
      "code": 13020009,
      "message": "Invalid id provided, value: 0377c39713fd8a37e0c1024e080009bab0 given"
    }
  ]
}
```

**Example** (`One of the roles doesn't exist`)

```json
{
  "errors": [
    {
      "code": 13020006,
      "message": "One of the roles doesn't exist"
    }
  ]
}
```

**Example** (`Document role must be not blank`)

```json
{
  "errors": [
    {
      "code": 13020022,
      "message": "document role must be not blank"
    }
  ]
}
```

**Example** (`Document is not in DocumentGroup`)

```json
{
  "errors": [
    {
      "code": 13020026,
      "message": "Document is not in DocumentGroup"
    }
  ]
}
```

**Example** (`Incorrect action of the document`)

```json
{
  "errors": [
    {
      "code": 13020024,
      "message": "action must be one of the following: sign, view"
    }
  ]
}
```

**Example** (`Email field must be a valid email`)

```json
{
  "errors": [
    {
      "code": 13020003,
      "message": "The `email` field must be a valid email."
    }
  ]
}
```

**Example** (`The same role can't be used twice`)

```json
{
  "errors": [
    {
      "code": 13020007,
      "message": "The same role can't be used twice"
    }
  ]
}
```

**Example** (`The order field must be from 1 to 127`)

```json
{
  "errors": [
    {
      "code": 13020005,
      "message": "The `order` field must be from 1 to 127"
    }
  ]
}
```

**Example** (`The name field must be a maximum 255 symbols length`)

```json
{
  "errors": [
    {
      "code": 13020004,
      "message": "The `name` field must be a maximum 255 symbols length"
    }
  ]
}
```

**Example** (`The type field in attributes.authentication must be not null.`)

```json
{
  "errors": [
    {
      "code": 13020070,
      "message": "The `type` field in `attributes.authentication` must be not null."
    }
  ]
}
```

**Example** (`The method field is required when authentication.type = phone.`)

```json
{
  "errors": [
    {
      "code": 13020082,
      "message": "The `method` field is required when `authentication.type` = `phone`."
    }
  ]
}
```

**Example** (`The remind_after must be less than attributes.expiration_days.`)

```json
{
  "errors": [
    {
      "code": 13020087,
      "message": "The `remind_after` must be less than `attributes.expiration_days`."
    }
  ]
}
```

**Example** (`The remind_before must be less than attributes.expiration_days.`)

```json
{
  "errors": [
    {
      "code": 13020087,
      "message": "The `remind_before` must be less than `attributes.expiration_days`."
    }
  ]
}
```

**Example** (`The remind_repeat must be less than attributes.expiration_days.`)

```json
{
  "errors": [
    {
      "code": 13020087,
      "message": "The `remind_repeat` must be less than `attributes.expiration_days`."
    }
  ]
}
```

**Example** (`The attributes.type:phone isnt allowed to use withattributes.value`.`)

```json
{
  "errors": [
    {
      "code": 13020098,
      "message": "The `attributes.type`:`phone` isn`t allowed to use with `attributes.value`."
    }
  ]
}
```

**Example** (`The remind_after field in attributes.reminder cannot be less than 0.`)

```json
{
  "errors": [
    {
      "code": 13020091,
      "message": "The `remind_after` field in `attributes.reminder` cannot be less than 0."
    }
  ]
}
```

**Example** (`The remind_before field in attributes.reminder cannot be less than 0.`)

```json
{
  "errors": [
    {
      "code": 13020093,
      "message": "The `remind_before` field in `attributes.reminder` cannot be less than 0."
    }
  ]
}
```

**Example** (`The remind_repeat field in attributes.reminder cannot be less than 0.`)

```json
{
  "errors": [
    {
      "code": 13020092,
      "message": "The `remind_repeat` field in `attributes.reminder` cannot be less than 0."
    }
  ]
}
```

**Example** (`The type field in attributes.authentication should be of type string.`)

```json
{
  "errors": [
    {
      "code": 13020068,
      "message": "The `type` field in `attributes.authentication` should be of type string."
    }
  ]
}
```

**Example** (`The phone field in attributes.authentication should be of type string.`)

```json
{
  "errors": [
    {
      "code": 13020075,
      "message": "The `phone` field in `attributes.authentication` should be of type string."
    }
  ]
}
```

**Example** (`The value field in attributes.authentication should be of type string.`)

```json
{
  "errors": [
    {
      "code": 13020073,
      "message": "The `value` field in `attributes.authentication` should be of type string."
    }
  ]
}
```

**Example** (`4-byte characters in attributes.authentication.value are not supported.`)

```json
{
  "errors": [
    {
      "code": 13020072,
      "message": "4-byte characters in `attributes.authentication.value` are not supported."
    }
  ]
}
```

**Example** (`The method field in attributes.authentication should be of type string.`)

```json
{
  "errors": [
    {
      "code": 13020080,
      "message": "The `method` field in `attributes.authentication` should be of type string."
    }
  ]
}
```

**Example** (`The phone field in attributes.authentication should not be empty string`)

```json
{
  "errors": [
    {
      "code": 13020083,
      "message": "The `phone` field in `attributes.authentication` should not be empty string."
    }
  ]
}
```

**Example** (`The type field in attributes.authentication should be phone or password.`)

```json
{
  "errors": [
    {
      "code": 13020069,
      "message": "The `type` field in `attributes.authentication` should be `phone` or `password`."
    }
  ]
}
```

**Example** (`The value field in attributes.authentication should not be empty string.`)

```json
{
  "errors": [
    {
      "code": 13020074,
      "message": "The `value` field in `attributes.authentication` should not be empty string."
    }
  ]
}
```

**Example** (`The i_am_recipient field in attributes should be used with owners email`.`)

```json
{
  "errors": [
    {
      "code": 13020099,
      "message": "The `i_am_recipient` field in `attributes` should be used with owners email`."
    }
  ]
}
```

**Example** (`The attributes.type:password is allowed to use only with attributes.value.`)

```json
{
  "errors": [
    {
      "code": 13020097,
      "message": "The `attributes.type`:`password` is allowed to use only with `attributes.value`."
    }
  ]
}
```

**Example** (`The method field in attributes.authentication should be sms or phone_call.`)

```json
{
  "errors": [
    {
      "code": 13020081,
      "message": "The `method` field in `attributes.authentication` should be `sms` or `phone_call`."
    }
  ]
}
```

**Example** (`The remind_after field in attributes.reminder attribute must be an integer.`)

```json
{
  "errors": [
    {
      "code": 13020088,
      "message": "The `remind_after` field in `attributes.reminder` attribute must be an integer."
    }
  ]
}
```

**Example** (`The phone field in attributes.authentication is required when type is phone.`)

```json
{
  "errors": [
    {
      "code": 13020078,
      "message": "The `phone` field in `attributes.authentication` is required when `type` is `phone`."
    }
  ]
}
```

**Example** (`The remind_before field in attributes.reminder attribute must be an integer.`)

```json
{
  "errors": [
    {
      "code": 13020090,
      "message": "The `remind_before` field in `attributes.reminder` attribute must be an integer."
    }
  ]
}
```

**Example** (`The remind_repeat field in attributes.reminder attribute must be an integer.`)

```json
{
  "errors": [
    {
      "code": 13020089,
      "message": "The `remind_repeat` field in `attributes.reminder` attribute must be an integer."
    }
  ]
}
```

**Example** (`At the same time, only one recipient can have attribute.i_am_recipient = true.`)

```json
{
  "errors": [
    {
      "code": 13020085,
      "message": "At the same time, only one recipient can have `attribute.i_am_recipient` = `true`."
    }
  ]
}
```

**Example** (`The remind_after field in attributes.reminder should be less then or equal 179.`)

```json
{
  "errors": [
    {
      "code": 13020094,
      "message": "The `remind_after` field in `attributes.reminder` should be less then or equal 179."
    }
  ]
}
```

**Example** (`The remind_before field in attributes.reminder should be less then or equal 179.`)

```json
{
  "errors": [
    {
      "code": 13020096,
      "message": "The `remind_before` field in `attributes.reminder` should be less then or equal 179."
    }
  ]
}
```

**Example** (`The remind_repeat field in attributes.reminder should be less then or equal 179.`)

```json
{
  "errors": [
    {
      "code": 13020095,
      "message": "The `remind_repeat` field in `attributes.reminder` should be less then or equal 179."
    }
  ]
}
```

**Example** (`The value field in attributes.authentication must be a maximum 5000 symbols length.`)

```json
{
  "errors": [
    {
      "code": 13020071,
      "message": "The `value` field in `attributes.authentication` must be a maximum 5000 symbols length."
    }
  ]
}
```

**Example** (`For viewers allowed only attribute.message, attribute.subject and attribute.i_am_recipient.`)

```json
{
  "errors": [
    {
      "code": 13020084,
      "message": "For viewers allowed only `attribute.message`, `attribute.subject` and `attribute.i_am_recipient`."
    }
  ]
}
```

**Example** (`Forbidden to use attribute.allow_forwarding with attribute.authentication at the same time.`)

```json
{
  "errors": [
    {
      "code": 13020086,
      "message": "Forbidden to use `attribute.allow_forwarding` with `attribute.authentication` at the same time."
    }
  ]
}
```

**Example** (`The phone field in attributes.authentication should have a valid phone format for U.S. and Canada.`)

```json
{
  "errors": [
    {
      "code": 13020076,
      "message": "The `phone` field in `attributes.authentication` should have a valid phone format for U.S. and Canada."
    }
  ]
}
```

**Example** (`The same name can't be used twice with the same order. Wrong recipient name: test; First order: 1; Second order: 1`)

```json
{
  "errors": [
    {
      "code": 13020027,
      "message": "The same name can't be used twice with the same order. Wrong recipient name: `test`; First order: `1`; Second order: `1`"
    }
  ]
}
```

### 403

Access to DocumentGroup is denied.

**Example** (`Access to DocumentGroup is denied`)

```json
{
  "errors": [
    {
      "code": 13020008,
      "message": "Access to DocumentGroup is denied"
    }
  ]
}
```

### 404

Document group is not found.

**Example** (`Document Group is not found`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "Document group `b10d96b48def2481e20bf1bf0a1f5138f0aad28f` not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/recipients" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"cc": ["viewer1@email.com", "viewer2@email.com"], "order_type": "recipient_order", "recipients": [{"name": "Recipient 1", "order": 1, "documents": [{"id": "f4746754be954e92beafca9460ce5f83b87db885", "role": "Recipient 1", "action": "sign"}, {"id": "edbbec96a0354d22997abef44232d7fbc60683e6", "role": "Recipient 1", "action": "sign"}], "attributes": {"message": "test message", "subject": "test subject", "reminder": {"remind_after": 5, "remind_before": 5, "remind_repeat": 5}, "redirect_uri": "https://www.signnow.com/", "authentication": {"type": "password", "value": "1233456"}, "i_am_recipient": false, "expiration_days": 10, "allow_forwarding": false, "close_redirect_uri": "https://www.signnow.com/", "show_decline_button": true, "decline_redirect_uri": "https://www.signnow.com/"}}, {"name": "Recipient 2", "email": "signer2@email.com", "order": 1, "documents": [{"id": "f4746754be954e92beafca9460ce5f83b87db885", "role": "Recipient 2", "action": "sign"}, {"id": "edbbec96a0354d22997abef44232d7fbc60683e6", "role": "Recipient 2", "action": "view"}]}], "general_reminder": {"remind_after": 3, "remind_before": 5, "remind_repeat": 7}, "general_expiration_days": 30}'
```

---

## GET /documentgroup/{document_group_id}/groupinvite/{invite_id} — Get doc group invite

This endpoint returns document group invite information, including the status of each field invite, step and action.

Here is the list of possible invite, action and step statuses:
- `created`: invite, action, or step has been created but is not waiting to be signed.
- `pending`: emails have been sent out for this invite action or step and are waiting to be viewed or signed.
- `fulfilled`: the invite, action, or step has been completed by signing, viewing or approving.
- `correction`: the step recipient is modifying the invite. 
- `canceled`: the invite or step has been canceled by the recipient.

Possible invite actions are:
- `view`: The recipient can only review the document without making changes.
- `sign`: The recipient can sign or fill out the document.
- `approve`: The recipient can review the document to approve or decline it.



## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |
| `invite_id` | string | Yes | ID of the document group invite. |

## Responses

### 200

Success

**Example** (`Successful response`)

```json
{
  "invite": {
    "id": "b17ae8b135883532823f9f1921b7324ec200026e",
    "steps": [
      {
        "id": "abb9893dd2cc3b606b8f1ee2ea6d9b8527549244",
        "order": 1,
        "status": "pending",
        "actions": [
          {
            "email": "signer1@email.com",
            "action": "sign",
            "status": "pending",
            "role_name": "Signer 1",
            "document_id": "ddcbbfa840180194f166c86d515acb0d14605598",
            "signer_phone_invite": null
          },
          {
            "action": "sign",
            "status": "pending",
            "role_name": "Signer 1",
            "document_id": "ddcbbfa840180194f166c86d515acb0d14605598",
            "email_group": {
              "id": "unique_id_of_the_group",
              "name": "group name"
            },
            "signer_phone_invite": null
          },
          {
            "email": "signer2@email.com",
            "action": "sign",
            "status": "pending",
            "role_name": "Signer 2",
            "document_id": "cd2d630e0aaf69271a2298fb3aec0c3e45310f7a",
            "signer_phone_invite": null
          },
          {
            "email": null,
            "action": "sign",
            "status": "pending",
            "role_name": "Signer 2 (SMS)",
            "document_id": "cd2d630e0aaf69271a2298fb3aec0c3e45310f7a",
            "signer_phone_invite": "+14075985199"
          }
        ]
      },
      {
        "id": "deb30aee006ed499b45ea4c3cb0552e6c356afcb",
        "order": 2,
        "status": "created",
        "actions": [
          {
            "email": "signer3@email.com",
            "action": "sign",
            "status": "created",
            "role_name": "Signer 3",
            "document_id": "ddcbbfa840180194f166c86d515acb0d14605598",
            "signer_phone_invite": null
          },
          {
            "email": "signer4@email.com",
            "action": "sign",
            "status": "created",
            "role_name": "Signer 4",
            "document_id": "ddcbbfa840180194f166c86d515acb0d14605598",
            "signer_phone_invite": null
          }
        ]
      },
      {
        "id": "c138bdf9e3c2849472021a31aeabd95c43bdaf9c",
        "order": 3,
        "status": "created",
        "actions": [
          {
            "email": "signer5@email.com",
            "action": "sign",
            "status": "created",
            "role_name": "Signer 5",
            "document_id": "cd2d630e0aaf69271a2298fb3aec0c3e45310f7a",
            "signer_phone_invite": null
          },
          {
            "email": "signer6@email.com",
            "action": "sign",
            "status": "created",
            "role_name": "Signer 6",
            "document_id": "cd2d630e0aaf69271a2298fb3aec0c3e45310f7a",
            "signer_phone_invite": null
          }
        ]
      }
    ],
    "status": "pending"
  }
}
```

### 400

* Incorrect group invite id in the endpoint.
* Incorrect group id in the endpoint.

**Example** (`Incorrect group id in the endpoint`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "unable to find document group"
    }
  ]
}
```

**Example** (`Incorrect group invite id in the endpoint`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "unable to find document group invite of f17cf5c7ce79a7c219e1c865cfc0ce5ddfb897f9"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/documentgroup/{document_group_id}/groupinvite/{invite_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /documentgroup/{document_group_id}/groupinvite/{invite_id}/invitestep/{step_id}/emails — Get emails of the invite step

This endpoint allows API users to retrieve the emails and other parameters of a specific step in a document group invite.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |
| `invite_id` | string | Yes | ID of the document group invite. |
| `step_id` | string | Yes | ID of a step in the invite. |

## Responses

### 200

Returns signer's email addresses in the invite step and email settings for each of them.

**Example** (`Successful response`)

```json
{
  "emails": [
    {
      "email": "user1@example.com",
      "message": "Sales order\u00a0needs your signature.",
      "subject": "Review and sign the document",
      "disabled": null,
      "reminder": {
        "remind_after": 0,
        "remind_before": 0,
        "remind_repeat": 0
      },
      "allow_reassign": false,
      "expiration_days": 30,
      "decline_by_signature": false
    }
  ]
}
```

### 400

* Wrong, expired, or missing token.
* The document group doesn't exist.
* The group invite doesn't exist.
* The invite step doesn't exist.
* The document group belongs to another user.
* The group invite was canceled.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Not the owner`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "User is not document group owner"
    }
  ]
}
```

**Example** (`Invite canceled`)

```json
{
  "errors": [
    {
      "code": 66302,
      "message": "The group invite was canceled."
    }
  ]
}
```

**Example** (`Invite step not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document group invite step `0d4ad4b1d6a64bf6a8e8b7f0e2f5b5ac0c1f9e3d` not found"
    }
  ]
}
```

**Example** (`Group invite not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "unable to find document group invite of 0d4ad4b1d6a64bf6a8e8b7f0e2f5b5ac0c1f9e3d"
    }
  ]
}
```

**Example** (`Document group not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "unable to find document group"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/documentgroup/{document_group_id}/groupinvite/{invite_id}/invitestep/{step_id}/emails" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /documentgroup/{document_group_id}/groupinvite/{invite_id}/pendinginvites — Get pending group invites

This endpoint allows API users to retrieve all pending invites of a document group invite.
If the caller is the document owner, the response includes both pending invites for that user and all fulfilled actions for the entire group invite.


Possible invite actions are:
- `sign`: The recipient can sign or fill out the document.
- `approve`: The recipient can review the document to approve or decline it.
- `view`: The recipient can only review the document without making changes.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |
| `invite_id` | string | Yes | ID of the document group invite. |

## Responses

### 200

Pending invites for the caller in the document group invite. If the caller is the document group owner, fulfilled actions of the whole invite are included.

**Example** (`Successful response`)

```json
{
  "invites": [
    {
      "link": "https://signnow.com/signing-invite/field-invite?document_id=f5baae8fc259f034438c1c634fbad0ed0532bb84&access_token=965db8269a642fe1befafd3e9711a16eb5b46c53",
      "action": "sign",
      "status": "pending",
      "step_id": "84f1443f50ba4a894ac616a5f064c686f32d077b",
      "thumbnail": {
        "large": "https://api.signnow.com/document/f5baae8fc259f034438c1c634fbad0ed0532bb84/thumbnail?size=large&access_token=965db8269a642fe1befafd3e9711a16eb5b46c53",
        "small": "https://api.signnow.com/document/f5baae8fc259f034438c1c634fbad0ed0532bb84/thumbnail?size=small&access_token=965db8269a642fe1befafd3e9711a16eb5b46c53",
        "medium": "https://api.signnow.com/document/f5baae8fc259f034438c1c634fbad0ed0532bb84/thumbnail?size=medium&access_token=965db8269a642fe1befafd3e9711a16eb5b46c53"
      },
      "document_id": "f5baae8fc259f034438c1c634fbad0ed0532bb84",
      "access_token": "965db8269a642fe1befafd3e9711a16eb5b46c53",
      "redirect_uri": "https%3A%2F%2Fexample.com",
      "document_name": "Contract",
      "inviter_email": "user@example.com",
      "payment_request": null
    }
  ],
  "sign_as_merged": true,
  "document_group_name": "Contracts",
  "owner_organization_id": "a89aea138fcdfe0b501f7904c25e3d22dc32d490"
}
```

### 400

* Wrong, expired, or missing token.
* The document group doesn't exist.
* The group invite doesn't exist.
* The group invite was canceled.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Invite canceled`)

```json
{
  "errors": [
    {
      "code": 66302,
      "message": "The group invite was canceled."
    }
  ]
}
```

**Example** (`Group invite not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "unable to find document group invite of 0d4ad4b1d6a64bf6a8e8b7f0e2f5b5ac0c1f9e3d"
    }
  ]
}
```

**Example** (`Document group not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "unable to find document group"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/documentgroup/{document_group_id}/groupinvite/{invite_id}/pendinginvites" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /documentgroup/{document_group_id}/groupinvite — Invite to sign doc group

This endpoint allows users to create an invite for signing a document group. You can configure a multistep workflow, where different recipients act on the document group at different stages.

Recipients can receive the invite by email or by SMS: identify a recipient by `email` for email delivery or by `phone_invite` for SMS delivery. You can combine email and SMS recipients in a single request. For more information, see the [SMS invite guide](/docs/sms-invite).

Each invite step includes:

- `order`: the sequence number of the step.
- `invite_actions`: an array of objects specifying who is invited and the action they must perform:

    - **`sign`**: The recipient can sign or fill out the document.
    - **`approve`**: The recipient can review the document to approve or decline it.
    - **`view`**: The recipient can only review the document without making changes.
    
- `invite_emails`: an array for customizing the emails sent to recipients at that step.
- `invite_sms`: an array for customizing the SMS invites sent to recipients at that step: custom SMS text (`sms_message`), expiration, and reminder settings.

Once all invite actions in a step are completed, the system sends the emails or SMS messages for the next step. When all steps are complete, completion emails are triggered.

To invite a **signing group**, use the `email_groups` field. A signing group includes multiple email addresses, and the step is marked complete as soon as any member of the group signs. You can either use an existing group or define a new one by providing a 40-character ID, a group name, and the list of recipient emails.

To create a signing group separately, see [Create contact group](/docs/contact-groups/operations/post-v2-crm-groups).

Learn more about an [Invite to sign a document group](/docs/invite-to-sign#send-a-document-group-for-signature).

<details>

**<summary>Use additional attributes to customize signing experience</summary>**

Parameter | Description | Example
---------|----------|---------
 `reassign` | A recipient can forward the invite by clicking **More Actions** > **Forward Invite** and entering an email address. | <img src="/reference-assets/images/Screenshots with attribute explanations/Field invite/reassign.png" alt="Forward invite"> 
 `force_new_signature` | A recipient must create a new signature for each signature field. | <img src="/reference-assets/images/Screenshots with attribute explanations/Field invite/Force_new_signature.png" alt="Force new signature">
 `prefill_signature_name` | A string with a signature name that appears when a signer clicks a signature field. The signer can edit the signature.|
 `required_preset_signature_name` | A string with a signature name that appears when a signer clicks a signature field. The signer cannot edit the signature. |
 `decline_by_signature` | When a signer clicks a signature field, they see two options: sign the fields and decline the document group. | <img src="/reference-assets/images/Screenshots with attribute explanations/Field invite/Decline_by_signature.png" alt="Decline by signature">
 `authentication_type` | Requires a recipient to enter a password or a code before viewing the document group. For more information, see [Two-factor authentication](/docs/two-factor-authentication). | <img src="/reference-assets/images/Screenshots with attribute explanations/Field invite/DG_authentication.png" alt="Password_authentication">
</details>

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | The ID of the document group. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "invite_steps"
  ],
  "properties": {
    "cc": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Array of cc email addresses."
    },
    "order_type": {
      "enum": [
        "at_the_same_time",
        "recipient_order",
        "advanced_order",
        null
      ],
      "type": "string",
      "x-nullable": true,
      "description": "Recipient routing rule applied to all recipients in the invite. `at_the_same_time` - all at once; `recipient_order` - sequential by `order` parameter; `advanced_order` - advanced rules."
    },
    "email_groups": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "name",
          "emails"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Signing group ID. If you created your own ID, make sure that it's 40 characters long.",
            "x-stoplight": {
              "id": "ftm8fhfa4sx96"
            }
          },
          "name": {
            "type": "string",
            "description": "Signing group name.",
            "x-stoplight": {
              "id": "6u0opiomemub1"
            }
          },
          "emails": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "email"
              ],
              "properties": {
                "email": {
                  "type": "string",
                  "description": "Email address in the signing group. Must be unique within a group.",
                  "x-stoplight": {
                    "id": "nmhbd010yzp4l"
                  }
                }
              },
              "x-stoplight": {
                "id": "ge2dl9pzwvwfm"
              }
            },
            "description": "List all the email addresses that should receive an invite within a group, no matter if you are using an existing email group or a new one.",
            "x-stoplight": {
              "id": "ngdzqehm8e1ki"
            }
          }
        },
        "x-stoplight": {
          "id": "dh0e12s3p4bwd"
        }
      },
      "description": "Defines a signing group. Required if at least one step contains a signing group (`email_group`). You can use both an existing email group or create your own.",
      "x-stoplight": {
        "id": "6bsyxhwpmmomu"
      }
    },
    "invite_steps": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "order",
          "invite_actions"
        ],
        "properties": {
          "order": {
            "type": "integer",
            "description": "Integer, order of signing step: 1 - the recipient(s)  sign the document group first, then the document group is sent to 2,3 etc. Several recipients can hold the same order of signing."
          },
          "invite_sms": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "phone_invite"
              ],
              "properties": {
                "reminder": {
                  "type": "object",
                  "properties": {
                    "remind_after": {
                      "type": "number",
                      "maximum": 179,
                      "minimum": 1,
                      "description": "Number of days after sending the invite when the recipient receives a reminder SMS. Must be less than `expiration_days`."
                    },
                    "remind_before": {
                      "type": "number",
                      "maximum": 179,
                      "minimum": 1,
                      "description": "Number of days before the invite expires when the recipient receives a reminder SMS. Must be less than `expiration_days`."
                    },
                    "remind_repeat": {
                      "type": "number",
                      "maximum": 7,
                      "minimum": 1,
                      "description": "Number of days between each reminder sent to the recipient."
                    }
                  },
                  "description": "Settings for sending automatic reminders."
                },
                "sms_message": {
                  "type": "string",
                  "example": "Hi, here is a document for signature from {sender_email}",
                  "maxLength": 140,
                  "description": "Custom text of the SMS invite, max `140` characters. Supports the `{sender_email}` placeholder that is automatically replaced with the sender's email address. The link to the document group and an opt-out notice are automatically added at the end of the SMS. Without this parameter, the recipient receives the default message: \"{sender email} has sent you a document. Follow the link to view the document\". Custom SMS messages require an API free trial, an active API subscription, or a Site License."
                },
                "phone_invite": {
                  "type": "string",
                  "example": "+14075985199",
                  "description": "Recipient's phone number for the SMS invite. Must match the `phone_invite` value of this recipient in `invite_actions`."
                },
                "expiration_days": {
                  "type": "number",
                  "default": 30,
                  "maximum": 180,
                  "minimum": 3,
                  "description": "Number of days before the invite expires."
                }
              }
            },
            "description": "Objects that define a custom SMS message, expiration, and reminder settings for each SMS recipient within a step. SMS recipients are identified by `phone_invite` instead of `email` in `invite_actions`."
          },
          "invite_emails": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "email"
              ],
              "properties": {
                "email": {
                  "type": "string",
                  "format": "email",
                  "description": "Recipient's email address."
                },
                "message": {
                  "type": "string",
                  "description": "Custom email message for the recipient. Requires a paid API plan, an API free trial, or a Site License."
                },
                "subject": {
                  "type": "string",
                  "description": "Custom email subject for the recipient. Requires a paid API plan, an API free trial, or a Site License."
                },
                "reminder": {
                  "type": "object",
                  "properties": {
                    "remind_after": {
                      "type": "number",
                      "maximum": 179,
                      "minimum": 1,
                      "description": "Number of days after the invite is sent when the recipient gets a reminder email. Must be less than `expiration_days`."
                    },
                    "remind_before": {
                      "type": "number",
                      "maximum": 179,
                      "minimum": 1,
                      "description": "Number of days before the invite expires when the recipient gets a reminder email. Must be less than `expiration_days`."
                    },
                    "remind_repeat": {
                      "type": "number",
                      "maximum": 7,
                      "minimum": 1,
                      "description": "Number of days between reminder emails, starting after the invite is sent."
                    }
                  },
                  "description": "Settings for sending automatic reminder emails."
                },
                "email_group": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "The name of the contact group.",
                      "x-stoplight": {
                        "id": "cpunlkhtfa0sv"
                      }
                    }
                  },
                  "description": "A contact group of recipients, for example, [CRM Contact group](/docs/contact-groups/operations/post-v2-crm-groups).",
                  "x-stoplight": {
                    "id": "8j65i1jlx4gka"
                  }
                },
                "expiration_days": {
                  "type": "number",
                  "default": 30,
                  "maximum": 180,
                  "minimum": 3,
                  "description": "Number of days until the invite expires."
                }
              }
            },
            "description": "Objects that define custom email subject, email message, expiration and reminder settings for each recipient within a step."
          },
          "invite_actions": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "role_name",
                "action",
                "document_id"
              ],
              "properties": {
                "email": {
                  "type": "string",
                  "format": "email",
                  "description": "Recipient's email address. The invite is delivered by email. Identify each recipient by `email`, `phone_invite`, or `email_group` \u2014 only one of these parameters at a time."
                },
                "action": {
                  "enum": [
                    "sign",
                    "view",
                    "approve"
                  ],
                  "type": "string",
                  "description": "Allowed action with a document. Possible values: `view`, `sign`, `approve`. The `approve` action must be assigned to all documents in the document group. The `view` action can be assigned to any subset of documents in the group."
                },
                "language": {
                  "enum": [
                    "en",
                    "es",
                    "fr"
                  ],
                  "type": "string",
                  "description": "Sets the language of the signing session and notification emails for the signer. Possible values: `en` for English, `es` for Spanish, and `fr` for French. If not set, the language is determined by the language of your signNow account. If emails are branded, you can set up [your own](/docs/branding-email-resources#language-branding) email texts in different languages.",
                  "x-stoplight": {
                    "id": "b743u1ldxugp1"
                  }
                },
                "role_name": {
                  "type": "string",
                  "description": "Recipient's role name in the document (can be used to identify fields in the document assigned to this particular recipient). The `role` parameter is also supported as an equivalent of `role_name`."
                },
                "signature": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "Type of QES signature. Possible values: `eideasy`,` eideasy-pdf`, and `nom151`. All signers in the invite must have the same signature type.",
                      "x-stoplight": {
                        "id": "4l7pk80x2ug82"
                      }
                    }
                  },
                  "description": "This object is used to request QES signatures from signers. To use it, a user must be a member of an organization (workspace) with QES settings enabled. If QES is used, it must be used for all signers in the invite.<br>For more information, see [QES user guide](/docs/qualified-electronic-signature).",
                  "x-stoplight": {
                    "id": "7eghm82e9pwme"
                  }
                },
                "document_id": {
                  "type": "string",
                  "description": "ID of the document on which actions are required from this recipient."
                },
                "email_group": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "The name of the contact group.",
                      "x-stoplight": {
                        "id": "woou5tg76ubps"
                      }
                    }
                  },
                  "description": "A contact group of recipients, for example, [CRM Contact group](/docs/contact-groups/operations/post-v2-crm-groups).",
                  "x-stoplight": {
                    "id": "pfen0o1om14d5"
                  }
                },
                "phone_invite": {
                  "type": "string",
                  "example": "+14075985199",
                  "description": "Recipient's phone number. The invite is delivered by SMS instead of email. Use instead of `email`. To customize the SMS text, expiration, or reminders, add an object with the same phone number to the `invite_sms` array of this step."
                },
                "redirect_uri": {
                  "type": "string",
                  "example": "https://www.signnow.com/",
                  "description": "The link that opens after the recipient completes the document.\n\n",
                  "x-stoplight": {
                    "id": "z01y5i3duhee2"
                  }
                },
                "allow_reassign": {
                  "type": "string",
                  "description": "Whether or not to allow recipients reassign this invite to another email address. Possible values: \"0\" - not allowed, \"1\" - allowed."
                },
                "authentication": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "Type of signer's identity verification. Possible values: `password`, `phone`, `sn_login` (the signer signs in to SignNow), or `sso_login` (the signer signs in through SSO; requires an active SSO configuration for the organization). `phone` is available on paid plans; on a free trial or without a paid subscription, use `password`."
                    },
                    "phone": {
                      "type": "string",
                      "description": "Required in case of `\"type\"`: `\"phone\"`. User's phone number."
                    },
                    "value": {
                      "type": "string",
                      "description": "Required in case of `\"type\"`: `\"password\"`. The password for user authentication."
                    },
                    "method": {
                      "enum": [
                        "sms",
                        "phone_call"
                      ],
                      "type": "string",
                      "description": "Required in case of `\"type\"`: `\"phone\"`. Possible values: `\"phone_call`\", `\"sms\"`."
                    },
                    "message": {
                      "type": "string",
                      "description": "In case of `\"method\"`: `\"sms\"` - custom SMS message, max 140 characters. Customizing the 2FA SMS message requires an API free trial, an active API subscription, or a Site License."
                    }
                  },
                  "description": "Object that contains the type of signer's identity verification, phone number or password."
                },
                "payment_request": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "In this case, must be \"fixed\".",
                      "x-stoplight": {
                        "id": "8eozczxgftexj"
                      }
                    },
                    "amount": {
                      "type": "string",
                      "description": "The payment amount requested.",
                      "x-stoplight": {
                        "id": "pgiupb58ob7i4"
                      }
                    },
                    "currency": {
                      "type": "string",
                      "description": "The payment currency requested.",
                      "x-stoplight": {
                        "id": "1w4yo844v8oqv"
                      }
                    },
                    "merchant_id": {
                      "type": "string",
                      "description": "The ID of the merchant account added to your organization (workspace).",
                      "x-stoplight": {
                        "id": "74htcsy6un1ra"
                      }
                    }
                  },
                  "description": "Object that contains details about the payment request.",
                  "x-stoplight": {
                    "id": "iekmitepg8epa"
                  }
                },
                "redirect_target": {
                  "enum": [
                    "blank",
                    "self"
                  ],
                  "type": "string",
                  "default": "blank",
                  "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab.",
                  "x-stoplight": {
                    "id": "7vhkx05u09xgd"
                  }
                },
                "close_redirect_uri": {
                  "type": "string",
                  "description": "The link that opens when a signer clicks\u00a0**Save Progress and Finish Later**\u00a0during a signing session or\u00a0**Close**\u00a0in view mode. Available for `sign ` action.",
                  "x-stoplight": {
                    "id": "hoyx0baz5erbv"
                  }
                },
                "decline_by_signature": {
                  "type": "string",
                  "description": "Whether or not to allow recipients decline to sign the invite."
                },
                "decline_redirect_uri": {
                  "type": "string",
                  "description": "The URL that opens after the recipient declines the document. Available for `sign` action.",
                  "x-stoplight": {
                    "id": "179b6xp2pyvyl"
                  }
                },
                "prefill_signature_name": {
                  "type": "string",
                  "example": "Jane Doe",
                  "maxLength": 255,
                  "description": "The text displayed in the Signature field. The signer can edit this value."
                },
                "is_close_redirect_canceled": {
                  "type": "boolean",
                  "default": false,
                  "description": "Specifies whether the save progress redirect setting is canceled for the organization (workspace).`true`\u00a0\u2013 the redirect is canceled;`false`\u00a0\u2013 the redirect remains active.",
                  "x-stoplight": {
                    "id": "vmbf2a9u6y1uz"
                  }
                },
                "is_finish_redirect_canceled": {
                  "type": "boolean",
                  "default": false,
                  "description": "Specifies whether the completion redirect setting is canceled for the organization (workspace).`true`\u00a0\u2013 the redirect is canceled;`false`\u00a0\u2013 the redirect remains active.",
                  "x-stoplight": {
                    "id": "vmbf2a9u6y1uz"
                  }
                },
                "is_decline_redirect_canceled": {
                  "type": "boolean",
                  "default": false,
                  "description": "Specifies whether the decline redirect setting is canceled for the organization (workspace).`true`\u00a0\u2013 the redirect is canceled;`false`\u00a0\u2013 the redirect remains active.",
                  "x-stoplight": {
                    "id": "vmbf2a9u6y1uz"
                  }
                },
                "required_preset_signature_name": {
                  "type": "string",
                  "example": "Jane Doe",
                  "description": "The text displayed in the Signature field. The signer cannot edit this value. Cannot be used simultaneously with `prefill_signature_name` or `force_new_signature` for the same role."
                }
              }
            },
            "description": "Objects that define recipients (email addresses, phone numbers for SMS delivery, or signing groups) and invite actions, roles and documents assigned to each recipient within a step."
          }
        }
      },
      "description": "Steps of the document group invite. Every step contains the `order` number, `invite_emails`, `invite_sms`, and `invite_actions` within this step."
    },
    "sign_as_merged": {
      "type": "boolean",
      "default": true,
      "description": "If true, allows API user to send an invite which opens as merged document group in a single document."
    },
    "client_timestamp": {
      "type": "integer",
      "description": "The timestamp of the document group invite."
    },
    "general_reminder": {
      "type": "object",
      "properties": {
        "remind_after": {
          "type": "integer",
          "description": "Days after invite is sent before a reminder is delivered. Must be less than `general_expiration_days`."
        },
        "remind_before": {
          "type": "integer",
          "description": "Days before expiration when a reminder is delivered. Must be less than `general_expiration_days`."
        },
        "remind_repeat": {
          "type": "integer",
          "description": "Days between repeated reminders."
        }
      },
      "x-nullable": true,
      "description": "Default `reminder` applied to all recipients in the invite."
    },
    "completion_emails": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "description": "Email address of the completion email recipient."
          },
          "message": {
            "type": "string",
            "description": "Custom message for the completion email. Requires a paid API plan, an API free trial, or a Site License."
          },
          "subject": {
            "type": "string",
            "description": "Custom subject for the completion email. Requires a paid API plan, an API free trial, or a Site License."
          },
          "disable_document_attachment": {
            "type": "integer",
            "description": "Whether to disable sending document attachments with the completion email. Possible values: 0 - enable document attachment, 1 - disable document attachment."
          }
        }
      },
      "description": "Object that contains email addresses and custom settings for sending emails about completing the invite."
    },
    "general_expiration_days": {
      "type": "integer",
      "example": 30,
      "maximum": 180,
      "minimum": 1,
      "x-nullable": true,
      "description": "Default `expiration_days` applied to all recipients in the invite. Min: `1`, Max: `180`. Default: `30`."
    },
    "general_expiration_time": {
      "type": "integer",
      "x-nullable": true,
      "description": "Default expiration timestamp (Unix time, seconds) applied to all recipients in the invite."
    }
  }
}
```

**Example** (`Invite with QES`)

```json
{
  "invite_steps": [
    {
      "order": 1,
      "invite_actions": [
        {
          "email": "signer1@email.com",
          "action": "sign",
          "role_name": "Signer 1",
          "signature": {
            "type": "eideasy"
          },
          "document_id": "6e9580fa76ba4edca18fa6e680a36d10a6bab503"
        }
      ]
    },
    {
      "order": 2,
      "invite_actions": [
        {
          "email": "signer2@email.com",
          "action": "sign",
          "role_name": "Signer 2",
          "signature": {
            "type": "eideasy"
          },
          "document_id": "c4aff212145b40888cd75e3c73c978484258c043"
        }
      ]
    }
  ]
}
```

**Example** (`Invite to an email group`)

```json
{
  "email_groups": [
    {
      "id": "signing_group_id",
      "name": "Signing Group Name",
      "emails": [
        {
          "email": "signer1@email.com"
        },
        {
          "email": "signer2@email.com"
        }
      ]
    }
  ],
  "invite_steps": [
    {
      "order": 1,
      "invite_emails": [
        {
          "subject": "Subject",
          "email_group": {
            "name": "Signing Group Name"
          }
        }
      ],
      "invite_actions": [
        {
          "action": "sign",
          "role_name": "Recipient 1",
          "document_id": "4e5ed73c0b052fae99f72128b5b54ea0e93ebcf9",
          "email_group": {
            "name": "Signing Group Name"
          }
        },
        {
          "action": "sign",
          "role_name": "Recipient 1",
          "document_id": "5af90275fb7e8c2ca719aa3053a0482cf134579b",
          "email_group": {
            "name": "Signing Group Name"
          }
        }
      ]
    }
  ],
  "sign_as_merged": true,
  "client_timestamp": 0,
  "completion_emails": [
    {
      "email_group": {
        "name": "Signing Group Name"
      }
    }
  ]
}
```

**Example** (`Mixed email and SMS invite`)

```json
{
  "cc": [
    "cc_recipient1@email.com",
    "cc_recipient2@email.com"
  ],
  "order_type": "recipient_order",
  "invite_steps": [
    {
      "order": 1,
      "invite_sms": [
        {
          "reminder": {
            "remind_after": 3,
            "remind_before": 5,
            "remind_repeat": 7
          },
          "sms_message": "Hi, here is a document for signature from {sender_email}",
          "phone_invite": "+14075985199",
          "expiration_days": 30
        }
      ],
      "invite_actions": [
        {
          "action": "sign",
          "role_name": "Buyer",
          "document_id": "7890b56dc7d3430ba89514667ce4f32da7b33f76",
          "phone_invite": "+14075985199",
          "redirect_uri": "https://example.com",
          "authentication": {
            "type": "phone",
            "phone": "+14075985199",
            "method": "sms",
            "message": "Enter the password to unlock the document: {password}"
          },
          "redirect_target": "blank",
          "close_redirect_uri": "https://close-redirect-uri.com",
          "show_decline_button": true,
          "decline_by_signature": "0",
          "decline_redirect_uri": "https://signnow.com",
          "prefill_signature_name": "Buyer signature"
        }
      ]
    },
    {
      "order": 2,
      "invite_emails": [
        {
          "email": "seller@email.com",
          "message": "Please contact for any questions",
          "subject": "Review and sign documents",
          "reminder": {
            "remind_after": 3,
            "remind_before": 5,
            "remind_repeat": 7
          },
          "expiration_days": 30
        }
      ],
      "invite_actions": [
        {
          "email": "seller@email.com",
          "action": "sign",
          "role_name": "Seller",
          "document_id": "7890b56dc7d3430ba89514667ce4f32da7b33f76",
          "redirect_uri": "https://example.com",
          "allow_reassign": "0",
          "authentication": {
            "type": "password",
            "value": "1233456"
          },
          "i_am_recipient": false,
          "redirect_target": "blank",
          "allow_forwarding": false,
          "close_redirect_uri": "https://close-redirect-uri.com",
          "show_decline_button": true,
          "decline_by_signature": "0",
          "decline_redirect_uri": "https://signnow.com",
          "prefill_signature_name": "Seller signature"
        }
      ]
    }
  ],
  "sign_as_merged": true,
  "general_reminder": {
    "remind_after": 3,
    "remind_before": 5,
    "remind_repeat": 7
  },
  "completion_emails": [],
  "general_expiration_days": 30
}
```

**Example** (`Invite with payment request`)

```json
{
  "cc": [
    "cc_recipient1@email.com",
    "cc_recipient2@email.com"
  ],
  "invite_steps": [
    {
      "order": 1,
      "invite_emails": [
        {
          "email": "signer1@email.com",
          "message": "Message",
          "subject": "Subject",
          "expiration_days": 0
        }
      ],
      "invite_actions": [
        {
          "email": "signer1@email.com",
          "action": "sign",
          "role_name": "Recipient 1",
          "document_id": "4e5ed73c0b052fae99f72128b5b54ea0e93ebcf9",
          "authentication": {
            "type": "password",
            "value": "Password123@"
          },
          "payment_request": {
            "type": "calculated",
            "currency": "USD",
            "field_id": "eb1dc1e1946f47cd87fa4a63664803bddba6fff4",
            "merchants": [
              "5ef7e3853f4a4624a037d90d20513a195937dxxx"
            ],
            "field_name": "payment_buyer",
            "field_type": "text_fields"
          }
        }
      ]
    }
  ],
  "sign_as_merged": true,
  "client_timestamp": 0,
  "completion_emails": [
    {
      "email": "signer1@email.com",
      "message": "Message",
      "subject": "Subject",
      "disable_document_attachment": 0
    }
  ]
}
```

**Example** (`Invite with language settings`)

```json
{
  "invite_steps": [
    {
      "order": 1,
      "invite_emails": [
        {
          "email": "signer1@email.com",
          "message": "Hi, this is an invite to sign a document group from sender@email.com.",
          "subject": "You've received a document group invite",
          "expiration_days": 30
        }
      ],
      "invite_actions": [
        {
          "email": "signer1@email.com",
          "action": "sign",
          "language": "es",
          "role_name": "Signer 1",
          "document_id": "4890b744d7743cc73518f6337aa6749e6f73ee0e",
          "redirect_uri": "https://example.com",
          "allow_reassign": "0",
          "decline_by_signature": "0"
        },
        {
          "email": "signer4@email.com",
          "action": "view",
          "role_name": "Viewer",
          "document_id": "4890b744d7743cc73518f6337aa6749e6f73ee0e"
        }
      ]
    },
    {
      "order": 2,
      "invite_emails": [
        {
          "email": "signer2@email.com",
          "message": "Hi, this is an invite to sign a document group from sender@email.com.",
          "subject": "You've received a document group invite",
          "reminder": 0,
          "expiration_days": 30
        }
      ],
      "invite_actions": [
        {
          "email": "signer2@email.com",
          "action": "sign",
          "language": "fr",
          "role_name": "Signer 2",
          "document_id": "53f0dec53760d1c2c10ae217910e73ab12ab1984",
          "redirect_uri": "https://example.com",
          "allow_reassign": "0",
          "close_redirect_uri": "https://close-redirect-uri.com",
          "decline_by_signature": "0"
        }
      ]
    }
  ],
  "sign_as_merged": true,
  "completion_emails": []
}
```

**Example** (`Invite with signers, approvers, viewers, and CC-recipients`)

```json
{
  "cc": [
    "cc_recipient1@email.com",
    "cc_recipient2@email.com"
  ],
  "order_type": "recipient_order",
  "invite_steps": [
    {
      "order": 1,
      "invite_emails": [
        {
          "email": "buyer@email.com",
          "message": "Please contact for any questions",
          "subject": "Review and sign documents",
          "reminder": {
            "remind_after": 3,
            "remind_before": 5,
            "remind_repeat": 7
          },
          "expiration_days": 30
        }
      ],
      "invite_actions": [
        {
          "email": "buyer@email.com",
          "action": "sign",
          "role_name": "Buyer",
          "document_id": "7890b56dc7d3430ba89514667ce4f32da7b33f76",
          "redirect_uri": "https://example.com",
          "allow_reassign": "0",
          "authentication": {
            "type": "password",
            "value": "1233456"
          },
          "i_am_recipient": false,
          "redirect_target": "blank",
          "allow_forwarding": false,
          "close_redirect_uri": "https://close-redirect-uri.com",
          "show_decline_button": true,
          "decline_by_signature": 0,
          "decline_redirect_uri": "https://signnow.com",
          "prefill_signature_name": "Buyer signature"
        }
      ]
    },
    {
      "order": 2,
      "invite_emails": [
        {
          "email": "seller@email.com",
          "message": "Please contact for any questions",
          "subject": "Review and sign documents",
          "reminder": {
            "remind_after": 3,
            "remind_before": 5,
            "remind_repeat": 7
          },
          "expiration_days": 30
        }
      ],
      "invite_actions": [
        {
          "email": "seller@email.com",
          "action": "sign",
          "role_name": "Seller",
          "document_id": "7890b56dc7d3430ba89514667ce4f32da7b33f76",
          "redirect_uri": "https://example.com",
          "allow_reassign": "0",
          "authentication": {
            "type": "password",
            "value": "1233456"
          },
          "i_am_recipient": false,
          "redirect_target": "blank",
          "allow_forwarding": false,
          "close_redirect_uri": "https://close-redirect-uri.com",
          "show_decline_button": true,
          "decline_by_signature": "0",
          "decline_redirect_uri": "https://signnow.com",
          "prefill_signature_name": "Seller signature"
        }
      ]
    },
    {
      "order": 3,
      "invite_emails": [
        {
          "email": "approver@email.com",
          "message": "Please contact for any questions",
          "subject": "Review and approve documents",
          "expiration_days": 30
        }
      ],
      "invite_actions": [
        {
          "email": "approver@email.com",
          "action": "approve",
          "role_name": "Approver",
          "document_id": "7890b56dc7d3430ba89514667ce4f32da7b33f76",
          "redirect_uri": "https://www.signnow.com/",
          "authentication": {
            "type": "password",
            "value": "1233456"
          }
        },
        {
          "email": "approver@email.com",
          "action": "approve",
          "role_name": "Approver",
          "document_id": "2c3cf7a5dc3d47c4ba574a86b573a0562a07cc77",
          "redirect_uri": "https://www.signnow.com/",
          "authentication": {
            "type": "password",
            "value": "1233456"
          }
        }
      ]
    },
    {
      "order": 4,
      "invite_emails": [
        {
          "email": "viewer@email.com",
          "message": "Please contact for any questions",
          "subject": "Review documents"
        }
      ],
      "invite_actions": [
        {
          "email": "viewer@email.com",
          "action": "view",
          "role_name": "Viewer",
          "document_id": "7890b56dc7d3430ba89514667ce4f32da7b33f76"
        }
      ]
    }
  ],
  "sign_as_merged": true,
  "general_reminder": {
    "remind_after": 3,
    "remind_before": 5,
    "remind_repeat": 7
  },
  "completion_emails": [],
  "general_expiration_days": 30
}
```

## Responses

### 200

Document group invite created.

**Example** (`Successful response`)

```json
{
  "id": "5e7d9934e1f544d187ba2fde985594342933d9d2",
  "pending_invite_link": null
}
```

### 400

* Incorrect or missing token.
* `invite_actions` consists of more than one action with the same `email_group` and the same `document_id`.
* `role` not found.
* `group_id` not found.
* Invite already exists.

**Validation errors**:

* `language` is not a string.
* Incorrect `language`.
* One recipient must have the same `language`.
* `redirect_uri` is not a string.
* Empty `redirect_uri`.
* `redirect_uri` is not a correct URL.
* `redirect_uri` is longer than 2048 characters.
* One recipient must have the same `redirect_uri`.
* `decline_redirect_uri` is not a string.
* Empty `decline_redirect_uri`.
* `decline_redirect_uri` is not a correct URL.
* `decline_redirect_uri` is longer than 2048 characters.
* `decline_redirect_uri` cannot be used with the `view`.
* One recipient must have the same `decline_redirect_uri`.
* `close_redirect_uri` is not a string.
* Empty `close_redirect_uri`.
* `close_redirect_uri` is not a correct URL address.
* `close_redirect_uri` is longer than 2048 characters.
*  One recipient must have the same `close_redirect_uri`.
* `redirect_target` is not a string.
* Incorrect `redirect_target`. Allowed values: `self`, `blank`.
* One of redirect URLs is required if `redirect_target` is added.
* One recipient must have the same `redirect_target`.
* `invite_emails` contains both `email` and `email_group` (must contain only one of these).
* `allow_reassign` is not allowed for an email group.
* Incorrect format of `email_groups`.
* Email group `id` or email group `name` is missing.
* Email group `id` is not a string.
* Email group `id` is not a correct unique id.
* Email group `name` is not a string.
* Email group `name` contains forbidden characters (4-byte characters, such as emojis).
* Emails in `email_groups` are missing.
* Emails in `email_groups` is not an array of arrays.
* Emails in `email_groups` contains more than 15 emails.
* Emails in an email group must be unique.
* Email in `email_groups.emails` is not a string.
* Email in `email_groups.emails` is not a correct email address.
* `signature.type` is missing.
* Incorrect `signature.type`. Allowed values: `eideasy`,`eideasy-pdf`, `nom151`.
* Missing or different QES settings for one or more signers.
* The `prefill_signature_name` format is wrong.
* The `prefill_signature_name` is empty.
* The`prefill_signature_name` contains unsupported characters.
* The `prefill_signature_name` is too long.

**SMS invite (`phone_invite`) errors**:

* `phone_invite` type incorrect.
* `phone_invite` empty.
* `phone_invite` too long.
* `phone_invite` format incorrect.
* `phone_invite` in `invite_sms` type is incorrect.
* `phone_invite` in `invite_sms` is empty.
* `phone_invite` in `invite_sms` is too long.
* `phone_invite` in `invite_sms` format is incorrect.
* `expiration_days` in `invite_sms` type incorrect.
* `expiration_days` in `invite_sms` range incorrect.
* `remind_after` range incorrect.
* `remind_before` range incorrect.
* `remind_repeat` range incorrect.
* `phone_invite` with CFR org setting enabled.
* `phone_invite` with consent org setting enabled.
* `phone_invite` with `require_login` setting enabled.
* Incorrect phone number.
* `allow_reassign` not allowed for `phone_invite`.
* Phone authentication on a free trial or without a paid subscription.

**Example** (`role not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Role Signer 1 on document edc027587a1482dde60330976064bc96346e00ce was not specified in any invite_actions. All roles must be used in all document groups"
    }
  ]
}
```

**Example** (`Email not string`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Field `email` in `email_groups.emails` should be of type string."
    }
  ]
}
```

**Example** (`Empty redirect_uri`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Field `redirect_uri` must not be an empty string."
    }
  ]
}
```

**Example** (`Incorrect language`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `language` field is invalid, allowed values: \"en\", \"es\", \"fr\"."
    }
  ]
}
```

**Example** (`group_id not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "unable to find document group"
    }
  ]
}
```

**Example** (`phone_invite empty`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `phone_invite` must not be empty string."
    }
  ]
}
```

**Example** (`CFR org restriction`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The phone_invite cannot be used with the CFR setting enabled."
    }
  ]
}
```

**Example** (`consent restriction`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The phone_invite cannot be used with the consent setting enabled."
    }
  ]
}
```

**Example** (`language not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `language` field must be a string."
    }
  ]
}
```

**Example** (`Missing redirect URL`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The one of `redirect_uri` fields is required when `redirect_target` is added."
    }
  ]
}
```

**Example** (`Invite already exists`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "An group invite already exists for this document group."
    }
  ]
}
```

**Example** (`phone_invite too long`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `phone_invite` value is too long. It should have 14 characters."
    }
  ]
}
```

**Example** (`redirect_uri too long`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `redirect_uri` field must contain no more than 2048 characters."
    }
  ]
}
```

**Example** (`Duplicate viewer email`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Two viewer actions in one order should not have one user email for document"
    }
  ]
}
```

**Example** (`Incorrect phone number`)

```json
{
  "errors": [
    {
      "code": 104833,
      "message": "The phone_invite value holds a non-existent phone number."
    }
  ]
}
```

**Example** (`Missing email group id`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Field `id` in `email_groups` should not be blank."
    }
  ]
}
```

**Example** (`Missing signature.type`)

```json
{
  "code": 66390,
  "message": "Signature type could not be blank"
}
```

**Example** (`redirect_uri not a URL`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Field `redirect_uri` must be a valid URL."
    }
  ]
}
```

**Example** (`Unmatching redirect_uri`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `redirect_uri` must be equal for the same signer."
    }
  ]
}
```

**Example** (`redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Field `redirect_uri` must be of type string."
    }
  ]
}
```

**Example** (`Empty close_redirect_uri`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `close_redirect_uri` field must not be empty."
    }
  ]
}
```

**Example** (`Incorrect signature.type`)

```json
{
  "code": 66390,
  "message": "The signature_type must be one of the following types: eideasy, eideasy-pdf, nom151"
}
```

**Example** (`Incorrect email_groups.id`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Field `id` in `email_groups` should be a valid unique id."
    }
  ]
}
```

**Example** (`Incorrect redirect_target`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `redirect_target` field is invalid, allowed values: self, blank."
    }
  ]
}
```

**Example** (`Missing email_groups.name`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Field `name` in `email_groups` should not be blank."
    }
  ]
}
```

**Example** (`Missing emails in a group`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Field `emails` in `email_groups` should not be blank."
    }
  ]
}
```

**Example** (`require_login restriction`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The phone_invite cannot be used with the require_login_for_signing setting enabled."
    }
  ]
}
```

**Example** (`Empty decline_redirect_uri`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `decline_redirect_uri` field must not be empty."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Too many emails in a group`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Email group cannot contain more than 15 emails."
    }
  ]
}
```

**Example** (`Unmatching redirect_target`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `redirect_target` fields must be the same for the one signer."
    }
  ]
}
```

**Example** (`email not an email address`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Field `email` in `email_groups.emails` should be a valid email address."
    }
  ]
}
```

**Example** (`email_groups.id not string`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Field `id` in `email_groups` should be of type string."
    }
  ]
}
```

**Example** (`redirect_target not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `redirect_target` field must be a string."
    }
  ]
}
```

**Example** (`Duplicate emails in a group`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Email in email group should be unique."
    }
  ]
}
```

**Example** (`close_redirect_uri too long`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `close_redirect_uri` field must contain no more than 2048 characters."
    }
  ]
}
```

**Example** (`emails not array of arrays.`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Field `emails` in `email_groups` must be an array of arrays."
    }
  ]
}
```

**Example** (`phone_invite type incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `phone_invite` value should be of type string."
    }
  ]
}
```

**Example** (`close_redirect_uri not a URL`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `close_redirect_uri` field contains a URL in an invalid format."
    }
  ]
}
```

**Example** (`email_groups.name not string`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Field `name` in `email_groups` should be of type string."
    }
  ]
}
```

**Example** (`remind_after range incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The remind_after attribute cannot be less than 0"
    }
  ]
}
```

**Example** (`Unmatching close_redirect_uri`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `close_redirect_uri` fields must be the same for the one signer."
    }
  ]
}
```

**Example** (`close_redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `close_redirect_uri` field must be a string."
    }
  ]
}
```

**Example** (`decline_redirect_uri too long`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `decline_redirect_uri` field must contain no more than 2048 characters."
    }
  ]
}
```

**Example** (`phone_invite format incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `phone_invite` value is incorrect."
    }
  ]
}
```

**Example** (`remind_before range incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The remind_before attribute cannot be less than 0"
    }
  ]
}
```

**Example** (`remind_repeat range incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The remind_repeat attribute cannot be less than 0"
    }
  ]
}
```

**Example** (`decline_redirect_uri not a URL`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `decline_redirect_uri` field contains a URL in an invalid format."
    }
  ]
}
```

**Example** (`Both email and email_group used`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The `email` or `email_group.name` in `invite_emails` is required. But you cannot use 2 parameters at one time."
    }
  ]
}
```

**Example** (`Unmatching decline_redirect_uri`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `decline_redirect_uri` fields must be the same for the one signer."
    }
  ]
}
```

**Example** (`decline_redirect_uri for viewer`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `decline_redirect_uri` field can be used with `sign` action only."
    }
  ]
}
```

**Example** (`decline_redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `decline_redirect_uri` field must be a string."
    }
  ]
}
```

**Example** (`prefill_signature_name is empty`)

```json
{
  "errors": [
    {
      "code": 19021121,
      "message": "The `prefill_signature_name` field cannot be empty."
    }
  ]
}
```

**Example** (`prefill_signature_name too long`)

```json
{
  "errors": [
    {
      "code": 19021120,
      "message": "The `prefill_signature_name` field cannot exceed 255 characters."
    }
  ]
}
```

**Example** (`One user has different languages`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `language` fields must be the same for the one user."
    }
  ]
}
```

**Example** (`email_groups not array of arrays`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "email_groups must be an array of arrays."
    }
  ]
}
```

**Example** (`phone_invite in invite_sms empty`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `phone_invite` in invite_sms must not be empty string."
    }
  ]
}
```

**Example** (`4-byte chars in email_groups.name`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Invalid characters provided for `name` in `email_groups`."
    }
  ]
}
```

**Example** (`Missing or different QES settings`)

```json
{
  "code": 65582,
  "message": "Invalid advanced sign provider for sender organization"
}
```

**Example** (`Phone authentication not available`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Phone authentication can't be used with the current subscription."
    }
  ]
}
```

**Example** (`phone_invite in invite_sms too long`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `phone_invite` value in invite_sms is too long. It should have 14 characters."
    }
  ]
}
```

**Example** (`prefill_signature_name not a string`)

```json
{
  "errors": [
    {
      "code": 19021118,
      "message": "The `prefill_signature_name` field must be a string."
    }
  ]
}
```

**Example** (`allow_reassign used with email group`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Could not set the allow_reassign parameter for a signing group."
    }
  ]
}
```

**Example** (`phone_invite in invite_sms incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `phone_invite` value in invite_sms is incorrect."
    }
  ]
}
```

**Example** (`reassign not allowed for phone_invite`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The `allow_reassign` in invite_actions could not be presented for phone_invite"
    }
  ]
}
```

**Example** (`phone_invite type in invite_sms incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `phone_invite` value in invite_sms should be of type string."
    }
  ]
}
```

**Example** (`expiration_days in invite_sms type incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `expiration_days` in invite_sms must be integer"
    }
  ]
}
```

**Example** (`expiration_days in invite_sms range incorrect`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The `expiration_days` in invite_sms should be between 3 and 180."
    }
  ]
}
```

**Example** (`prefill_signature_name contains 4-byte characters`)

```json
{
  "errors": [
    {
      "code": 19021119,
      "message": "UTF 4-byte characters are not supported in the `prefill_signature_name` field."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/documentgroup/{document_group_id}/groupinvite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"invite_steps": [{"order": 1, "invite_actions": [{"email": "signer1@email.com", "action": "sign", "role_name": "Signer 1", "signature": {"type": "eideasy"}, "document_id": "6e9580fa76ba4edca18fa6e680a36d10a6bab503"}]}, {"order": 2, "invite_actions": [{"email": "signer2@email.com", "action": "sign", "role_name": "Signer 2", "signature": {"type": "eideasy"}, "document_id": "c4aff212145b40888cd75e3c73c978484258c043"}]}]}'
```

---

## POST /documentgroup/{document_group_id}/groupinvite/{invite_id}/cancelinvite — Cancel doc group invite

This endpoint allows API users to cancel a document group invite. All documents will be unshared with invitees. Any signatures that occurred before canceling will remain on the documents.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |
| `invite_id` | string | Yes | ID of the document group invite. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "reason": {
      "type": "string",
      "maxLength": 1000,
      "description": "Reason for canceling the invite. Included in the cancellation email to signers. Max: `1000` characters. Emoji and other 4-byte characters aren't supported."
    },
    "notify_users": {
      "type": "boolean",
      "default": true,
      "description": "If `true`, signers get a cancellation email and SMS. Set to `false` to cancel the invite without notifying them. Default: `true`."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "reason": "Contract terms changed.",
  "notify_users": true
}
```

## Responses

### 200

The document group invite was cancelled.

**Example** (`Successful response`)

```json
{
  "status": "success"
}
```

### 400

* Wrong, expired, or missing token.
* The document group doesn't exist.
* The group invite doesn't exist.
* The group invite belongs to a different document group.
* The document group belongs to another user.
* The group invite was already canceled.
* `reason` isn't a string, is blank, is longer than `1000` characters, or contains 4-byte characters such as emoji.
* `notify_users` isn't a boolean.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Blank reason`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The reason value must not be empty string."
    }
  ]
}
```

**Example** (`Not the owner`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "User is not document group owner"
    }
  ]
}
```

**Example** (`Reason too long`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The reason value is too long. It should have 1000 characters or less."
    }
  ]
}
```

**Example** (`reason not a string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The reason value should be of type string."
    }
  ]
}
```

**Example** (`Group invite not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "unable to find document group invite of 0d4ad4b1d6a64bf6a8e8b7f0e2f5b5ac0c1f9e3d"
    }
  ]
}
```

**Example** (`Invite already canceled`)

```json
{
  "errors": [
    {
      "code": 66302,
      "message": "The group invite was canceled."
    }
  ]
}
```

**Example** (`Document group not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "unable to find document group"
    }
  ]
}
```

**Example** (`Invite from another group`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document group invite id 0d4ad4b1d6a64bf6a8e8b7f0e2f5b5ac0c1f9e3d does not belong to document group 9b4e36781745eb345d3148f33e6ff021a1a0a81b"
    }
  ]
}
```

**Example** (`notify_users not a boolean`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The notify_users value should be of type boolean."
    }
  ]
}
```

**Example** (`Unsupported characters in reason`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "4-byte characters in reason are not supported."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/documentgroup/{document_group_id}/groupinvite/{invite_id}/cancelinvite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"reason": "Contract terms changed.", "notify_users": true}'
```

---

## POST /documentgroup/{document_group_id}/groupinvite/{invite_id}/invitestep/{step_id}/update — Update doc group invite

This endpoint either replaces the recipient at a particular invite step or updates the invite attributes (reminder, expiration, language) for a recipient at that step.

Recipients can be identified and replaced by email or by SMS. Identify the current recipient by `user_to_update` (email) or `phone_invite_to_update` (phone number). Set the new recipient with `replace_with_this_user` (email) or `replace_with_this_phone_invite` (phone number). This supports all four conversions: email to email, email to phone, phone to email, and phone to phone. For SMS invites, see the [SMS invite guide](/docs/sms-invite).

To get the current SMS recipient's phone number for `phone_invite_to_update`, call [Get doc group invite](/docs/doc-group-field-invite/operations/get-document-group-invite) and read `actions[].signer_phone_invite`.

**Notes**

* Send both an identifier and a replacement. Use one identifier (`user_to_update` for email or `phone_invite_to_update` for phone) and one replacement (`replace_with_this_user` for email or `replace_with_this_phone_invite` for phone). To keep the same recipient and only change attributes, repeat the current value in the replacement field.
* For an SMS recipient, omitting `replace_with_this_phone_invite` still returns `200`, but the invite stops being delivered, so always send it.
* When replacing with an email recipient, `invite_email.email` must equal `replace_with_this_user`. When replacing with an SMS recipient, `invite_sms.phone_invite` must equal `replace_with_this_phone_invite`.
* `update_invite_action_attributes` is optional. If omitted, every document the recipient has in the step is updated; if provided, only the listed `document_id`s are updated.
* `expiration_days` accepts `1` to `180`. `0` means use the organization's default invite-expiration setting (falls back to `30` days).
* A phone recipient is rejected when the `CFR` or `require_login_for_signing` setting is enabled. SMS delivery may still be suppressed after a `200` if the recipient has opted out of or declined SMS consent.
* `allow_reassign` cannot be combined with `replace_with_this_phone_invite`.
* With `is_short_link_invite: true` the service generates the recipient, so neither `replace_with_this_user` nor `replace_with_this_phone_invite` may be sent.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |
| `invite_id` | string | Yes | ID of the document group invite. |
| `step_id` | string | Yes | ID of the invite step to update. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "invite_sms": {
      "type": "object",
      "required": [
        "phone_invite"
      ],
      "properties": {
        "reminder": {
          "type": "object",
          "properties": {
            "remind_after": {
              "type": "integer",
              "maximum": 179,
              "minimum": 1,
              "description": "Number of days after sending the invite when the recipient receives a reminder SMS. Must be less than `expiration_days`."
            },
            "remind_before": {
              "type": "integer",
              "maximum": 179,
              "minimum": 1,
              "description": "Number of days before the invite expires when the recipient receives a reminder SMS. Must be less than `expiration_days`."
            },
            "remind_repeat": {
              "type": "integer",
              "maximum": 7,
              "minimum": 1,
              "description": "Number of days between each reminder sent to the recipient."
            }
          },
          "description": "Settings for sending automatic reminders. A reminder applies to the recipient's first invite in the step, not to each document."
        },
        "phone_invite": {
          "type": "string",
          "example": "+14085550123",
          "description": "Phone number of the new SMS recipient in E.164 format (`+` followed by up to 13 digits, max 14 characters). Must match `replace_with_this_phone_invite`."
        },
        "expiration_days": {
          "type": "integer",
          "maximum": 180,
          "minimum": 1,
          "description": "Number of days before the invite expires. Accepts `1` to `180`. `0` uses the organization's default invite-expiration setting (falls back to `30`)."
        }
      },
      "description": "Settings for the new SMS recipient. Include when the updated recipient receives the invite by SMS. The `phone_invite` value must match `replace_with_this_phone_invite`."
    },
    "invite_email": {
      "type": "object",
      "required": [
        "email"
      ],
      "properties": {
        "email": {
          "type": "string",
          "format": "email",
          "example": "updated.signer@email.com",
          "description": "Email address of the new recipient. Must match `replace_with_this_user`."
        },
        "reminder": {
          "type": "object",
          "properties": {
            "remind_after": {
              "type": "integer",
              "maximum": 179,
              "minimum": 1,
              "description": "Number of days after sending the invite when the recipient receives a reminder. Must be less than `expiration_days`."
            },
            "remind_before": {
              "type": "integer",
              "maximum": 179,
              "minimum": 1,
              "description": "Number of days before the invite expires when the recipient receives a reminder. Must be less than `expiration_days`."
            },
            "remind_repeat": {
              "type": "integer",
              "maximum": 7,
              "minimum": 1,
              "description": "Number of days between each reminder sent to the recipient."
            }
          },
          "description": "Settings for sending automatic reminders. A reminder applies to the recipient's first invite in the step, not to each document."
        },
        "expiration_days": {
          "type": "integer",
          "maximum": 180,
          "minimum": 1,
          "description": "Number of days before the invite expires. Accepts `1` to `180`. `0` uses the organization's default invite-expiration setting (falls back to `30`)."
        }
      },
      "description": "Settings for the new email recipient. Include when the updated recipient receives the invite by email. The `email` value must match `replace_with_this_user`."
    },
    "user_to_update": {
      "type": "string",
      "example": "initial.signer@email.com",
      "description": "Current email recipient to update or replace, identified by email address. Provide either `user_to_update` or `phone_invite_to_update`, not both."
    },
    "client_timestamp": {
      "type": "integer",
      "example": 1531154773,
      "description": "Unix timestamp of the request."
    },
    "is_short_link_invite": {
      "type": "boolean",
      "example": false,
      "description": "Set to `true` for a short-link invite. Short-link invites cannot contain `replace_with_this_user` or `replace_with_this_phone_invite`, reminders, or SN Login authentication."
    },
    "phone_invite_to_update": {
      "type": "string",
      "example": "+14075985199",
      "description": "Current SMS recipient to update or replace, identified by phone number in E.164 format (`+` followed by up to 13 digits, max 14 characters). Source it from [Get doc group invite](/docs/doc-group-field-invite/operations/get-document-group-invite) and read `actions[].signer_phone_invite`. Provide either `user_to_update` or `phone_invite_to_update`. Note: The internal `sms_signer_+<phone>@no.reply` address is not a supported input."
    },
    "replace_with_this_user": {
      "type": "string",
      "example": "updated.signer@email.com",
      "description": "Email address of the new recipient that replaces the current one. Provide either `replace_with_this_user` or `replace_with_this_phone_invite`, not both. When provided, `invite_email.email` must equal this value."
    },
    "replace_with_this_phone_invite": {
      "type": "string",
      "example": "+14085550123",
      "description": "Phone number (E.164) of the new SMS recipient that replaces the current one. Provide either `replace_with_this_user` or `replace_with_this_phone_invite`. When provided, `invite_sms.phone_invite` must equal this value. Cannot be combined with `allow_reassign`, or with the `CFR` or `require_login_for_signing` settings."
    },
    "update_invite_action_attributes": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "document_id"
        ],
        "properties": {
          "language": {
            "enum": [
              "en",
              "es",
              "fr"
            ],
            "type": "string",
            "example": "en",
            "description": "Language of the invite email or SMS. Allowed values: `en`, `es`, `fr`. Must be the same for one recipient."
          },
          "contact_id": {
            "type": "string",
            "example": "abc123def456abc123def456abc123def456abcd",
            "description": "40-character ID of the CRM contact to associate with this recipient."
          },
          "document_id": {
            "type": "string",
            "example": "abc123def456abc123def456abc123def456abcd",
            "description": "ID of the document within the document group to update for this recipient."
          },
          "allow_reassign": {
            "type": "integer",
            "example": 0,
            "description": "Allow the recipient to reassign the invite (`1`) or not (`0`). Cannot be used together with `replace_with_this_phone_invite`."
          },
          "authentication": {
            "type": "object",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "enum": [
                  "password",
                  "phone"
                ],
                "type": "string",
                "description": "Authentication type. Possible values: `password`, `phone`. `phone` is available on paid plans; on a free trial or without a paid subscription, use `password`."
              },
              "phone": {
                "type": "string",
                "description": "Signer's phone number for the verification code. Required if `type` is `phone`."
              },
              "value": {
                "type": "string",
                "description": "Password the signer enters to open the document. Required if `type` is `password`."
              },
              "method": {
                "enum": [
                  "sms",
                  "phone_call"
                ],
                "type": "string",
                "description": "How the signer receives the verification code. Required if `type` is `phone`. Possible values: `sms`, `phone_call`."
              }
            },
            "description": "Signer's identity verification for this document. Replaces the current authentication settings."
          },
          "decline_by_signature": {
            "type": "string",
            "example": "0",
            "description": "When a signer clicks a signature field, they can sign or decline the document group. Enabled (`1`) or disabled (`0`)."
          }
        }
      },
      "description": "Optional per-document settings for the recipient being updated. If omitted, all documents the recipient has in the step are updated; if provided, only the listed `document_id`s are updated."
    }
  }
}
```

**Example** (`Change signer authentication`)

```json
{
  "user_to_update": "signer@email.com",
  "replace_with_this_user": "signer@email.com",
  "update_invite_action_attributes": [
    {
      "document_id": "abc123def456abc123def456abc123def456abcd",
      "authentication": {
        "type": "phone",
        "phone": "+12025550123",
        "method": "sms"
      }
    }
  ]
}
```

**Example** (`Update SMS recipient (phone to phone)`)

```json
{
  "invite_sms": {
    "phone_invite": "+14085550123",
    "expiration_days": 30
  },
  "phone_invite_to_update": "+14075985199",
  "replace_with_this_phone_invite": "+14085550123",
  "update_invite_action_attributes": [
    {
      "document_id": "abc123def456abc123def456abc123def456abcd"
    }
  ]
}
```

**Example** (`Update email recipient (email to email)`)

```json
{
  "invite_email": {
    "email": "updated.signer@email.com",
    "expiration_days": 30
  },
  "user_to_update": "initial.signer@email.com",
  "replace_with_this_user": "updated.signer@email.com",
  "update_invite_action_attributes": [
    {
      "document_id": "abc123def456abc123def456abc123def456abcd",
      "allow_reassign": 0,
      "decline_by_signature": "0"
    }
  ]
}
```

**Example** (`Convert SMS recipient to email (phone to email)`)

```json
{
  "invite_email": {
    "email": "updated.signer@email.com",
    "expiration_days": 30
  },
  "phone_invite_to_update": "+14075985199",
  "replace_with_this_user": "updated.signer@email.com",
  "update_invite_action_attributes": [
    {
      "document_id": "abc123def456abc123def456abc123def456abcd",
      "allow_reassign": 0,
      "decline_by_signature": "0"
    }
  ]
}
```

**Example** (`Convert email recipient to SMS (email to phone)`)

```json
{
  "invite_sms": {
    "phone_invite": "+14075985199",
    "expiration_days": 30
  },
  "user_to_update": "initial.signer@email.com",
  "replace_with_this_phone_invite": "+14075985199",
  "update_invite_action_attributes": [
    {
      "document_id": "abc123def456abc123def456abc123def456abcd"
    }
  ]
}
```

## Responses

### 200

The invite step was updated successfully.

**Example** (`Successful response`)

```json
{
  "status": "success"
}
```

### 400

Bad request. Possible errors:

* Incorrect or missing token.
* Neither `user_to_update` nor `phone_invite_to_update` provided.
* Both `user_to_update` and `phone_invite_to_update` provided (only one identifier allowed).
* Both `replace_with_this_user` and `replace_with_this_phone_invite` provided (only one replacement allowed).
* Incorrect user to update.
* The recipient in `user_to_update` or `phone_invite_to_update` is not on this step.
* Incorrect document ID in `update_invite_action_attributes`.
* Incorrect replace user email.
* Incorrect group invite ID in endpoint.
* Cannot update the invite with an email group.
* Invalid `phone_invite_to_update` or `replace_with_this_phone_invite` format.
* Phone number is valid but could not be found.
* `invite_email.email` does not match `replace_with_this_user`.
* `invite_sms.phone_invite` does not match `replace_with_this_phone_invite`.
* `allow_reassign` used together with `replace_with_this_phone_invite`.
* A short-link invite (`is_short_link_invite`) contains `replace_with_this_user` or `replace_with_this_phone_invite`.
* Phone recipient rejected because the `CFR` setting is enabled.
* Phone recipient rejected because the `require_login_for_signing` setting is enabled.
* SSO (SN Login) authentication is incompatible with SMS delivery.
* Daily invite limit exceeded.
* The organization does not allow senders to change the invite expiration.
* The organization does not allow senders to change invite reminders.
* The SMS message was blocked by a message filter.
* `authentication` is empty, `authentication.type` isn't `password` or `phone`, or `value` is missing for `password`.
* Phone authentication on a free trial or without a paid subscription.

**Example** (`Missing password`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Invalid updateInviteActionAttributes[0].authentication.value. Value field is required for authentication type password."
    }
  ]
}
```

**Example** (`CFR setting enabled`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The `replace_with_this_phone_invite` cannot be used with the `CFR` setting enabled."
    }
  ]
}
```

**Example** (`Empty authentication`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Key authentication must be not empty"
    }
  ]
}
```

**Example** (`Phone number not found`)

```json
{
  "errors": [
    {
      "code": 104833,
      "message": "The phone_invite value holds a non-existent phone number."
    }
  ]
}
```

**Example** (`SMS invite not allowed`)

```json
{
  "errors": [
    {
      "code": 104956,
      "message": "Sending sms invite is not allowed."
    }
  ]
}
```

**Example** (`Incorrect user to update`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Invite step does not belong to document group invite"
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Recipient not on this step`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Cannot update signer signer1@email.com because user is not part of invite step"
    }
  ]
}
```

**Example** (`Short link invite conflict`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Short link invite cannot contain replace_with_this_user or replace_with_this_phone_invite fields."
    }
  ]
}
```

**Example** (`Daily invite limit exceeded`)

```json
{
  "errors": [
    {
      "code": 65639,
      "message": "Daily invite limit exceeded"
    }
  ]
}
```

**Example** (`Invalid phone number format`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The `phone_invite_to_update` value is invalid. It must start with `+` and contain up to 13 digits (total max 14 characters)."
    }
  ]
}
```

**Example** (`Neither identifier provided`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Either `user_to_update` or `phone_invite_to_update` field must be provided."
    }
  ]
}
```

**Example** (`Incorrect replace user email`)

```json
{
  "errors": [
    {
      "code": 65544,
      "message": "replace_with_this_user is invalid email."
    }
  ]
}
```

**Example** (`Require login setting enabled`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The `replace_with_this_phone_invite` cannot be used with the `require_login_for_signing` setting enabled."
    }
  ]
}
```

**Example** (`SSO login incompatible with SMS`)

```json
{
  "errors": [
    {
      "code": 19099002,
      "message": "Authentication type sso_login is incompatible with SMS delivery type."
    }
  ]
}
```

**Example** (`Unsupported authentication type`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Cannot update with type 'nope'. Type not supported."
    }
  ]
}
```

**Example** (`Email does not match replacement`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Email in the invite_email object must match the email of the user being updated."
    }
  ]
}
```

**Example** (`Phone does not match replacement`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "`phone_invite` in the `invite_sms` object must match the `phone_invite` of the user being updated."
    }
  ]
}
```

**Example** (`Phone authentication not available`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Phone authentication can't be used with the current subscription."
    }
  ]
}
```

**Example** (`Incorrect group invite id in endpoint`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "unable to find document group invite of f17e94f9461e91b85c7cd9f98c3f75a7f621d61f"
    }
  ]
}
```

**Example** (`Only one recipient identifier allowed`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Only one field can be provided: either `user_to_update` or `phone_invite_to_update`."
    }
  ]
}
```

**Example** (`Reassign not allowed for phone invite`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `allow_reassign` in `update_invite_action_attributes` could not be presented for `replace_with_this_phone_invite`."
    }
  ]
}
```

**Example** (`Only one replacement recipient allowed`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Only one field can be provided: either `replace_with_this_user` or `replace_with_this_phone_invite`."
    }
  ]
}
```

**Example** (`Cannot update the invite with an email group`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Field invite with email group is present"
    }
  ]
}
```

**Example** (`Editing reminders not allowed by organization`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Modifying invite reminders is not allowed by organization settings."
    }
  ]
}
```

**Example** (`Editing expiration not allowed by organization`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Modifying invite expiration is not allowed by organization settings."
    }
  ]
}
```

**Example** (`Incorrect document id in update invite action attributes`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Could not find existing action with document id c4800037f45e04be9f381f7e891e7c68d5f2722d in update_invite_action_attributes payload"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/documentgroup/{document_group_id}/groupinvite/{invite_id}/invitestep/{step_id}/update" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"user_to_update": "signer@email.com", "replace_with_this_user": "signer@email.com", "update_invite_action_attributes": [{"document_id": "abc123def456abc123def456abc123def456abcd", "authentication": {"type": "phone", "phone": "+12025550123", "method": "sms"}}]}'
```

---

## POST /documentgroup/{document_group_id}/groupinvite/{invite_id}/resendinvites — Resend doc group invite

This endpoint allows API users to resend invite emails to recipients with pending invites in a document group invite. Resend can also be used to resend invites to a single user if the user's email is specified in the POST JSON body.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |
| `invite_id` | string | Yes | ID of the document group invite. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "format": "email"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "email": "user@example.com"
}
```

## Responses

### 200

The invite emails were sent again.

**Example** (`Successful response`)

```json
{
  "status": "success"
}
```

### 400

* Incorrect email.
* Incorrect group invite id in endpoint.
* Incorrect group id in endpoint.
* Cannot update the invite with an email group.

**Example** (`Incorrect email`)

```json
{
  "errors": [
    {
      "code": 65544,
      "message": "Invalid email."
    }
  ]
}
```

**Example** (`Incorrect group id in endpoint`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "unable to find document group"
    }
  ]
}
```

**Example** (`Incorrect group invite id in endpoint`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "unable to find document group invite of f1a0b951084adc732bed3225b60f2d1a0efc82e3"
    }
  ]
}
```

**Example** (`Cannot update the invite with an email group`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Field invite with email group is present"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/documentgroup/{document_group_id}/groupinvite/{invite_id}/resendinvites" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email": "user@example.com"}'
```

---

## POST /v2/document-groups/{document_group_id}/invites/{document_group_invite_id}/full-decline — Decline group invite

Allows API users to decline signing a document group invite.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |
| `document_group_invite_id` | string | Yes | ID of the document group invite. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "decline"
  ],
  "properties": {
    "decline": {
      "type": "string",
      "description": "The reason for decline."
    },
    "client_timestamp": {
      "type": "integer",
      "description": "Unix timestamp of decline."
    }
  },
  "x-examples": {
    "Example 1": {
      "decline": "decline reason",
      "client_timestamp": 1586523305
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "decline": "decline reason",
  "client_timestamp": 1586523305
}
```

## Responses

### 204

Successfully declined.

### 400

The access token is incorrect.

**Example** (`Incorrect access token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

User does not have access to this action.

### 404

* Requested document group or group invite not found or are not related to each other.
* No pending invites for you in this document group.
* The group can not be declined as it is not in pending state.

**Example** (`Doc group not found`)

```json
{
  "errors": [
    {
      "code": 19001011,
      "message": "Document group `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` not found"
    }
  ]
}
```

**Example** (`Doc group invite not found`)

```json
{
  "errors": [
    {
      "code": 19002005,
      "message": "Document group invite `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` not found"
    }
  ]
}
```

**Example** (`No pending invites for you in this document group.`)

```json
{
  "errors": [
    {
      "code": 19006002,
      "message": "No pending invites for you in this document group."
    }
  ]
}
```

**Example** (`The group can not be declined as it is not in pending state.`)

```json
{
  "errors": [
    {
      "code": 19006001,
      "message": "The group can not be declined as it is not in pending state."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/invites/{document_group_invite_id}/full-decline" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"decline": "decline reason", "client_timestamp": 1586523305}'
```

---

## POST /v2/document-groups/{document_group_id}/send-email — Email doc group copy

Sends an email with a document group. A receiver can view or download the documents. A document group can be sent by either an owner, signer, or viewer of the document group.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "to",
    "with_history",
    "client_timestamp"
  ],
  "properties": {
    "to": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "email"
        ],
        "properties": {
          "email": {
            "type": "string",
            "x-stoplight": {
              "id": "1z69qqswvphys"
            }
          }
        },
        "x-stoplight": {
          "id": "ir6umz5zp6v9l"
        }
      },
      "x-stoplight": {
        "id": "qqa5xtlcjptve"
      }
    },
    "with_history": {
      "type": "boolean",
      "x-stoplight": {
        "id": "4isrk0z57mbvy"
      }
    },
    "client_timestamp": {
      "type": "integer",
      "x-stoplight": {
        "id": "rdad4u2majdyk"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "to": [
    {
      "email": "recipient@example.com"
    }
  ],
  "with_history": true,
  "client_timestamp": 1764547200
}
```

## Responses

### 204

Success (Success, no content)

### 400

* Incorrect payload.
* Incorrect X-Skip-Rules header.
* Permission error.
* Email limit exceeded.
* Credit card is associated with a document.
* File size limit exceeded (10 MB).
* Payload validation error:
  * `to` must be an array.
  * `to` must not be null.
  * `to` must include one element.
  * `with_history` must be a boolean.
  * `with_history` must not be null.
  * `email` must be a string.
  * `email` must not be null.
  * `email` must be a valid email address.
  * `client_timestamp` must be an integer.
  * `client_timestamp` must not be null.
  * `client_timestamp` value must be between 0 and 4294967295.

**Example** (`File is too big`)

```json
{
  "errors": [
    {
      "code": 19062001,
      "message": "Attachment size exceeded 10 Megabyte."
    }
  ]
}
```

**Example** (`Permission error`)

```json
{
  "errors": [
    {
      "code": 19061001,
      "message": "Insufficient rights to send the document group via email."
    }
  ]
}
```

**Example** (`Incorrect payload`)

```json
{
  "errors": [
    {
      "code": 19001000,
      "message": "Invalid payload"
    }
  ]
}
```

**Example** (`Email limit exceeded`)

```json
{
  "errors": [
    {
      "code": 19053003,
      "message": "Exceeded daily email limit."
    }
  ]
}
```

**Example** (``to` must be an array`)

```json
{
  "errors": [
    {
      "code": 19060001,
      "message": "'The `to` value should be of type array."
    }
  ]
}
```

**Example** (``to` must not be null`)

```json
{
  "errors": [
    {
      "code": 19060002,
      "message": "The `to` value should not be null."
    }
  ]
}
```

**Example** (``email` must be a string`)

```json
{
  "errors": [
    {
      "code": 19060007,
      "message": "The `to` element `email` value should be of type string."
    }
  ]
}
```

**Example** (``email` must not be null`)

```json
{
  "errors": [
    {
      "code": 19060008,
      "message": "The `to` element `email` value should not be null."
    }
  ]
}
```

**Example** (`Credit card on a document`)

```json
{
  "errors": [
    {
      "code": 19061002,
      "message": "It is not allowed to send the document group via email."
    }
  ]
}
```

**Example** (`Incorrect X-Skip-Rules header`)

```json
{
  "errors": [
    {
      "code": 19001057,
      "message": "Bad header `%s` value."
    }
  ]
}
```

**Example** (``to` must include one element`)

```json
{
  "errors": [
    {
      "code": 19060003,
      "message": "The `to` value should contain exactly 1 elements."
    }
  ]
}
```

**Example** (``with_history` must not be null`)

```json
{
  "errors": [
    {
      "code": 19060006,
      "message": "The `with_history` value should not be null."
    }
  ]
}
```

**Example** (``with_history` must be a boolean`)

```json
{
  "errors": [
    {
      "code": 19060005,
      "message": "The `with_history` value should be of type bool."
    }
  ]
}
```

**Example** (``client_timestamp` must not be null`)

```json
{
  "errors": [
    {
      "code": 19060011,
      "message": "'The client_timestamp value should not be null."
    }
  ]
}
```

**Example** (``client_timestamp` must be an integer`)

```json
{
  "errors": [
    {
      "code": 19060010,
      "message": "The client_timestamp value should be of type int."
    }
  ]
}
```

**Example** (``email` must be a valid email address`)

```json
{
  "errors": [
    {
      "code": 19060009,
      "message": "The `to` element `email` value is not a valid email address."
    }
  ]
}
```

**Example** (``client_timestamp` value must be between 0 and 4294967295`)

```json
{
  "errors": [
    {
      "code": 19060012,
      "message": "'The client_timestamp value should be between 0 and 4294967295."
    }
  ]
}
```

### 403

Unverified user email.

**Example** (`User not verified`)

```json
{
  "errors": [
    {
      "code": 19001050,
      "message": "User is not verified."
    }
  ]
}
```

### 404

Document group not found.

**Example** (`Document group not found`)

```json
{
  "errors": [
    {
      "code": 19002010,
      "message": "Document group `0000000000000000000000000000000000000000` not found."
    }
  ]
}
```

### 500

Something went wrong during downloading attachments or sending emails.

**Example** (`Could not send email`)

```json
{
  "errors": [
    {
      "code": 19062004,
      "message": "Something went wrong during send email."
    }
  ]
}
```

**Example** (`Could not download attachments`)

```json
{
  "errors": [
    {
      "code": 19062002,
      "message": "Something went wrong during download attachments."
    }
  ]
}
```

**Example** (`Could not download attachments 2`)

```json
{
  "errors": [
    {
      "code": 19062003,
      "message": "Something went wrong during download attachments."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/send-email" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"to": [{"email": "recipient@example.com"}], "with_history": true, "client_timestamp": 1764547200}'
```

---

## POST /v2/document-groups/{document_group_id}/free-form-invites — Create freeform invite

This endpoint allows API users to create and send a FreeForm invite to sign a document group.

**FreeForm invite**

A FreeForm invite is an invite with a document that does not contain fields; recipients can add their signature anywhere on the document.
> [!NOTE]
> A FreeForm invite can be sent to the sender's own email address.

**Schedule a freeform invite**

To send a FreeForm document group invite at a later time, use the [Schedule document group invite](/docs/scheduled-doc-group-invite/operations/post-document-group-scheduled-invite) endpoint with `is_freeform_invite: true`.

> [!NOTE]
> Custom `subject` and `message` require a paid API plan, an API free trial, or a Site License. On a free trial or without a paid subscription, `subject` can have up to `100` characters and `message` up to `200` characters.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "to",
    "client_timestamp"
  ],
  "properties": {
    "cc": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "CC recipient's email address."
          }
        }
      },
      "description": "Array with the list of CC email addresses."
    },
    "to": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "email"
        ],
        "properties": {
          "email": {
            "type": "string",
            "description": "Signer's email address. **Note**: A FreeForm invite can be sent to the sender's own email address."
          },
          "language": {
            "enum": [
              "en",
              "es",
              "fr"
            ],
            "type": "string",
            "description": "Sets the language of the signing session and notification emails for the signer. Possible values: `en` for English, `es` for Spanish, and `fr` for French. If not set, the language is determined by the language of your SignNow account. If emails are branded, you can set up [your own](/docs/branding-email-resources#language-branding) email texts in different languages."
          },
          "redirect_uri": {
            "type": "string",
            "description": "The link that opens after a signer signs the document group. This field overrides the general `redirect_uri`.",
            "x-stoplight": {
              "id": "lcfnb28x6nalk"
            }
          },
          "redirect_target": {
            "enum": [
              "blank",
              "self"
            ],
            "type": "string",
            "default": "blank",
            "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab.",
            "x-stoplight": {
              "id": "l98jmc0673jxg"
            }
          },
          "close_redirect_uri": {
            "type": "string",
            "description": "The link that opens after a signer selects the **Close** button.",
            "x-stoplight": {
              "id": "z8u5arnl0loe4"
            }
          }
        }
      },
      "description": "Array with the list of signers."
    },
    "message": {
      "type": "string",
      "description": "Email body message for all signers. Requires a paid API plan, an API free trial, or a Site License. Max `200` characters on a free trial or without a paid subscription."
    },
    "subject": {
      "type": "string",
      "description": "Email subject for all signers. Requires a paid API plan, an API free trial, or a Site License. Max `100` characters on a free trial or without a paid subscription."
    },
    "redirect_uri": {
      "type": "string",
      "description": "When the document is signed, the signer is redirected to this URI."
    },
    "client_timestamp": {
      "type": "integer",
      "maximum": 4294967295,
      "minimum": 0,
      "description": "UNIX timestamp.",
      "x-stoplight": {
        "id": "h1cu9trup60is"
      }
    }
  },
  "x-examples": {
    "Example 1": {
      "cc": [
        {
          "email": "cc@email.com"
        }
      ],
      "to": [
        {
          "email": "signer@email.com"
        }
      ],
      "message": "You have been invited to sign a document group",
      "subject": "You have been invited to sign a document group",
      "redirect_uri": "https://example.com",
      "client_timestamp": 1530017036
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "cc": [
    {
      "email": "user2@example.com"
    }
  ],
  "to": [
    {
      "email": "user1@example.com",
      "language": "en",
      "redirect_uri": "https://example.com/done",
      "redirect_target": "blank",
      "close_redirect_uri": "https://example.com/close"
    }
  ],
  "message": "Custom message",
  "subject": "Custom subject",
  "redirect_uri": "https://example.com/done",
  "client_timestamp": 1719852788
}
```

## Responses

### 201

The freeform invite was sent.

**Example** (`Successful response`)

```json
{
  "data": {
    "id": "afa87d756ad63d2e8e83427d191da2e99d005b6c"
  }
}
```

### 400

* Incorrect or missing token.
* More than 20 documents in the document group.
* Document group has no documents.
* Document group has active fields.
* Document group has deleted or trashed documents.
* Owner cannot be a signer.
* Invite has more than 50 signers.
* User doesn't own the document group.
* Missing `to` email.
* `to` is not an array.
* `to` is not an array of arrays.
* `cc`  is not an array.
* `cc` is not an array of arrays.
* `message` is not a string.
* Empty `message`.
* `message` is longer than 1000 characters.
* `message` contains unsupported characters.
* `subject` is not a string.
* Empty `subject.
* `subject` is longer than 1000 characters.
* `subject` contains unsupported characters.
* `redirect_uri` is not a string.
* Empty `redirect_uri`.
* `redirect_uri` is not a correct URL.
* `redirect_uri` is longer than 2048 characters.
* Missing `to.email`.
* `to.email` is not a string.
* Empty `to.email`.
* `to. email` is not a correct email address.
* Missing `cc.email`.
* `cc.email` is not a string.
* Empty `cc.email`.
* `cc. email` is not a correct email address.
* Emails in `to` are not unique.
* Emails in `cc` are not unique.
* Invite has more than 50 signers.
* Invite has more than 50 emails in `cc`.
* Missing `client_timestamp`.
* `client_timestamp` is not an integer.
* `client_timestamp` is out of range.
* `language` is not a string.
* Incorrect `language`.
* `to.close_redirect_uri` is not a string.
* Empty `to.close_redirect_uri`.
* `to.close_redirect_uri` is not a correct URL address.
* `to.close_redirect_uri` is longer than 2048 characters.
* `to.redirect_uri` is not a string.
* Empty `to.redirect_uri`.
* `to.redirect_uri` is not a correct URL address.
* `to.redirect_uri` is longer than 2048 characters.
* `redirect_target` is not a string.
* Incorrect `redirect_target`.
* One of redirect URLs is required if `redirect_target` is added.
* Custom `subject` or `message` without a paid API plan, an API free trial, or a Site License.
* `subject` is longer than `100` characters or `message` is longer than `200` characters (on a free trial or without a paid subscription).

**Example** (`Empty message`)

```json
{
  "errors": [
    {
      "code": 19054007,
      "message": "Field `message` must not be empty string."
    }
  ]
}
```

**Example** (`Empty subject`)

```json
{
  "errors": [
    {
      "code": 19054011,
      "message": "Field `subject` must not be empty string."
    }
  ]
}
```

**Example** (`Empty cc.email`)

```json
{
  "errors": [
    {
      "code": 19054029,
      "message": "Field `email` in `cc` should not be empty string."
    }
  ]
}
```

**Example** (`Empty to.email`)

```json
{
  "errors": [
    {
      "code": 19054028,
      "message": "Field `email` in `to` should not be empty string."
    }
  ]
}
```

**Example** (``cc` not array`)

```json
{
  "errors": [
    {
      "code": 19054004,
      "message": "Field `cc` should be of type array."
    }
  ]
}
```

**Example** (``to` not array`)

```json
{
  "errors": [
    {
      "code": 19054002,
      "message": "Field `to` should be of type array"
    }
  ]
}
```

**Example** (`Owner is signer`)

```json
{
  "errors": [
    {
      "code": 19055005,
      "message": "Document group owner can not be signer."
    }
  ]
}
```

**Example** (`Missing cc.email`)

```json
{
  "errors": [
    {
      "code": 19054021,
      "message": "Field `email` in `cc` should not be null."
    }
  ]
}
```

**Example** (`Missing to.email`)

```json
{
  "errors": [
    {
      "code": 19054018,
      "message": "Field `email` in `to` should not be null."
    }
  ]
}
```

**Example** (`Too many signers`)

```json
{
  "errors": [
    {
      "code": 19054026,
      "message": "Maximum number of signers is 50."
    }
  ]
}
```

**Example** (`message too long`)

```json
{
  "errors": [
    {
      "code": 19054008,
      "message": "Field `message` should not exceed 1000 characters."
    }
  ]
}
```

**Example** (`subject too long`)

```json
{
  "errors": [
    {
      "code": 19054012,
      "message": "Field `subject` should not exceed 1000 characters."
    }
  ]
}
```

**Example** (`Empty redirect_uri`)

```json
{
  "errors": [
    {
      "code": 19054015,
      "message": "Field `redirect_uri` must not be empty string."
    }
  ]
}
```

**Example** (`Incorrect language`)

```json
{
  "errors": [
    {
      "code": 19054034,
      "message": "Field `language` in `to` is invalid, allowed values: en, fr, es."
    }
  ]
}
```

**Example** (`Missing `to` field`)

```json
{
  "errors": [
    {
      "code": 19054001,
      "message": "Field `to` should not be null."
    }
  ]
}
```

**Example** (`message not string`)

```json
{
  "errors": [
    {
      "code": 19054006,
      "message": "Field `message` should be of type string"
    }
  ]
}
```

**Example** (`subject not string`)

```json
{
  "errors": [
    {
      "code": 19054010,
      "message": "Field `subject` should be of type string."
    }
  ]
}
```

**Example** (`DG has no documents`)

```json
{
  "errors": [
    {
      "code": 19055002,
      "message": "Document group has no documents."
    }
  ]
}
```

**Example** (`cc.email not string`)

```json
{
  "errors": [
    {
      "code": 19054022,
      "message": "Field `email` in `cc` should be of type string."
    }
  ]
}
```

**Example** (`language not string`)

```json
{
  "errors": [
    {
      "code": 19054033,
      "message": "Field `language` in `to` must be a string."
    }
  ]
}
```

**Example** (`to.email not string`)

```json
{
  "errors": [
    {
      "code": 19054019,
      "message": "Field `email` in `to` should be of type string."
    }
  ]
}
```

**Example** (`DG has active fields`)

```json
{
  "errors": [
    {
      "code": 19055001,
      "message": "Document group has active fields."
    }
  ]
}
```

**Example** (`Missing redirect URL`)

```json
{
  "errors": [
    {
      "code": 19054045,
      "message": "In `to`, one of the `redirect_uri` fields is required when `redirect_target` is added."
    }
  ]
}
```

**Example** (`More than 50 signers`)

```json
{
  "errors": [
    {
      "code": 19054026,
      "message": "Maximum number of signers is 50."
    }
  ]
}
```

**Example** (`Empty to.redirect_uri`)

```json
{
  "errors": [
    {
      "code": 19054036,
      "message": "The `redirect_uri` field in `to` must not be empty."
    }
  ]
}
```

**Example** (`redirect_uri too long`)

```json
{
  "errors": [
    {
      "code": 19054017,
      "message": "Field `redirect_uri` should not exceed 2048 characters."
    }
  ]
}
```

**Example** (``cc` emails not unique`)

```json
{
  "errors": [
    {
      "code": 19054025,
      "message": "Cc emails must be unique."
    }
  ]
}
```

**Example** (``to` emails not unique`)

```json
{
  "errors": [
    {
      "code": 19054024,
      "message": "To emails must be unique."
    }
  ]
}
```

**Example** (`redirect_uri not a URL`)

```json
{
  "errors": [
    {
      "code": 19054016,
      "message": "Field `redirect_uri` should be a valid url."
    }
  ]
}
```

**Example** (`Too many emails in `cc``)

```json
{
  "errors": [
    {
      "code": 19054027,
      "message": "Maximum number of cc is 50."
    }
  ]
}
```

**Example** (`redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 19054014,
      "message": "Field `redirect_uri` should be of type string."
    }
  ]
}
```

**Example** (`Missing client_timestamp`)

```json
{
  "errors": [
    {
      "code": 19054030,
      "message": "Field `client_timestamp` should not be null."
    }
  ]
}
```

**Example** (``cc` not array of arrays`)

```json
{
  "errors": [
    {
      "code": 19054005,
      "message": "Field `cc` must be an array of arrays."
    }
  ]
}
```

**Example** (``to` not array of arrays`)

```json
{
  "errors": [
    {
      "code": 19054003,
      "message": "Field `to` must be an array of arrays."
    }
  ]
}
```

**Example** (`to.redirect_uri too long`)

```json
{
  "errors": [
    {
      "code": 19054038,
      "message": "Parameter `redirect_uri` must not exceed 2048 characters."
    }
  ]
}
```

**Example** (`Incorrect redirect_target`)

```json
{
  "errors": [
    {
      "code": 19054044,
      "message": "The `redirect_target` field in `to` is invalid, allowed values: self, blank."
    }
  ]
}
```

**Example** (`Message too long on trial`)

```json
{
  "errors": [
    {
      "code": 19055008,
      "message": "Message is too long."
    }
  ]
}
```

**Example** (`Subject too long on trial`)

```json
{
  "errors": [
    {
      "code": 19055007,
      "message": "Subject is too long."
    }
  ]
}
```

**Example** (`to.redirect_uri not a URL`)

```json
{
  "errors": [
    {
      "code": 19054037,
      "message": "The `redirect_uri` field in `to` contains a URL in an invalid format."
    }
  ]
}
```

**Example** (`20+ documents in doc group`)

```json
{
  "errors": [
    {
      "code": 19055006,
      "message": "Document group can not contain more than 20 documents."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`redirect_target not string`)

```json
{
  "errors": [
    {
      "code": 19054043,
      "message": "The `The `redirect_target` field in `to` must be a string."
    }
  ]
}
```

**Example** (`to.redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 19054035,
      "message": "The `redirect_uri` field in `to` must be a string."
    }
  ]
}
```

**Example** (`Empty to.close_redirect_uri`)

```json
{
  "errors": [
    {
      "code": 19054040,
      "message": "The `close_redirect_uri` field in `to` must not be empty."
    }
  ]
}
```

**Example** (`client_timestamp not integer`)

```json
{
  "errors": [
    {
      "code": 19054031,
      "message": "Field `client_timestamp` should be of type int."
    }
  ]
}
```

**Example** (`Personalization not available`)

```json
{
  "errors": [
    {
      "code": 19055009,
      "message": "Upgrade your subscription plan to personalize invite subject and message."
    }
  ]
}
```

**Example** (`User not document group owner`)

```json
{
  "errors": [
    {
      "code": 19001010,
      "message": "Current user is not document group owner."
    }
  ]
}
```

**Example** (`client_timestamp out of range`)

```json
{
  "errors": [
    {
      "code": 19054032,
      "message": "The `client_timestamp` should be between 0 and 4294967295."
    }
  ]
}
```

**Example** (`to.close_redirect_uri too long`)

```json
{
  "errors": [
    {
      "code": 19054042,
      "message": "Parameter `close_redirect_uri` must not exceed 2048 characters."
    }
  ]
}
```

**Example** (`to.close_redirect_uri not a URL`)

```json
{
  "errors": [
    {
      "code": 19054041,
      "message": "The `close_redirect_uri` field in `to` contains a URL in an invalid format."
    }
  ]
}
```

**Example** (`cc.email is not an email address`)

```json
{
  "errors": [
    {
      "code": 19054023,
      "message": "Field `email` in `cc` should be a valid email address."
    }
  ]
}
```

**Example** (`to.close_redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 19054039,
      "message": "The `close_redirect_uri` field in `to` must be a string."
    }
  ]
}
```

**Example** (`to.email is not an email address`)

```json
{
  "errors": [
    {
      "code": 19054020,
      "message": "Field `email` in `to` should be a valid email address."
    }
  ]
}
```

**Example** (`Message has unsupported characters`)

```json
{
  "errors": [
    {
      "code": 19054009,
      "message": "Invalid characters provided for `message`."
    }
  ]
}
```

**Example** (`Subject has unsupported characters`)

```json
{
  "errors": [
    {
      "code": 19054013,
      "message": "Invalid characters provided for `subject`."
    }
  ]
}
```

**Example** (`DG has deleted or trashed documents`)

```json
{
  "errors": [
    {
      "code": 19055003,
      "message": "Document group contains deleted documents."
    }
  ]
}
```

### 403

User is not verified.

**Example** (`User is not verified`)

```json
{
  "errors": [
    {
      "code": 19001049,
      "message": "User is not verified."
    }
  ]
}
```

### 422

Document group has active invites.

**Example** (`Document group has active invites`)

```json
{
  "errors": [
    {
      "code": 19001036,
      "message": "An invite already exists for this document group."
    }
  ]
}
```

### 429

Too many requests.

**Example** (`Too many requests`)

```json
{
  "errors": [
    {
      "code": 19001058,
      "message": "Too many requests."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/free-form-invites" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"cc": [{"email": "user2@example.com"}], "to": [{"email": "user1@example.com", "language": "en", "redirect_uri": "https://example.com/done", "redirect_target": "blank", "close_redirect_uri": "https://example.com/close"}], "message": "Custom message", "subject": "Custom subject", "redirect_uri": "https://example.com/done", "client_timestamp": 1719852788}'
```

---

## POST /v2/document-groups/{document_group_id}/free-form-invites/{dg_freeform_invite_id}/cancel — Cancel invites for all signers

Cancel the document group FreeForm invite for all signers with a specified cancellation reason.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |
| `dg_freeform_invite_id` | string | Yes | ID of the document group FreeForm invite. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "client_timestamp"
  ],
  "properties": {
    "reason": {
      "type": "string",
      "maxLength": 1000,
      "description": "Cancellation reason.",
      "x-stoplight": {
        "id": "xzp0ydvyy90xo"
      }
    },
    "client_timestamp": {
      "type": "integer",
      "description": "UNIX timestamp.",
      "x-stoplight": {
        "id": "fwg6d76r2ves6"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "reason": "The document group needs changes.",
  "client_timestamp": 1764547200
}
```

## Responses

### 204

Success, no content

### 400

* Example payload validation.
* Document group not in pending status.
* Field `reason` should be of type string.
* Field `reason` must not be empty string.
* Field `reason` should not exceed 1000 characters.
* Invalid characters provided for `reason`.
* Field `client_timestamp` should not be null.
* Field `client_timestamp` should be of type int.
* The `client_timestamp` limits exceeded.


**Example** (`Example payload validation`)

```json
{
  "errors": [
    {
      "code": 19064001,
      "message": "Field `reason` should be of type string."
    }
  ]
}
```

**Example** (`Document group not in pending status`)

```json
{
  "errors": [
    {
      "code": 19065001,
      "message": "Document group free form invite must be in pending status."
    }
  ]
}
```

**Example** (`Field `reason` exceeds 1000 characters`)

```json
{
  "errors": [
    {
      "code": 19064003,
      "message": "Field `reason` should not exceed 1000 characters."
    }
  ]
}
```

**Example** (`The `client_timestamp` limits exceeded`)

```json
{
  "errors": [
    {
      "code": 19064007,
      "message": "The `client_timestamp` should be between 0 and 4294967295."
    }
  ]
}
```

**Example** (`Field `reason` must not be empty string`)

```json
{
  "errors": [
    {
      "code": 19064002,
      "message": "Field `reason` must not be empty string."
    }
  ]
}
```

**Example** (`Field `reason` should be of type string`)

```json
{
  "errors": [
    {
      "code": 19064001,
      "message": "Field `reason` should be of type string."
    }
  ]
}
```

**Example** (`Invalid characters provided for `reason``)

```json
{
  "errors": [
    {
      "code": 19064004,
      "message": "Invalid characters provided for `reason`."
    }
  ]
}
```

**Example** (`Field `client_timestamp` should not be null`)

```json
{
  "errors": [
    {
      "code": 19064005,
      "message": "Field `client_timestamp` should not be null."
    }
  ]
}
```

**Example** (`Field `client_timestamp` should be of type int`)

```json
{
  "errors": [
    {
      "code": 19064006,
      "message": "Field `client_timestamp` should be of type int."
    }
  ]
}
```

### 403

* User is not doc group owner.
* User is not verified.


**Example** (`User is not verified`)

```json
{
  "errors": [
    {
      "code": 19001049,
      "message": "User is not verified."
    }
  ]
}
```

**Example** (`User is not doc group owner`)

```json
{
  "errors": [
    {
      "code": 19001010,
      "message": "Current user is not document group owner."
    }
  ]
}
```

### 404

FreeForm invite does not belong to doc group.

**Example** (`FreeForm invite does not belong to doc group`)

```json
{
  "errors": [
    {
      "code": 19001051,
      "message": "Document group {document_group_id} not found."
    }
  ]
}
```

### 429

Too many requests.

**Example** (`Too many attempts.`)

```json
{
  "errors": [
    {
      "code": 19001058,
      "message": "Too Many Attempts."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/free-form-invites/{dg_freeform_invite_id}/cancel" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"reason": "The document group needs changes.", "client_timestamp": 1764547200}'
```

---

## GET /v2/document-groups/{document_group_id}/free-form-invites/{dg_freeform_invite_id}/documents — Get freeform invites

This endpoint allows API users to get the documents of a document group freeform invite sent to the current user.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |
| `dg_freeform_invite_id` | string | Yes | ID of the document group FreeForm invite. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `per_page` | string | No | How many search items to view per page. Allowed values: positive integers from 1 to 100. |
| `page` | string | No | How many pages to fit the results in. Allowed values: any positive integer starting from 1. |

## Responses

### 200

Documents of the freeform invite available to the signer. Call this endpoint with the access token of the invite recipient.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "8116598512e433247ea11e8f5eb2330ad5aabd61",
      "name": "Contract",
      "invite": {
        "id": "4840738209ea7c7a1ea61c443f002d2dddeb0896",
        "status": "pending"
      }
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 20,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

Current user does not have free form invites on this document group.

**Example** (`No free form invites with this doc group`)

```json
{
  "errors": [
    {
      "code": 19001053,
      "message": "Document group free form invites not exist."
    }
  ]
}
```

### 404

* Document group free form invite not found.
* Document group not found.

**Example** (`Document group not found`)

```json
{
  "errors": [
    {
      "code": 19002010,
      "message": "Document group '2a9b5d610d5b7180a33648434064f73eca71c542' not found."
    }
  ]
}
```

**Example** (`Document group free form invite not found`)

```json
{
  "errors": [
    {
      "code": 19002015,
      "message": "Document group free form invite `d951f4563043856e96b24041630c58681b182262` not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/free-form-invites/{dg_freeform_invite_id}/documents" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/document-groups/{document_group_id}/free-form-invites/{dg_freeform_invite_id}/users/{user_id}/cancel — Cancel invite for one signer

Cancel the document group FreeForm invite for a specific signer with a specified cancellation reason.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |
| `dg_freeform_invite_id` | string | Yes | ID of the document group FreeForm invite. |
| `user_id` | string | Yes | ID of the signer. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "client_timestamp"
  ],
  "properties": {
    "reason": {
      "type": "string",
      "maxLength": 1000,
      "description": "Cancellation reason."
    },
    "client_timestamp": {
      "type": "integer",
      "description": "UNIX timestamp."
    }
  },
  "x-examples": {
    "Example 1": {
      "reason": "cancel reason",
      "client_timestamp": 1530017036
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "reason": "cancel reason",
  "client_timestamp": 1530017036
}
```

## Responses

### 204

Success, no content

### 400

* User has signed documents in this group.
* Field `reason` should be of type string.
* Field `reason` must not be empty string.
* Field `reason` should not exceed 1000 characters.
* Invalid characters provided for `reason`.
* Field `client_timestamp` should not be null.
* Field `client_timestamp` should be of type int.
* The `client_timestamp` limits exceeded.

**Example** (`Field `reason` exceeds 1000 characters`)

```json
{
  "errors": [
    {
      "code": 19057003,
      "message": "Field `reason` should not exceed 1000 characters."
    }
  ]
}
```

**Example** (`The `client_timestamp` limits exceeded`)

```json
{
  "errors": [
    {
      "code": 19057007,
      "message": "The `client_timestamp` should be between 0 and 4294967295."
    }
  ]
}
```

**Example** (`Field `reason` must not be empty string`)

```json
{
  "errors": [
    {
      "code": 19057002,
      "message": "Field `reason` must not be empty string."
    }
  ]
}
```

**Example** (`Field `reason` should be of type string`)

```json
{
  "errors": [
    {
      "code": 19057001,
      "message": "Field `reason` should be of type string."
    }
  ]
}
```

**Example** (`User has signed documents in this group`)

```json
{
  "errors": [
    {
      "code": 19056001,
      "message": "The user has signed documents in this document group."
    }
  ]
}
```

**Example** (`Invalid characters provided for `reason``)

```json
{
  "errors": [
    {
      "code": 19057004,
      "message": "Invalid characters provided for `reason`."
    }
  ]
}
```

**Example** (`Field `client_timestamp` should not be null`)

```json
{
  "errors": [
    {
      "code": 19057005,
      "message": "Field `client_timestamp` should not be null."
    }
  ]
}
```

**Example** (`Field `client_timestamp` should be of type int`)

```json
{
  "errors": [
    {
      "code": 19057006,
      "message": "Field `client_timestamp` should be of type int."
    }
  ]
}
```

### 403

* User is not doc group owner.
* User is not verified.
* User is not signer.

**Example** (`User is not signer`)

```json
{
  "errors": [
    {
      "code": 19001052,
      "message": "User {signer_id} has no invites in this document group."
    }
  ]
}
```

**Example** (`User is not verified`)

```json
{
  "errors": [
    {
      "code": 19001049,
      "message": "User is not verified."
    }
  ]
}
```

**Example** (`User is not doc group owner`)

```json
{
  "errors": [
    {
      "code": 19001010,
      "message": "Current user is not document group owner."
    }
  ]
}
```

### 404

FreeForm invite does not belong to doc group.

**Example** (`FreeForm invite does not belong to doc group`)

```json
{
  "errors": [
    {
      "code": 19001051,
      "message": "Document group {document_group_id} not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/free-form-invites/{dg_freeform_invite_id}/users/{user_id}/cancel" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"reason": "cancel reason", "client_timestamp": 1530017036}'
```

---

## POST /v2/document-groups/{document_group_id}/free-form-invites/{freeform_invite_id}/users/{user_id}/resend — Resend freeform invite

This endpoint allows API users to resend a document group freeform invite to a specific signer.

**Notes**

* `user_id` is the ID of the signer, returned as `signer_user_id` in the signature requests of the documents in the group.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |
| `freeform_invite_id` | string | Yes | ID of the freeform invite. |
| `user_id` | string | Yes | ID of the recipient to resend the invite to. |

## Responses

### 202

The freeform invite has been queued to be resent to the signer. The response body is empty.

### 400

* Authorization issues.
* Owner daily invite limit exceeded.
* Trial period invite limit reached.

**Example** (`Authorization issues`)

```json
{
  "errors": [
    {
      "code": 1537,
      "message": "invalid_token"
    }
  ]
}
```

**Example** (`Owner daily invite limit exceeded`)

```json
{
  "errors": [
    {
      "code": 19053002,
      "message": "Daily invite limit exceeded"
    }
  ]
}
```

**Example** (`Trial period invite limit reached`)

```json
{
  "errors": [
    {
      "code": 19053001,
      "message": "Trial period invite limit reached"
    }
  ]
}
```

### 403

* Free form invite not related to document group.
* Signature request not found.
* Current user is not document group owner.

**Example** (`Signature request not found`)

```json
{
  "errors": [
    {
      "code": 19001019,
      "message": "Signature request not found"
    }
  ]
}
```

**Example** (`User is not document group owner`)

```json
{
  "errors": [
    {
      "code": 19001010,
      "message": "Current user is not document group owner."
    }
  ]
}
```

**Example** (`Free form invite not related to document group`)

```json
{
  "errors": [
    {
      "code": 19001051,
      "message": "Free form invite not related to document group."
    }
  ]
}
```

### 404

* Document group not found, incorrect id.
* Document group free form invite not found.
* User not found, incorrect id.
* Document group signature requests not found.

**Example** (`User not found, incorrect id`)

```json
{
  "errors": [
    {
      "code": 19002012,
      "message": "User not found."
    }
  ]
}
```

**Example** (`Document group not found, incorrect id`)

```json
{
  "errors": [
    {
      "code": 19002010,
      "message": "Document group `document_group_id` not found."
    }
  ]
}
```

**Example** (`Document group free form invite not found`)

```json
{
  "errors": [
    {
      "code": 19002015,
      "message": "Document group free form invite `freeform_invite_id` not found."
    }
  ]
}
```

**Example** (`Document group signature requests not found`)

```json
{
  "errors": [
    {
      "code": 19001053,
      "message": "Document group signature requests not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/free-form-invites/{freeform_invite_id}/users/{user_id}/resend" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## POST /document — Upload document

This endpoint allows API users to upload a file to the user's account and get the ID of the uploaded document. Accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx, .ps, and .eps file types.

Maximum file size per upload is 50 Mb. 

The same limit works for the attachments uploaded by signers via SignNow editor.

For more information, check out our video tutorial.

<details open>

**<summary>Video tutorial</summary>**

<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>

[Video tutorial](https://www.youtube.com/watch?v=4pPTE7-WXVM)

</details>

## Authorization

bearer

## Form Data Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `file` | string | Yes | @/path/to/your/file.pdf |
| `check_fields` | boolean | No | If true, you can upload a document with simple text tags. For more information, see [Upload document with tags](/docs/document/operations/upload-document-with-text-tags). |
| `name` | string | No | Name of the document. Max: `255` characters. Default: the file name without the extension. |
| `folder_id` | string | No | ID of the user's folder to upload the document to. Default: the `Documents` folder. |
| `password` | string | No | Password to open a password-protected PDF. |

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "id": "0d4ad4b1d6a64bf6a8e8b7f0e2f5b5ac0c1f9e3d"
}
```

### 400

* Wrong, expired, or missing token.
* The request has no file, or the file isn't sent in the `file` field.
* The file type isn't supported.
* The file is larger than `50` MB.
* The PDF is password-protected and `password` is missing.
* The `password` is wrong.
* The `folder_id` doesn't match any of the user's folders.
* The `name` is longer than `255` characters.

**Example** (`No file`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Must upload one file"
    }
  ]
}
```

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Name too long`)

```json
{
  "errors": [
    {
      "code": 65581,
      "message": "Document name is too long. Max size is 255 symbols"
    }
  ]
}
```

**Example** (`File too large`)

```json
{
  "errors": [
    {
      "code": 65580,
      "message": "File is too big."
    }
  ]
}
```

**Example** (`Wrong password`)

```json
{
  "errors": [
    {
      "code": 21001012,
      "message": "Could not decrypt the file, invalid password"
    }
  ]
}
```

**Example** (`Wrong folder ID`)

```json
{
  "errors": [
    {
      "code": 65579,
      "message": "Incorrect folder id."
    }
  ]
}
```

**Example** (`Password required`)

```json
{
  "errors": [
    {
      "code": 21001011,
      "message": "Decrypt the file, password required"
    }
  ]
}
```

**Example** (`Unsupported file type`)

```json
{
  "errors": [
    {
      "code": 65578,
      "message": "Invalid file type."
    }
  ]
}
```

### 413

The request body is larger than `55` MB. The response is an HTML page, not JSON.

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/document" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## PUT /document/{document_id} — Edit document

This endpoint allows API users to edit a document by adding or overwriting fields. Users can also add their signatures, text, and checkmarks to the document.

**Fields** are rectangular spaces in the document designated for signing and editing (filling in) by the recipient. 

You can add the following fields to a document:
- Regular fields (`text`, `signature`, `initials`, `stamp`, `checkbox`, `attachment`, `hyperlink` (available upon request), `radiobutton`, `enumeration` (dropdown menu).
- Fields completed by you: texts (text fields), signatures (signatures, initials, and stamps), checks (checkmarks), lines. 
- [Payment request fields](/docs/request-payments/operations/put-document-document-id)
- Conditional fields
- Formulas (calculated fields)
- [Smart fields](/docs/smart-fields/operations/add-smart-fields-to-template-integraion-objects)

Every field is an object that contains field properties: `type`, assigned `role`,  `x`/`y` coordinates in the document, field `width` and `height`, `label`, `name`, etc. Field properties vary depending on the field `type`.

Learn more about [fields](/docs/fields).

For more information, check out our video tutorial.

<details open>

**<summary>Video tutorial</summary>**

<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>

[Video tutorial](https://www.youtube.com/watch?v=6IZqgFgQv3U)

</details>

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | Document ID. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "fields"
  ],
  "properties": {
    "lines": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "page_number",
          "subtype",
          "x",
          "y",
          "height",
          "width",
          "control_points",
          "fill_color",
          "line_width"
        ],
        "properties": {
          "x": {
            "type": "number",
            "example": 20,
            "description": "A horizontal position of the line's bounding box in pixels."
          },
          "y": {
            "type": "number",
            "example": 20,
            "description": "A vertical position of the line's bounding box in pixels."
          },
          "width": {
            "type": "number",
            "example": 20,
            "description": "Width of the line's bounding box in pixels."
          },
          "height": {
            "type": "number",
            "example": 20,
            "description": "Height of the line's bounding box in pixels."
          },
          "subtype": {
            "enum": [
              "line"
            ],
            "type": "string",
            "example": "line",
            "description": "Element subtype. Must be `line`."
          },
          "fill_color": {
            "type": "string",
            "example": "E15554",
            "description": "Line color as a hex color code (without the `#` prefix)."
          },
          "line_width": {
            "type": "number",
            "example": 2,
            "description": "Line stroke width in pixels."
          },
          "page_number": {
            "type": "number",
            "example": 0,
            "description": "The page number where the line will be placed. Page numbering starts at 0 (corresponding to page 1)."
          },
          "control_points": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "example": [
              265,
              59,
              556,
              57
            ],
            "maxItems": 4,
            "minItems": 4,
            "description": "An array of four numbers defining the start and end points of the line: `[x1, y1, x2, y2]`."
          }
        }
      },
      "description": "A list of line elements to add to the document."
    },
    "texts": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "data",
          "x",
          "y",
          "page_number",
          "font",
          "size"
        ],
        "properties": {
          "x": {
            "type": "number",
            "description": "A horizontal position of the field in pixels."
          },
          "y": {
            "type": "number",
            "description": "A vertical position of the field in pixels."
          },
          "data": {
            "type": "string",
            "description": "Content of the field."
          },
          "font": {
            "type": "string",
            "example": "Arial",
            "description": "The text font. Possible values: `Arial`, `Times New Roman`, `Courier New`, `Tahoma`, `Comic Sans MS`."
          },
          "size": {
            "type": "number",
            "example": 12,
            "description": "The text size."
          },
          "page_number": {
            "type": "number",
            "description": "The page number where the field will be placed. Page numbering starts at 0 (corresponding to page 1)."
          }
        }
      },
      "description": "A list of completed text fields to add to the document."
    },
    "checks": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "x",
          "y",
          "width",
          "height",
          "page_number"
        ],
        "properties": {
          "x": {
            "type": "number",
            "description": "A horizontal position of the field in pixels."
          },
          "y": {
            "type": "number",
            "description": "A vertical position of the field in pixels."
          },
          "width": {
            "type": "number",
            "description": "Field width in pixels."
          },
          "height": {
            "type": "number",
            "description": "Field height in pixels."
          },
          "page_number": {
            "type": "number",
            "description": "The page number where the field will be placed. Page numbering starts at 0 (corresponding to page 1)."
          }
        }
      },
      "description": "A list of checkmarks to add to the document."
    },
    "fields": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "x",
          "y",
          "width",
          "height",
          "type",
          "page_number",
          "required",
          "role"
        ],
        "properties": {
          "x": {
            "type": "number",
            "example": 217,
            "description": "A horizontal position of the field in pixels."
          },
          "y": {
            "type": "number",
            "example": 32,
            "description": "A vertical position of the field in pixels."
          },
          "name": {
            "type": "string",
            "example": "first_name",
            "description": "A unique field name."
          },
          "role": {
            "type": "string",
            "example": "Recipient 1",
            "description": "Recipient role assigned to the field."
          },
          "type": {
            "type": "string",
            "example": "text",
            "description": "Field type. Possible values: `text`, `signature`, `initials`, `stamp`, `checkbox`, `attachment`, `hyperlink`, `radiobutton`, `enumeration`."
          },
          "align": {
            "type": "string",
            "example": "left",
            "description": "Horizontal alignment. Possible values: `left`, `center`, `right`."
          },
          "label": {
            "type": "string",
            "example": "First name",
            "description": "A hint for a recipient added to the field. When a recipient has filled out a labeled `text` field, all other `text` fields with the same `label` will be automatically filled out with the same data when the recipient clicks on that `text` field."
          },
          "radio": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "x",
                "y",
                "width",
                "height",
                "page_number",
                "value"
              ],
              "properties": {
                "x": {
                  "type": "number",
                  "example": 389,
                  "description": "A horizontal position of the field in pixels."
                },
                "y": {
                  "type": "number",
                  "example": 141,
                  "description": "A vertical position of the field in pixels."
                },
                "value": {
                  "type": "string",
                  "example": "Yes",
                  "description": "Field value."
                },
                "width": {
                  "type": "number",
                  "example": 23,
                  "description": "Field width in pixels."
                },
                "height": {
                  "type": "number",
                  "example": 23,
                  "description": "Field height in pixels."
                },
                "page_number": {
                  "type": "number",
                  "example": 0,
                  "description": "The page number where the field will be placed. Page numbering starts at 0 (corresponding to page 1)."
                }
              }
            },
            "description": "An array of radio buttons."
          },
          "value": {
            "type": "string",
            "example": "Option 1",
            "description": "Value set to the `checkbox` field."
          },
          "width": {
            "type": "number",
            "example": 50,
            "description": "Field width in pixels."
          },
          "height": {
            "type": "number",
            "example": 20,
            "description": "Field height in pixels."
          },
          "required": {
            "type": "boolean",
            "description": "Whether the field is required or optional. Possible values: `true`, `false`.\n\n**Note:** When `checkbox_groups` is present in the request, all `checkbox` fields must have `required` set to `false`."
          },
          "page_number": {
            "type": "number",
            "example": 0,
            "description": "The page number where the field will be placed. Page numbering starts at 0 (corresponding to page 1)."
          },
          "stretch_mode": {
            "type": "string",
            "example": "horizontal",
            "description": "Defines how the field is stretched if it's overflowed. Possible values: `fixed`, `horizontal`, `vertical`, `auto`."
          },
          "validator_id": {
            "type": "string",
            "example": "7ef095fd94ce63b670b52b2e83457d59ac796a39",
            "description": "A string that adds format validation. Learn more about [data validators](/docs/fields#data-validators)."
          },
          "allowed_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of allowed `signature` types. Possible values: `type` (user types the signature), `draw` (user draws the signature), `upload` (user uploads an image with the signature). By default, all types are allowed. For `initials`, only `type` and `draw` are possible."
          },
          "prefilled_text": {
            "type": "string",
            "example": "ACME",
            "description": "The text in the specified format shown in the field when the signer opens the document. For `checkbox`, any non-empty value will mark it as checked. For `radiobutton`, a value that should be checked."
          },
          "lock_to_sign_date": {
            "type": "boolean",
            "default": false,
            "description": "Defines whether the date field is automatically pre-filled with the completion date and/or time. `false`: the date field is not pre-filled with the completion date; `true`: the date field is automatically pre-filled. Available for `validator_id`: `13435fa6c2a17f83177fcbb5c4a9376ce85befeb`, `059b068ef8ee5cc27e09ba79af58f9e805b7c2b3`, `09d3bb6a5eb6598edb7bfad02b0143d8c68ad788`, `0f4827a308018f98b11ae3923104685ff0c03070`, `06448a0d0eb6a71c7c116ec4754bcb04ebf11da5`"
          },
          "enumeration_options": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "An array of strings with the dropdown options."
          },
          "lock_to_sign_prefill": {
            "type": "boolean",
            "default": false,
            "description": "Whether to lock the pre-filled text for editing. If set to `true`, the pre-filled data will be locked and the signer will not be able to edit it. If set to `false`, the pre-filled data will be editable by the signer. Default value is `false`. Applies to text fields and requires a non-empty `prefilled_text` parameter."
          },
          "custom_defined_option": {
            "type": "boolean",
            "description": "Used with `enumeration` type. If `true`, a recipient can add their own values to the dropdown. If `false`, a recipient can only choose from the predefined list."
          }
        }
      },
      "minItems": 1,
      "description": "Array of field objects to add to the document.",
      "uniqueItems": true
    },
    "signatures": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "data",
          "x",
          "y",
          "width",
          "height",
          "page_number"
        ],
        "properties": {
          "x": {
            "type": "number",
            "description": "A horizontal position of the field in pixels."
          },
          "y": {
            "type": "number",
            "description": "A vertical position of the field in pixels."
          },
          "data": {
            "type": "string",
            "description": "Data attribute of a signature, initials, or stamp. Find the signature, initials, or stamp `data` by sending a [`GET /document`](/docs/document/operations/get-document) request for a document signed by you. The `data` is a long string stored in the `signatures.data` field in the response."
          },
          "width": {
            "type": "number",
            "description": "Field width in pixels."
          },
          "height": {
            "type": "number",
            "description": "Field height in pixels."
          },
          "page_number": {
            "type": "string",
            "description": "The page number where the field will be placed. Page numbering starts at 0 (corresponding to page 1)."
          }
        }
      },
      "description": "A list of signatures, initials, and stamps to add to the document."
    },
    "document_name": {
      "type": "string",
      "example": "New document name",
      "description": "Name of the document."
    },
    "checkbox_groups": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "checkbox_names",
          "validation_type",
          "validation_amount"
        ],
        "properties": {
          "name": {
            "type": "string",
            "example": "payment_options",
            "description": "A unique checkbox group name within the document."
          },
          "checkbox_names": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "option_credit",
              "option_debit",
              "option_paypal"
            ],
            "minItems": 1,
            "description": "Array of `name` values of the `checkbox` fields to include in the group. Must contain at least one item."
          },
          "validation_type": {
            "enum": [
              "at_least",
              "at_most",
              "exactly",
              "none"
            ],
            "type": "string",
            "example": "at_least",
            "description": "Validation rule applied to the group. Possible values:\n- `at_least` \u2014 the signer must check at least `validation_amount` checkboxes. \n- `at_most` \u2014 the signer must check no more than `validation_amount` checkboxes. \n- `exactly` \u2014 the signer must check exactly `validation_amount` checkboxes.\n- `none` \u2014 no validation is applied; `validation_amount` must be `null`."
          },
          "validation_amount": {
            "type": [
              "integer",
              "null"
            ],
            "example": 1,
            "description": "The number of checkboxes that must be checked (an integer between 1 and the total number of checkboxes in the group). Must be `null` when `validation_type` is `none`."
          }
        }
      },
      "description": "A list of checkbox groups. Each group applies validation rules to a set of existing `checkbox` fields in the document.\n\n**Prerequisites:** All checkbox fields referenced in `checkbox_groups` must be defined in the `fields` array of the same request. When `checkbox_groups` is present, every `checkbox` field in the request must belong to exactly one group, and all checkboxes in a group must have `required` set to `false`.\n\n**Example:** To group checkboxes for a payment method selection, first define the checkbox fields in `fields`:\n```json\n\"fields\": [\n  {\n    \"type\": \"checkbox\",\n    \"role\": \"Signer 1\",\n    \"name\": \"option_credit\",\n    \"value\": \"Credit Card\",\n    \"required\": false,\n    \"x\": 100,\n    \"y\": 200,\n    \"width\": 20,\n    \"height\": 20,\n    \"page_number\": 0\n  },\n  {\n    \"type\": \"checkbox\",\n    \"role\": \"Signer 1\",\n    \"name\": \"option_debit\",\n    \"value\": \"Debit Card\",\n    \"required\": false,\n    \"x\": 100,\n    \"y\": 230,\n    \"width\": 20,\n    \"height\": 20,\n    \"page_number\": 0\n  },\n  {\n    \"type\": \"checkbox\",\n    \"role\": \"Signer 1\",\n    \"name\": \"option_paypal\",\n    \"value\": \"PayPal\",\n    \"required\": false,\n    \"x\": 100,\n    \"y\": 260,\n    \"width\": 20,\n    \"height\": 20,\n    \"page_number\": 0\n  }\n]\n```\nThen reference them in `checkbox_groups`:\n```json\n\"checkbox_groups\": [\n  {\n    \"name\": \"payment_options\",\n    \"checkbox_names\": [\"option_credit\", \"option_debit\", \"option_paypal\"],\n    \"validation_type\": \"at_least\",\n    \"validation_amount\": 1\n  }\n]\n```"
    },
    "client_timestamp": {
      "type": "string",
      "minLength": 1,
      "description": "Local time of a user."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "lines": [
    {
      "x": 20,
      "y": 20,
      "width": 20,
      "height": 20,
      "subtype": "line",
      "fill_color": "E15554",
      "line_width": 2,
      "page_number": 0,
      "control_points": [
        265,
        59,
        556,
        57
      ]
    }
  ],
  "texts": [
    {
      "x": 450,
      "y": 750,
      "data": "Anna Green",
      "font": "Arial",
      "size": 25,
      "page_number": 0
    }
  ],
  "checks": [
    {
      "x": 754,
      "y": 417,
      "width": 17,
      "height": 17,
      "page_number": 0
    }
  ],
  "fields": [
    {
      "x": 217,
      "y": 32,
      "role": "Recipient 1",
      "type": "text",
      "align": "center",
      "label": "First name",
      "width": 50,
      "height": 20,
      "required": true,
      "page_number": 0,
      "stretch_mode": "horizontal",
      "prefilled_text": "First name",
      "lock_to_sign_prefill": true
    },
    {
      "x": 217,
      "y": 32,
      "role": "Recipient 1",
      "type": "signature",
      "width": 50,
      "height": 20,
      "required": true,
      "page_number": 0,
      "allowed_types": [
        "draw"
      ]
    },
    {
      "x": 217,
      "y": 32,
      "role": "Recipient 1",
      "type": "text",
      "label": "Date",
      "width": 50,
      "height": 20,
      "required": true,
      "page_number": 0,
      "validator_id": "059b068ef8ee5cc27e09ba79af58f9e805b7c2b3",
      "lock_to_sign_date": false
    },
    {
      "x": 100,
      "y": 200,
      "name": "option_credit",
      "role": "Signer 1",
      "type": "checkbox",
      "value": "Credit Card",
      "width": 20,
      "height": 20,
      "required": false,
      "page_number": 0
    },
    {
      "x": 100,
      "y": 230,
      "name": "option_debit",
      "role": "Signer 1",
      "type": "checkbox",
      "value": "Debit Card",
      "width": 20,
      "height": 20,
      "required": false,
      "page_number": 0
    },
    {
      "x": 100,
      "y": 260,
      "name": "option_paypal",
      "role": "Signer 1",
      "type": "checkbox",
      "value": "PayPal",
      "width": 20,
      "height": 20,
      "required": false,
      "page_number": 0
    },
    {
      "x": 217,
      "y": 32,
      "name": "photo",
      "role": "Recipient 1",
      "type": "attachment",
      "label": "Your photo",
      "width": 15,
      "height": 15,
      "required": true,
      "page_number": 0
    },
    {
      "x": 389,
      "y": 141,
      "name": "US residency",
      "role": "Recipient 1",
      "type": "radiobutton",
      "radio": [
        {
          "x": 389,
          "y": 141,
          "value": "Yes",
          "width": 23,
          "height": 23,
          "page_number": 0
        },
        {
          "x": 389,
          "y": 170,
          "value": "No",
          "width": 23,
          "height": 23,
          "page_number": 0
        }
      ],
      "width": 23,
      "height": 23,
      "required": true,
      "page_number": 0,
      "prefilled_text": "Yes"
    },
    {
      "x": 100,
      "y": 32,
      "name": "Department",
      "role": "Recipient 1",
      "type": "enumeration",
      "label": "Your department",
      "width": 70,
      "height": 40,
      "required": true,
      "page_number": 0,
      "enumeration_options": [
        "HR",
        "IT",
        "Finance"
      ],
      "custom_defined_option": true
    }
  ],
  "signatures": [
    {
      "x": 88,
      "y": 15,
      "data": "iVRFWHRkYAAAABJRU5ErkJggg==",
      "size": 11,
      "width": 122,
      "height": 34,
      "subtype": "signature",
      "line_height": 12,
      "page_number": 0,
      "client_timestamp": 1566237855,
      "prefill_content_type": "email"
    }
  ],
  "document_name": "New document name",
  "checkbox_groups": [
    {
      "name": "payment_options",
      "checkbox_names": [
        "option_credit",
        "option_debit",
        "option_paypal"
      ],
      "validation_type": "at_least",
      "validation_amount": 1
    }
  ],
  "client_timestamp": "timestamp"
}
```

## Responses

### 200

Returns ID of the updated document in case of a successful response.

**Example** (`Successful response`)

```json
{
  "id": "3dc6aefb2af0f6ca578c1a987fe8bb68ff211eb2"
}
```

### 400

Bad request.

- Required parameter is missing.
- The document was sent for signature.
- The invite is not in pending status.
- Consent to sign electronically is required.
- The user has no access to the document.
- The signature invite has expired.
- Fields or elements do not exist in the document.
- The field is assigned to another role.
- The field was not found.
- The field has already been completed.
- The `lock_to_sign_prefill` type is incorrect.
- The `prefilled_text` is empty.

**Checkbox group validation errors:**

- Checkbox group names are not unique within the document.
- A checkbox group references a non-existent checkbox field.
- A checkbox belongs to more than one group.
- The validation amount is invalid for the specified validation type.
- Checkboxes in a group belong to different roles.
- Checkboxes in a group with validation rules have `required` set to `true`.
- Not all checkbox fields are assigned to a group.
- The checkbox group name is missing or not a string.
- The checkbox names are not provided as an array.
- The validation type is missing or incorrect.
- The checkbox group does not reference at least one checkbox field.
- The number of checked checkboxes in a group is less than required.
- The number of checked checkboxes in a group exceeds the allowed maximum.
- The number of checked checkboxes in a group does not match the required exact amount.

**Example** (`Invite expired`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Invite has expired"
    }
  ]
}
```

**Example** (`Field completed`)

```json
{
  "errors": [
    {
      "code": 65583,
      "message": "Field request already fulfilled"
    }
  ]
}
```

**Example** (`Field not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Unique ids: {{ array with ids }} not found!"
    }
  ]
}
```

**Example** (`Fields not exist`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Cannot remove nonexistent element."
    }
  ]
}
```

**Example** (`Consent is missing`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Please give consent to sign electronically before signing"
    }
  ]
}
```

**Example** (`Not pending invite`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invite should be pending"
    }
  ]
}
```

**Example** (`No access to document`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Access denied to sign this document"
    }
  ]
}
```

**Example** (`prefilled_text is empty`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Empty prefilled text for lock to sign prefill."
    }
  ]
}
```

**Example** (`Incorrect validation type`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid validation type specified for checkbox group"
    }
  ]
}
```

**Example** (`Required parameter missing`)

```json
{
  "errors": [
    {
      "code": 69632,
      "message": "Height must not be empty"
    }
  ]
}
```

**Example** (`Document sent for signature`)

```json
{
  "errors": [
    {
      "code": 65595,
      "message": "Cannot edit fields on this document. This document has already been sent for signing."
    }
  ]
}
```

**Example** (`Incorrect validation amount`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid validation amount for the specified validation type"
    }
  ]
}
```

**Example** (`Validation type is required`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Validation type is required"
    }
  ]
}
```

**Example** (`Too many checkboxes in group`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Checkbox group \"test_group\" requires between 1 and 2 checkbox(es) to be checked, but 3 provided."
    }
  ]
}
```

**Example** (`Checkbox not assigned to group`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "All checkbox fields must belong to a checkbox group"
    }
  ]
}
```

**Example** (`Field assigned to another role`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Bad field invite"
    }
  ]
}
```

**Example** (`Not enough checkboxes in group`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Checkbox group \"test_group\" requires at least 2 checkbox(es) to be checked, but only 1 provided."
    }
  ]
}
```

**Example** (`Checkbox group name is required`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Checkbox group name is required"
    }
  ]
}
```

**Example** (`Checkbox group names not unique`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Checkbox group names must be unique within the document"
    }
  ]
}
```

**Example** (`Checkbox names must be an array`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Checkbox names must be an array"
    }
  ]
}
```

**Example** (`Not exactly checkboxes in group`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Checkbox group \"test_group\" requires exactly 2 checkbox(es) to be checked, but 3 provided."
    }
  ]
}
```

**Example** (`Checkboxes in group are required`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "All checkboxes in a group with validation rules must not be required"
    }
  ]
}
```

**Example** (`Checkbox belongs to multiple groups`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "A checkbox can only belong to one group"
    }
  ]
}
```

**Example** (`lock_to_sign_prefill incorrect type`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "lock_to_sign_prefill value should be of type bool."
    }
  ]
}
```

**Example** (`Checkbox group name must be a string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Checkbox group name must be a string"
    }
  ]
}
```

**Example** (`Checkboxes in group have different roles`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "All checkboxes in a group must belong to the same role"
    }
  ]
}
```

**Example** (`Checkbox group references non-existent field`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Checkbox group references a non-existent checkbox field name"
    }
  ]
}
```

**Example** (`Checkbox group must reference at least one field`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Checkbox group must reference at least one checkbox field name"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/document/{document_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"lines": [{"x": 20, "y": 20, "width": 20, "height": 20, "subtype": "line", "fill_color": "E15554", "line_width": 2, "page_number": 0, "control_points": [265, 59, 556, 57]}], "texts": [{"x": 450, "y": 750, "data": "Anna Green", "font": "Arial", "size": 25, "page_number": 0}], "checks": [{"x": 754, "y": 417, "width": 17, "height": 17, "page_number": 0}], "fields": [{"x": 217, "y": 32, "role": "Recipient 1", "type": "text", "align": "center", "label": "First name", "width": 50, "height": 20, "required": true, "page_number": 0, "stretch_mode": "horizontal", "prefilled_text": "First name", "lock_to_sign_prefill": true}, {"x": 217, "y": 32, "role": "Recipient 1", "type": "signature", "width": 50, "height": 20, "required": true, "page_number": 0, "allowed_types": ["draw"]}, {"x": 217, "y": 32, "role": "Recipient 1", "type": "text", "label": "Date", "width": 50, "height": 20, "required": true, "page_number": 0, "validator_id": "059b068ef8ee5cc27e09ba79af58f9e805b7c2b3", "lock_to_sign_date": false}, {"x": 100, "y": 200, "name": "option_credit", "role": "Signer 1", "type": "checkbox", "value": "Credit Card", "width": 20, "height": 20, "required": false, "page_number": 0}, {"x": 100, "y": 230, "name": "option_debit", "role": "Signer 1", "type": "checkbox", "value": "Debit Card", "width": 20, "height": 20, "required": false, "page_number": 0}, {"x": 100, "y": 260, "name": "option_paypal", "role": "Signer 1", "type": "checkbox", "value": "PayPal", "width": 20, "height": 20, "required": false, "page_number": 0}, {"x": 217, "y": 32, "name": "photo", "role": "Recipient 1", "type": "attachment", "label": "Your photo", "width": 15, "height": 15, "required": true, "page_number": 0}, {"x": 389, "y": 141, "name": "US residency", "role": "Recipient 1", "type": "radiobutton", "radio": [{"x": 389, "y": 141, "value": "Yes", "width": 23, "height": 23, "page_number": 0}, {"x": 389, "y": 170, "value": "No", "width": 23, "height": 23, "page_number": 0}], "width": 23, "height": 23, "required": true, "page_number": 0, "prefilled_text": "Yes"}, {"x": 100, "y": 32, "name": "Department", "role": "Recipient 1", "type": "enumeration", "label": "Your department", "width": 70, "height": 40, "required": true, "page_number": 0, "enumeration_options": ["HR", "IT", "Finance"], "custom_defined_option": true}], "signatures": [{"x": 88, "y": 15, "data": "iVRFWHRkYAAAABJRU5ErkJggg==", "size": 11, "width": 122, "height": 34, "subtype": "signature", "line_height": 12, "page_number": 0, "client_timestamp": 1566237855, "prefill_content_type": "email"}], "document_name": "New document name", "checkbox_groups": [{"name": "payment_options", "checkbox_names": ["option_credit", "option_debit", "option_paypal"], "validation_type": "at_least", "validation_amount": 1}], "client_timestamp": "timestamp"}'
```

---

## GET /document/{document_id} — Get document

This endpoint allows API users to retrieve the details of a document.

The **Document** object contains:
* Metadata: file name, size, extension, and ID
* Fields, texts, checks, and signatures
* Invites and their statuses (available statuses are: `created`, `pending`, `fulfilled`, `canceled`, `skipped`)
* Roles:
  - Recipients with a sign action appear in the `roles` array.
  - Recipients with an approve action appear in the `approver_roles` array.
  - Recipients with a view action appear in the `viewer_roles` array.
* Timestamps (date created, and date updated)
* Document group information
* Document group template information
* Originator's organization-level settings
* Integrations settings
* Signing session settings
* Share information
  - `is_team_shared`: Returns `true`, if the file has been shared with a team. 
  - `role`: Indicates the user's access to the document: Allowed values are `sender`, `viewer`, or `owner`. 
  - `is_personally_shared_to_others`: Returns `true` if the template has been personally shared with other users (via the **Share** button). The attribute is visible to the template owner and users with access rights.


Document is a fundamental object of every eSignature workflow.

* To send an invite, select or [upload a document](/docs/document/operations/upload-document).
* When the document is signed, it can be [downloaded in PDF file format](/docs/document/operations/download-document).
* Documents in SignNow can be [turned into templates](/docs/template/operations/create-template).
* API also allows you to create [event subscriptions](/docs/basic-auth/operations/create-event-subscription) triggered by a specific document.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | Document ID. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `include=integration_objects` | string | No | If used, the response will contain the list of smart fields. |
| `include=document_attributes` | string | No | If used, the response will contain document attributes. |

## Responses

### 200

Successful response. Returns the document with its fields, roles, invites, and settings. To also return smart fields, add `include=integration_objects`.

**Example** (`Successful request`)

```json
{
  "id": "a0540fe38843ed47153368ddfccf4b2dc84b0475",
  "tags": [
    {
      "name": "fields",
      "type": "system"
    }
  ],
  "lines": [],
  "owner": "document_owner@email.com",
  "pages": [
    {
      "src": "https://example.com/document/a0540fe38843ed47153368ddfccf4b2dc84b0475/thumbnail?size=large&page=0",
      "size": {
        "width": 612,
        "height": 792
      }
    }
  ],
  "roles": [
    {
      "name": "Signer 1",
      "unique_id": "484ca41aa7a6d03433956b4b8da7a5c166c7e992",
      "signing_order": "1"
    }
  ],
  "seals": [],
  "texts": [],
  "checks": [],
  "fields": [
    {
      "id": "d824b083bf4a7e3d80ae8c41955d4f1b0c14c97e",
      "role": "Signer 1",
      "type": "signature",
      "role_id": "484ca41aa7a6d03433956b4b8da7a5c166c7e992",
      "field_id": "c29534bff8640144450245c958cd8746deee1fc5",
      "fulfiller": "signer@email.com",
      "element_id": "260ebae19aff5841deb204a575784072dd788b76",
      "originator": "document_owner@email.com",
      "json_attributes": {
        "x": 70,
        "y": 362,
        "name": "Signature_1",
        "width": 83,
        "height": 21,
        "required": true,
        "page_number": 0
      },
      "field_request_id": "c29534bff8640144450245c958cd8746deee1fc5",
      "template_field_id": null,
      "field_request_canceled": null
    },
    {
      "id": "791b763ccfcf431e8a52f267e7da74ee7de99974",
      "role": "Signer 2",
      "type": "text",
      "role_id": "d01146c6310c4b138ad04be067b6518e125588a4",
      "field_id": "b2fadf77f8a168aa625f3de8fded08808419f186",
      "fulfiller": "signer2@email.com",
      "element_id": "27c275fd30466ac62e60380a3befd5a82b7da197",
      "originator": "document_owner@email.com",
      "json_attributes": {
        "x": 396,
        "y": 142,
        "bold": false,
        "font": "Arial",
        "name": "Text Field 1",
        "size": 14,
        "align": "left",
        "color": "000000",
        "width": 65,
        "height": 12,
        "italic": false,
        "valign": "top",
        "required": false,
        "font_size": 10,
        "max_chars": 0,
        "max_lines": 0,
        "underline": false,
        "arrangement": "none",
        "page_number": 0,
        "stretch_mode": "fixed",
        "prefilled_text": "1234",
        "lock_to_sign_prefill": true
      },
      "field_request_id": "a2900e4e8dca2fb5632b6d3329c9c7b5647f1042",
      "template_field_id": null,
      "field_request_canceled": null
    }
  ],
  "created": "1565787561",
  "inserts": [],
  "updated": "1565858757",
  "user_id": "89370d0dca4990f68e647997ca3941194c165c3e",
  "payments": [],
  "requests": [],
  "settings": {
    "copy_export": false,
    "upload_limit": false,
    "document_guide": false,
    "sso-only-login": false,
    "mobileweb_option": false,
    "cloud_auto_export": false,
    "logout_on_signing": false,
    "restrict_download": false,
    "add_signature_stamp": false,
    "cfr_title_21_part_11": false,
    "require_email_subject": false,
    "no_document_attachment": false,
    "electronic_consent_text": false,
    "org_allowed_team_admins": false,
    "document_schema_extended": false,
    "front_end_session_length": false,
    "no_user_signature_return": false,
    "require_drawn_signatures": false,
    "cloud_export_with_history": false,
    "enable_full_story_tracker": false,
    "require_login_for_signing": false,
    "disable_email_notifications": false,
    "electronic_consent_required": false,
    "email_admin_on_banned_login": false,
    "enable_hyperlink_protection": false,
    "invite_decline_redirect_url": false,
    "emailed_docs_include_history": false,
    "no_document_file_attachments": false,
    "add_signature_stamp_with_name": false,
    "digitally_sign_dowloaded_docs": false,
    "watermark_downloaded_document": false,
    "invite_completion_redirect_url": false,
    "required_preset_signature_name": false,
    "signing_link_document_download": false,
    "block_login_via_social_networks": false,
    "enable_advanced_threat_protection": false,
    "document_completion_retention_days": false,
    "require_authentication_for_invites": false,
    "document_attachment_only_for_signer": false,
    "unsuccessful_logout_attempts_allowed": false,
    "audit_trail_completion_retention_days": false,
    "pending_invite_document_view_notification": false,
    "only_administrator_is_able_to_invite_to_the_team": false,
    "block_export_options_when_credit_card_validation_is_used": false,
    "invite_update_notifications_for_all_invites_at_invite_create": false
  },
  "template": false,
  "parent_id": "c8e96285b84ec2ad0e88a317f1c3a7a54f799c30",
  "thumbnail": {
    "large": "https://example.com/document/a0540fe38843ed47153368ddfccf4b2dc84b0475/thumbnail?size=large",
    "small": "https://example.com/document/a0540fe38843ed47153368ddfccf4b2dc84b0475/thumbnail?size=small",
    "medium": "https://example.com/document/a0540fe38843ed47153368ddfccf4b2dc84b0475/thumbnail?size=medium"
  },
  "hyperlinks": [],
  "owner_name": "Document Owner",
  "page_count": "1",
  "share_info": {
    "role": "owner",
    "is_team_shared": true,
    "is_personally_shared_to_others": false
  },
  "signatures": [
    {
      "x": "70",
      "y": "362",
      "id": "260ebae19aff5841deb204a575784072dd788b76",
      "data": "some_data",
      "email": "signer@email.com",
      "width": "56",
      "height": "21",
      "created": "1565858757",
      "user_id": "e9bfbc72b58e5420087a8265046f045bf9d15e2d",
      "page_number": "0"
    }
  ],
  "attachments": [],
  "exported_to": [],
  "integrations": [],
  "radiobuttons": [],
  "version_time": "1565858757",
  "document_name": "Sample document",
  "field_invites": [
    {
      "id": "3752f8c64eed9f5a07dccce96afc41f50292dcfd",
      "role": "Signer 1",
      "email": "signer@email.com",
      "pfrid": null,
      "status": "fulfilled",
      "created": "1565858734",
      "pfrtype": null,
      "role_id": "484ca41aa7a6d03433956b4b8da7a5c166c7e992",
      "updated": "1565858757",
      "declined": [],
      "reassign": "0",
      "reminder": "0",
      "pframount": null,
      "pfrstatus": null,
      "pfrcreated": null,
      "email_group": {
        "id": "9d31ea8b57619d3135d917bae8a6ff5bcaba0a22",
        "name": "Contact group"
      },
      "id_verified": "UNVERIFIED",
      "redirect_uri": null,
      "password_type": "",
      "email_statuses": [
        {
          "status": "sent",
          "created_at": 1776768376,
          "last_reaction_at": 1776768376
        },
        {
          "status": "mail_open",
          "created_at": 1776850459,
          "last_reaction_at": 1776850459
        }
      ],
      "pfrmerchant_id": null,
      "expiration_time": "1568450734",
      "password_method": "",
      "payment_request": null,
      "pfrcurrency_name": null,
      "pfrmerchant_type": null,
      "verification_type": null,
      "is_document_locked": "0",
      "password_protected": "0",
      "pfrjson_attributes": null,
      "force_new_signature": null,
      "decline_by_signature": null,
      "signing_instructions": null,
      "electronic_consent_id": null,
      "prefill_signature_name": null,
      "id_verification_required": "NO",
      "pfrmerchant_account_name": null,
      "pfrpayment_transaction_id": null,
      "electronic_consent_required": 0,
      "required_preset_signature_name": null,
      "stripe_ach_bank_account_present": "0",
      "stripe_ach_bank_account_verified": "0"
    }
  ],
  "notary_invites": [],
  "origin_user_id": null,
  "checkbox_groups": [],
  "originator_logo": "",
  "routing_details": [
    {
      "cc": [],
      "id": "988522d2084799c128cd05a8d9ed64bd66decbd5",
      "data": [
        {
          "name": "Signer 1",
          "role_id": "484ca41aa7a6d03433956b4b8da7a5c166c7e992",
          "inviter_role": false,
          "default_email": "",
          "signing_order": 1
        }
      ],
      "cc_step": [],
      "created": "1565858709",
      "updated": null,
      "invite_link_instructions": null
    }
  ],
  "field_validators": [],
  "scheduled_invite": null,
  "original_filename": "sample_document.pdf",
  "origin_document_id": null,
  "document_attributes": {
    "from_name": "Jane Doe",
    "from_email": "sender@email.com"
  },
  "document_group_info": {
    "invite_id": null,
    "invite_status": null,
    "document_group_id": null,
    "doc_count_in_group": 0,
    "document_group_name": null
  },
  "enumeration_options": [],
  "viewer_field_invites": [],
  "approver_field_invites": [],
  "signing_session_settings": {
    "welcome_message": null
  },
  "document_group_template_info": [],
  "originator_organization_settings": [
    {
      "value": "https://example.com",
      "setting": "invite_completion_redirect_url"
    },
    {
      "value": "",
      "setting": "invite_decline_redirect_url"
    },
    {
      "value": "0",
      "setting": "required_preset_signature_name"
    },
    {
      "value": "0",
      "setting": "require_email_subject"
    },
    {
      "value": "0",
      "setting": "require_login_for_signing"
    },
    {
      "value": "0",
      "setting": "logout_on_signing"
    },
    {
      "value": "0",
      "setting": "front_end_session_length"
    },
    {
      "value": "0",
      "setting": "add_signature_stamp_with_name"
    },
    {
      "value": "0",
      "setting": "cfr_title_21_part_11"
    },
    {
      "value": "0",
      "setting": "require_authentication_for_invites"
    },
    {
      "value": "1",
      "setting": "document_guide"
    },
    {
      "value": "no",
      "setting": "block_export_options_when_credit_card_validation_is_used"
    }
  ]
}
```

**Example** (`Successful request with smart fields`)

```json
{
  "id": "a0540fe38843ed47153368ddfccf4b2dc84b0475",
  "tags": [
    {
      "name": "fields",
      "type": "system"
    }
  ],
  "owner": "document_owner@email.com",
  "pages": [
    {
      "src": "https://example.com/document/a0540fe38843ed47153368ddfccf4b2dc84b0475/thumbnail?size=large&page=0",
      "size": {
        "width": 612,
        "height": 792
      }
    }
  ],
  "roles": [
    {
      "name": "Signer 1",
      "unique_id": "484ca41aa7a6d03433956b4b8da7a5c166c7e992",
      "signing_order": "1"
    }
  ],
  "seals": [],
  "texts": [],
  "checks": [],
  "fields": [
    {
      "id": "d824b083bf4a7e3d80ae8c41955d4f1b0c14c97e",
      "role": "Signer 1",
      "type": "signature",
      "role_id": "484ca41aa7a6d03433956b4b8da7a5c166c7e992",
      "field_id": "c29534bff8640144450245c958cd8746deee1fc5",
      "fulfiller": "signer@email.com",
      "element_id": "260ebae19aff5841deb204a575784072dd788b76",
      "originator": "document_owner@email.com",
      "json_attributes": {
        "x": 70,
        "y": 362,
        "name": "Signature_1",
        "width": 83,
        "height": 21,
        "required": true,
        "page_number": 0
      },
      "field_request_id": "c29534bff8640144450245c958cd8746deee1fc5",
      "template_field_id": null,
      "field_request_canceled": null
    }
  ],
  "created": "1565787561",
  "inserts": [],
  "updated": "1565858757",
  "user_id": "89370d0dca4990f68e647997ca3941194c165c3e",
  "payments": [],
  "requests": [],
  "settings": {
    "copy_export": false,
    "upload_limit": false,
    "document_guide": false,
    "sso-only-login": false,
    "mobileweb_option": false,
    "cloud_auto_export": false,
    "logout_on_signing": false,
    "restrict_download": false,
    "add_signature_stamp": false,
    "cfr_title_21_part_11": false,
    "require_email_subject": false,
    "no_document_attachment": false,
    "electronic_consent_text": false,
    "org_allowed_team_admins": false,
    "document_schema_extended": false,
    "front_end_session_length": false,
    "no_user_signature_return": false,
    "require_drawn_signatures": false,
    "cloud_export_with_history": false,
    "enable_full_story_tracker": false,
    "require_login_for_signing": false,
    "disable_email_notifications": false,
    "electronic_consent_required": false,
    "email_admin_on_banned_login": false,
    "enable_hyperlink_protection": false,
    "invite_decline_redirect_url": false,
    "emailed_docs_include_history": false,
    "no_document_file_attachments": false,
    "add_signature_stamp_with_name": false,
    "digitally_sign_dowloaded_docs": false,
    "watermark_downloaded_document": false,
    "invite_completion_redirect_url": false,
    "required_preset_signature_name": false,
    "signing_link_document_download": false,
    "block_login_via_social_networks": false,
    "enable_advanced_threat_protection": false,
    "document_completion_retention_days": false,
    "require_authentication_for_invites": false,
    "document_attachment_only_for_signer": false,
    "unsuccessful_logout_attempts_allowed": false,
    "audit_trail_completion_retention_days": false,
    "pending_invite_document_view_notification": false,
    "only_administrator_is_able_to_invite_to_the_team": false,
    "block_export_options_when_credit_card_validation_is_used": false,
    "invite_update_notifications_for_all_invites_at_invite_create": false
  },
  "template": false,
  "parent_id": "c8e96285b84ec2ad0e88a317f1c3a7a54f799c30",
  "thumbnail": {
    "large": "https://example.com/document/a0540fe38843ed47153368ddfccf4b2dc84b0475/thumbnail?size=large",
    "small": "https://example.com/document/a0540fe38843ed47153368ddfccf4b2dc84b0475/thumbnail?size=small",
    "medium": "https://example.com/document/a0540fe38843ed47153368ddfccf4b2dc84b0475/thumbnail?size=medium"
  },
  "hyperlinks": [],
  "owner_name": "Document Owner",
  "page_count": "1",
  "signatures": [
    {
      "x": "70",
      "y": "362",
      "id": "260ebae19aff5841deb204a575784072dd788b76",
      "data": "some_data",
      "email": "signer@email.com",
      "width": "56",
      "height": "21",
      "created": "1565858757",
      "user_id": "e9bfbc72b58e5420087a8265046f045bf9d15e2d",
      "page_number": "0"
    }
  ],
  "attachments": [],
  "exported_to": [],
  "integrations": [],
  "radiobuttons": [],
  "version_time": "1565858757",
  "document_name": "Sample document",
  "field_invites": [
    {
      "id": "3752f8c64eed9f5a07dccce96afc41f50292dcfd",
      "role": "Signer 1",
      "email": "signer@email.com",
      "pfrid": null,
      "status": "fulfilled",
      "created": "1565858734",
      "pfrtype": null,
      "role_id": "484ca41aa7a6d03433956b4b8da7a5c166c7e992",
      "updated": "1565858757",
      "declined": [],
      "reassign": "0",
      "reminder": "0",
      "pframount": null,
      "pfrstatus": null,
      "pfrcreated": null,
      "email_group": {
        "id": "9d31ea8b57619d3135d917bae8a6ff5bcaba0a22",
        "name": "Contact group"
      },
      "id_verified": "UNVERIFIED",
      "redirect_uri": null,
      "password_type": "",
      "email_statuses": [
        {
          "status": "sent",
          "created_at": 1776768376,
          "last_reaction_at": 1776768376
        },
        {
          "status": "mail_open",
          "created_at": 1776850459,
          "last_reaction_at": 1776850459
        }
      ],
      "pfrmerchant_id": null,
      "expiration_time": "1568450734",
      "password_method": "",
      "payment_request": null,
      "pfrcurrency_name": null,
      "pfrmerchant_type": null,
      "verification_type": null,
      "is_document_locked": "0",
      "password_protected": "0",
      "pfrjson_attributes": null,
      "force_new_signature": null,
      "decline_by_signature": null,
      "signing_instructions": null,
      "electronic_consent_id": null,
      "prefill_signature_name": null,
      "id_verification_required": "NO",
      "pfrmerchant_account_name": null,
      "pfrpayment_transaction_id": null,
      "electronic_consent_required": 0,
      "required_preset_signature_name": null,
      "stripe_ach_bank_account_present": "0",
      "stripe_ach_bank_account_verified": "0"
    }
  ],
  "notary_invites": [],
  "origin_user_id": null,
  "checkbox_groups": [],
  "originator_logo": "",
  "routing_details": [
    {
      "cc": [],
      "id": "988522d2084799c128cd05a8d9ed64bd66decbd5",
      "data": [
        {
          "name": "Signer 1",
          "role_id": "484ca41aa7a6d03433956b4b8da7a5c166c7e992",
          "inviter_role": false,
          "default_email": "",
          "signing_order": 1
        }
      ],
      "cc_step": [],
      "created": "1565858709",
      "updated": null,
      "invite_link_instructions": null
    }
  ],
  "field_validators": [],
  "scheduled_invite": null,
  "original_filename": "sample_document.pdf",
  "origin_document_id": null,
  "document_group_info": {
    "invite_id": null,
    "invite_status": null,
    "document_group_id": null,
    "doc_count_in_group": 0,
    "document_group_name": null
  },
  "enumeration_options": [],
  "integration_objects": [
    {
      "x": "350",
      "y": "32",
      "id": "d07a9ad62ca489a2d8a110f376ff98567f59cdcc",
      "data": "Data2",
      "font": "Arial",
      "size": "12",
      "email": "user@mail.com",
      "created": "1707928083",
      "user_id": "88611236aa07984ad053e4a60c4a5bfe96fa6b63",
      "line_height": "13.00",
      "page_number": "0",
      "allow_editing": true,
      "json_attributes": {
        "bold": false,
        "color": "646B63"
      },
      "api_integration_id": "c016a6e6885b4c406053f47f8d189f98dea45546"
    },
    {
      "x": "400",
      "y": "32",
      "id": "07b032900722d76fa486c401dd759acc831f12a2",
      "data": "Data3",
      "font": "Arial",
      "size": "12",
      "email": "user@mail.com",
      "created": "1707928083",
      "user_id": "88611236aa07984ad053e4a60c4a5bfe96fa6b63",
      "line_height": "13.00",
      "page_number": "0",
      "allow_editing": true,
      "json_attributes": {
        "bold": false,
        "color": "669E85",
        "italic": false,
        "underline": true
      },
      "api_integration_id": "c016a6e6885b4c406053f47f8d189f98dea45546"
    }
  ],
  "viewer_field_invites": [],
  "approver_field_invites": [],
  "signing_session_settings": {
    "welcome_message": null
  },
  "document_group_template_info": [],
  "originator_organization_settings": [
    {
      "value": "https://example.com",
      "setting": "invite_completion_redirect_url"
    },
    {
      "value": "",
      "setting": "invite_decline_redirect_url"
    },
    {
      "value": "0",
      "setting": "required_preset_signature_name"
    },
    {
      "value": "0",
      "setting": "require_email_subject"
    },
    {
      "value": "0",
      "setting": "require_login_for_signing"
    },
    {
      "value": "0",
      "setting": "logout_on_signing"
    },
    {
      "value": "0",
      "setting": "front_end_session_length"
    },
    {
      "value": "0",
      "setting": "add_signature_stamp_with_name"
    },
    {
      "value": "0",
      "setting": "cfr_title_21_part_11"
    },
    {
      "value": "0",
      "setting": "require_authentication_for_invites"
    },
    {
      "value": "1",
      "setting": "document_guide"
    },
    {
      "value": "no",
      "setting": "block_export_options_when_credit_card_validation_is_used"
    }
  ]
}
```

### 400

* Wrong, expired, or missing token.
* The document doesn't exist.

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65544,
      "message": "internal api error"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/document/{document_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /document/{document_id} — Delete document

This endpoint allows API users to delete a document from the user's account.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |

## Responses

### 200

The document was deleted.

**Example** (`Successful response`)

```json
{
  "status": "success"
}
```

### 400

* Wrong, expired, or missing token.
* The document doesn't exist.
* The document belongs to another user.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Not the owner`)

```json
{
  "errors": [
    {
      "code": 65610,
      "message": "not writable"
    }
  ]
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65544,
      "message": "internal api error"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/document/{document_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /document/fieldextract — Upload document with tags

This endpoint allows API users to upload a document with text tags. 

Text tags can be of two types: simple and complex. **Simple text tags** use curly brackets and a notation system to define fields. **Complex text tags** use only field names on a document; field details are provided separately in the `Tags` array. 
> Only .doc, .docx, and .pdf formats are supported.

**Additional parameters**

`parse_type`: determines how the document text tags are parsed. 

Possible values:

- `tag`: parse only simple tags. All Adobe (fillable) fields will be removed from the document without saving.

- `adobe`: parse only Adobe (fillable) fields. All simple tags will be removed from the document without saving.

- `all`: parse both simple tags and Adobe (fillable) fields. Also parses simple tags added inside Adobe fields as their content.

- `default` (or if `parse_type` not specified): parse simple and complex tags and Adobe (fillable) fields. Simple tags added as the content of Adobe fields will not be parsed.

For more information, see the [Text tags](/docs/text-tags) guide or check out our video tutorials:

<details open>

**<summary>Simple text tags video tutorial</summary>**

<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>

[Simple text tags video tutorial](https://www.youtube.com/watch?v=iopDT5_4-Co)

</details>
<br>

<details open>

**<summary>Complex text tags video tutorial</summary>**

<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>

[Complex text tags video tutorial](https://www.youtube.com/watch?v=V0YWL2T8F-o)

</details>

## Authorization

bearer

## Form Data Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `file` | string | Yes | @/path/to/your/file.pdf |
| `Tags[]:` | string | No | A JSON array of complex text tags in the document. Example: {     "tag_name": "EmployeeName",     "role": "Employee",     "label": "Your name",     "required": true,     "type": "text",     "width": 100,     "height": 20 } |
| `parse_type` | string | No | Determines the parse flow for document text tags. Possible values:  `tag`, `adobe`, `all`, `default`.  |
| `password` | string | No | Password to open a password-protected PDF. |

## Responses

### 200

The document was uploaded and fields were created from its text tags.

**Example** (`Successful response`)

```json
{
  "id": "346d46094801b8a8a0826372d0b7ef466cbebacb"
}
```

### 400

* Wrong, expired, or missing token.
* The request has no file, or the file isn't sent in the `file` field.
* The file type isn't supported.
* The file is larger than `50` MB.
* The PDF is password-protected and `password` is missing.
* The `password` is wrong.

**Example** (`No file`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Must upload one file"
    }
  ]
}
```

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`File too large`)

```json
{
  "errors": [
    {
      "code": 65580,
      "message": "File is too big."
    }
  ]
}
```

**Example** (`Wrong password`)

```json
{
  "errors": [
    {
      "code": 21001012,
      "message": "Could not decrypt the file, invalid password"
    }
  ]
}
```

**Example** (`Password required`)

```json
{
  "errors": [
    {
      "code": 21001011,
      "message": "Decrypt the file, password required"
    }
  ]
}
```

**Example** (`Unsupported file type`)

```json
{
  "errors": [
    {
      "code": 65578,
      "message": "Invalid file type."
    }
  ]
}
```

### 413

The request body is larger than `55` MB. The response is an HTML page, not JSON.

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/document/fieldextract" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## POST /document/merge — Merge documents

This endpoint allows API users to merge existing documents into one.

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the merged document."
    },
    "document_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "IDs of the documents to be merged."
    },
    "upload_document": {
      "type": "boolean",
      "default": false,
      "description": "If false returns the merged document without further uploading into documents list.\nIf true returns the merged document id with further uploading into documents list."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "name": "the merged doc",
  "document_ids": [
    "b69005888401f96c005c8e99da236adbad846ce2",
    "83ef79b710c27fbfd9b529a5e1efd89ac908af6c"
  ],
  "upload_document": false
}
```

## Responses

### 200

If `upload_document` is `true`, the ID of the merged document. If `upload_document` is `false` or not set, the merged PDF file.

**Example** (`Successful response`)

```json
{
  "document_id": "9b4e36781745eb345d3148f33e6ff021a1a0a81b"
}
```

### 400

* Wrong, expired, or missing token.
* `document_ids` is missing or empty.
* `document_ids` has more than `50` IDs.
* One or more documents don't exist.
* One or more documents belong to another user.
* `name` is longer than `255` characters.
* `upload_document` isn't `true` or `false`.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`No documents`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Required at least one document"
    }
  ]
}
```

**Example** (`Name too long`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document name too long. Max size is 255 symbols"
    }
  ]
}
```

**Example** (`Not the owner`)

```json
{
  "errors": [
    {
      "code": 65610,
      "message": "Access denied for 83ef79b710c27fbfd9b529a5e1efd89ac908af6c"
    }
  ]
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Some documents not found"
    }
  ]
}
```

**Example** (`Too many documents`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Max limit of documents - 50"
    }
  ]
}
```

**Example** (`Wrong upload_document`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The upload document field must be true or false."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/document/merge" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "the merged doc", "document_ids": ["b69005888401f96c005c8e99da236adbad846ce2", "83ef79b710c27fbfd9b529a5e1efd89ac908af6c"], "upload_document": false}'
```

---

## GET /v2/documents/{document_id}/fields — Get fields data from completed document

This endpoint allows API users to get the values of the fields completed by the signer.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Responses

### 200

Fields of the document and their values.

**Example** (`No fields`)

```json
{
  "data": [],
  "meta": {
    "pagination": {
      "count": 0,
      "links": [],
      "total": 0,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

**Example** (`Fields filled in`)

```json
{
  "data": [
    {
      "id": "35afb4809cdb7eafcfdda55c628429d3e876ebbb",
      "name": "Text Field 1",
      "type": "text",
      "value": "John Doe"
    },
    {
      "id": "47a31cb93d7003000b909e65a66e312145e659e8",
      "name": "Date and Time 1",
      "type": "text",
      "value": "10/23/2026"
    }
  ],
  "meta": {
    "pagination": {
      "count": 2,
      "links": [],
      "total": 2,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

**Example** (`Fields not filled in`)

```json
{
  "data": [
    {
      "id": "35afb4809cdb7eafcfdda55c628429d3e876ebbb",
      "name": "Text Field 1",
      "type": "text",
      "value": null
    },
    {
      "id": "47a31cb93d7003000b909e65a66e312145e659e8",
      "name": "Date and Time 1",
      "type": "text",
      "value": null
    }
  ],
  "meta": {
    "pagination": {
      "count": 2,
      "links": [],
      "total": 2,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* Incorrect or missing token.
* Document with this `document_id` doesn't exist.
* This user has no rights to access the document.

**Example** (`document_id doesn't exist`)

```json
{
  "code": 65544,
  "message": "internal api error"
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`User has no rights for this document`)

```json
{
  "code": 65610,
  "message": "not readable"
}
```

### 403

If user's email is not verified.

**Example** (`If user's email is not verified`)

```json
{
  "code": 9001,
  "message": "Email verification required"
}
```

### 404

* If the document has been deleted or is in the trash bin. 
* If {document_id} has incorrect format (too many or not enough symbols).

**Example** (`If the document has been deleted or is in the trash bin `)

```json
{
  "404": "Document not found"
}
```

**Example** (`If {document_id} has incorrect format (too many or not enough symbols)`)

```json
{
  "_message": {
    "404": "Unable to find a route to match the URI: v2/documents/bade662638c640b5b7b712cf4fbec9afd5ffc0a/fields"
  }
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/documents/{document_id}/fields" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/documents/{document_id}/prefill-texts — Prefill text fields

This endpoint allows users to prefill text fields that signers can edit. Only fields of type `text` can be prefilled.

**Example**

<img src="/reference-assets/images/Screenshots with attribute explanations/Prefill_text_example.png" alt="Prefilled text">


## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes |  ID of the requested document. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "fields"
  ],
  "properties": {
    "fields": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "field_name",
          "prefilled_text"
        ],
        "properties": {
          "field_name": {
            "type": "string",
            "minLength": 1,
            "description": "The unique field name that identifies the field. Can be found in the `name` parameter of the field in response from `GET /document/{document_id}`."
          },
          "prefilled_text": {
            "type": "string",
            "minLength": 1,
            "description": "The value that should appear on the document."
          }
        }
      },
      "minItems": 1,
      "description": "The array that contains field objects to add values to. Each field object is identified by the `field_name`.",
      "uniqueItems": true
    }
  },
  "x-examples": {
    "example-1": {
      "fields": [
        {
          "field_name": "first_name",
          "prefilled_text": "Jane"
        },
        {
          "field_name": "last_name",
          "prefilled_text": "Mitchell"
        }
      ]
    }
  },
  "description": ""
}
```

**Example** (`Request body`)

```json
{
  "fields": [
    {
      "field_name": "first_name",
      "prefilled_text": "Jane"
    },
    {
      "field_name": "last_name",
      "prefilled_text": "Doe"
    }
  ]
}
```

## Responses

### 204

Successful response. The text fields are prefilled.

**Example** (`Successful response`)

```json
{
  "Status": "204 Success, no content"
}
```

### 400

* Wrong, expired, or missing token.
* `fields` is empty or missing.
* The document has no text field with this `field_name`.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Empty fields`)

```json
{
  "errors": [
    {
      "code": 19035003,
      "message": "Fields must be a non-blank array."
    }
  ]
}
```

**Example** (`Field not found`)

```json
{
  "errors": [
    {
      "code": 19036001,
      "message": "Field first_name not found among text fields."
    }
  ]
}
```

### 404

The document doesn't exist.

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 19002001,
      "message": "Document not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/documents/{document_id}/prefill-texts" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"fields": [{"field_name": "first_name", "prefilled_text": "Jane"}, {"field_name": "last_name", "prefilled_text": "Doe"}]}'
```

---

## POST /v2/documents/url — Upload document from URL

This endpoint allows API users to upload a document to their SignNow account from a URL.

Accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx, .ps, and .eps file types.

Maximum file size per upload is 50 MB.

> The link to the document must be publicly accessible.

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "url"
  ],
  "properties": {
    "url": {
      "type": "string",
      "example": "https://example.com/path/to/your/document.{file_extension}",
      "description": "URL with the file to upload. The link to the file must be publicly accessible.",
      "x-stoplight": {
        "id": "mrvqtsr47wvwh"
      }
    },
    "check_fields": {
      "type": "boolean",
      "description": "If true, you can upload a document with simple text tags. For more information, see [Upload document with tags](/docs/document/operations/upload-document-with-text-tags).",
      "x-stoplight": {
        "id": "08br87vyow68f"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "url": "https://example.com/path/to/your/document.{file_extension}",
  "check_fields": true
}
```

## Responses

### 200

Success: ID of the uploaded document.

**Example** (`Successful response`)

```json
{
  "id": "cc3655408558d5c41ce8a7c8f15d85815bf3469f"
}
```

### 400

* Wrong, expired, or missing token.
* The document name is longer than `255` characters.
* The file can't be uploaded from the URL: the URL is empty or malformed, points to a private or restricted host, or the file can't be downloaded.

**Example** (`Upload error`)

```json
{
  "errors": [
    {
      "code": 21004000,
      "message": "Error during upload"
    }
  ]
}
```

**Example** (`Parameter name is too long`)

```json
{
  "errors": [
    {
      "code": 65581,
      "message": "Document name is too long. Max size is 255 symbols"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/documents/url" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/path/to/your/document.{file_extension}", "check_fields": true}'
```

---

## POST /v2/faxes/send — Send fax

This endpoint allows users to send one or several documents by fax.

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "recipient_number",
    "documents"
  ],
  "properties": {
    "message": {
      "type": "string",
      "description": "Fax message."
    },
    "subject": {
      "type": "string",
      "description": "Fax subject."
    },
    "documents": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Array holding one or more document IDs."
    },
    "recipient_name": {
      "type": "string",
      "description": "Recipient's name."
    },
    "client_timestamp": {
      "type": "integer",
      "description": "UNIX timestamp."
    },
    "recipient_number": {
      "type": "string",
      "description": "Recipient's fax number."
    },
    "recipient_company": {
      "type": "string",
      "description": "Recipient's company name."
    }
  },
  "x-examples": {
    "Example 1": {
      "message": "Custom message",
      "subject": "Custom subject",
      "documents": [
        "19bef1ba082840888a460c2a4512823114cc2759"
      ],
      "recipient_name": "Some recipient name",
      "client_timestamp": 1715265630,
      "recipient_number": "+11231231231",
      "recipient_company": "Company"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "message": "Please send this back by email when signed.",
  "subject": "Non-Disclosure Agreement",
  "documents": [
    "28cda1ba082840888a460c2a4512823114cc2759"
  ],
  "recipient_name": "John Doe",
  "client_timestamp": 1715583814,
  "recipient_number": "+11231231231",
  "recipient_company": "Documents Inc."
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* No access to the document.

**Example** (`No access to document`)

```json
{
  "code": 20003014,
  "message": "Not readable."
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/faxes/send" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"message": "Please send this back by email when signed.", "subject": "Non-Disclosure Agreement", "documents": ["28cda1ba082840888a460c2a4512823114cc2759"], "recipient_name": "John Doe", "client_timestamp": 1715583814, "recipient_number": "+11231231231", "recipient_company": "Documents Inc."}'
```

---

## POST /document/{document_id}/custom_history_event — Add custom history event

This endpoint allows API users to add custom events to the document history (audit log). For example, if you are using a single SignNow account to make API calls but authenticating multiple people, use this call to add a record to the audit log for that specific document that references the authentication method.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "client_timestamp",
    "event_type"
  ],
  "properties": {
    "event_type": {
      "type": "string",
      "description": "Name of the event to add to the document history."
    },
    "client_timestamp": {
      "type": "integer",
      "description": "Time of the event as a Unix timestamp, in seconds."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "event_type": "test_event",
  "client_timestamp": 1460739202
}
```

## Responses

### 200

The custom event was added to the document history.

**Example** (`Successful response`)

```json
{
  "status": "success"
}
```

### 400

* Wrong, expired, or missing token.
* The document doesn't exist.
* The document belongs to another user.
* `client_timestamp` is missing.
* `event_type` is missing.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Not the owner`)

```json
{
  "errors": [
    {
      "code": 65610,
      "message": "not readable"
    }
  ]
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65544,
      "message": "internal api error"
    }
  ]
}
```

**Example** (`Missing event_type`)

```json
{
  "errors": [
    {
      "code": 65544,
      "message": "internal api error"
    }
  ]
}
```

**Example** (`Missing client_timestamp`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "client_timestamp is required"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/document/{document_id}/custom_history_event" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"event_type": "test_event", "client_timestamp": 1460739202}'
```

---

## GET /document/{document_id}/historyfull — Get document history

This endpoint allows API users to retrieve the full history of a document.

For the events: 

* `signer_authentication_success` 
* `signer_authentication_failure` 

the response may contain an additional parameter `phone_number_2fa` which shows the signer's phone number used for authentication method `phone` or `sms`.

For the event: 

* `signer_authentication_success` 

the response may contain an additional parameter `authentication_code` which shows the code used for authentication method `sms`. The signer receives a code by SMS and enters this code to access the opened document.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |

## Responses

### 200

Returns the history of the document.

For the events `signer_authentication_success` and `signer_authentication_failure`, `json_attributes` may contain `phone_number_2fa`.

**Example** (`Successful response`)

```json
[
  {
    "email": "user1@example.com",
    "event": "created_document",
    "origin": "copy_from_template",
    "created": 1792061346,
    "user_id": "3cc0095f2a88e3eee94525e01cea1d1fbd1833ca",
    "field_id": null,
    "unique_id": "4b7037b36699f404d9e18cc8c93222d72183c8df",
    "element_id": null,
    "ip_address": "34.233.XX.XX",
    "document_id": "e97a6eb321b6ba36b57aa2c9b5bf27f4c00ba813",
    "client_app_name": "SignNow for Procore",
    "json_attributes": null,
    "client_timestamp": null
  },
  {
    "email": "user1@example.com",
    "event": "document_copied_from_template",
    "created": 1792061347,
    "user_id": "3cc0095f2a88e3eee94525e01cea1d1fbd1833ca",
    "field_id": null,
    "unique_id": "7eae1a03d99e7a6eb8e3ddf2bd6a118ac7003b26",
    "element_id": null,
    "ip_address": "34.233.XX.XX",
    "document_id": "e97a6eb321b6ba36b57aa2c9b5bf27f4c00ba813",
    "client_app_name": "SignNow for Procore",
    "json_attributes": null,
    "client_timestamp": 0
  },
  {
    "email": "user1@example.com",
    "event": "document_viewed",
    "created": 1792575308,
    "user_id": "3cc0095f2a88e3eee94525e01cea1d1fbd1833ca",
    "field_id": null,
    "unique_id": "f92f36b5725a4d31e376837fb6a5f1875521d8da",
    "element_id": null,
    "ip_address": "104.30.XX.XX",
    "document_id": "e97a6eb321b6ba36b57aa2c9b5bf27f4c00ba813",
    "client_app_name": "SignNow Web Application",
    "json_attributes": [],
    "client_timestamp": 1792575308
  }
]
```

**Example** (`for the event `signer_authentication_failure``)

```json
[
  {
    "email": "owner_document@email.com",
    "event": "created_document",
    "origin": "original",
    "created": 1672751407,
    "user_id": "35c03da2f4e50c17abfa2e64cd62c9f77732b8ad",
    "field_id": null,
    "unique_id": "021bb62bb8ab01a9ff578f1911947ca471994c6e",
    "element_id": null,
    "ip_address": "5X.XX.XX.XX",
    "document_id": "01cb21a40b890a8b825cd7ae915fe6668c20d6e5",
    "client_app_name": "Sample application",
    "json_attributes": null,
    "client_timestamp": null
  },
  {
    "email": "owner_document@email.com",
    "event": "document_signing_session_completed",
    "created": 1672751421,
    "user_id": "35c03da2f4e50c17abfa2e64cd62c9f77732b8ad",
    "field_id": null,
    "unique_id": "3e03cbc6994e5a905bd2b19e250338012fa56d78",
    "element_id": null,
    "ip_address": "5X.XX.XX.XX",
    "document_id": "01cb21a40b890a8b825cd7ae915fe6668c20d6e5",
    "client_app_name": "Sample application",
    "json_attributes": null,
    "client_timestamp": 1672751421
  },
  {
    "email": "owner_document@email.com",
    "event": "document_invite_sent",
    "created": 1672751636,
    "user_id": "35c03da2f4e50c17abfa2e64cd62c9f77732b8ad",
    "field_id": null,
    "unique_id": "93f16fb90d7cef08d0b85db5525a287b1768c224",
    "element_id": null,
    "ip_address": "5X.XX.XX.XX",
    "document_id": "01cb21a40b890a8b825cd7ae915fe6668c20d6e5",
    "client_app_name": "Sample application",
    "json_attributes": {
      "signers": [
        "signer1@email.com",
        "signer2@email.com"
      ],
      "viewers": []
    },
    "client_timestamp": null
  },
  {
    "email": "signer1@email.com",
    "event": "signer_authentication_failure",
    "created": 1672751775,
    "user_id": "6ad8b8d3d2646cd919c52957eb58eaac08ccf41a",
    "field_id": null,
    "unique_id": "732d92d16e8fb00fd3db804d244204fc3b84ec9f",
    "element_id": null,
    "ip_address": "5X.XX.XX.XX",
    "document_id": "01cb21a40b890a8b825cd7ae915fe6668c20d6e5",
    "client_app_name": "Sample Application",
    "json_attributes": {
      "phone_number_2fa": "+1XXX-XXXXXXX",
      "authentication_type": "sms"
    },
    "client_timestamp": 1672751775
  },
  {
    "email": "signer2@email.com",
    "event": "signer_authentication_failure",
    "created": 1672751811,
    "user_id": "83467d74be676ab81e5f7ebd8806786684b67284",
    "field_id": null,
    "unique_id": "14c58a086f28e5c9b44dcb648481d50846fed13f",
    "element_id": null,
    "ip_address": "5X.XX.XX.XX",
    "document_id": "01cb21a40b890a8b825cd7ae915fe6668c20d6e5",
    "client_app_name": "Sample Application",
    "json_attributes": {
      "phone_number_2fa": "+1XXX-XXXXXXX",
      "authentication_type": "phone_call"
    },
    "client_timestamp": 1672751811
  }
]
```

**Example** (`for the event `signer_authentication_success``)

```json
[
  {
    "email": "document_owner@email.com",
    "event": "created_document",
    "origin": "original",
    "created": 1672128416,
    "user_id": "35c03da2f4e50c17abfa2e64cd62c9f77732b8ad",
    "field_id": null,
    "unique_id": "f397c2ebea78537cc1925ef50a6c203aff4d05c2",
    "element_id": null,
    "ip_address": "35.263.222.70",
    "document_id": "bb5101d1b891f585ab0659378eb80831a5745ba2",
    "client_app_name": "Sample application",
    "json_attributes": null,
    "client_timestamp": null
  },
  {
    "email": "owner_document@email.com",
    "event": "document_signing_session_completed",
    "created": 1672128418,
    "user_id": "35c03da2f4e50c17abfa2e64cd62c9f77732b8ad",
    "field_id": null,
    "unique_id": "b1110ad868b0ea38ddb5b7b492d1197957d9db46",
    "element_id": null,
    "ip_address": "35.263.222.70",
    "document_id": "bb5101d1b891f585ab0659378eb80831a5745ba2",
    "client_app_name": "Sample application",
    "json_attributes": null,
    "client_timestamp": 1672128418
  },
  {
    "email": "owner_document1@email.com",
    "event": "document_invite_sent",
    "created": 1672128439,
    "user_id": "35c03da2f4e50c17abfa2e64cd62c9f77732b8ad",
    "field_id": null,
    "unique_id": "cea079f7507fffb2d5e24631d68c641764fb025d",
    "element_id": null,
    "ip_address": "35.263.222.70",
    "document_id": "bb5101d1b891f585ab0659378eb80831a5745ba2",
    "client_app_name": "Sample application",
    "json_attributes": {
      "signers": [
        "signer1@email.com",
        "signer2@email.com"
      ],
      "viewers": []
    },
    "client_timestamp": null
  },
  {
    "email": "signer1@email.com",
    "event": "signer_authentication_success",
    "created": 1672128445,
    "user_id": "6ad8b8d3d2646cd919c52957eb58eaac08ccf41a",
    "field_id": null,
    "unique_id": "6d146000d6a20e784c5bb7826549cdb747bc3ea6",
    "element_id": null,
    "ip_address": "35.263.222.70",
    "document_id": "bb5101d1b891f585ab0659378eb80831a5745ba2",
    "client_app_name": "Signer Application",
    "json_attributes": {
      "phone_number_2fa": "+1XXX-XXXXXXX",
      "authentication_code": "57329",
      "authentication_type": "sms"
    },
    "client_timestamp": 1672128445
  },
  {
    "email": "owner_document@email.com",
    "event": "document_invite_sent",
    "created": 1672128446,
    "user_id": "35c03da2f4e50c17abfa2e64cd62c9f77732b8ad",
    "field_id": null,
    "unique_id": "00fd4459898310ad89193181152d11cbc841fca0",
    "element_id": null,
    "ip_address": "3X.XX.XX.XX",
    "document_id": "bb5101d1b891f585ab0659378eb80831a5745ba2",
    "client_app_name": "Sample Application",
    "json_attributes": {
      "signers": [
        "signer2@email.com"
      ],
      "viewers": []
    },
    "client_timestamp": null
  },
  {
    "email": "signer1@email.com",
    "event": "added_signature",
    "created": 1672128446,
    "user_id": "6ad8b8d3d2646cd919c52957eb58eaac08ccf41a",
    "field_id": "6b169f2eed12d3b096c7ddccda053ce5b35e374e",
    "unique_id": "4056804de8abcb2f6a65681b3de4c3ff56342009",
    "element_id": "791c41fc625a1d629148c281d2ceb26df606d663",
    "ip_address": "3X.XX.XX.XX",
    "document_id": "bb5101d1b891f585ab0659378eb80831a5745ba2",
    "client_app_name": "Sample Application",
    "json_attributes": null,
    "client_timestamp": 1672128446
  },
  {
    "email": "signer2@email.com",
    "event": "signer_authentication_success",
    "created": 1672128452,
    "user_id": "83467d74be676ab81e5f7ebd8806786684b67284",
    "field_id": null,
    "unique_id": "ac6b28185c40406f1f4d9c184fe1760dfc99752f",
    "element_id": null,
    "ip_address": "3X.XX.XX.XX",
    "document_id": "bb5101d1b891f585ab0659378eb80831a5745ba2",
    "client_app_name": "Sample Application",
    "json_attributes": {
      "phone_number_2fa": "+1XXX-XXXXXXX",
      "authentication_type": "phone_call"
    },
    "client_timestamp": 1672128452
  },
  {
    "email": "signer2@email.com",
    "event": "added_signature",
    "created": 1672128453,
    "user_id": "83467d74be676ab81e5f7ebd8806786684b67284",
    "field_id": "f5457d8f3498c9b7801a5ab4d948b80380b6c044",
    "unique_id": "0e3e36593e665409f1a470841e90259acfdd0898",
    "element_id": "10b86389bbec168eeb1f03336cfe16fe245700da",
    "ip_address": "3X.XX.XX.XX",
    "document_id": "bb5101d1b891f585ab0659378eb80831a5745ba2",
    "client_app_name": "Sample Application",
    "json_attributes": null,
    "client_timestamp": 1672128453
  }
]
```

### 400

- Wrong, expired, or missing token.
- User does not have access to this document.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`No access to this document`)

```json
{
  "errors": [
    {
      "code": 65610,
      "message": "not readable"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/document/{document_id}/historyfull" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /document/{document_id}/attachment/{attachment_id}/download — Download document attachment

This endpoint allows API users to download a file that a signer uploaded to an attachment field of the document.

**Notes**

* Get `attachment_id` from the `id` of an item in the `attachments` array returned by [Get document](/docs/document/operations/get-document).
* The file is returned as uploaded, with a `Content-Disposition: attachment` header that carries the original file name.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | Unique document id. |
| `attachment_id` | string | Yes | Unique ID of the attachment.  You can find it in the response to `GET /document/{document_id}`. |

## Responses

### 200

The attached file. The content type matches the uploaded file, for example `image/jpeg` or `application/pdf`.

### 400

The attachment with this `attachment_id` is not found.

**Example** (`Attachment not found`)

```json
{
  "errors": [
    {
      "code": 66304,
      "message": "Attachment not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/document/{document_id}/attachment/{attachment_id}/download" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /document/{document_id}/download — Download document

This endpoint allows API users to download a document as a PDF file or a ZIP archive.

The `type` query parameter sets the format:

* Not set: the original PDF, as uploaded.
* `collapsed`: a PDF with the filled fields.
* `zip`: a ZIP archive with the PDF and any attachments on the document.
* `email`: a ZIP archive with the PDF that has the document ID on each page, attachments, and the history file if history is requested.

**Notes**

* The file is returned in the response body with a `Content-Disposition: attachment` header that carries the file name.
* `with_history=1` takes effect only together with `type`. Without `type`, the original PDF is returned.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `type` | string | No | Format of the download. Allowed values: `collapsed`, `zip`, `email`. If not set, the original PDF is returned. |
| `with_history` | string | No | Set to `1` to include the document history in the download. Takes effect only together with `type`. |

## Responses

### 200

The document file. The content type depends on `type`: `application/pdf` when `type` is not set or is `collapsed`, `application/zip` when `type` is `zip` or `email`.

### 400

* Wrong, expired, or missing token.
* The document doesn't exist.
* The document belongs to another user.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Not the owner`)

```json
{
  "errors": [
    {
      "code": 65610,
      "message": "not readable"
    }
  ]
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "document not exist"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/document/{document_id}/download" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /document/{document_id}/download/link — Get document download link

This endpoint allows API users to get a one-time link that anyone can use to download the document as a PDF.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |

## Responses

### 200

One-time download link for the document.

**Example** (`Successful response`)

```json
{
  "link": "https://signnow.com/dispatch?route=onetimedownload&source=link&document_download_id=117fd564393080553ebbb0c0278bc9652de94efc"
}
```

### 400

* Wrong, expired, or missing token.
* The document doesn't exist.
* The document belongs to another user.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Not the owner`)

```json
{
  "errors": [
    {
      "code": 65610,
      "message": "not readable"
    }
  ]
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "document not exist"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/document/{document_id}/download/link" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## GET /document/{document_id}/metadata — Get metadata of a document

This endpoint allows API users to retrieve metadata for a selected document.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Responses

### 200

Metadata of the document.

**Example** (`Successful response`)

```json
{
  "content": {
    "source": "crm",
    "order_id": "12345"
  },
  "updated": "0",
  "application_id": "83122"
}
```

### 400

* Request with bearer token from another user.
* Invalid token.

**Example** (`Invalid token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Request with bearer token from another user`)

```json
{
  "errors": [
    {
      "code": 65610,
      "message": "not readable"
    }
  ]
}
```

### 404

Request with `document_id` that doesn’t match the pattern `[a-z0-9]{40}`.

**Example** (`Request with `document_id` that doesn’t match the pattern `[a-z0-9]{40}``)

```json
{
  "errors": [
    {
      "404": "Unable to find a route to match the URI: document/{incorrect_document_id}/metadata"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/document/{document_id}/metadata" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /document/{document_id}/metadata — Add metadata to a document

This endpoint allows API users to add metadata to the selected document. All added metadata will be linked to the document during the [invite to sign](/docs/document-field-invite/operations/post-document-doc-id-invite). Also, if you'd like to use this metadata in any event subscription, you can add upon [creating a webhook](/docs/basic-auth/operations/create-event-subscription).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "source"
  ],
  "properties": {
    "key": {
      "type": "string",
      "description": "Any type of metadata that should be added to the document. For example,`signer_id`."
    },
    "key1": {
      "type": "string",
      "description": "Any type of metadata that should be added to the document. For example, `timestamp`."
    },
    "key2": {
      "type": "string",
      "description": "Any type of metadata that should be added to the document. For example, `document_owner_id`."
    },
    "source": {
      "type": "string",
      "description": "The object that uses this metadata. Allowed values: `webhook`."
    }
  },
  "x-examples": {
    "Example 1": {
      "key": "value",
      "key1": "value",
      "key2": "value",
      "source": "webhook"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "key": "value",
  "key1": "value",
  "key2": "value",
  "source": "webhook"
}
```

## Responses

### 200

The metadata was added to the document.

**Example** (`Successful response`)

```json
{
  "success": true
}
```

### 400

* Incorrect or missing token.
* Request with bearer token from another user.
* Request without `source` key.
* `source` is not a string.

**Example** (`source not string`)

```json
{
  "errors": [
    {
      "code": 65916,
      "message": "Source must be a string"
    }
  ]
}
```

**Example** (`Another user's token`)

```json
{
  "errors": [
    {
      "code": 65610,
      "message": "not readable"
    }
  ]
}
```

**Example** (`Request without source`)

```json
{
  "errors": [
    {
      "code": 65916,
      "message": "Source must not be empty"
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/document/{document_id}/metadata" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"key": "value", "key1": "value", "key2": "value", "source": "webhook"}'
```

---

## POST /document/{document_id}/move — Move document

This endpoint allows API users to move a document to a folder.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "folder_id": {
      "type": "string",
      "description": "ID of the folder where you'd like to keep this document."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "folder_id": "afffdd08d81dd168981d9a0dcceb2fb24c2ab56a"
}
```

## Responses

### 200

The document was moved to the folder.

**Example** (`Successful response`)

```json
{
  "result": "success"
}
```

### 400

* Wrong, expired, or missing token.
* The document doesn't exist.
* The document belongs to another user.
* `folder_id` is missing.
* The folder doesn't exist or belongs to another user.
* Documents can't be moved to the selected folder, for example the `Templates` folder.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Not the owner`)

```json
{
  "errors": [
    {
      "code": 65610,
      "message": "not readable"
    }
  ]
}
```

**Example** (`Folder not found`)

```json
{
  "errors": [
    {
      "code": 65611,
      "message": "folder resource does not exist."
    }
  ]
}
```

**Example** (`Missing folder_id`)

```json
{
  "errors": [
    {
      "code": 65611,
      "message": "Param folder_id is not provided."
    }
  ]
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document not found"
    }
  ]
}
```

**Example** (`Folder not allowed`)

```json
{
  "errors": [
    {
      "code": 65615,
      "message": "cannot place document in this folder"
    }
  ]
}
```

### 403

An organization admin can read the document but isn't its owner. Only the owner, or a team admin when the organization settings allow it, can move a document.

**Example** (`Not allowed to move`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Moving document is allowed only for owner and team admin (if allowed by the organization settings)."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/document/{document_id}/move" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"folder_id": "afffdd08d81dd168981d9a0dcceb2fb24c2ab56a"}'
```

---

## PUT /folder/{folder_unique_id}/documents — Move documents in bulk

This endpoint allows API users to move documents in bulk to a specified folder.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `folder_unique_id` | string | Yes | ID of the target folder to move documents. |

## Request Body

**Schema**

```json
{
  "type": "array",
  "items": {
    "type": "object",
    "required": [
      "unique_id"
    ],
    "properties": {
      "unique_id": {
        "type": "string",
        "description": "ID of moving documents. Limit: 25 documents."
      }
    }
  },
  "x-examples": {
    "Example 1": [
      {
        "unique_id": "abc42eecf44c41aabe1803280d379562930a1964"
      },
      {
        "unique_id": "ebe10d8381b34fca86ed09d87b8a4130b146e80d"
      }
    ]
  }
}
```

**Example** (`Request moving two documents`)

```json
[
  {
    "unique_id": "abc42eecf44c41aabe1803280d379562930a1964"
  },
  {
    "unique_id": "ebe10d8381b34fca86ed09d87b8a4130b146e80d"
  }
]
```

## Responses

### 200

Documents moved successfully.

**Example** (`Successful response`)

```json
{
  "status": "success"
}
```

### 400

- Document limit (maximum: 25) is exceeded.
- Bad request, including:
  - Document does not exist.
  - Operation is not allowed (user tries to move document into Template folder etc.).
  - User does not have rights to move the document.
- Target folder does not exist.
- Invalid document ID.

**Example** (`Bad request`)

```json
{
  "code": 160,
  "errors": [
    {
      "code": 75,
      "message": "Resource doesn't exist",
      "unique_id": "abc42eecf4sc41aabe1803280d379562930a1964"
    },
    {
      "code": 79,
      "message": "operation not allowed",
      "unique_id": "b605d4d971cd48d1ba3af6b15eaa467aa091e282"
    },
    {
      "code": 74,
      "message": "not readable",
      "unique_id": "398392b4f4ac421c92bbffa74a04d706a75fc969"
    }
  ],
  "message": "Bad request"
}
```

**Example** (`Invalid document ID`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid unique id"
    }
  ]
}
```

**Example** (`Document limit exceeded`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid payload length"
    }
  ]
}
```

**Example** (`Target folder does not exist`)

```json
{
  "errors": [
    {
      "code": 65611,
      "message": "folder Resource doesn't exist"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/folder/{folder_unique_id}/documents" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '[{"unique_id": "abc42eecf44c41aabe1803280d379562930a1964"}, {"unique_id": "ebe10d8381b34fca86ed09d87b8a4130b146e80d"}]'
```

---

## GET /v2/documents/{document_id}/roles — Get document users

This endpoint allows API users to retrieve a paginated list of users who have access to the document, including their emails, roles, names, and avatars.

**Notes**

* The owner sees all users with roles (including themselves as `owner`).
* A non-owner (shared user) sees only the owner and themselves.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | Document ID. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `per_page` | integer | No | Number of items per page. Min: `1`, Max: `100`. Default: `15`. |
| `page` | integer | No | Page number. Min: `1`. Default: `1`. |

## Responses

### 200

Success. Returns a paginated list of users with access to the document.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "abc123def456abc123def456abc123def456abc1",
      "role": "owner",
      "email": "owner@example.com",
      "full_name": "John Doe",
      "avatar_url": "https://example.com/avatars/abc123/download"
    },
    {
      "id": "def456abc123def456abc123def456abc123def4",
      "role": "viewer",
      "email": "viewer@example.com",
      "full_name": "Jane Smith",
      "avatar_url": null
    }
  ],
  "meta": {
    "pagination": {
      "count": 2,
      "total": 2,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* Wrong, expired, or missing token.
* Document not found.
* You don't have access to the entity.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 12029021,
      "message": "Document not found."
    }
  ]
}
```

**Example** (`No access to entity`)

```json
{
  "errors": [
    {
      "code": 12029012,
      "message": "You don't have access to the entity."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/documents/{document_id}/roles" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/documents/{document_id}/roles — Unshare document from all users

This endpoint allows API users to remove sharing access for all users from the document.

**Notes**

* Only the owner of the document can perform this action.
* All shared users are removed.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | Document ID. |

## Responses

### 204

All users successfully unshared. No content returned.

### 400

Bad request. Possible errors:

* Incorrect or missing token.
* Document not found.

**Example** (`Document not found`)

```json
{
  "code": 12029021,
  "message": "Document not found."
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

User is not the document owner.

**Example** (`Not an owner`)

```json
{
  "code": 12029012,
  "message": "You don't have access to the entity."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/documents/{document_id}/roles" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/documents/{document_id}/roles/{user_id} — Unshare document from user

This endpoint allows API users to remove sharing access for a specific user from the document.

**Notes**

* The owner can unshare any user except themselves.
* A shared user can unshare only themselves (self-unshare).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | Document ID. |
| `user_id` | string | Yes | ID of the user to unshare. |

## Responses

### 204

User successfully unshared. No content returned.

### 400

Bad request. Possible errors:

* Incorrect or missing token.
* Document not found.
* User role not found.
* Managing user not found.
* Entity owner can't unshare it from himself.

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 12029021,
      "message": "Document not found."
    }
  ]
}
```

**Example** (`User role not found`)

```json
{
  "errors": [
    {
      "code": 12029011,
      "message": "User role not found."
    }
  ]
}
```

**Example** (`Managing user not found`)

```json
{
  "errors": [
    {
      "code": 12029023,
      "message": "Managing user not found."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Owner can't unshare themselves`)

```json
{
  "errors": [
    {
      "code": 12029022,
      "message": "Entity owner can't unshare it from himself."
    }
  ]
}
```

### 403

You don't have access to the entity.

**Example** (`Forbidden`)

```json
{
  "code": 12029012,
  "message": "You don't have access to the entity."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/documents/{document_id}/roles/{user_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/shared-entities — Share document

This endpoint allows API users to share documents with one or more users. For each document-email pair, assign a `viewer`, `sender`, or `editor` role.

**Notes**

* **Viewer** - can view and download the document; **sender** - can view, download, invite to sign, and manage document invites; **editor** - has all sender permissions and can also edit the document.
* Only documents owned by the authenticated user may be shared.
* If the recipient already has access, their role is updated to the value sent in the request.
* The recipient receives an email notification with a link to the shared document.
* If the recipient does not exist in the system, a new account is created automatically.
* The document owner's email must not appear among the recipients.
* Documents belonging to a document group cannot be shared individually.
* Documents created from a template already shared with the target user are rejected with a conflict error.

**Request limits:** At most **100 distinct recipient emails** and **20 distinct documents** per request.

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "entity_type",
          "entity_id",
          "email",
          "role"
        ],
        "properties": {
          "role": {
            "enum": [
              "viewer",
              "sender",
              "editor"
            ],
            "type": "string",
            "example": "viewer",
            "description": "Role to assign. Allowed values: `viewer`, `sender`, `editor`."
          },
          "email": {
            "type": "string",
            "example": "user@email.com",
            "description": "Valid email address of the recipient."
          },
          "message": {
            "type": "string",
            "example": "Please review the document.",
            "description": "Custom message to include in the notification email."
          },
          "entity_id": {
            "type": "string",
            "example": "abc123def456abc123def456abc123def456abc1",
            "description": "Document unique ID."
          },
          "entity_type": {
            "type": "string",
            "example": "document",
            "description": "Type of the entity to share. Allowed value: `document`."
          }
        }
      },
      "description": "Non-empty array of share requests."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "data": [
    {
      "role": "viewer",
      "email": "user1@email.com",
      "message": "Please review the document.",
      "entity_id": "aaa111bbb222aaa111bbb222aaa111bbb222aaa1",
      "entity_type": "document"
    },
    {
      "role": "sender",
      "email": "user2@email.com",
      "message": "Sending this document for your attention.",
      "entity_id": "bbb222ccc333bbb222ccc333bbb222ccc333bbb2",
      "entity_type": "document"
    }
  ]
}
```

## Responses

### 200

Document successfully shared.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "def456abc123def456abc123def456abc123def4",
      "email": "user1@email.com",
      "entities": [
        {
          "role": "viewer",
          "entity_id": "aaa111bbb222aaa111bbb222aaa111bbb222aaa1",
          "entity_type": "document"
        }
      ]
    },
    {
      "id": "bf567a8af1b544afa55b40c40063652891ffcd31",
      "email": "user2@email.com",
      "entities": [
        {
          "role": "sender",
          "entity_id": "bbb222ccc333bbb222ccc333bbb222ccc333bbb2",
          "entity_type": "document"
        }
      ]
    }
  ]
}
```

### 400

Bad request. Possible errors:

* Incorrect or missing token.
* Data is null.
* Data is not an array.
* Data array is empty.
* `entity_type` is not a string or is empty.
* `entity_type` value is not `document`.
* `entity_id` is not a string or is empty.
* `email` is not a string, is empty, or is not a valid email.
* `role` is not a string, is empty, or is not `viewer`, `sender`, or `editor`.
* Duplicate `email` and `entity_id` pair.
* Cannot share entity with the same owner.
* `message` field errors.

**Example** (`Data is null`)

```json
{
  "errors": [
    {
      "code": 12030002,
      "message": "Data should not be null, value: [null] given."
    }
  ]
}
```

**Example** (`role is empty`)

```json
{
  "errors": [
    {
      "code": 12030013,
      "message": "Field role should not be empty."
    }
  ]
}
```

**Example** (`email is empty`)

```json
{
  "errors": [
    {
      "code": 12030010,
      "message": "Field email should not be empty."
    }
  ]
}
```

**Example** (`message is empty`)

```json
{
  "errors": [
    {
      "code": 12030021,
      "message": "Field message must not be empty."
    }
  ]
}
```

**Example** (`message too long`)

```json
{
  "errors": [
    {
      "code": 12030023,
      "message": "Field message should not exceed 10000 characters."
    }
  ]
}
```

**Example** (`message too short`)

```json
{
  "errors": [
    {
      "code": 12030023,
      "message": "Field message should be not less than 1 characters."
    }
  ]
}
```

**Example** (`Invalid role value`)

```json
{
  "errors": [
    {
      "code": 12030014,
      "message": "Field `role` value should be one of [\"viewer\", \"sender\", \"editor\"], value: [\"admin\"] given."
    }
  ]
}
```

**Example** (`email is not valid`)

```json
{
  "errors": [
    {
      "code": 12030011,
      "message": "Field email should be valid email."
    }
  ]
}
```

**Example** (`entity_id is empty`)

```json
{
  "errors": [
    {
      "code": 12030008,
      "message": "Field entity_id should not be empty."
    }
  ]
}
```

**Example** (`Data array is empty`)

```json
{
  "errors": [
    {
      "code": 12030024,
      "message": "The data field should not be an empty array."
    }
  ]
}
```

**Example** (`Data is not an array`)

```json
{
  "errors": [
    {
      "code": 12030001,
      "message": "The data field must be an array."
    }
  ]
}
```

**Example** (`entity_type is empty`)

```json
{
  "errors": [
    {
      "code": 12030005,
      "message": "Field entity_type should not be empty."
    }
  ]
}
```

**Example** (`role is not a string`)

```json
{
  "errors": [
    {
      "code": 12030012,
      "message": "Field role should be string, value: [1] given."
    }
  ]
}
```

**Example** (`email is not a string`)

```json
{
  "errors": [
    {
      "code": 12030009,
      "message": "Field email should be string, value: [1] given."
    }
  ]
}
```

**Example** (`Cannot share with owner`)

```json
{
  "errors": [
    {
      "code": 12030016,
      "message": "Cannot share entity with the same owner."
    }
  ]
}
```

**Example** (`message is not a string`)

```json
{
  "errors": [
    {
      "code": 12030022,
      "message": "Field message should be string, value: [...] given."
    }
  ]
}
```

**Example** (`Invalid entity_type value`)

```json
{
  "errors": [
    {
      "code": 12030006,
      "message": "Field entity_type value should be one of [\"document\"], value: [group] given."
    }
  ]
}
```

**Example** (`entity_id is not a string`)

```json
{
  "errors": [
    {
      "code": 12030007,
      "message": "Field entity_id should be string, value: [1] given."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`entity_type is not a string`)

```json
{
  "errors": [
    {
      "code": 12030004,
      "message": "Field entity_type should be string, value: [1] given."
    }
  ]
}
```

**Example** (`Duplicate email and entity_id`)

```json
{
  "errors": [
    {
      "code": 12030015,
      "message": "Duplicated fields email and entity_id."
    }
  ]
}
```

### 403

Forbidden. Possible errors:

* User is not the owner of the shared entity.
* Document already shared with target user.

**Example** (`User is not owner`)

```json
{
  "errors": [
    {
      "code": 12030017,
      "message": "User is not owner of shared entity."
    }
  ]
}
```

**Example** (`Parent entity already shared`)

```json
{
  "errors": [
    {
      "code": 12030020,
      "message": "Sharing entity conflict: parent entity already shared."
    }
  ]
}
```

### 409

The document is part of a group and cannot be shared separately.

**Example** (`The document is part of a group and cannot be shared separately`)

```json
{
  "errors": [
    {
      "code": 12030025,
      "message": "Sharing entity conflict: not allowed to share separately a document that is part of a group."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/shared-entities" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"data": [{"role": "viewer", "email": "user1@email.com", "message": "Please review the document.", "entity_id": "aaa111bbb222aaa111bbb222aaa111bbb222aaa1", "entity_type": "document"}, {"role": "sender", "email": "user2@email.com", "message": "Sending this document for your attention.", "entity_id": "bbb222ccc333bbb222ccc333bbb222ccc333bbb2", "entity_type": "document"}]}'
```

---

## GET /v2/document-generations/{process_id}/status — Get document generation status

This endpoint allows API users to get the status of a document generation process.

Learn more about [document generation](/docs/document-generations).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `process_id` | string | Yes | ID of the document generation process. |

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "data": {
    "status": "in_progress",
    "entity_id": null,
    "process_id": "48bc7836-194a-11f1-a657-0a39a0b006c0",
    "entity_type": null
  }
}
```

### 404

Document generation not found.

**Example** (`Document generation not found`)

```json
{
  "errors": [
    {
      "code": 21008006,
      "message": "Document generation not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/document-generations/{process_id}/status" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/document-generations/upload — Generate document from uploaded file

This endpoint allows API users to generate a PDF document by uploading a `.docx` file with tags.

> In development mode, downloaded generated documents will include a watermark.

Learn more about [document generation](/docs/document-generations).

## Authorization

bearer

## Form Data Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `file` | string | Yes | The `.docx` file to upload. Maximum size: 10 MB. |
| `data` | string | Yes | A JSON string containing variable mappings. Keys correspond to tag names in the `.docx` template; values are the pre-filled text for each tag. Supports arrays of objects for repeating sections, such as tables and lists. Example for a document with a Products table: `{"Products": [{"ItemPrice": "8", "ItemName": "T-shirt", "ItemQuantity": "10"}, {"ItemPrice": "4", "ItemName": "Belt", "ItemQuantity": "5"}, {"ItemPrice": "20", "ItemName": "Dress", "ItemQuantity": "2"}]}`. |
| `single_document` | boolean | No | If `true`, a single document is generated. If `false`, a document group is generated. |

## Responses

### 201

Successful response.

**Example** (`Successful response`)

```json
{
  "data": {
    "status": "in_progress",
    "process_id": "348bf62a-1c97-11f1-a071-5a78fa528452"
  }
}
```

### 400

* `data` is empty.
* `single_document` is not a boolean.
* Uploaded file is empty.
* Uploaded file exceeds 10 MB.
* `data` is not an array.
* Uploaded file is not a `.docx`.

**Example** (`Empty data`)

```json
{
  "errors": [
    {
      "code": 21008003,
      "message": "The `data` field must not be empty."
    }
  ]
}
```

**Example** (`data is not an array`)

```json
{
  "errors": [
    {
      "code": 21008007,
      "message": "The `data` field must be an array."
    }
  ]
}
```

**Example** (`Uploaded file is empty`)

```json
{
  "errors": [
    {
      "code": 21008004,
      "message": "The uploaded file must not be empty."
    }
  ]
}
```

**Example** (`Uploaded file is not a .docx`)

```json
{
  "errors": [
    {
      "code": 21008009,
      "message": "The uploaded file must have a .docx extension."
    }
  ]
}
```

**Example** (`single_document is not a boolean`)

```json
{
  "errors": [
    {
      "code": 21008008,
      "message": "The `single_document` field must be a boolean."
    }
  ]
}
```

**Example** (`Uploaded file exceeds maximum size`)

```json
{
  "errors": [
    {
      "code": 21008005,
      "message": "The uploaded file exceeds the maximum allowed size of 10 MB."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-generations/upload" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## POST /v2/document-generations/url — Generate document from URL

This endpoint allows API users to generate a PDF document by providing a publicly accessible URL to a `.docx` file with tags.

> In development mode, downloaded generated documents will include a watermark.

Learn more about [document generation](/docs/document-generations).

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "docx_url",
    "data"
  ],
  "properties": {
    "data": {
      "type": "object",
      "example": {
        "Products": [
          {
            "ItemName": "T-shirt",
            "ItemPrice": "8",
            "ItemQuantity": "10"
          },
          {
            "ItemName": "Belt",
            "ItemPrice": "4",
            "ItemQuantity": "5"
          },
          {
            "ItemName": "Dress",
            "ItemPrice": "20",
            "ItemQuantity": "2"
          }
        ]
      },
      "description": "An object containing variable mappings. Keys correspond to tag names in the `.docx` template; values are the pre-filled text for each tag. Supports arrays of objects for repeating sections (e.g., tables, lists)."
    },
    "docx_url": {
      "type": "string",
      "example": "https://example.com/template.docx",
      "description": "Publicly accessible URL to the `.docx` file."
    },
    "single_document": {
      "type": "boolean",
      "default": false,
      "description": "If `true`, a single document is generated. If `false`, a document group is generated."
    }
  },
  "x-examples": {
    "Request example for generating a document with a Products table": {
      "data": {
        "Products": [
          {
            "ItemName": "T-shirt",
            "ItemPrice": "8",
            "ItemQuantity": "10"
          },
          {
            "ItemName": "Belt",
            "ItemPrice": "4",
            "ItemQuantity": "5"
          },
          {
            "ItemName": "Dress",
            "ItemPrice": "20",
            "ItemQuantity": "2"
          }
        ]
      },
      "docx_url": "https://example.com/template.docx",
      "single_document": true
    }
  }
}
```

**Example** (`Request example for generating a document with a Products table`)

```json
{
  "data": {
    "Products": [
      {
        "ItemName": "T-shirt",
        "ItemPrice": "8",
        "ItemQuantity": "10"
      },
      {
        "ItemName": "Belt",
        "ItemPrice": "4",
        "ItemQuantity": "5"
      },
      {
        "ItemName": "Dress",
        "ItemPrice": "20",
        "ItemQuantity": "2"
      }
    ]
  },
  "docx_url": "https://example.com/template.docx",
  "single_document": true
}
```

## Responses

### 201

Successful response.

**Example** (`Successful response`)

```json
{
  "data": {
    "status": "in_progress",
    "process_id": "348bf62a-1c97-11f1-a071-5a78fa528452"
  }
}
```

### 400

* `docx_url` is not a valid URL.
* `docx_url` is an empty string.
* `data` is empty.
* `single_document` is not a boolean.

**Example** (`Empty data`)

```json
{
  "errors": [
    {
      "code": 21008003,
      "message": "The `data` field must not be empty."
    }
  ]
}
```

**Example** (`Empty docx_url`)

```json
{
  "errors": [
    {
      "code": 21008002,
      "message": "The `docx_url` field must not be empty."
    }
  ]
}
```

**Example** (`docx_url is not a valid URL`)

```json
{
  "errors": [
    {
      "code": 21008001,
      "message": "The `docx_url` must be a valid URL."
    }
  ]
}
```

**Example** (`single_document is not a boolean`)

```json
{
  "errors": [
    {
      "code": 21008008,
      "message": "The `single_document` field must be a boolean."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-generations/url" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"data": {"Products": [{"ItemName": "T-shirt", "ItemPrice": "8", "ItemQuantity": "10"}, {"ItemName": "Belt", "ItemPrice": "4", "ItemQuantity": "5"}, {"ItemName": "Dress", "ItemPrice": "20", "ItemQuantity": "2"}]}, "docx_url": "https://example.com/template.docx", "single_document": true}'
```

---

## POST /documentgroup — Create document group

This endpoint allows API users to create a document group from a list of document IDs.

All documents:
* Must be owned by the person creating the document group.
* Cannot be templates.
* Cannot already be a part of another document group.
* Cannot have active or fulfilled invites.

For more information, check out our video tutorial.

<details open>

**<summary>Video tutorial</summary>**

<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>

[Video tutorial](https://www.youtube.com/watch?v=5WJYRz6Szk0)

</details>


## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "document_ids",
    "group_name"
  ],
  "properties": {
    "group_name": {
      "type": "string",
      "description": "Name of the document group."
    },
    "document_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "IDs of the documents to add to the document group."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "group_name": "Document Group 1",
  "document_ids": [
    "cddb81c6a49207c03f09ad5a42fc411546a0f999",
    "dd3c4cef51b6fa916aac4e7e26aebe505b550af6"
  ]
}
```

## Responses

### 200

Document group successfully created.

**Example** (`Successful response`)

```json
{
  "id": "687132c7d4b2cc552bbb49897014cb8c097d670b"
}
```

### 400

* Wrong, expired, or missing token.
* Incorrect payload.
* Incorrect `document_ids` property.
* `document_ids` array not containing documents.
* Document not found.
* Document not found or belongs to another user.
* Document is a template.
* Document already part of another document group.
* Missing `group_name` property.
* Document has active or fulfilled invites.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Incorrect payload`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid payload"
    }
  ]
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document \"{document_id}\" could not be found, make sure the id is correct and the user owns the document"
    }
  ]
}
```

**Example** (`document_ids empty`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "No documents provided"
    }
  ]
}
```

**Example** (`Document has invites`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document {document_id} already has active or fulfilled invites."
    }
  ]
}
```

**Example** (`Document is template`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document {template_id} is a template"
    }
  ]
}
```

**Example** (`Incorrect document_ids`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "document_ids property is missing, empty, or not an array"
    }
  ]
}
```

**Example** (`Missing group_name property`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "group_name property is empty"
    }
  ]
}
```

**Example** (`Document is part of another document group`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document {document_id} is already part of a document group"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/documentgroup" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"group_name": "Document Group 1", "document_ids": ["cddb81c6a49207c03f09ad5a42fc411546a0f999", "dd3c4cef51b6fa916aac4e7e26aebe505b550af6"]}'
```

---

## DELETE /documentgroup/{document_group_id} — Delete document group

This endpoint allows API users to delete a document group and all documents in it.

> [!WARNING]
> Deleting a document group also deletes every document in it, and the user loses access to them. The documents aren't moved to Trash, so the user can't restore them.

**Notes**

* A document group can't be deleted while it has a group invite. Cancel the invite first.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Responses

### 200

The document group and all its documents were deleted.

**Example** (`Successful response`)

```json
{
  "status": "success"
}
```

### 400

* Wrong, expired, or missing token.
* The document group doesn't exist.
* The document group belongs to another user.
* The document group has an active group invite. Cancel the invite first.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Not the owner`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "User is not document group owner"
    }
  ]
}
```

**Example** (`Group invite exists`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Cannot delete group because it has a group invite"
    }
  ]
}
```

**Example** (`Document group not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "unable to find document group"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/documentgroup/{document_group_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /documentgroup/{document_group_id}/downloadall — Download document group

This endpoint allows API users to download all documents of the document group as a ZIP archive or a single PDF file.

The `type` body parameter sets the format:

* `zip`: a ZIP archive with each document as a separate PDF.
* `merged`: one PDF with all documents of the group.
* `certificate`: one PDF with all documents and attachments, stamped with the document group ID, followed by the history.
* `email`: a ZIP archive with the documents that have the document group ID on each page, attachments, and the history file if history is requested.

**Notes**

* The file is returned in the response body with a `Content-Disposition: attachment` header that carries the file name.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "type",
    "with_history"
  ],
  "properties": {
    "type": {
      "type": "string",
      "description": "Type of the download format. Allowed values: `zip`, `merged`, `certificate`, `email`."
    },
    "with_history": {
      "type": "string",
      "description": "Whether or not to attach document history to the download. Allowed values: `no`, `after_each_document`, `after_merged_pdf`."
    },
    "document_order": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The order of documents in the merged file."
    }
  },
  "x-examples": {
    "Example 1": {
      "type": "merged",
      "with_history": "after_merged_pdf",
      "document_order": [
        "2731940ca423d065d99833df3dacf359a94e3e33",
        "4f46709eecac1f77e69deb5d4dd8cc9167356954"
      ]
    }
  }
}
```

**Example** (`Download merged document group with history `)

```json
{
  "type": "merged",
  "with_history": "after_merged_pdf",
  "document_order": [
    "273a5c961038a442ac9f831f6ebb140097db341e",
    "4f65e9173330e7e1204acfd78fa921debef6336d"
  ]
}
```

## Responses

### 200

The document group file. The content type depends on `type`: `application/zip` for `zip` and `email`, `application/pdf` for `merged` and `certificate`.

### 400

Request with any of these cases:

* invalid token. 
* expired token. 
* empty header.
* authorization = null.

**Example** (`Authorization error`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/documentgroup/{document_group_id}/downloadall" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"type": "merged", "with_history": "after_merged_pdf", "document_order": ["273a5c961038a442ac9f831f6ebb140097db341e", "4f65e9173330e7e1204acfd78fa921debef6336d"]}'
```

---

## PUT /v2/document-groups/{document_group_id} — Rename document group

This endpoint allows API users to rename a document group.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | The ID of a Document Group. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "group_name"
  ],
  "properties": {
    "group_name": {
      "type": "string",
      "description": "New name of the document group. Max: `255` characters."
    }
  }
}
```

**Example** (`Rename document group`)

```json
{
  "group_name": "Contract package"
}
```

## Responses

### 204

The document group has been renamed. No content returned.

### 400

* Wrong, expired, or missing token.
* `group_name` is missing or empty.
* `group_name` isn't a string.
* `group_name` is longer than `255` characters.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Name too long`)

```json
{
  "errors": [
    {
      "code": 13020013,
      "message": "The document_group_name must not exceed 255 chars"
    }
  ]
}
```

**Example** (`Missing group_name`)

```json
{
  "errors": [
    {
      "code": 13009015,
      "message": "The `group_name` field is required."
    }
  ]
}
```

**Example** (`group_name not a string`)

```json
{
  "errors": [
    {
      "code": 13009013,
      "message": "The `group_name` field must be a string."
    }
  ]
}
```

### 403

The document group belongs to another user.

**Example** (`Access denied`)

```json
{
  "errors": [
    {
      "code": 13009016,
      "message": "Access to DocumentGroup is denied"
    }
  ]
}
```

### 404

The document group doesn't exist.

**Example** (`Document group not found`)

```json
{
  "errors": [
    {
      "message": "Document group `0d4ad4b1d6a64bf6a8e8b7f0e2f5b5ac0c1f9e3d` not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/document-groups/{document_group_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"group_name": "Contract package"}'
```

---

## PATCH /v2/document-groups/{document_group_id} — Edit document group

This endpoint allows users to reorder documents and update the action performed upon document group completion.
> Document group should not have pending or fulfilled signature invites.


## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "order": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of document IDs in the group.\n"
    },
    "email_action_on_complete": {
      "type": "string",
      "example": "documents_and_attachments_only_to_recipients",
      "description": "Specifies the action to be taken upon invite completion. Allowed values: \n`documents_and_attachments`: Email documents and attachments to all parties.\n`documents_and_attachments_only_to_recipients`: Email documents and attachments only to recipients.\n`without_documents_and_attachments`: Do not email documents or any attachments."
    }
  },
  "x-examples": {
    "Example 1": {
      "order": [
        "ffa1e7109013c26d5a706d34a9d0ad598f95afff",
        "06d34a9d0ad598f95afa1ffa1e7109013c26d555"
      ],
      "email_action_on_complete": "documents_and_attachments_only_to_recipients"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "order": [
    "ffa1e7109013c26d5a706d34a9d0ad598f95afff",
    "06d34a9d0ad598f95afa1ffa1e7109013c26d555"
  ],
  "email_action_on_complete": "documents_and_attachments_only_to_recipients"
}
```

## Responses

### 204

Success.

### 400

**Authorization errors:**

* Wrong, expired, or missing token.

**Validation errors:**

- `order` type is incorrect.
- Document ID is incorrect. Document IDs must match `[a-z0-9]{40}`.
- Document IDs are not unique.
- `email_action_on_complete` value is incorrect.

**Example** (`Authorization error`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

**Example** (`Document IDs not unique`)

```json
{
  "code": 46,
  "message": "The order array must include unique document ids."
}
```

**Example** (`Order type is incorrect`)

```json
{
  "code": 46,
  "message": "The order field must be an array"
}
```

**Example** (`Document ID is incorrect`)

```json
{
  "code": 46,
  "message": "The order array must include valid unique document ids"
}
```

**Example** (`email_action_on_complete is incorrect`)

```json
{
  "code": 13022001,
  "message": "The email_action_on_complete value you selected is not a valid choice."
}
```

### 404

Document group not found.


**Example** (`DG not found`)

```json
{
  "errors": [
    {
      "message": "Document group `{uid}` not found"
    }
  ]
}
```

### 422

- User is not the owner of the document group.
- Payload documents do not match the group.
- Document group has pending or fulfilled invites.


**Example** (`User is not owner`)

```json
{
  "code": 65536,
  "message": "You do not have this DocumentGroup"
}
```

**Example** (`Pending or fulfilled invites`)

```json
{
  "code": 65594,
  "message": "DocumentGroup has incorrect status"
}
```

**Example** (`Documents do not match the group`)

```json
{
  "code": 65585,
  "message": "Documents in order are not equal to existing documents in the document group"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PATCH \
  "https://api.signnow.com/v2/document-groups/{document_group_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"order": ["ffa1e7109013c26d5a706d34a9d0ad598f95afff", "06d34a9d0ad598f95afa1ffa1e7109013c26d555"], "email_action_on_complete": "documents_and_attachments_only_to_recipients"}'
```

---

## POST /v2/document-groups/{document_group_id}/copy — Create a copy of doc group

This endpoint allows API users to copy a document group in any status and give the copy a new name.

**Notes**

* The copy is created asynchronously. It appears in the user's **Documents** folder once processing is complete.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "document_group_name"
  ],
  "properties": {
    "client_timestamp": {
      "type": "integer",
      "description": "The timestamp in UNIX code."
    },
    "document_group_name": {
      "type": "string",
      "description": "The name of the new document group copy."
    }
  },
  "x-examples": {
    "Copy document group": {
      "client_timestamp": 1635953805,
      "document_group_name": "Contract package copy"
    }
  }
}
```

**Example** (`Copy document group`)

```json
{
  "client_timestamp": 1635953805,
  "document_group_name": "Contract package copy"
}
```

## Responses

### 202

The document group copy has been scheduled. The response body is empty. The copy appears in the user's folder once processing is complete.

### 400

* Request with any of cases: invalid token, expired token, empty header, authorization = null, authorization without value.
* Incorrect type of `document_group_name` field.
* Incorrect type of `client_timestamp field`, not integer.
* `client_timestamp field` length limits.

**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

**Example** (``client_timestamp field` length limits`)

```json
{
  "code": 13020000,
  "message": "The client_timestamp should be between 0 and 4294967295"
}
```

**Example** (`Incorrect type of document_group_name field`)

```json
{
  "code": 13020000,
  "message": "The document_group_name field must be string type"
}
```

**Example** (`Incorrect type of `client_timestamp` field, not integer`)

```json
{
  "code": 13020000,
  "message": "The client_timestamp field must be an integer"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/copy" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"client_timestamp": 1635953805, "document_group_name": "Contract package copy"}'
```

---

## POST /v2/document-groups/{document_group_id}/move — Move document group

This endpoint allows users to move a document group to another folder. When a document group is moved, all its documents are moved to the same folder except documents in the Deleted folder (Deleted from Trash) and documents that are located in the Shared folders.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "folder_id"
  ],
  "properties": {
    "folder_id": {
      "type": "string",
      "example": "2cb6ea1d58a84bc085b3ef2c880378d35e4881b5",
      "description": "ID of the folder to move the document group to. Allowed folder types: \r\n\r\n* Documents and custom folders\r\n* Archive and its custom folders\r\n* Shared Documents folders ",
      "x-stoplight": {
        "id": "97neqkaeuy8wm"
      }
    },
    "with_shared_documents": {
      "type": "boolean",
      "default": false,
      "description": "Whether to move shared documents that are in this document group. With this parameter, a document group can only be moved to trash.",
      "x-stoplight": {
        "id": "qf1kwsujca7vi"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "folder_id": "2cb6ea1d58a84bc085b3ef2c880378d35e4881b5"
}
```

**Example** (`Correct request to move DG to trash`)

```json
{
  "folder_id": "2cb6ea1d58a84bc085b3ef2c880378d35e4881b5",
  "with_shared_documents": true
}
```

## Responses

### 204

Success, no content

### 400

* `folder_id` is not a string.
* Incorrect `folder_id`.
* Empty `folder_id`.
* The user does not have a folder with this ID.
* `with_shared_documents` is not a boolean.
* `with_shared_documents` is TRUE and the folder is not Trash. 

**Example** (`Empty folder_id`)

```json
{
  "errors": [
    {
      "code": 13009019,
      "message": "The `folder_id` field must not be empty. "
    }
  ]
}
```

**Example** (`Folder not Trash`)

```json
{
  "errors": [
    {
      "code": 13009026,
      "message": "The `7c5409cce69843e698e793162d103e2b79a0bcf0` folder is not support shared documents."
    }
  ]
}
```

**Example** (`No such folder_id`)

```json
{
  "errors": [
    {
      "code": 13009017,
      "message": "User folder `4ab6ea1d58a84bc085b3ef2c880w78d35e4881b5` is not found."
    }
  ]
}
```

**Example** (`Incorrect folder_id`)

```json
{
  "errors": [
    {
      "code": 13009003,
      "message": "The `folder_id` field value is invalid."
    }
  ]
}
```

**Example** (`folder_id not string`)

```json
{
  "errors": [
    {
      "code": 13009002,
      "message": "The `folder_id` field must be a string."
    }
  ]
}
```

**Example** (`with_shared_documents not boolean`)

```json
{
  "errors": [
    {
      "code": 13009025,
      "message": "The `with_shared_documents` field must be a bool."
    }
  ]
}
```

### 403

* The user is not an owner of the document group.
* The folder is not owned by or shared with the user's team.
* The user does not have permissions to move document groups to this folder.
* To move a document group, a user must be its owner. To move a document group that is located in the Shared folder, a user must be a team admin.
* This folder does not support document groups in correction state.
* It is forbidden to move this document group to the Deleted folder.

**Example** (`Team issue`)

```json
{
  "errors": [
    {
      "code": 13009029,
      "message": "The `%s` folder is not owned folder or shared folder of Team where user is member."
    }
  ]
}
```

**Example** (`Ownership issue`)

```json
{
  "errors": [
    {
      "code": 13009028,
      "message": "Only owner of document group or Team admin (if document group is located in Shared Folder) can move document group."
    }
  ]
}
```

**Example** (`Permission error`)

```json
{
  "errors": [
    {
      "code": 13009018,
      "message": "User Folder permissions is not executable."
    }
  ]
}
```

**Example** (`User doesn't own DG`)

```json
{
  "errors": [
    {
      "code": 13009006,
      "message": "User is not owner of `64cfc09a50c6852e5cc4bb427c33cf9b5ee4620a` document group."
    }
  ]
}
```

**Example** (`Moving to Deleted forbidden`)

```json
{
  "errors": [
    {
      "code": 13009030,
      "message": "Move to `Deleted` folder is not allowed"
    }
  ]
}
```

**Example** (`Document group in correction state`)

```json
{
  "errors": [
    {
      "code": 13009031,
      "message": "The `%s` folder does not support document group in correction state."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/move" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"folder_id": "2cb6ea1d58a84bc085b3ef2c880378d35e4881b5"}'
```

---

## GET /user/documentgroup/templates — Get doc group templates

This endpoint allows API users to retrieve the list of document group templates.


## Authorization

bearer

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `limit` | string | Yes | The number of templates to get. |
| `offset` | string | No | The number of templates to skip from the first one. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {}
}
```

## Responses

### 200

Correct request with limit = 2

**Example** (`Successful response`)

```json
{
  "document_group_templates": [
    {
      "folder_id": null,
      "templates": [
        {
          "id": "a8bccc1084f06138773aa0e03e5826c5088b3beb",
          "name": "Sample template name",
          "roles": [
            "Signer 1",
            "Signer 2"
          ],
          "thumbnail": {
            "large": "https://sample.com/thumbnail?size=large",
            "small": "https://sample.com/thumbnail?size=small",
            "medium": "https://sample.com/thumbnail?size=medium"
          }
        },
        {
          "id": "4096f5347309f17a3bf3d47cec4e0a60abc084b8",
          "name": "Sample template name 2",
          "roles": [
            "Signer",
            "Signer 1"
          ],
          "thumbnail": {
            "large": "https://sample.com/thumbnail?size=large",
            "small": "https://sample.com/thumbnail?size=small",
            "medium": "https://sample.com/thumbnail?size=medium"
          }
        }
      ],
      "is_prepared": false,
      "owner_email": "owner@email.com",
      "last_updated": "1634828541",
      "routing_details": {
        "invite_steps": [
          {
            "order": 1,
            "invite_emails": [
              {
                "email": "signer1@email.com",
                "message": "owner@email.com invited you to sign some documents.",
                "subject": "Signature Request from owner",
                "reminder": {
                  "remind_after": 0,
                  "remind_before": 0,
                  "remind_repeat": 0
                },
                "expiration_days": 30,
                "has_sign_actions": true
              }
            ],
            "invite_actions": [
              {
                "uuid": "4649e06550b502562c1847f15eeea1b113006cb0",
                "email": "signer1@email.com",
                "action": "sign",
                "role_name": "Signer 1",
                "document_id": "55ca8b6e87efe97aa6287a06db512c5ad004319a",
                "document_name": "Sample name 2",
                "allow_reassign": 0,
                "authentication": {
                  "type": null
                },
                "decline_by_signature": 0
              }
            ]
          },
          {
            "order": 2,
            "invite_emails": [
              {
                "email": "signer1@email.com",
                "message": "owner@email.com invited you to sign some documents.",
                "subject": "Signature Request from owner",
                "reminder": {
                  "remind_after": 0,
                  "remind_before": 0,
                  "remind_repeat": 0
                },
                "expiration_days": 30,
                "has_sign_actions": true
              }
            ],
            "invite_actions": [
              {
                "uuid": "079e703cbc14add93bae7a412d3b9719e1ced438",
                "email": "signer1@email.com",
                "action": "sign",
                "role_name": "Signer 2",
                "document_id": "55ca8b6e87efe97aa6287a06db512c5ad004319a",
                "document_name": "Sample name 2",
                "allow_reassign": 0,
                "authentication": {
                  "type": null
                },
                "decline_by_signature": 0
              }
            ]
          },
          {
            "order": 3,
            "invite_emails": [
              {
                "email": "signer1@email.com",
                "message": "owner@email.com invited you to sign some documents.",
                "subject": "Signature Request from owner",
                "reminder": {
                  "remind_after": 0,
                  "remind_before": 0,
                  "remind_repeat": 0
                },
                "expiration_days": 30,
                "has_sign_actions": true
              }
            ],
            "invite_actions": [
              {
                "uuid": "b9006bc00b0a6bc71bc37cd75c194822fa23f94e",
                "email": "signer1@email.com",
                "action": "sign",
                "role_name": "Signer 1",
                "document_id": "a8bccc1084f06138773aa0e03e5826c5088b3beb",
                "document_name": "Sample name 1",
                "allow_reassign": 0,
                "authentication": {
                  "type": null
                },
                "decline_by_signature": 0
              }
            ]
          },
          {
            "order": 4,
            "invite_emails": [
              {
                "email": "signer1@email.com",
                "message": "owner@email.com invited you to sign some documents.",
                "subject": "Signature Request from owner",
                "reminder": {
                  "remind_after": 0,
                  "remind_before": 0,
                  "remind_repeat": 0
                },
                "expiration_days": 30,
                "has_sign_actions": true
              }
            ],
            "invite_actions": [
              {
                "uuid": "2f2e768d7b8c660cc722e6e8db87cea6e39cb8fb",
                "email": "signer1@email.com",
                "action": "sign",
                "role_name": "Signer 2",
                "document_id": "a8bccc1084f06138773aa0e03e5826c5088b3beb",
                "document_name": "Sample name 1",
                "allow_reassign": 0,
                "authentication": {
                  "type": null
                },
                "decline_by_signature": 0
              }
            ]
          },
          {
            "order": 5,
            "invite_emails": [
              {
                "email": "signer1@email.com",
                "message": "owner@email.com invited you to sign some documents.",
                "subject": "Signature Request from owner",
                "reminder": {
                  "remind_after": 0,
                  "remind_before": 0,
                  "remind_repeat": 0
                },
                "expiration_days": 30,
                "has_sign_actions": true
              }
            ],
            "invite_actions": [
              {
                "uuid": "6e8c42a612f53bfbd6a280b6fb1824c3af6e6403",
                "email": "signer1@email.com",
                "action": "sign",
                "role_name": "Signer 1",
                "document_id": "4096f5347309f17a3bf3d47cec4e0a60abc084b8",
                "document_name": "Sample name 2",
                "allow_reassign": 0,
                "authentication": {
                  "type": null
                },
                "decline_by_signature": 0
              }
            ]
          },
          {
            "order": 6,
            "invite_emails": [
              {
                "email": "signer1@email.com",
                "message": "owner@email.com invited you to sign some documents.",
                "subject": "Signature Request from owner",
                "reminder": {
                  "remind_after": 0,
                  "remind_before": 0,
                  "remind_repeat": 0
                },
                "expiration_days": 30,
                "has_sign_actions": true
              }
            ],
            "invite_actions": [
              {
                "uuid": "4fbefe299a9702e392e2b1a85237db176a6e1870",
                "email": "signer1@email.com",
                "action": "sign",
                "role_name": "Signer",
                "document_id": "4096f5347309f17a3bf3d47cec4e0a60abc084b8",
                "document_name": "Sample name 2",
                "allow_reassign": 0,
                "authentication": {
                  "type": null
                },
                "decline_by_signature": 0
              }
            ]
          }
        ],
        "sign_as_merged": true,
        "include_email_attachments": null
      },
      "template_group_id": "3175f02337046e2204fe4b388e71640962393740",
      "template_group_name": "Sample name"
    }
  ],
  "document_group_template_total_count": 1
}
```

### 400

* Wrong, expired, or missing token.
* Request without limit parameter, or not in range (1, 50).
* Incorrect offset parameter.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Incorrect offset parameter`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The offset query parameter is required and must be 0 or greater"
    }
  ]
}
```

**Example** (`Without limit or not in range`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The limit query parameter is required and must be between 1 and 50"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/user/documentgroup/templates" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/document-group-templates — Create doc group template

This endpoint allows API users to create an empty document group template. Once the document group template is created, users can add one or more templates or documents to this document group template.

A successful request returns a document group template ID.


## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "example": "Test document group template",
      "description": "Document group template name.\n"
    },
    "folder_id": {
      "type": "string",
      "example": "5fcac949dce4e1d23e54ea5751dd649a947abbbb",
      "description": "ID of the templates folder that will be used to create a document group template. If provided, must refer to a valid and accessible folder of templates."
    }
  },
  "x-examples": {
    "Example 1": {
      "name": "Document group template name",
      "folder_id": "5fcac949dce4e1d23e54ea5751dd649a947abbbb"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "name": "Document group template name",
  "folder_id": "5fcac949dce4e1d23e54ea5751dd649a947abbbb"
}
```

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "data": {
    "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013abbbb"
  }
}
```

### 400

- Wrong, expired, or missing token.
- `name` is empty.
- `name` is not a string.
- `name` has unsupported symbols.
- `name` length is too long.
- `folder_id` is empty.
- `folder_id` is not a string.
- `folder_id` is incorrect.
- `folder_id`is not a folder of templates.
- `folder_id` is not accessible.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`name is empty`)

```json
{
  "errors": [
    {
      "code": 13024001,
      "message": "The `name` value should not be blank."
    }
  ]
}
```

**Example** (`name too long`)

```json
{
  "errors": [
    {
      "code": 13024004,
      "message": "The `name` value is too long. It should have 255 characters or less."
    }
  ]
}
```

**Example** (`Empty folder_id`)

```json
{
  "errors": [
    {
      "code": 13024005,
      "message": "The `folder_id` value should not be blank."
    }
  ]
}
```

**Example** (`name not string`)

```json
{
  "errors": [
    {
      "code": 13024002,
      "message": "The `name` value should be of type string."
    }
  ]
}
```

**Example** (`folder_id not string`)

```json
{
  "errors": [
    {
      "code": 13024006,
      "message": "The `folder_id` value should be of type string."
    }
  ]
}
```

**Example** (`folder_id is incorrect`)

```json
{
  "errors": [
    {
      "code": 13024007,
      "message": "The `folder_id` value is invalid unique id."
    }
  ]
}
```

**Example** (`folder_id not accessible`)

```json
{
  "errors": [
    {
      "code": 13029002,
      "message": "User folder is not accessible."
    }
  ]
}
```

**Example** (`name has unsupported symbols`)

```json
{
  "errors": [
    {
      "code": 13024003,
      "message": "The `name` value is not valid."
    }
  ]
}
```

**Example** (`folder_id not templates folder`)

```json
{
  "errors": [
    {
      "code": 13029001,
      "message": "Folder of Templates available only."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-group-templates" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "Document group template name", "folder_id": "5fcac949dce4e1d23e54ea5751dd649a947abbbb"}'
```

---

## PATCH /v2/document-group-templates/{doc_group_template_id} — Edit doc group template

This endpoint allows users to reorder documents, rename the document group template, and update the action performed upon completion of the document group template.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `doc_group_template_id` | string | Yes | ID of the document group template. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "order": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of document IDs in the document group template."
    },
    "template_group_name": {
      "type": "string",
      "example": "HR documents",
      "description": "Name of the document group template."
    },
    "email_action_on_complete": {
      "type": "string",
      "example": "documents_and_attachments",
      "description": "Specifies the action to be taken upon invite completion. Allowed values: `documents_and_attachments`: Email documents and attachments to all parties. `documents_and_attachments_only_to_recipients`: Email documents and attachments only to recipients. `without_documents_and_attachments`: Do not email documents or any attachments."
    }
  },
  "x-examples": {
    "Example 1": {
      "order": [
        "ffa1e7109013c26d5a706d34a9d0ad598f95afa1",
        "06d34a9d0ad598f95afa1ffa1e7109013c26d5a7"
      ],
      "template_group_name": "Document group template name",
      "email_action_on_complete": "documents_and_attachments"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "order": [
    "ffa1e7109013c26d5a706d34a9d0ad598f95afa1",
    "06d34a9d0ad598f95afa1ffa1e7109013c26d5a7"
  ],
  "template_group_name": "Document group template name",
  "email_action_on_complete": "documents_and_attachments"
}
```

## Responses

### 204

Success.

### 400

**Authorization errors:**

* Wrong, expired, or missing token.

**Validation errors:**

- `order` type is incorrect.
- Document IDs are not unique.
- Document ID type is incorrect.
- Document ID is incorrect.
- `template_group_name` type is incorrect.
- `template_group_name` has unsupported symbols.
- `template_group_name` is too long. Max length is 255 symbols.
- `email_action_on_complete` value type is incorrect.
- `email_action_on_complete` is incorrect.

**Example** (`DGT name too long`)

```json
{
  "code": 13022009,
  "message": "Incorrect Length of document group template name"
}
```

**Example** (`Authorization error`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

**Example** (`Document ID incorrect`)

```json
{
  "errors": [
    {
      "code": 13022006,
      "message": "The order array must include valid unique document ids"
    }
  ]
}
```

**Example** (`Document IDs not unique`)

```json
{
  "errors": [
    {
      "code": 13022004,
      "message": "The order array must include unique document ids"
    }
  ]
}
```

**Example** (`Order type is incorrect`)

```json
{
  "errors": [
    {
      "code": 13022003,
      "message": "The order field must be an array"
    }
  ]
}
```

**Example** (`DGT name type is incorrect`)

```json
{
  "code": 13022007,
  "message": "Incorrect type of document group template name"
}
```

**Example** (`Document ID type incorrect`)

```json
{
  "errors": [
    {
      "code": 13022005,
      "message": "The order array must include string type of document ids"
    }
  ]
}
```

**Example** (`DGT name has unsupported symbols`)

```json
{
  "code": 13022008,
  "message": "Incorrect document group template name"
}
```

**Example** (`email_action_on_complete is incorrect`)

```json
{
  "code": 13022014,
  "message": "The email_action_on_complete value you selected is not a valid choice."
}
```

**Example** (`email_action_on_complete type is incorrect`)

```json
{
  "code": 13022013,
  "message": "Incorrect type of document group template email_action_on_complete"
}
```

### 403

Access to document group template denied.

**Example** (`Access denied`)

```json
{
  "errors": [
    {
      "code": 13022001,
      "message": "Access to DocumentGroupTemplate is denied"
    }
  ]
}
```

### 404

`doc_group_template_id` is incorrect.

**Example** (`DGT id is incorrect`)

```json
{
  "404": "Unable to find a route to match the URI: v2/document-group-templates/1d33671c3c8741ce9dbbd8e106f3a6bb2847244e"
}
```

### 422

Payload documents do not match the document group template.

**Example** (`Documents do not match DGT`)

```json
{
  "errors": [
    {
      "code": 13022002,
      "message": "Documents in order are not equal to existing documents in DocumentGroupTemplate"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PATCH \
  "https://api.signnow.com/v2/document-group-templates/{doc_group_template_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"order": ["ffa1e7109013c26d5a706d34a9d0ad598f95afa1", "06d34a9d0ad598f95afa1ffa1e7109013c26d5a7"], "template_group_name": "Document group template name", "email_action_on_complete": "documents_and_attachments"}'
```

---

## GET /v2/document-group-templates/{doc_group_template_id}/copies — Get doc groups created from template

This endpoint allows API users to retrieve all document groups created and sent from a specific document group template. Use query parameters to filter, sort, paginate the results, or search for specific search keys.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `doc_group_template_id` | string | Yes | ID of the document group template. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `sort_by` | string | No | Sort results by the date of the last update, the creation date, or the document group name. Possible values: `updated`, `created`, and `document_group_name`. |
| `sort_order` | string | No | Sort results in descending or ascending order. Possible values: `asc`, `desc`. |
| `page` | integer | No | Page number to display in the results. For example, if `page=2` and `per_page=10`, you'll get results from 11 to 20. |
| `per_page` | integer | No | Number of document groups displayed per page. |
| `filters[signing_status]` | string | No | Filter results by document group template signing status. Possible values: `waiting-for-me`, `waiting-for-others`, `signed`, `pending`, `has-invites`, `expired`. |
| `search_key` | string | No | Search by key (word, part of word, or phrase). |
| `search_by` | string | No | Specify where to look for the `search_key`. Possible values: `document-name`, `signer-email`, `inviter-email`, `document-text`, and `document-id`. |
| `filters[entity_labels]` | string | No | Filter results by declined or undelivered document group templates. Possible values: `declined`, `undelivered`. |

## Responses

### 200

Successful response. Returns the document groups created from the document group template, with pagination details. Use the query parameters to filter, sort, and paginate the results.

**Example** (`Success (no query parameters)`)

```json
{
  "data": [
    {
      "id": "8a8bc73bd272439e853e8d0faf892d4107287c8a",
      "owner": "owner@email.com",
      "state": "created",
      "created": 1688481787,
      "invites": [],
      "updated": 1688481787,
      "user_id": "121c6015e26440c48adbafb720f52007c15c6b0d",
      "documents": [
        {
          "id": "01bc639a1d81408b91df6cb62edd1c9874c46b83",
          "name": "NDA agreement",
          "roles": [
            "Recipient 1"
          ]
        }
      ],
      "invite_id": null,
      "parent_id": "1f982fea8633418494b622ba7ba07bc476ee94ec",
      "freeform_actions": [],
      "freeform_invite_id": null,
      "document_group_name": "Onboarding documents"
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": {},
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

**Example** (`Success (request with filters)`)

```json
{
  "data": [
    {
      "id": "8a8bc73bd272439e853e8d0faf892d4107287c8a",
      "owner": "owner@mail.com",
      "state": "pending",
      "created": 1688644119,
      "invites": [
        {
          "email": "recipient@mail.com",
          "order": 1,
          "action": "sign",
          "status": "pending",
          "document_id": "01bc639a1d81408b91df6cb62edd1c9874c46b83",
          "email_group": {
            "id": null,
            "name": null
          },
          "document_name": "NDA agreement",
          "authentication": null,
          "expiration_time": 1691236121,
          "is_draft_exists": false,
          "password_method": "",
          "payment_request": null,
          "is_full_declined": false,
          "is_document_locked": "0",
          "password_protected": "0",
          "email_sent_statuses": [
            {
              "status": "sent",
              "created_at": 1688644121,
              "last_reaction_at": 1688644121
            }
          ]
        }
      ],
      "updated": 1688644120,
      "user_id": "121c6015e26440c48adbafb720f52007c15c6b0d",
      "documents": [
        {
          "id": "01bc639a1d81408b91df6cb62edd1c9874c46b83",
          "name": "NDA agreement",
          "roles": [
            "Recipient 1"
          ]
        }
      ],
      "invite_id": null,
      "parent_id": "1f982fea8633418494b622ba7ba07bc476ee94ec",
      "freeform_actions": [],
      "freeform_invite_id": null,
      "document_group_name": "Onboarding documents"
    }
  ],
  "meta": {
    "pagination": {
      "count": 15,
      "links": {
        "next": "https://api.signnow.com/v2/document-group-templates/987187758253e554be162001fecbf5ea19298b30/copies?filters%5Bsigning_status%5D=waiting-for-others&page=2"
      },
      "total": 50,
      "per_page": 15,
      "total_pages": 4,
      "current_page": 1
    }
  }
}
```

### 400

* Wrong, expired, or missing token.
* The `page` parameter type is incorrect.
* The `page` parameter value is incorrect.
* The `per_page` parameter type is incorrect.
* The `per_page` parameter value is incorrect.
* The `sort_by` parameter value is incorrect.
* The `sort_order` parameter value is incorrect.
* The `filters[signing_status]` parameter value or format is incorrect.
* The `filters` field value is incorrect.
* The `per_page` parameter exceeds the maximum allowed value.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`page cannot be 0`)

```json
{
  "errors": [
    {
      "code": 27003003,
      "message": "Query parameter `page` must be more than 0."
    }
  ]
}
```

**Example** (`Incorrect sort_by`)

```json
{
  "errors": [
    {
      "code": 27003007,
      "message": "Query parameter `sort_by` must be a value of (`updated`, `created` or `document_group_name`)."
    }
  ]
}
```

**Example** (`page is not digit`)

```json
{
  "errors": [
    {
      "code": 27003002,
      "message": "Query parameter `page` must be a digit."
    }
  ]
}
```

**Example** (`Incorrect sort_order`)

```json
{
  "errors": [
    {
      "code": 27003008,
      "message": "Query parameter `sort_order` must be a value of (`desc` or `asc`)."
    }
  ]
}
```

**Example** (`per_page cannot be 0`)

```json
{
  "errors": [
    {
      "code": 27003005,
      "message": "Query parameter `per_page` must be more than 0."
    }
  ]
}
```

**Example** (`per_page is not digit`)

```json
{
  "errors": [
    {
      "code": 27003004,
      "message": "Query parameter `per_page` must be a digit."
    }
  ]
}
```

**Example** (`per_page exceeds the limit`)

```json
{
  "errors": [
    {
      "code": 27003006,
      "message": "Query parameter `per_page` must be less than or equal 100."
    }
  ]
}
```

**Example** (`Incorrect filter in filters field`)

```json
{
  "errors": [
    {
      "code": 27003010,
      "message": "The `filters` field supports only `signing_status`, `entity_labels`."
    }
  ]
}
```

**Example** (`Incorrect filters[signing_status] value`)

```json
{
  "errors": [
    {
      "code": 27003011,
      "message": "The `filters.signing_status` field value must be `waiting-for-me`, `has-invites`, `waiting-for-others`, `pending`, `signed`, `expired`."
    }
  ]
}
```

### 403

The user is not the document group template owner.

**Example** (`The user is not the document group template owner`)

```json
{
  "errors": [
    {
      "code": 27003009,
      "message": "The user has no access to the document group template `429e5182341946bd9600aa71394c265776114c61`."
    }
  ]
}
```

### 404

Document group template ID doesn't exist.

**Example** (`Document group template ID doesn't exist`)

```json
{
  "errors": [
    {
      "code": 27003001,
      "message": "Document group template `46e29eee369e0f6dece756d0f26a1f06775e7c52` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/document-group-templates/{doc_group_template_id}/copies" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/document-group-templates/{doc_group_template_id}/copy — Copy doc group template

This endpoint allows API users to copy a document group template. The copy includes copies of all the templates in it.

**Notes**

* The copy is created asynchronously. It appears in the specified folder once processing is complete.
* The copy must be saved to the **Templates** folder or any of its subfolders.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `doc_group_template_id` | string | Yes | ID of the document group template. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the new document group template copy.",
      "x-stoplight": {
        "id": "qj0g6c506l39t"
      }
    },
    "folder_id": {
      "type": "string",
      "description": "ID of the folder where the new doc group template copy must be saved. Must be saved to a Templates folder or any of its sub-folders.",
      "x-stoplight": {
        "id": "v1rh5s6bmvr64"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "name": "Onboarding package (copy)",
  "folder_id": "a1b2c3d4e5f60718293a4b5c6d7e8f9012345678"
}
```

## Responses

### 202

The document group template copy has been scheduled. The response body is empty. The copy appears in the specified folder once processing is complete.

### 400

* Request with any of cases:

- invalid token of user.
- expired token of user.
- empty header.
- authorization = null.
- authorization without value.

* Invalid payload.
* Incorrect `name` attribute.
* Empty `name` attribute.
* Unsupported symbol in the `name` value.
* `name` value length limits.
* Incorrect `folder_id` data type.
* Invalid ID in `folder_id`.
* Not available type of a folder given.
* Not available name of new document group template.

**Example** (`Invalid payload`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid payload"
    }
  ]
}
```

**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Empty `name` attribute`)

```json
{
  "errors": [
    {
      "code": 23003011,
      "message": "The `name` field must not be empty."
    }
  ]
}
```

**Example** (`Invalid ID in `folder_id``)

```json
{
  "errors": [
    {
      "code": 23003015,
      "message": "The `folder_id` field value must be valid unique_id."
    }
  ]
}
```

**Example** (``name` value length limits`)

```json
{
  "errors": [
    {
      "code": 23003013,
      "message": "The `name` must not exceed 255 chars."
    }
  ]
}
```

**Example** (`Incorrect `folder_id` data type`)

```json
{
  "errors": [
    {
      "code": 23003014,
      "message": "The `folder_id` field must be a string."
    }
  ]
}
```

**Example** (`Incorrect data type for `name` `)

```json
{
  "errors": [
    {
      "code": 23003010,
      "message": "The `name` field must be a string."
    }
  ]
}
```

**Example** (`Not available type of a folder given`)

```json
{
  "errors": [
    {
      "code": 23003019,
      "message": "Document Group Template could be created in folder or sub-folders of Templates only."
    }
  ]
}
```

**Example** (`Unsupported symbol in the `name` value`)

```json
{
  "errors": [
    {
      "code": 23003012,
      "message": "Unsupported symbol at `name` field value. Allowed name can only include letters, numbers, and (_ - . & ; ` ' \u201d \u201d () \u00bf \u00a1) characters"
    }
  ]
}
```

**Example** (`Not available name of new document group template`)

```json
{
  "errors": [
    {
      "code": 23003021,
      "message": "The name of new document group template must not be empty."
    }
  ]
}
```

### 403

* User is not owner of the doc group template.
* Document group template not active.
* User is not owner of the folder.

**Example** (`User is not owner of the folder`)

```json
{
  "errors": [
    {
      "code": 23003018,
      "message": "Access denied to the folder."
    }
  ]
}
```

**Example** (`Document group template not active`)

```json
{
  "errors": [
    {
      "code": 23003020,
      "message": "Access denied to the document group template."
    }
  ]
}
```

**Example** (`User is not owner of the doc group template`)

```json
{
  "errors": [
    {
      "code": 23003016,
      "message": "The user is not owner of the `%s` document group template."
    }
  ]
}
```

### 404

* Document group template not found.
* Not permitted document group template.

**Example** (`Document group template not found.`)

```json
{
  "errors": [
    {
      "code": 23001014,
      "message": "Document Group Template `%s` not found"
    }
  ]
}
```

**Example** (`Not permitted document group template`)

```json
{
  "errors": [
    {
      "code": 23003017,
      "message": "User folder is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-group-templates/{doc_group_template_id}/copy" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "Onboarding package (copy)", "folder_id": "a1b2c3d4e5f60718293a4b5c6d7e8f9012345678"}'
```

---

## PATCH /v2/document-group-templates/{doc_group_template_id}/move — Move doc group template

This endpoint allows API users to move a document group template (DGT) between personal and team folders, including nested subfolders within the team hierarchy. It is the primary method for placing a DGT into the team space or removing it from the team space.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `doc_group_template_id` | string | Yes | ID of the document group template. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "folder_id"
  ],
  "properties": {
    "folder_id": {
      "type": "string",
      "description": "ID of the destination folder. Accepts any folder within the team hierarchy (including nested subfolders), a personal `Templates` folder or subfolder, or the `Trash` folder.",
      "x-stoplight": {
        "id": "gx57gm0382ieo"
      }
    },
    "with_templates": {
      "type": "boolean",
      "default": false,
      "description": "Whether to move active document groups that are based on the template.",
      "x-stoplight": {
        "id": "9518g0g4n41xj"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "folder_id": "ddc7ce43dfc5ad3b2f0fdb1db36889ce53f00777",
  "with_templates": false
}
```

## Responses

### 204

Success

### 400

* Authorization issues.
* Incorrect payload.
* Empty folder_id.
* Incorrect folder_id value.
* Incorrect with_templates property.
* User doesn't own the document group template.
* Shared document group templates cannot be moved.
* User doesn't have access to folder.
* Folders in Templates and Trash bin available only.
* Document group template not found.

**Example** (`Empty folder_id`)

```json
{
  "errors": [
    {
      "code": 23002010,
      "message": "The `folder_id` field must not be empty."
    }
  ]
}
```

**Example** (`Incorrect payload`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid payload"
    }
  ]
}
```

**Example** (`Incorrect folder_id`)

```json
{
  "errors": [
    {
      "code": 23002002,
      "message": "The `folder_id` field value is invalid."
    }
  ]
}
```

**Example** (`No access to folder`)

```json
{
  "errors": [
    {
      "code": 23002005,
      "message": "User dont have access to folder."
    }
  ]
}
```

**Example** (`Authorization issues`)

```json
{
  "errors": [
    {
      "code": 1537,
      "message": "invalid_token"
    }
  ]
}
```

**Example** (`folder_id not string`)

```json
{
  "errors": [
    {
      "code": 23002001,
      "message": "The `folder_id` field must be a string."
    }
  ]
}
```

**Example** (`Incorrect with_templates`)

```json
{
  "errors": [
    {
      "code": 23002003,
      "message": "The `with_templates` field must be a boolean."
    }
  ]
}
```

**Example** (`User doesn't own the DGT`)

```json
{
  "errors": [
    {
      "code": 23002009,
      "message": "Document group template is not readable by the user."
    }
  ]
}
```

**Example** (`Shared DGT cannot be moved`)

```json
{
  "errors": [
    {
      "code": 23002007,
      "message": "Move is not allowed for shared document group templates."
    }
  ]
}
```

**Example** (`Doc group template not found`)

```json
{
  "errors": [
    {
      "code": 23001014,
      "message": "Document Group Template <doc_group_template_id> not found"
    }
  ]
}
```

**Example** (`Use folders in Templates and Trash only`)

```json
{
  "errors": [
    {
      "code": 23002006,
      "message": "Folder of Templates and Trash bin available only."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PATCH \
  "https://api.signnow.com/v2/document-group-templates/{doc_group_template_id}/move" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"folder_id": "ddc7ce43dfc5ad3b2f0fdb1db36889ce53f00777", "with_templates": false}'
```

---

## GET /v2/document-group-templates/{doc_group_template_id}/recipients — Get doc group template recipients

This endpoint allows API users to retrieve the list of document group template recipients.


## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `doc_group_template_id` | string | Yes | ID of the document group template. |

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "data": {
    "cc": [
      "copy_receiver1@mail.com",
      "copy_receiver2@test.com"
    ],
    "order_type": null,
    "recipients": [
      {
        "name": "Recipient 1",
        "email": "recipient@mail.com",
        "order": 1,
        "documents": [
          {
            "id": "d04e4a885b513a6d9c4c2e7c2b7fa06a013a7412",
            "role": "Actor name",
            "action": "sign"
          },
          {
            "id": "d04e4a885b513a6d9c4c2e7c2b7fa06a013a74aa",
            "role": "Viewer name",
            "action": "view"
          }
        ],
        "attributes": {
          "message": "Message text",
          "subject": "Subject",
          "reminder": {
            "remind_after": 10,
            "remind_before": 10,
            "remind_repeat": 10
          },
          "authentication": {
            "type": "type",
            "phone": "phone number",
            "value": "value for the paas protection",
            "method": "method name"
          },
          "i_am_recipient": true,
          "expiration_days": 10,
          "allow_forwarding": true
        }
      }
    ],
    "general_reminder": {
      "remind_after": 3,
      "remind_before": 5,
      "remind_repeat": 7
    },
    "unmapped_documents": [
      {
        "id": "d04e4a885b513a6d9c4c2e7c2b7fa06a013a749f",
        "role": "Actor name",
        "action": "sign"
      }
    ],
    "general_expiration_days": 30,
    "allowed_unmapped_sign_documents": [
      {
        "id": "d04e4a885b513a6d9c4c2e7c2b7fa06a013a749f",
        "role": "Actor name",
        "recipient": "Recipient 1"
      }
    ]
  }
}
```

### 400

* Wrong, expired, or missing token.
* No access to the document group template.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Access denied`)

```json
{
  "errors": [
    {
      "code": 13022001,
      "message": "Access to DocumentGroupTemplate is denied"
    }
  ]
}
```

### 404

Document group template ID not found.

**Example** (`Document group template ID not found`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "DocumentGroupTemplate `d04e4a885b513a6d9c4c2e7c2b7fa06a013a749f` not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/document-group-templates/{doc_group_template_id}/recipients" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/document-group-templates/{doc_group_template_id}/recipients — Edit doc group template recipients

This endpoint allows API users to edit the recipients of a document group template. Users can edit recipients' emails, roles, signing order, document attributes, signature invite email attributes, and authentication settings.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `doc_group_template_id` | string | Yes | ID of the document group template. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "recipients"
  ],
  "properties": {
    "cc": {
      "type": "array",
      "items": {
        "type": "string",
        "example": "test1@email.com, test2@email.com"
      },
      "maxItems": 100,
      "description": "List of cc recipient emails."
    },
    "order_type": {
      "enum": [
        "at_the_same_time",
        "recipient_order",
        "advanced_order",
        null
      ],
      "type": "string",
      "x-nullable": true,
      "description": "Recipient routing rule applied to all recipients in the invite. `at_the_same_time` - all at once; `recipient_order` - sequential by `order` parameter; `advanced_order` - advanced rules."
    },
    "recipients": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "order",
          "documents"
        ],
        "properties": {
          "name": {
            "type": "string",
            "example": "Jane Doe",
            "description": "Recipient's name."
          },
          "email": {
            "type": "string",
            "example": "signer@email.com",
            "description": "Recipient's email address."
          },
          "order": {
            "type": "integer",
            "example": 1,
            "description": "Recipient's order of signing."
          },
          "documents": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "example": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a7f77",
                  "description": "Document ID."
                },
                "role": {
                  "type": "string",
                  "example": "Signer",
                  "description": "Recipient's role name.\n"
                },
                "action": {
                  "enum": [
                    "sign",
                    "view",
                    "approve"
                  ],
                  "type": "string",
                  "description": "Allowed action with a document. Possible values: `view`, `sign`, `approve`."
                }
              }
            },
            "description": "List of documents, recipient roles, and allowed actions.\nShould contain at least one document."
          },
          "attributes": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string",
                "example": "test message",
                "description": "Invite email message. "
              },
              "subject": {
                "type": "string",
                "example": "test subject",
                "description": "Invite email subject. "
              },
              "reminder": {
                "type": "object",
                "properties": {
                  "remind_after": {
                    "type": "integer",
                    "example": 10,
                    "description": "Send the reminder email to the recipient after the set amount of days.`remind_after` must be less than `expiration_days`.\n"
                  },
                  "remind_before": {
                    "type": "integer",
                    "example": 5,
                    "description": "Send the reminder email to the recipient in a set amount of days before the invite expiration.`remind_before` must be less than `expiration_days`.\n"
                  },
                  "remind_repeat": {
                    "type": "integer",
                    "example": 5,
                    "description": "Send the reminder email to the recipient every set amount of days.`remind_repeat` must be less than `attributes.expiration_days`.\n"
                  }
                },
                "description": "Reminder email settings. Available for `sign` action."
              },
              "redirect_uri": {
                "type": "string",
                "example": "https://www.signnow.com/",
                "description": "The URL that opens after the recipient completes the document.",
                "x-stoplight": {
                  "id": "umhswj8fdrrxq"
                }
              },
              "authentication": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "example": "phone",
                    "description": "Type of the recipient authentication: `phone`, `password`, `sn_login` (the recipient signs in to SignNow), or `sso_login` (the recipient signs in through SSO; requires an active SSO configuration for the organization)."
                  },
                  "phone": {
                    "type": "string",
                    "example": "+12345678",
                    "description": "The phone number for the recipient's authentication. Used with type `phone`.\n"
                  },
                  "value": {
                    "type": "string",
                    "example": "123456",
                    "description": "The password to unlock the document group template. Used with type `password`.\n"
                  },
                  "method": {
                    "enum": [
                      "sms",
                      "phone_call"
                    ],
                    "type": "string",
                    "example": "sms",
                    "description": "Authentication method. Used with type `phone`. Should be `sms` or `phone_call`.\n"
                  },
                  "sms_message": {
                    "type": "string",
                    "example": "Enter the password {password} to unlock your document.",
                    "description": "Custom SMS message sent to the recipient, containing the {password} placeholder. Used with the `sms` method. Without this parameter, the signer receives a default SMS with an autogenerated password (unlock code): \u201cSignNow document invite unlock code: 123456.\u201d"
                  }
                },
                "description": "Recipient authentication settings. Available for recipients with `sign` and `approve` actions. Can not be used when `allow_forwarding` is set to `true`."
              },
              "i_am_recipient": {
                "type": "boolean",
                "description": "Set to `true` if the document sender is also a recipient. Available for `sign` action."
              },
              "expiration_days": {
                "type": "integer",
                "example": 20,
                "maximum": 180,
                "minimum": 3,
                "description": "Days until the invite expires. Available for `sign`and `approve` actions."
              },
              "redirect_target": {
                "enum": [
                  "blank",
                  "self"
                ],
                "type": "string",
                "example": "blank",
                "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab.",
                "x-stoplight": {
                  "id": "30rvyfzrgkx7k"
                }
              },
              "allow_forwarding": {
                "type": "boolean",
                "description": "Whether recipients are allowed to reassign the invite to a different email address. Available for `sign` action."
              },
              "close_redirect_uri": {
                "type": "string",
                "example": "https://www.signnow.com/",
                "description": "The link that opens when a signer clicks\u00a0**Save Progress and Finish Later**\u00a0during a signing session or\u00a0**Close**\u00a0in view mode. Available for `sign` action.",
                "x-stoplight": {
                  "id": "0srtnucjz3tia"
                }
              },
              "show_decline_button": {
                "type": "boolean",
                "description": "Whether to show the Decline button on signature fields. Available for `sign` action."
              },
              "decline_redirect_uri": {
                "type": "string",
                "example": "https://www.signnow.com/",
                "description": "The URL that opens after the recipient declines the document. Available for `sign` action.",
                "x-stoplight": {
                  "id": "sg8obh2zcvrlp"
                }
              }
            },
            "description": "Signature invite attributes."
          }
        }
      },
      "description": "List of document group template recipients.\nShould contain at least one recipient."
    },
    "general_reminder": {
      "type": "object",
      "properties": {
        "remind_after": {
          "type": "integer",
          "description": "Days after invite is sent before a reminder is delivered. Must be less than `general_expiration_days`."
        },
        "remind_before": {
          "type": "integer",
          "description": "Days before expiration when a reminder is delivered. Must be less than `general_expiration_days`."
        },
        "remind_repeat": {
          "type": "integer",
          "description": "Days between repeated reminders."
        }
      },
      "x-nullable": true,
      "description": "Default `reminder` applied to all recipients in the invite."
    },
    "unmapped_documents": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a7f77",
            "description": "Document ID."
          },
          "role": {
            "type": "string",
            "example": "Signer",
            "description": "Recipient's role name."
          },
          "action": {
            "enum": [
              "sign",
              "view",
              "approve"
            ],
            "type": "string",
            "example": "sign",
            "description": "Allowed action with a document. Possible values: `view`, `sign`, `approve`."
          }
        }
      },
      "description": "List of recipients that are not assigned to documents in the document group template."
    },
    "general_expiration_days": {
      "type": "integer",
      "maximum": 180,
      "minimum": 1,
      "x-nullable": true,
      "description": "Default `expiration_days` applied to all recipients in the invite. Min: `1`, Max: `180`. Default: `30`."
    },
    "allowed_unmapped_sign_documents": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a400a",
            "description": "Document ID."
          },
          "role": {
            "type": "string",
            "example": "Signer",
            "description": "Recipient's role name."
          },
          "recipient": {
            "type": "string",
            "example": "Jack Finkelstein",
            "description": "Recipient's name."
          }
        }
      },
      "description": "List of recipients with unassigned documents that need to be filled out and completed."
    }
  },
  "x-examples": {
    "Example 1": {
      "cc": [
        "test@test.com",
        "test2@test.com"
      ],
      "recipients": [
        {
          "name": "Jane Doe",
          "email": "jane.doe@email.com",
          "order": 1,
          "documents": [
            {
              "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a7f77",
              "role": "Signer",
              "action": "sign"
            },
            {
              "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a74aa",
              "role": "Signer",
              "action": "sign"
            }
          ],
          "attributes": {
            "message": "test message 1",
            "subject": "test subject 1",
            "reminder": {
              "remind_after": 10,
              "remind_before": 10,
              "remind_repeat": 10
            },
            "authentication": {
              "type": "phone",
              "phone": "+1234567",
              "method": "sms",
              "sms_message": "Your password is {123456}."
            },
            "i_am_recipient": false,
            "expiration_days": 20,
            "allow_forwarding": false,
            "show_decline_button": true
          }
        },
        {
          "name": "Jack Finkelstein",
          "email": "jack.finkelstein@email.com",
          "order": 2,
          "documents": [
            {
              "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a7f77",
              "role": "Approver",
              "action": "approve"
            },
            {
              "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a74aa",
              "role": "Approver",
              "action": "approve"
            }
          ],
          "attributes": {
            "message": "test message 2",
            "subject": "test subject 2",
            "authentication": {
              "type": "password",
              "value": "123456"
            },
            "i_am_recipient": false,
            "expiration_days": 20
          }
        }
      ],
      "unmapped_documents": [
        {
          "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a749f",
          "role": "Signer",
          "action": "sign"
        }
      ],
      "allowed_unmapped_sign_documents": [
        {
          "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a749f",
          "role": "Signer",
          "recipient": "Recipient 1"
        }
      ]
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "cc": [
    "test1@email.com, test2@email.com"
  ],
  "order_type": "recipient_order",
  "recipients": [
    {
      "name": "Jane Doe",
      "email": "signer@email.com",
      "order": 1,
      "documents": [
        {
          "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a7f77",
          "role": "Signer",
          "action": "string"
        }
      ],
      "attributes": {
        "message": "test message",
        "subject": "test subject",
        "reminder": {
          "remind_after": 10,
          "remind_before": 5,
          "remind_repeat": 5
        },
        "authentication": {
          "type": "phone",
          "phone": "+12345678",
          "value": "123456",
          "method": "sms",
          "sms_message": "Your password is {123456}."
        },
        "i_am_recipient": true,
        "expiration_days": 20,
        "allow_forwarding": true,
        "show_decline_button": true
      }
    }
  ],
  "general_reminder": {
    "remind_after": 3,
    "remind_before": 5,
    "remind_repeat": 7
  },
  "unmapped_documents": [
    {
      "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a7f77",
      "role": "Signer",
      "action": "sign"
    }
  ],
  "general_expiration_days": 30,
  "allowed_unmapped_sign_documents": [
    {
      "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a400a",
      "role": "Signer",
      "recipient": "Jack Finkelstein"
    }
  ]
}
```

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "data": {
    "cc": [],
    "recipients": [
      {
        "name": "Signer 1",
        "email": "user2@example.com",
        "order": 1,
        "documents": [
          {
            "id": "8bad1cc17aa82ffa3c3ab8385b4ef6c6fbf1bb1c",
            "role": "Signer 1",
            "action": "sign"
          },
          {
            "id": "b80fbd49131b93d103a90d15e0616bf55bcf7187",
            "role": "Signer 1",
            "action": "sign"
          }
        ],
        "attributes": {},
        "email_group": {
          "id": null
        },
        "phone_invite": null
      }
    ],
    "general_reminder": null,
    "general_expiration_days": null,
    "allowed_unmapped_sign_documents": []
  }
}
```

### 400

- Wrong, expired, or missing token.
- `document_group_template_id` is incorrect.
**Validation errors**:
- Recipient-specific validation errors:
    - `recipients` type is incorrect.
    - `recipients` is empty.
    - `recipients` should contain at least one element.
- Document-specific validation errors:
    - Document `id` is not part of the document group template.
    - `documents` type is incorrect.
    - `documents` value is empty.
- Allowed_unmapped_sign_documents validation errors. Examples:
    - `allowed_unmapped_sign_documents` type is incorrect.
    - `allowed_unmapped_sign_documents` recipients or documents are not in the document group template.
- CC field validation errors. Examples:
    - `cc` type is incorrect.
    - `cc` contains too many elements.
    - `cc` element value is not a valid email address.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`DGT id is incorrect`)

```json
{
  "errors": [
    {
      "code": 13022001,
      "message": "Access to DocumentGroupTemplate is denied"
    }
  ]
}
```

**Example** (`CC field validation errors`)

```json
{
  "errors": [
    {
      "code": 13023007,
      "message": "The `cc` value should contain 100 element or less."
    }
  ]
}
```

**Example** (`Document-specific validation errors`)

```json
{
  "errors": [
    {
      "code": 13023022,
      "message": "The `recipient` element `documents` value should be of type array."
    }
  ]
}
```

**Example** (`Recipient-specific validation errors`)

```json
{
  "errors": [
    {
      "code": 13023001,
      "message": "The `recipients` value should be of type array."
    }
  ]
}
```

**Example** (`Allowed_unmapped_sign_documents validation errors`)

```json
{
  "errors": [
    {
      "code": 13023035,
      "message": "The `allowed_unmapped_sign_document` element `id` value should not be blank."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/document-group-templates/{doc_group_template_id}/recipients" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"cc": ["test1@email.com, test2@email.com"], "order_type": "recipient_order", "recipients": [{"name": "Jane Doe", "email": "signer@email.com", "order": 1, "documents": [{"id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a7f77", "role": "Signer", "action": "string"}], "attributes": {"message": "test message", "subject": "test subject", "reminder": {"remind_after": 10, "remind_before": 5, "remind_repeat": 5}, "authentication": {"type": "phone", "phone": "+12345678", "value": "123456", "method": "sms", "sms_message": "Your password is {123456}."}, "i_am_recipient": true, "expiration_days": 20, "allow_forwarding": true, "show_decline_button": true}}], "general_reminder": {"remind_after": 3, "remind_before": 5, "remind_repeat": 7}, "unmapped_documents": [{"id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a7f77", "role": "Signer", "action": "sign"}], "general_expiration_days": 30, "allowed_unmapped_sign_documents": [{"id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a400a", "role": "Signer", "recipient": "Jack Finkelstein"}]}'
```

---

## POST /v2/document-group-templates/{doc_group_template_id}/templates — Add template to doc group template

This endpoint allows API users to add a document or template to a document group template.

**Note**: Uploaded documents are automatically converted to templates. Templates or documents added to the document group template are accessible only from the document group template management page.

The successful request returns an ID of the template added to the document group template.


## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `doc_group_template_id` | string | Yes | ID of the document group template. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "document_id",
    "template_id"
  ],
  "properties": {
    "document_id": {
      "type": "string",
      "example": "0aa11112b0ed40aab8cab111a76a6eea07f0000e",
      "description": "ID of the document to be added to the document group template. Only one parameter (`document_id` or `template_id`) should be provided per request."
    },
    "template_id": {
      "type": "string",
      "example": "0bb21112b0ed40aab8cab111a76a6eea07f0000e",
      "description": "ID of the template to be added to the document group template. Only one parameter (`document_id` or `template_id`) should be provided per request.",
      "x-stoplight": {
        "id": "xdtovbjnskdp4"
      }
    }
  },
  "x-examples": {
    "Example 1": {
      "document_id": "0aa11112b0ed40aab8cab111a76a6eea07f0000e"
    }
  }
}
```

**Example** (`Add document`)

```json
{
  "document_id": "0aa11112b0ed40aab8cab111a76a6eea07f0000e"
}
```

**Example** (`Add template`)

```json
{
  "template_id": "0aa44442b0ed40aab8cab111a76a6eea07f0000e"
}
```

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "data": {
    "id": "d7c1697249214e33be1ef5e968822c6d2d505555"
  }
}
```

### 400

- Wrong, expired, or missing token.
- Only one of `document_id` or `template_id` can be used.
- `document_id` is not a string.
- `document_id` or `template_id` is required.
- Incorrect `document_id`.
- User is not the owner of the document group template.
- User is not the document owner.
- Document has active signature invites.
- Document is in the document group.
- Document is in the document group template.
- User is not the template owner.
- Template is in the document group template.
- `template_id` is not a string.
- Incorrect `template_id`.
- Document not found.
- Template not found.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Document in DGT`)

```json
{
  "errors": [
    {
      "code": 13026009,
      "message": "Document is contained in document group template."
    }
  ]
}
```

**Example** (`Template in DGT`)

```json
{
  "errors": [
    {
      "code": 13026010,
      "message": "Template is contained in document group template."
    }
  ]
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 13026006,
      "message": "Document not found."
    }
  ]
}
```

**Example** (`Template not found`)

```json
{
  "errors": [
    {
      "code": 13026007,
      "message": "Template not found."
    }
  ]
}
```

**Example** (`User not DGT owner`)

```json
{
  "errors": [
    {
      "code": 13026003,
      "message": "User is not document group template owner."
    }
  ]
}
```

**Example** (`Incorrect document_id`)

```json
{
  "errors": [
    {
      "code": 13025003,
      "message": "The `document_id` value is not valid."
    }
  ]
}
```

**Example** (`Incorrect template_id`)

```json
{
  "errors": [
    {
      "code": 13025005,
      "message": "The `template_id` value is not valid."
    }
  ]
}
```

**Example** (`document_id not string`)

```json
{
  "errors": [
    {
      "code": 13025002,
      "message": "The `document_id` value should be of type string."
    }
  ]
}
```

**Example** (`template_id not string`)

```json
{
  "errors": [
    {
      "code": 13025004,
      "message": "The `template_id` value should be of type string."
    }
  ]
}
```

**Example** (`User not document owner`)

```json
{
  "errors": [
    {
      "code": 13026001,
      "message": "User is not document owner."
    }
  ]
}
```

**Example** (`User not template owner`)

```json
{
  "errors": [
    {
      "code": 13026008,
      "message": "User is not template owner."
    }
  ]
}
```

**Example** (`Document in document group`)

```json
{
  "errors": [
    {
      "code": 13026005,
      "message": "Document in document group."
    }
  ]
}
```

**Example** (`Document has active signature invites`)

```json
{
  "errors": [
    {
      "code": 13026004,
      "message": "Document with active invites."
    }
  ]
}
```

**Example** (`Only one of document_id or template_id`)

```json
{
  "errors": [
    {
      "code": 13025006,
      "message": "Invalid payload. Only one of `document_id` or `template_id` parameters should be used."
    }
  ]
}
```

**Example** (`document_id or template_id is required`)

```json
{
  "errors": [
    {
      "code": 13025001,
      "message": "One of `document_id` or `template_id` value should not be blank."
    }
  ]
}
```

### 404

- Document group template not found.

**Example** (`Document group template not found`)

```json
{
  "errors": [
    {
      "code": 23001014,
      "message": "Document Group Template `0aa11112b0ed40aab8cab111a76a6eea07f0000e` not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-group-templates/{doc_group_template_id}/templates" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"document_id": "0aa11112b0ed40aab8cab111a76a6eea07f0000e"}'
```

---

## GET /v2/document-group-templates/{document_group_template_id} — Get doc group template info

This endpoint allows API users to retrieve information about a specific document group template, including its documents, the roles assigned to each document, and, optionally, the fields in each document.

Available to the document group template owner and to users the template is shared with.

**Notes**

* Use the `include` query parameter to add optional data to the response. Unknown values are ignored.
* With `?include=documents.fields`, each item in `documents` contains a `fields` array. Without it, the response doesn't include `fields`.
* The objects in `fields` have the same format as the `fields` array of [`GET /document/{document_id}`](/docs/document/operations/get-document). Template fields don't contain a `data` key. Default values set in the template, such as `prefilled_text` for text fields, are returned inside `json_attributes`.
* The response doesn't include dropdown options (`enumeration_options`) or checkbox groups (`checkbox_groups`). [`GET /document/{document_id}`](/docs/document/operations/get-document) returns them at the document level, so call it for each document that needs them.
* `roles` contains role names only. To get the signing order and other recipient settings, call [`GET /v2/document-group-templates/{document_group_template_id}/recipients`](/docs/document-group-template/operations/get-v2-document-group-templates-doc-group-template-id-recipients).
* To add or update fields, call [`PUT /document/{document_id}`](/docs/document/operations/edit-document) for each document.
* To work with a document in the template, call this endpoint to get the current document IDs right before you use them.
* For document groups, use [`GET /v2/document-groups/{document_group_id}`](/docs/document-group/operations/get-document-group-info-v2).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_template_id` | string | Yes | ID of the document group template. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `include=documents.fields` | string | No | If used, each item in `documents` contains a `fields` array with the fields of that document. |

## Responses

### 200

- Request with correct token
- Request with `include=documents.fields`

**Example** (`Basic`)

```json
{
  "data": {
    "id": "1adf85e869f45799558ab737df1cff93bad1cd4e",
    "name": "Employee onboarding",
    "owner": {
      "id": "579233b2c479241523cba5e3af55d0f50f2d6414",
      "email": "owner@example.com"
    },
    "created": 1791365561,
    "updated": 1791366293,
    "documents": [
      {
        "id": "ee17560c8b77385b5bb8d8687820f9b82f3fdcdf",
        "roles": [
          {
            "name": "Signer 1"
          },
          {
            "name": "Signer 2"
          }
        ],
        "document_name": "Employment Agreement"
      },
      {
        "id": "ce9ed66d82df7ce028a8623498350e2fb4412132",
        "roles": [
          {
            "name": "Signer 2"
          }
        ],
        "document_name": "Payroll Details"
      },
      {
        "id": "7cfd024b513673d9b90b6432f97d06812fec5f2b",
        "roles": [],
        "document_name": "Company Logo"
      }
    ]
  }
}
```

**Example** (`With document fields`)

```json
{
  "data": {
    "id": "1adf85e869f45799558ab737df1cff93bad1cd4e",
    "name": "Employee onboarding",
    "owner": {
      "id": "579233b2c479241523cba5e3af55d0f50f2d6414",
      "email": "owner@example.com"
    },
    "created": 1791365561,
    "updated": 1791366293,
    "documents": [
      {
        "id": "ee17560c8b77385b5bb8d8687820f9b82f3fdcdf",
        "roles": [
          {
            "name": "Signer 1"
          },
          {
            "name": "Signer 2"
          }
        ],
        "fields": [
          {
            "id": "c09bb890b096f7306f688cc6d1dad34e7e52a223",
            "role": "Signer 1",
            "type": "text",
            "role_id": "956998ca9bda000121215a6242b5659c8b86915a",
            "field_id": null,
            "fulfiller": null,
            "element_id": null,
            "originator": "owner@example.com",
            "json_attributes": {
              "x": 219,
              "y": 123,
              "bold": false,
              "font": "Arial",
              "name": "Employee name",
              "size": 12,
              "align": "left",
              "color": "000000",
              "width": 328,
              "height": 21,
              "italic": false,
              "valign": "top",
              "required": true,
              "font_size": 8,
              "max_chars": 0,
              "max_lines": 0,
              "underline": false,
              "arrangement": "none",
              "page_number": 0,
              "prefilled_text": "Enter employee name here"
            },
            "field_request_id": null,
            "template_field_id": null,
            "field_request_canceled": null
          },
          {
            "id": "cf1126f67238bf3e85fcc8c8737b72e80ddcfddb",
            "role": "Signer 1",
            "type": "signature",
            "role_id": "956998ca9bda000121215a6242b5659c8b86915a",
            "field_id": null,
            "fulfiller": null,
            "element_id": null,
            "originator": "owner@example.com",
            "json_attributes": {
              "x": 54,
              "y": 531,
              "name": "Employee signature",
              "width": 231,
              "height": 27,
              "required": true,
              "page_number": 0,
              "allowed_types": [
                "type",
                "draw",
                "upload"
              ]
            },
            "field_request_id": null,
            "template_field_id": null,
            "field_request_canceled": null
          },
          {
            "id": "619aae029dda528253a6af0ba619b45baa1df115",
            "role": "Signer 2",
            "type": "text",
            "role_id": "27563652e18222021d20bf272406dcbdab76bbeb",
            "field_id": null,
            "fulfiller": null,
            "element_id": null,
            "originator": "owner@example.com",
            "json_attributes": {
              "x": 218,
              "y": 243,
              "bold": false,
              "font": "Arial",
              "name": "Manager name",
              "size": 12,
              "align": "left",
              "color": "000000",
              "width": 328,
              "height": 21,
              "italic": false,
              "valign": "top",
              "required": true,
              "font_size": 8,
              "max_chars": 0,
              "max_lines": 0,
              "underline": false,
              "arrangement": "none",
              "page_number": 0
            },
            "field_request_id": null,
            "template_field_id": null,
            "field_request_canceled": null
          }
        ],
        "document_name": "Employment Agreement"
      },
      {
        "id": "ce9ed66d82df7ce028a8623498350e2fb4412132",
        "roles": [
          {
            "name": "Signer 2"
          }
        ],
        "fields": [
          {
            "id": "adfec5772ae8932aa10896037b0779bec915015b",
            "role": "Signer 2",
            "type": "text",
            "role_id": "5ebd260849efd1ba3d6ff32b61753b3a8df6d693",
            "field_id": null,
            "fulfiller": null,
            "element_id": null,
            "originator": "owner@example.com",
            "json_attributes": {
              "x": 218,
              "y": 141,
              "bold": false,
              "font": "Arial",
              "name": "Bank account",
              "size": 12,
              "align": "left",
              "color": "000000",
              "width": 330,
              "height": 21,
              "italic": false,
              "valign": "top",
              "required": true,
              "font_size": 8,
              "max_chars": 0,
              "max_lines": 0,
              "underline": false,
              "arrangement": "none",
              "page_number": 0
            },
            "field_request_id": null,
            "template_field_id": null,
            "field_request_canceled": null
          },
          {
            "id": "547cd2ba3a17b483651496c5ba8c78f1789b5cbd",
            "role": "Signer 2",
            "type": "signature",
            "role_id": "5ebd260849efd1ba3d6ff32b61753b3a8df6d693",
            "field_id": null,
            "fulfiller": null,
            "element_id": null,
            "originator": "owner@example.com",
            "json_attributes": {
              "x": 52,
              "y": 549,
              "name": "Manager signature",
              "width": 231,
              "height": 27,
              "required": true,
              "page_number": 0,
              "allowed_types": [
                "type",
                "draw",
                "upload"
              ]
            },
            "field_request_id": null,
            "template_field_id": null,
            "field_request_canceled": null
          }
        ],
        "document_name": "Payroll Details"
      },
      {
        "id": "7cfd024b513673d9b90b6432f97d06812fec5f2b",
        "roles": [],
        "fields": [],
        "document_name": "Company Logo"
      }
    ]
  }
}
```

### 400

- Request with incorrect or missing token.

**Example** (`Invalid token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 404

- Document group template ID does not exist.
- Document group template is not active.
- User has no access to the document group template.

**Example** (`Not found or no access`)

```json
{
  "errors": [
    {
      "code": 23001014,
      "message": "Document Group Template `c3d8d1f0e1a24b6e9f2a7b5c4d3e2f1a0b9c8d7e` not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/document-group-templates/{document_group_template_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/document-group-templates/{unique_id}/document-group — Create doc group from template

This endpoint allows API users to create a document group from a document group template.

The new document group is a signable copy: the template stays untouched as the master version. The documents in the group have new IDs that differ from the ones in the template, so build any invite from the IDs returned by this request. For the full flow, from preparing the documents to sending the group for signature, see [Documents, doc groups, and templates](/docs/entities). To let recipients sign the group inside your own site or app, see [Embedded signing](/docs/guides-embedded-signing).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `unique_id` | string | Yes | Document group template unique ID. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "group_name"
  ],
  "properties": {
    "folder_id": {
      "type": "string",
      "description": "ID of the folder."
    },
    "group_name": {
      "type": "string",
      "description": "Name of the Document Group."
    },
    "client_timestamp": {
      "type": "string",
      "description": "Timestamp of client."
    }
  },
  "x-examples": {
    "Example 1": {
      "folder_id": "dd43a203848bc474ccd76cbccfcee882b50ef862",
      "group_name": "Sample group",
      "client_timestamp": "4562325644"
    }
  }
}
```

**Example** (`Example of the request body`)

```json
{
  "folder_id": "dd43a203848bc474ccd76cbccfcee882b50ef862",
  "group_name": "Sample group",
  "client_timestamp": "4562325644"
}
```

## Responses

### 200

Successfully created document group

**Example** (`Successful response`)

```json
{
  "data": {
    "name": "Sample group",
    "owner": {
      "id": "d6ad4afa7f8a6a0f87dda90849f24657eab575e6",
      "email": "owner@email.com",
      "organization": {
        "id": null
      }
    },
    "state": "created",
    "created": 1675344851,
    "documents": [
      {
        "id": "0c0cba0574b4b99c6ddd9e7f4e682c2bd4c4f864",
        "roles": [],
        "thumbnail": {
          "large": "https://sample.com/thumbnail?size=large",
          "small": "https://sample.com/thumbnail?size=small",
          "medium": "https://sample.com/thumbnail?size=medium"
        },
        "document_name": "Sample document name 1",
        "origin_document_id": "99274157fa882a9417997baebc1c5d0add307f27",
        "has_unassigned_field": false,
        "has_credit_card_number": false
      },
      {
        "id": "237391b417064b54efed70e0a1dd41ab6a674c6e",
        "roles": [],
        "thumbnail": {
          "large": "https://sample.com/thumbnail?size=large",
          "small": "https://sample.com/thumbnail?size=small",
          "medium": "https://sample.com/thumbnail?size=medium"
        },
        "document_name": "Sample document name 2",
        "origin_document_id": "b9d230ad36902ed890aef9dee2616401b4746d2f",
        "has_unassigned_field": false,
        "has_credit_card_number": false
      },
      {
        "id": "b9d230ad36902ed890aef9dee2616401b4746d2f",
        "roles": [],
        "thumbnail": {
          "large": "https://sample.com/thumbnail?size=large",
          "small": "https://sample.com/thumbnail?size=small",
          "medium": "https://sample.com/thumbnail?size=medium"
        },
        "document_name": "Sample document name 3",
        "origin_document_id": "723257932d256cbc4e2919b9c12e3cabca277596",
        "has_unassigned_field": false,
        "has_credit_card_number": false
      },
      {
        "id": "b6076ea90f50b3fa6acb77b156d09a52ce3ec373",
        "roles": [
          "Signer 1"
        ],
        "thumbnail": {
          "large": "https://sample.com/thumbnail?size=large",
          "small": "https://sample.com/thumbnail?size=small",
          "medium": "https://sample.com/thumbnail?size=medium"
        },
        "document_name": "Sample document name 4",
        "origin_document_id": "bcf7f59ac4587b8f44435982e7abd3eb41a7a850",
        "has_unassigned_field": false,
        "has_credit_card_number": false
      }
    ],
    "invite_id": null,
    "unique_id": "92d8ea1f8ed3eab64efba222c1bb76b52f4e1ae5",
    "owner_email": "owner@email.com",
    "last_invite_id": null
  }
}
```

### 400

- Wrong, expired, or missing token.
- Wrong payload.
- Incorrect folder_id property.
- Incorrect client_timestamp property.
- folder_id not found or deleted.
- group_name property is empty.
- Folder does not have enough permissions.
- Folder does not exist.
- Something happened during copying file.
- User doesn't have rights to write into folder.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Wrong payload`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid payload"
    }
  ]
}
```

**Example** (`Folder does not exist`)

```json
{
  "errors": [
    {
      "code": 13020002,
      "message": "Document folder is not found. Folder ID: `{folder_id}`."
    }
  ]
}
```

**Example** (`Error copying Template`)

```json
{
  "errors": [
    {
      "code": 13020007,
      "message": "Error Copying Template. ID: {document_id}. Error: {error}"
    }
  ]
}
```

**Example** (`Folder without permissions`)

```json
{
  "errors": [
    {
      "code": 13020003,
      "message": "Not enough permissions to add document group into the folder `{folder_id}`."
    }
  ]
}
```

**Example** (`Incorrect folder_id property`)

```json
{
  "errors": [
    {
      "code": 13020008,
      "message": "`folder_id` must be string"
    },
    {
      "code": 13020009,
      "message": "`folder_id` must match with pattern `[a-z0-9]{40}`"
    }
  ]
}
```

**Example** (`group_name property is empty`)

```json
{
  "errors": [
    {
      "code": 13020010,
      "message": "group_name property is empty"
    }
  ]
}
```

**Example** (`folder_id not found or deleted`)

```json
{
  "errors": [
    {
      "code": 13020002,
      "message": "Document folder is not found. Folder ID: {folder_id}."
    }
  ]
}
```

**Example** (`Incorrect client_timestamp property`)

```json
{
  "errors": [
    {
      "code": 13020012,
      "message": "`client_timestamp` must be string"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-group-templates/{unique_id}/document-group" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"folder_id": "dd43a203848bc474ccd76cbccfcee882b50ef862", "group_name": "Sample group", "client_timestamp": "4562325644"}'
```

---

## POST /v2/document-groups/{doc_group_id}/document-group-template — Create doc group template from doc group

This endpoint allows API users to create a document group template from a document group in any status. The result is one document group template and a separate template for each document in the group.

To collect signatures, create a document group from the template with [Create doc group from template](/docs/document-group-template/operations/post-v2-document-group-templates-unique-id-document-group), then send that group. For the full flow, see [Documents, doc groups, and templates](/docs/entities).

**Notes**

* The template is created asynchronously. It appears in the specified folder once processing is complete.
* The template must be saved to the **Templates** folder or any of its subfolders.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `doc_group_id` | string | Yes | ID of the document group. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Name for a new Document group template.",
      "x-stoplight": {
        "id": "8k87jesg0p3i6"
      }
    },
    "folder_id": {
      "type": "string",
      "description": "The folder where to save the new Document group template. Must be saved to a Templates folder or any of its sub-folders.",
      "x-stoplight": {
        "id": "9265xix62sar1"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "name": "Onboarding package template",
  "folder_id": "a1b2c3d4e5f60718293a4b5c6d7e8f9012345678"
}
```

## Responses

### 202

The document group template creation has been scheduled. The response body is empty. The template appears in the specified folder once processing is complete.

### 400

* Authorization issues: invalid token of user, expired token of user, empty header, authorization = null, authorization without value.
* Incorrect type of name field.
* Unsupported symbols in the name field.
* Length of the name field is too long.
* Incorrect type of folder_id field.
* Incorrect value of folder_id field.
* Empty name field.
* With non-Template(or its sub-folder) folder_id.

**Example** (`Empty name field`)

```json
{
  "code": 23003006,
  "message": "The `name` field must not be empty."
}
```

**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

**Example** (`Incorrect type of name field`)

```json
{
  "code": 23003003,
  "message": "The `name` field must be a string."
}
```

**Example** (`Incorrect type of folder_id field`)

```json
{
  "code": 23003001,
  "message": "The `folder_id` field must be a string."
}
```

**Example** (`Incorrect value of folder_id field`)

```json
{
  "code": 23003001,
  "message": "The `folder_id` field value must be valid unique_id."
}
```

**Example** (`Length of the name field is too long`)

```json
{
  "code": 23003005,
  "message": "The `name` must not exceed 255 chars."
}
```

**Example** (`Unsupported symbols in the name field`)

```json
{
  "code": 23003004,
  "message": "Unsupported symbol at `name` field value. Allowed symbols: A-Z, a-z, 0-9, '_', '.', '-', ' '."
}
```

**Example** (`With non-Template(or its sub-folder) folder_id`)

```json
{
  "code": 23003009,
  "message": "Document Group Template could be create in folder or sub-folders of Templates only."
}
```

### 403

* Forbidden access to the document group.
* Forbidden access to the provided folder.

**Example** (`Forbidden access to the Document Group`)

```json
{
  "code": 13020001,
  "message": "You do not own this DocumentGroup"
}
```

**Example** (`Forbidden access to the provided folder`)

```json
{
  "code": 23003008,
  "message": "User don`t have access to folder."
}
```

### 404

* Folder does not exist.
* Document group does not exist or is deleted.

**Example** (`Folder does not exist`)

```json
{
  "code": 23003007,
  "message": "User folder not found."
}
```

**Example** (`Document Group does not exist or deleted`)

```json
{
  "code": 23001015,
  "message": "Document Group `{dg_uid}` not found."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-groups/{doc_group_id}/document-group-template" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "Onboarding package template", "folder_id": "a1b2c3d4e5f60718293a4b5c6d7e8f9012345678"}'
```

---

## POST /v2/documents/{document_id}/embedded-invites — Create embedded invite

This endpoint allows API users to create an embedded signing invite for a document. Once the invite is created, generate an embedded signing link using [`POST v2/documents/{{document_id}}/embedded-invites/{{embedded_invite_id}}/link`](/docs/document-embedded-signing/operations/generate-link-for-embedded-invite) with the ID you got in the response.


Before sending your request, ensure the following:
- You are the owner of the document to be signed.
- The invite is being created for a document (not a template).
- Your document contains fields.
- The document is not part of any other invite (pending or signed).
- Signers' email addresses are unique and do not exceed 150 characters.
- All roles or role IDs in the document are included in the invite (specifying extra roles will result in an error).
- The document owner cannot be assigned as a signer.


You can also include `approvers`. These recipients review the document without signing or filling fields. Each approver requires `email`, `role`, `order`, and `auth_method`. Note that `order` values must be unique across `invites` and `approvers`.

Parameters `role` and `role_id` can be retrieved from the response from [`GET /document/{{document_id}}`](/docs/document/operations/get-document). Specify a role either by `role` (unique role name, e.g. “Signer 1”), `role_id` (unique role identifier), or both `role` and `role_id`. Ensure they correspond to each other.

Use these parameters to customize the request:

<details>
<summary><b>Recipient authentication for the signing session</b></summary>

Use the `authentication` object to set up the signer's authentication for the signing session.

* Authentication type: `phone`, method: `sms`. Note that `sms_message` parameter must contain `{password}` placeholder.
This method is used to authenticate the signer using a password sent via SMS.

```json
"authentication": {
    "type": "phone",
    "method": "sms",
    "phone": "+1XXXXXXXXX",
    "sms_message": "Custom test message with {password}"
}
```

* Authentication type: `phone`,  method: `phone_call`
This method is used to authenticate the signer with a password delivered via a phone call.

```json
"authentication": {
    "type": "phone",
    "method": "phone_call",
    "phone": "+1XXXXXXXXX"
}
```
* Authentication type: `password`
This method is used to authenticate the signer using a pre-set password.

```json
"authentication": {
    "type": "password",
    "password": "123456"
}
```
</details>
<br>

<details>

<summary><b>name_formula</b> parameter</summary>

Use the `name_formula` parameter to generate a completed document name based on the `text_prefix` (can be any text) and fillable field data.

For example, let's set the first part of the completed document name as `Contract` and use data from two document fields (we can use up to five fields):
* `signer_name` (filled as `John Smith`)
* `signed_date` (filled as `20.01.2023`)

After the signer completes the document, the document will have the name `Contract John Smith 20.01.2023`.

Note that you can not use signature fields for `name_formula`.

</details>
<br>

<details>

<summary><b>auth_method</b> used in the integrated application</summary>

The `auth_method` parameter is defined by the application owner to specify the method used to authenticate the signer within the integrated application.
Possible values are: `password`, `email`, `social`, `mfa`, `biometric`, `other`, `none`.

**Note**: The `auth_method` parameter does not influence the signer's authentication method during the signing session. Use the `authentication` object to configure authentication for the signing session.

</details>
<br>

<details>

<summary><b>from_email, from_name</b></summary>

Use `from_email` and `from_name` parameters to customize the appearance of the sender's email address and name. 

Note that both parameters are optional and applicable only when `delivery_type`=`email`.

Explore the three scenarios of passing the from_name and from_email parameters:

**When both `from_email` and `from_name` are passed:**

The custom `from_name` appears:

- in email subject of the invite, reassign, reminder, and completed emails.

The custom `from_email` appears:

- in email body of the invite, reassign, reminder, and completed emails.
- when clicking **Contact Sender** and in **Reply-to** in the emails.
- in the signing session: when clicking **Contact Sender** in the **More Actions** menu.

---

**When only `from_email` is passed:**

The local part of `from_email` (before `@`) appears:

- in email subject of the invite, reassign, reminder, and completed emails.

The custom `from_email` appears:

- in email body of the invite, reassign, reminder, and completed emails.
- when clicking **Contact Sender** and in **Reply-to** in the emails.
- in the signing session: when clicking **Contact Sender** in the **More Actions** menu.

---

**When only `from_name` is passed:**

The custom `from_name` appears:

- in email subject of the invite, reassign, reminder, and completed emails.

The default (owner’s) `from_email` appears:

- in email body of the invite, reassign, reminder, and completed emails.
- when clicking **Contact Sender** and in **Reply-to** in the emails.
- in the signing session: when clicking **Contact Sender** in the **More Actions** menu.

</details>

<br>

Learn more about [embedded signing](/docs/guides-embedded-signing).


## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | Document ID. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "invites": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "email",
          "role_id",
          "order",
          "auth_method"
        ],
        "properties": {
          "role": {
            "type": "string",
            "example": "Recipient 1",
            "description": "Recipient's role name."
          },
          "email": {
            "type": "string",
            "example": "signer@email.com",
            "description": "Email address of the recipient."
          },
          "order": {
            "type": "integer",
            "example": 1,
            "description": "The order of signing."
          },
          "message": {
            "type": "string",
            "example": "Please review the invoice and sign it at your earliest convenience.",
            "maxLength": 5000,
            "description": "Invite email message. Available if the `delivery_type` = `email`. Overrides branding settings when sending emails.",
            "x-stoplight": {
              "id": "p6qdwelzotcow"
            }
          },
          "subject": {
            "type": "string",
            "example": "Review and sign the invoice",
            "maxLength": 1000,
            "description": "Invite email subject. Available if the `delivery_type` = `email`. Overrides branding settings when sending emails.",
            "x-stoplight": {
              "id": "hweqz6janu23i"
            }
          },
          "language": {
            "enum": [
              "en",
              "es",
              "fr"
            ],
            "type": "string",
            "example": "en",
            "description": "Sets the language of the signing session for the recipient. Possible values: `en` for English, `es` for Spanish, `fr` for French."
          },
          "last_name": {
            "type": "string",
            "example": "Doe",
            "description": "Signer's last name."
          },
          "signature": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "example": "eideasy",
                "description": "Type of the QES. Allowed values are `eideasy`, `nom151`. For more information, see [QES user guide](/docs/qualified-electronic-signature).",
                "x-stoplight": {
                  "id": "chg74gqg704ir"
                }
              }
            },
            "description": "This object is used to request QES signatures from signers. To create an embedded invite with QES, a user must be a member of an organization with QES settings enabled. If QES is specified, it must be used for all signers in the invite.",
            "x-stoplight": {
              "id": "i44p23xv82csv"
            }
          },
          "first_name": {
            "type": "string",
            "example": "John",
            "description": "Signer's first name."
          },
          "auth_method": {
            "enum": [
              "password",
              "email",
              "mfa",
              "social",
              "biometric",
              "other",
              "none"
            ],
            "type": "string",
            "example": "none",
            "description": "Defines the method used to authenticate the recipient within the integrated application. Allowed values: `password`, `email`, `mfa`, `biometric`, `social`, `other`, `none`."
          },
          "redirect_uri": {
            "type": "string",
            "example": "https://example.com",
            "description": "The link that opens after the signing session has been completed."
          },
          "authentication": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "example": "phone",
                "description": "Authentication type used for the recipient authentication during the signing session. Required inside `authentication` object. Allowed values: `phone`, `password`."
              },
              "phone": {
                "type": "string",
                "example": "+1XXXXXXXXX",
                "description": "Phone number used to authenticate the recipient. Required inside `authentication` object with the `phone` method."
              },
              "method": {
                "enum": [
                  "sms",
                  "phone_call"
                ],
                "type": "string",
                "example": "sms",
                "description": "Method of the `phone` authentication type. Required inside `authentication` object with the `phone` authentication type. Allowed values: `sms`, `phone_call`.\n"
              },
              "password": {
                "type": "string",
                "example": "123456",
                "description": "Password set for the recipient authentication. Required inside the  `authentication`  object with the  `password`  authentication type."
              },
              "sms_message": {
                "type": "string",
                "example": "Enter the password {password} to unlock your document.",
                "maxLength": 140,
                "description": "Custom sms message sent to the recipient, containing the {password} placeholder. Used with the `sms` method. Without this parameter, the recipient receives a default sms with an autogenerated password (unlock code) - \"SignNow document invite unlock code: 123456\"."
              }
            },
            "description": "Authentication settings used to verify the recipient identity."
          },
          "delivery_type ": {
            "type": "string",
            "default": "link",
            "description": "Defines how the invite is sent. Allowed values: `email`, `link`.\n"
          },
          "redirect_target": {
            "enum": [
              "blank",
              "self"
            ],
            "type": "string",
            "default": "self",
            "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab."
          },
          "link_expiration ": {
            "type": "integer",
            "maximum": 43200,
            "minimum": 15,
            "description": "In how many minutes the email invite expires. Can be used only if `delivery_type`=`email`."
          },
          "close_redirect_uri": {
            "type": "string",
            "example": "https://example.com",
            "description": "The link that opens when a signer clicks **Save Progress and Finish Later** during a signing session or **Close** in view mode."
          },
          "session_expiration": {
            "type": "integer",
            "maximum": 1440,
            "minimum": 15,
            "description": "In how many minutes the signing session expires. If a link is generated for this invite, the session expiration is reset. Can be used only if `delivery_type=email`.",
            "x-stoplight": {
              "id": "2xz1y3kaq2nha"
            }
          },
          "force_new_signature": {
            "type": "integer",
            "example": 0,
            "description": "Defines whether the signer can use their saved signature or not. If set to `1`, the signer has to add a new signature. If set to `0`, the signer can use the saved signature.\n"
          },
          "decline_redirect_uri": {
            "type": "string",
            "example": "https://example.com",
            "description": "The link that opens after the signing session has been declined by the signer."
          },
          "prefill_signature_name": {
            "type": "string",
            "example": "John Doe",
            "maxLength": 255,
            "description": "The text displayed in the Signature field. The signer can edit this value."
          },
          "required_preset_signature_name": {
            "type": "string",
            "example": "Jane Smith",
            "description": "The text displayed in the Signature field. The signer cannot edit this value. Can not be used simultaneously with `prefill_signature_name` or `force_new_signature` for the same role."
          }
        }
      },
      "description": "The object that holds the attributes of the invite."
    },
    "approvers": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "email",
          "role",
          "order",
          "auth_method"
        ],
        "properties": {
          "role": {
            "type": "string",
            "example": "Approver 1",
            "maxLength": 255,
            "description": "Approver's role name. Must be unique within `approvers`."
          },
          "email": {
            "type": "string",
            "example": "approver@email.com",
            "description": "Email address of the approver."
          },
          "order": {
            "type": "integer",
            "example": 2,
            "maximum": 127,
            "minimum": 1,
            "description": "The order of approval. Each `order` value in `approvers` must be unique within the array and must not be shared with signer roles."
          },
          "message": {
            "type": "string",
            "example": "Please review the invoice and approve it at your earliest convenience.",
            "maxLength": 5000,
            "description": "Invite email message. Available if the `delivery_type` = `email`. Overrides branding settings when sending emails."
          },
          "subject": {
            "type": "string",
            "example": "Review and approve the invoice",
            "maxLength": 1000,
            "description": "Invite email subject. Available if the `delivery_type` = `email`. Overrides branding settings when sending emails."
          },
          "language": {
            "enum": [
              "en",
              "es",
              "fr"
            ],
            "type": "string",
            "example": "en",
            "description": "Sets the language of the approval session for the approver. Possible values: `en` for English, `es` for Spanish, `fr` for French."
          },
          "last_name": {
            "type": "string",
            "example": "Doe",
            "description": "Approver's last name."
          },
          "first_name": {
            "type": "string",
            "example": "John",
            "description": "Approver's first name."
          },
          "auth_method": {
            "enum": [
              "password",
              "email",
              "mfa",
              "social",
              "biometric",
              "other",
              "none"
            ],
            "type": "string",
            "example": "none",
            "description": "Defines the method used to authenticate the approver within the integrated application. Allowed values: `password`, `email`, `mfa`, `biometric`, `social`, `other`, `none`."
          },
          "delivery_type": {
            "type": "string",
            "default": "link",
            "description": "Defines how the invite is sent. Allowed values: `email`, `link`."
          },
          "authentication": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "example": "phone",
                "description": "Authentication type used for the approver authentication during the approval session. Required inside `authentication` object. Allowed values: `phone`, `password`."
              },
              "phone": {
                "type": "string",
                "example": "+1XXXXXXXXX",
                "description": "Phone number used to authenticate the approver. Required inside `authentication` object with the `phone` method."
              },
              "method": {
                "enum": [
                  "sms",
                  "phone_call"
                ],
                "type": "string",
                "example": "sms",
                "description": "Method of the `phone` authentication type. Required inside `authentication` object with the `phone` authentication type. Allowed values: `sms`, `phone_call`."
              },
              "password": {
                "type": "string",
                "example": "123456",
                "description": "Password set for the approver authentication. Required inside the `authentication` object with the `password` authentication type."
              },
              "sms_message": {
                "type": "string",
                "example": "Enter the password {password} to unlock your document.",
                "maxLength": 140,
                "description": "Custom SMS message sent to the approver, containing the {password} placeholder. Used with the `sms` method."
              }
            },
            "description": "Authentication settings used to verify the approver identity."
          },
          "link_expiration": {
            "type": "integer",
            "maximum": 43200,
            "minimum": 15,
            "description": "In how many minutes the email invite expires. Can be used only if `delivery_type`=`email`."
          },
          "session_expiration": {
            "type": "integer",
            "maximum": 1440,
            "minimum": 15,
            "description": "In how many minutes the approval session expires. If a link is generated for this invite, the session expiration is reset. Can be used only if `delivery_type=email`."
          }
        }
      },
      "description": "The object that holds the attributes of the approver. Approvers review the document but do not sign or fill in fields. `order` values must be unique across `invites` and `approvers`."
    },
    "from_name": {
      "type": "string",
      "example": "Jane Doe",
      "maxLength": 300,
      "description": "Use this attribute to customize the name that appears in email subject of the invite, reassign, reminder, and completed emails. Note: applicable when `delivery_type`=`email`."
    },
    "from_email": {
      "type": "string",
      "example": "sender@email.com",
      "maxLength": 255,
      "description": "Use this attribute to customize the email address that appears: 1) in the invite, reassign, reminder, and completed emails: in email subject (part before @) and email body; when clicking Contact Sender, and in Reply-to; 2) in the signing session: when clicking the Contact Sender button in the More Actions menu. Note: applicable when `delivery_type`=`email`."
    },
    "name_formula": {
      "type": "string",
      "example": "Contract|signer_name|signed_date",
      "description": "Used to generate a completed document name based on `text_prefix` (can be any text) and field data (excluding signature fields). You can use up to 5 fields."
    }
  },
  "x-examples": {
    "Example 1": {
      "invites": [
        {
          "role": "Recipient 1",
          "email": "signer1@email.com",
          "order": 1,
          "language": "en",
          "last_name": "Smith",
          "first_name": "John",
          "auth_method": "none",
          "redirect_uri": "https://example.com/redirect",
          "authentication": {
            "type": "password",
            "password": "password"
          },
          "prefill_signature_name": "Recipient signature"
        },
        {
          "role": "Recipient 2",
          "email": "signer2@email.com",
          "order": 1,
          "language": "en",
          "last_name": "Johnson",
          "first_name": "Emily",
          "auth_method": "biometric",
          "authentication": {
            "type": "phone",
            "phone": "+1111111111",
            "method": "phone_call"
          }
        },
        {
          "role": "Recipient 3",
          "email": "signer3@email.com",
          "order": 2,
          "language": "en",
          "last_name": "Brown",
          "first_name": "Michael",
          "auth_method": "password",
          "authentication": {
            "type": "phone",
            "phone": "+1111111111",
            "method": "sms",
            "sms_message": "Your custom test message with {password}"
          }
        }
      ],
      "approvers": [
        {
          "role": "Approver 1",
          "email": "approver1@email.com",
          "order": 3,
          "message": "Review and approve the document.",
          "subject": "Please approve the document",
          "language": "en",
          "last_name": "Williams",
          "first_name": "Sarah",
          "auth_method": "none",
          "delivery_type": "email",
          "authentication": {
            "type": "phone",
            "phone": "+1111111111",
            "method": "phone_call"
          },
          "link_expiration": 15,
          "session_expiration": 15
        }
      ],
      "name_formula": "some text|field1_name|field2_name|field3_name|field4_name|field5_name"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "invites": [
    {
      "role": "Signer 1",
      "email": "signer1@email.com",
      "order": 1,
      "language": "en",
      "last_name": "Doe",
      "signature": {
        "type": "eideasy"
      },
      "first_name": "John",
      "auth_method": "email",
      "redirect_uri": "https://example.com",
      "authentication": {
        "type": "password",
        "password": "12345"
      },
      "redirect_target": "blank",
      "close_redirect_uri": "https://example.com/",
      "decline_redirect_uri": "https://signnow.com",
      "required_preset_signature_name": "Signer signature"
    },
    {
      "role": "Signer 2",
      "email": "signer2@email.com",
      "order": 2,
      "message": "Please review the invoice and sign it at your earliest convenience.",
      "subject": "Sign the invoice",
      "language": "en",
      "signature": {
        "type": "eideasy"
      },
      "auth_method": "email",
      "delivery_type": "email",
      "authentication": {
        "type": "phone",
        "phone": "+1234567890",
        "method": "sms",
        "sms_message": "Enter the password {password} to unlock your document."
      },
      "link_expiration": 15,
      "session_expiration": 15,
      "prefill_signature_name": "Recipient signature"
    },
    {
      "role": "Signer 3",
      "email": "signer3@email.com",
      "order": 3,
      "language": "en",
      "signature": {
        "type": "eideasy"
      },
      "auth_method": "email",
      "delivery_type": "link",
      "authentication": {
        "type": "phone",
        "phone": "+0987654321",
        "method": "phone_call"
      },
      "force_new_signature": 0
    }
  ],
  "approvers": [
    {
      "role": "Approver 1",
      "email": "approver1@email.com",
      "order": 4,
      "message": "Review and approve the contract at your earliest convenience.",
      "subject": "Please approve the contract",
      "language": "en",
      "last_name": "Roe",
      "first_name": "Alex",
      "auth_method": "email",
      "delivery_type": "email",
      "authentication": {
        "type": "password",
        "password": "12345"
      },
      "link_expiration": 15,
      "session_expiration": 15
    },
    {
      "role": "Approver 2",
      "email": "approver2@email.com",
      "order": 5,
      "language": "es",
      "last_name": "Lee",
      "first_name": "Jamie",
      "auth_method": "email",
      "delivery_type": "link",
      "authentication": {
        "type": "phone",
        "phone": "+1234567890",
        "method": "sms",
        "sms_message": "Enter the password {password} to unlock your document."
      }
    }
  ],
  "from_name": "Jane Doe",
  "from_email": "sender@email.com",
  "name_formula": "Contract|signer_name|signed_date"
}
```

## Responses

### 201

Successful response. Returns the created embedded invites, one per signer. Depending on the request settings, an invite can also include the signing `link`, its expiration time, and redirect settings.

**Example** (`Response to a correct request`)

```json
{
  "data": [
    {
      "id": "134d29f5d464b49519389b1e52c4bd1a736f6950",
      "link": "https://example.com",
      "email": "signer@email.com",
      "order": 1,
      "status": "pending",
      "role_id": "c8d232afcfad804982f1002b261b959c1b779076",
      "expires_at": 1589546224,
      "redirect_uri": "https://example.com",
      "redirect_target": "blank",
      "decline_redirect_uri": "https://signnow.com"
    },
    {
      "id": "a7783cba1ea97266603d52a672cd1ac75b62b122",
      "email": "approver@email.com",
      "order": 2,
      "status": "created",
      "role_id": "44d800f5927ce4631ea66f081496265d400f0ad4"
    }
  ]
}
```

**Example** (`With "name_formula" parameter`)

```json
{
  "data": [
    {
      "id": "5f3f14bfba6b8f9795cb29561a9d875400b75a79",
      "email": "signer@email.com",
      "order": 1,
      "status": "pending",
      "role_id": "58abd4f4bf5fee56b37af195bc0472d4d9e4e91e"
    }
  ]
}
```

### 400

* Document has active invites.
* Email addresses in embedded invites are not unique.
* Document has no active fields.
* The role doesn't exist in the document.
* Document owner's email was used as a signer's email.
* Not all of the document roles were used.
* Invite for the role already exists.

**Validation errors**:
* The `prefill_signature_name` contains unsupported characters.
* The `authentication.type` is not a string.
* The `authentication.type` is not valid. Possible values: `phone`, `password`.
* The `phone` is not a string.
* The `phone` format is not valid.
* The `phone` field is required when `authentication.type` = `phone`.
* The `method` is not valid. Possible values: `sms`, `phone_call`.
* The`method` parameter can be used if `authentication.type` = `phone`.
* The `password` is not a string.
* The `password` parameter is required when `authentication.type` = `password`.
* The `sms_message` is not a string.
* The `sms_message` value is empty.
* The `sms_message` value is too long (must have 154 characters or less).
* The `sms_message` contains unsupported characters.
* The `phone` parameter is required when `authentication.type` = `phone`.
* The `method` parameter is required when `authentication.type` = `phone`.
* The `sms_message` parameter can be used only when `authentication.type` = `phone` and `method` = `sms`.
* The `password` field is required when `authentication.type` = `password`.
* The `method` field is not a string.
* The `authentication.type` is empty.
* The `name_formula` field is not a string.
* The `name_formula` value is empty.
* The `name_formula` contains unsupported characters.
* The `name_formula` contains more than 5 fields.
* The `name_formula` have `{field_name}` that does not exist in document or field type is not text.
* The `name_formula` have duplicate `{field_name}` values.
* The `required_preset_signature_name` is not a string.
* The `required_preset_signature_name` value is empty.
* The `required_preset_signature_name` is too long (must not exceed 255 characters).
* The `required_preset_signature_name` contains unsupported characters.
* Parameter `required_preset_signature_name` is used with `prefill_signature_name` for the same role.
* Parameter `required_preset_signature_name` is used with `force_new_signature` for the same role.
* The `language` is not a string.
* The`language` is incorrect. Possible values: `en`, `fr`, `es`.
* The `decline_redirect_uri` is not a string.
* The `decline_redirect_uri` is empty.
* The`decline_redirect_uri` is not a correct URL.
* The`redirect_target` is not a string.
* The`redirect_target` is incorrect. Possible values: self, blank.
* One of `redirect_uri` fields is required when `redirect_target` is added.
* The `redirect_uri` is too long (must not exceed 2048 characters).
* The `decline_redirect_uri` is too long (must not exceed 2048 characters).
* The `delivery_type` is not a string.
* Incorrect `delivery_type`. Possible values: `email`, `link`.
* The `link_expiration` is not an integer.
* The `link_expiration` is incorrect (must be 15 or more).
* The `link_expiration` is incorrect (must be 45 or less).
* The `link_expiration` can only be used if `delivery_type=email`.
* The `session_expiration` is not an integer.
* The `session_expiration` is out of range.
* The `session_expiration` can only be used if `delivery_type=email`.
* Parameter `subject` in `invites` is not a string.
* Parameter `subject` in `invites` is empty.
* Parameter `subject` in `invites` contains unsupported characters.
* Parameter `subject` in `invites` is too long.
* Parameter `subject` in `invites` is used when `delivery_type` is not `email`.
* Parameter `message` in `invites` is not a string.
* Parameter `message` in `invites` is empty.
* Parameter `message` in `invites` contains unsupported characters.
* Parameter `message` in `invites` is too long.
* Parameter `message` in `invites` is used when `delivery_type` is not `email`.
* Your subscription plan does not include email invite customization.

**QES-specific errors**:

* The organization has no advanced sign provider enabled.
* The user is not part of the organization.
* Multiple signers were found in a single step.
* Different signature providers assigned to signers.
* The `signature` field type is incorrect.
* The `signature.type` value  is empty.
* The `signature.type` value type is incorrect.
* The `signature.type` value is not supported.

**Approver-specific errors**:

* The `approvers` field is not an array.
* The `approvers` field items are not arrays.
* In `approvers`, multiple approvers share the same `order`.
* An approver's `order` is shared with another role.
* In `approvers`, role names are not unique.
* The `email` field in `approvers` is not a string / is blank / is not a valid email.
* The `role` field in `approvers` is not a string / is blank / exceeds 255 characters / contains 4-byte characters.
* The `order` field in `approvers` is not an integer / is blank / is not between 1 and 127.
* The `auth_method` field in `approvers` is not a string / is blank / is not one of the allowed values.
* The `first_name` field in `approvers` is not a string / contains 4-byte characters / exceeds the character limit.
* The `last_name` field in `approvers` is not a string / contains 4-byte characters / exceeds the character limit.
* The `language` field in `approvers` is not a string / is wrong (allowed: `en`, `fr`, `es`).
* The `delivery_type` field in `approvers` is not a string / is wrong (allowed: `email`, `link`).
* The `link_expiration` field in `approvers` is not an integer / is less than 15 minutes / is set when `delivery_type` is not `email`.
* The `session_expiration` field in `approvers` is not an integer / is out of range / is set when `delivery_type` is not `email`.
* The `subject` field in `approvers` is not a string / is blank / contains 4-byte characters / exceeds the character limit / is set when `delivery_type` is not `email`.
* The `message` field in `approvers` is not a string / is blank / contains 4-byte characters / exceeds the character limit / is set when `delivery_type` is not `email`.
* Custom authentication `sms_message` without a paid API plan, an API free trial, or a Site License.

**Example** (`Unused role`)

```json
{
  "errors": [
    {
      "code": 19002019,
      "message": "Role {role_id} was not specified in any invite. All roles must be used."
    }
  ]
}
```

**Example** (`Message is empty`)

```json
{
  "errors": [
    {
      "code": 19003106,
      "message": "The `message` field in `invites` must not be an empty string."
    }
  ]
}
```

**Example** (`More than 1 step`)

```json
{
  "errors": [
    {
      "code": 19002004,
      "message": "Can send an embedded invite with only one step."
    }
  ]
}
```

**Example** (`No active fields`)

```json
{
  "errors": [
    {
      "code": 19002016,
      "message": "Cannot send an invite. This document does not contain fields."
    }
  ]
}
```

**Example** (`Subject is empty`)

```json
{
  "errors": [
    {
      "code": 19003101,
      "message": "The `subject` field in `invites` must not be an empty string."
    }
  ]
}
```

**Example** (`Duplicated emails`)

```json
{
  "errors": [
    {
      "code": 19002005,
      "message": "Emails in embedded invites must be unique."
    }
  ]
}
```

**Example** (`Non-existent role`)

```json
{
  "errors": [
    {
      "code": 19002018,
      "message": "Role {role_id} does not exist in the document."
    }
  ]
}
```

**Example** (`Owner is a signer`)

```json
{
  "errors": [
    {
      "code": 19002021,
      "message": "The document owner cannot send invite to himself."
    }
  ]
}
```

**Example** (`Approver role blank`)

```json
{
  "errors": [
    {
      "code": 19003123,
      "message": "The `role` field in `approvers` must not be blank."
    }
  ]
}
```

**Example** (`Different providers`)

```json
{
  "errors": [
    {
      "code": 19003096,
      "message": "The `signature.type` fields must be the same for all signers."
    }
  ]
}
```

**Example** (`Message is too long`)

```json
{
  "errors": [
    {
      "code": 19003108,
      "message": "The `message` field in `invites` must not exceed 5000 characters."
    }
  ]
}
```

**Example** (`Subject is too long`)

```json
{
  "errors": [
    {
      "code": 19003103,
      "message": "The `subject` field in `invites` must not exceed 1000 characters."
    }
  ]
}
```

**Example** (`Approver email blank`)

```json
{
  "errors": [
    {
      "code": 19003120,
      "message": "The `email` field in `approvers` must not be blank."
    }
  ]
}
```

**Example** (`Approver order blank`)

```json
{
  "errors": [
    {
      "code": 19003127,
      "message": "The `order` field in `approvers` must not be blank."
    }
  ]
}
```

**Example** (`Wrong approver email`)

```json
{
  "errors": [
    {
      "code": 19003121,
      "message": "The `email` field in `approvers` must be a valid email."
    }
  ]
}
```

**Example** (`Message is not string`)

```json
{
  "errors": [
    {
      "code": 19003105,
      "message": "The `message` field in `invites` must be a string."
    }
  ]
}
```

**Example** (`Subject is not string`)

```json
{
  "errors": [
    {
      "code": 19003100,
      "message": "The `subject` field in `invites` must be a string."
    }
  ]
}
```

**Example** (`Approver message empty`)

```json
{
  "errors": [
    {
      "code": 19003157,
      "message": "The `message` field in `approvers` must not be an empty string."
    }
  ]
}
```

**Example** (`Approver role too long`)

```json
{
  "errors": [
    {
      "code": 19003124,
      "message": "The `role` field in `approvers` must contain no more than 255 characters."
    }
  ]
}
```

**Example** (`Approver subject empty`)

```json
{
  "errors": [
    {
      "code": 19003152,
      "message": "The `subject` field in `approvers` must not be an empty string."
    }
  ]
}
```

**Example** (`approvers is not array`)

```json
{
  "errors": [
    {
      "code": 19003117,
      "message": "The `approvers` field must be an array."
    }
  ]
}
```

**Example** (`Incorrect delivery_type`)

```json
{
  "errors": [
    {
      "code": 19003083,
      "message": "The `delivery_type field` in `invites` is invalid, allowed values: email, link."
    }
  ]
}
```

**Example** (`Wrong approver language`)

```json
{
  "errors": [
    {
      "code": 19003142,
      "message": "The `language` field in `approvers` is invalid. Allowed values: en, fr, es."
    }
  ]
}
```

**Example** (`link_expiration too big`)

```json
{
  "errors": [
    {
      "code": 19004009,
      "message": "The `link_expiration` field in `invites` must be less than or equal to 45 minutes."
    }
  ]
}
```

**Example** (`signature.type is empty`)

```json
{
  "errors": [
    {
      "code": 19003094,
      "message": "The `signature.type` cannot be null."
    }
  ]
}
```

**Example** (`Approver role not string`)

```json
{
  "errors": [
    {
      "code": 19003122,
      "message": "The `role` field in `approvers` must be a string."
    }
  ]
}
```

**Example** (`Approver role not unique`)

```json
{
  "errors": [
    {
      "code": 19003134,
      "message": "In the `approvers` field, each role name must be unique."
    }
  ]
}
```

**Example** (`User not in organization`)

```json
{
  "errors": [
    {
      "code": 19004011,
      "message": "Organization is required to send an invite with advanced signing."
    }
  ]
}
```

**Example** (`delivery_type not string`)

```json
{
  "errors": [
    {
      "code": 19003082,
      "message": "The `delivery_type` field in `invites` must be a string."
    }
  ]
}
```

**Example** (`Approver email not string`)

```json
{
  "errors": [
    {
      "code": 19003119,
      "message": "The `email` field in `approvers` must be a string."
    }
  ]
}
```

**Example** (`Approver message too long`)

```json
{
  "errors": [
    {
      "code": 19003159,
      "message": "The `message` field in `approvers` must not exceed 5000 characters."
    }
  ]
}
```

**Example** (`Approver subject too long`)

```json
{
  "errors": [
    {
      "code": 19003154,
      "message": "The `subject` field in `approvers` must not exceed 1000 characters."
    }
  ]
}
```

**Example** (`No advanced sign provider`)

```json
{
  "errors": [
    {
      "code": 19004012,
      "message": "The sender organization\u2019s advanced sign provider is not valid."
    }
  ]
}
```

**Example** (`Redundant link_expiration`)

```json
{
  "errors": [
    {
      "code": 19003086,
      "message": "In `invites`, the `link_expiration` field must be used if the `delivery_type` field contains `email`."
    }
  ]
}
```

**Example** (`approvers items not array`)

```json
{
  "errors": [
    {
      "code": 19003118,
      "message": "The `approvers` field items must be arrays."
    }
  ]
}
```

**Example** (`Approver auth_method blank`)

```json
{
  "errors": [
    {
      "code": 19003130,
      "message": "The `auth_method` field in `approvers` must not be blank."
    }
  ]
}
```

**Example** (`Approver order not integer`)

```json
{
  "errors": [
    {
      "code": 19003126,
      "message": "The `order` field in `approvers` must be an integer."
    }
  ]
}
```

**Example** (`Wrong approver auth_method`)

```json
{
  "errors": [
    {
      "code": 19003131,
      "message": "The `auth_method` field in `approvers` must be one of the allowed values."
    }
  ]
}
```

**Example** (`link_expiration too little`)

```json
{
  "errors": [
    {
      "code": 19003085,
      "message": "The `link_expiration` field in `invites` must be greater than or equal to 15 minutes."
    }
  ]
}
```

**Example** (`Approver last_name too long`)

```json
{
  "errors": [
    {
      "code": 19003140,
      "message": "The `last_name` field in `approvers` must not exceed 64 characters."
    }
  ]
}
```

**Example** (`Approver message not string`)

```json
{
  "errors": [
    {
      "code": 19003156,
      "message": "The `message` field in `approvers` must be a string."
    }
  ]
}
```

**Example** (`Approver order out of range`)

```json
{
  "errors": [
    {
      "code": 19003128,
      "message": "The `order` field in `approvers` must be between 1 and 127."
    }
  ]
}
```

**Example** (`Approver subject not string`)

```json
{
  "errors": [
    {
      "code": 19003151,
      "message": "The `subject` field in `approvers` must be a string."
    }
  ]
}
```

**Example** (`Document has active invites`)

```json
{
  "errors": [
    {
      "code": 19002017,
      "message": "An invite already exists for this document."
    }
  ]
}
```

**Example** (`Signature type is incorrect`)

```json
{
  "errors": [
    {
      "code": 19003099,
      "message": "The `signature` field in `invites` must be an array."
    }
  ]
}
```

**Example** (`link_expiration not integer`)

```json
{
  "errors": [
    {
      "code": 19003084,
      "message": "The `link_expiration` field in `invites` must be an integer."
    }
  ]
}
```

**Example** (`signature.type is incorrect`)

```json
{
  "errors": [
    {
      "code": 19003098,
      "message": "The `signature.type` must be a string."
    }
  ]
}
```

**Example** (`Approver first_name too long`)

```json
{
  "errors": [
    {
      "code": 19003137,
      "message": "The `first_name` field in `approvers` must not exceed 64 characters."
    }
  ]
}
```

**Example** (`Approver language not string`)

```json
{
  "errors": [
    {
      "code": 19003141,
      "message": "The `language` field in `approvers` must be a string."
    }
  ]
}
```

**Example** (`Redundant session_expiration`)

```json
{
  "errors": [
    {
      "code": 19003093,
      "message": "In `invites`, the `session_expiration` field must be used if the `delivery_type` field contains `email`."
    }
  ]
}
```

**Example** (`Wrong approver delivery_type`)

```json
{
  "errors": [
    {
      "code": 19003144,
      "message": "The `delivery_type` field in `approvers` is invalid. Allowed values: email, link."
    }
  ]
}
```

**Example** (`Approver last_name not string`)

```json
{
  "errors": [
    {
      "code": 19003138,
      "message": "The `last_name` field in `approvers` must be a string."
    }
  ]
}
```

**Example** (`Approver message 4-byte chars`)

```json
{
  "errors": [
    {
      "code": 19003158,
      "message": "UTF-8 4-byte characters in the `message` field in `approvers` are not supported."
    }
  ]
}
```

**Example** (`Approver subject 4-byte chars`)

```json
{
  "errors": [
    {
      "code": 19003153,
      "message": "UTF-8 4-byte characters in the `subject` field in `approvers` are not supported."
    }
  ]
}
```

**Example** (`Multiple signers for one step`)

```json
{
  "errors": [
    {
      "code": 19003097,
      "message": "Must have only one signer per step if a signature field exists."
    }
  ]
}
```

**Example** (`Approver first_name not string`)

```json
{
  "errors": [
    {
      "code": 19003135,
      "message": "The `first_name` field in `approvers` must be a string."
    }
  ]
}
```

**Example** (`session_expiration not integer`)

```json
{
  "errors": [
    {
      "code": 19003091,
      "message": "The `session_expiration` field in `invites` must be an integer."
    }
  ]
}
```

**Example** (`Approver auth_method not string`)

```json
{
  "errors": [
    {
      "code": 19003129,
      "message": "The `auth_method` field in `approvers` must be a string."
    }
  ]
}
```

**Example** (`Approver last_name 4-byte chars`)

```json
{
  "errors": [
    {
      "code": 19003139,
      "message": "UTF-8 4-byte characters in the `last_name` field in `approvers` are not supported."
    }
  ]
}
```

**Example** (`SMS customization not available`)

```json
{
  "errors": [
    {
      "code": 19004013,
      "message": "Upgrade your subscription plan to customize SMS for authorization."
    }
  ]
}
```

**Example** (`session_expiration out of range`)

```json
{
  "errors": [
    {
      "code": 19003092,
      "message": "The `session_expiration` field in `invites` must be between 15 and 1440 minutes."
    }
  ]
}
```

**Example** (`signature.type is not supported`)

```json
{
  "errors": [
    {
      "code": 19003095,
      "message": "The `signature.type` attribute is not valid. Allowed values: \u201ceideasy\u201d, \u201cnom151."
    }
  ]
}
```

**Example** (`Approver first_name 4-byte chars`)

```json
{
  "errors": [
    {
      "code": 19003136,
      "message": "UTF-8 4-byte characters in the `first_name` field in `approvers` are not supported."
    }
  ]
}
```

**Example** (`Approver delivery_type not string`)

```json
{
  "errors": [
    {
      "code": 19003143,
      "message": "The `delivery_type` field in `approvers` must be a string."
    }
  ]
}
```

**Example** (`Email customization not available`)

```json
{
  "errors": [
    {
      "code": 19004014,
      "message": "Upgrade your subscription plan to customize the invite subject and message."
    }
  ]
}
```

**Example** (`Approver link_expiration too small`)

```json
{
  "errors": [
    {
      "code": 19003146,
      "message": "The `link_expiration` field in `approvers` must be greater than or equal to 15 minutes."
    }
  ]
}
```

**Example** (`Approver link_expiration not integer`)

```json
{
  "errors": [
    {
      "code": 19003145,
      "message": "The `link_expiration` field in `approvers` must be an integer."
    }
  ]
}
```

**Example** (`Approver order shared with another role`)

```json
{
  "errors": [
    {
      "code": 19003133,
      "message": "An approver's `order` must not be shared with other roles."
    }
  ]
}
```

**Example** (`Approver session_expiration not integer`)

```json
{
  "errors": [
    {
      "code": 19003148,
      "message": "The `session_expiration` field in `approvers` must be an integer."
    }
  ]
}
```

**Example** (`Message contains unsupported characters`)

```json
{
  "errors": [
    {
      "code": 19003107,
      "message": "UTF-8 4-byte characters in the `message` field are not supported."
    }
  ]
}
```

**Example** (`Subject contains unsupported characters`)

```json
{
  "errors": [
    {
      "code": 19003102,
      "message": "UTF-8 4-byte characters in the `subject` field are not supported."
    }
  ]
}
```

**Example** (`Approver order conflict within approvers`)

```json
{
  "errors": [
    {
      "code": 19003132,
      "message": "In the `approvers` field, each `order` must have only one approver."
    }
  ]
}
```

**Example** (`Approver role contains 4-byte characters`)

```json
{
  "errors": [
    {
      "code": 19003125,
      "message": "The `role` field in `approvers` must not contain 4-byte characters."
    }
  ]
}
```

**Example** (`Approver session_expiration out of range`)

```json
{
  "errors": [
    {
      "code": 19003149,
      "message": "The `session_expiration` field in `approvers` must be between 15 and 1440 minutes."
    }
  ]
}
```

**Example** (`Message is used with wrong delivery_type`)

```json
{
  "errors": [
    {
      "code": 19003109,
      "message": "The `message` field in `invites` must be used only if the `delivery_type` field is set to `email`."
    }
  ]
}
```

**Example** (`Subject is used with wrong delivery_type`)

```json
{
  "errors": [
    {
      "code": 19003104,
      "message": "The `subject` field in `invites` must be used only if the `delivery_type` field is set to `email`."
    }
  ]
}
```

**Example** (`Approver message with wrong delivery_type`)

```json
{
  "errors": [
    {
      "code": 19003160,
      "message": "The `message` field in `approvers` must be used only if the `delivery_type` field is set to `email`."
    }
  ]
}
```

**Example** (`Approver subject with wrong delivery_type`)

```json
{
  "errors": [
    {
      "code": 19003155,
      "message": "The `subject` field in `approvers` must be used only if the `delivery_type` field is set to `email`."
    }
  ]
}
```

**Example** (`Approver link_expiration with wrong delivery_type`)

```json
{
  "errors": [
    {
      "code": 19003147,
      "message": "The `link_expiration` field in `approvers` must be used only if the `delivery_type` field is set to `email`."
    }
  ]
}
```

**Example** (`Approver session_expiration with wrong delivery_type`)

```json
{
  "errors": [
    {
      "code": 19003150,
      "message": "The `session_expiration` field in `approvers` must be used only if the `delivery_type` field is set to `email`."
    }
  ]
}
```

### 403

User doesn't own the document.

**Example** (`User doesn't own the document`)

```json
{
  "errors": [
    {
      "code": 19001002,
      "message": "User is not document owner."
    }
  ]
}
```

### 404

Document not found.

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 19002001,
      "message": "Document not found"
    }
  ]
}
```

### 422

The document is a template.

**Example** (`Document is template`)

```json
{
  "errors": [
    {
      "code": 19001003,
      "message": "Cannot send invites for templates."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/documents/{document_id}/embedded-invites" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"invites": [{"role": "Signer 1", "email": "signer1@email.com", "order": 1, "language": "en", "last_name": "Doe", "signature": {"type": "eideasy"}, "first_name": "John", "auth_method": "email", "redirect_uri": "https://example.com", "authentication": {"type": "password", "password": "12345"}, "redirect_target": "blank", "close_redirect_uri": "https://example.com/", "decline_redirect_uri": "https://signnow.com", "required_preset_signature_name": "Signer signature"}, {"role": "Signer 2", "email": "signer2@email.com", "order": 2, "message": "Please review the invoice and sign it at your earliest convenience.", "subject": "Sign the invoice", "language": "en", "signature": {"type": "eideasy"}, "auth_method": "email", "delivery_type": "email", "authentication": {"type": "phone", "phone": "+1234567890", "method": "sms", "sms_message": "Enter the password {password} to unlock your document."}, "link_expiration": 15, "session_expiration": 15, "prefill_signature_name": "Recipient signature"}, {"role": "Signer 3", "email": "signer3@email.com", "order": 3, "language": "en", "signature": {"type": "eideasy"}, "auth_method": "email", "delivery_type": "link", "authentication": {"type": "phone", "phone": "+0987654321", "method": "phone_call"}, "force_new_signature": 0}], "approvers": [{"role": "Approver 1", "email": "approver1@email.com", "order": 4, "message": "Review and approve the contract at your earliest convenience.", "subject": "Please approve the contract", "language": "en", "last_name": "Roe", "first_name": "Alex", "auth_method": "email", "delivery_type": "email", "authentication": {"type": "password", "password": "12345"}, "link_expiration": 15, "session_expiration": 15}, {"role": "Approver 2", "email": "approver2@email.com", "order": 5, "language": "es", "last_name": "Lee", "first_name": "Jamie", "auth_method": "email", "delivery_type": "link", "authentication": {"type": "phone", "phone": "+1234567890", "method": "sms", "sms_message": "Enter the password {password} to unlock your document."}}], "from_name": "Jane Doe", "from_email": "sender@email.com", "name_formula": "Contract|signer_name|signed_date"}'
```

---

## DELETE /v2/documents/{document_id}/embedded-invites — Delete embedded invites

This endpoint allows API users to delete all embedded invites for a document.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | Document ID. |

## Responses

### 204

All embedded invites for the document were deleted. The response has no body.

### 403

Current user is not the document owner.

**Example** (`Not document owner`)

```json
{
  "errors": [
    {
      "code": 19001002,
      "message": "User is not document owner."
    }
  ]
}
```

### 404

Document not found.

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 19000001,
      "message": "Document not found"
    }
  ]
}
```

### 422

The document has no active embedded invites.

**Example** (`No pending embedded invites`)

```json
{
  "errors": [
    {
      "code": 19001006,
      "message": "Document has no pending or created embedded invites."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/documents/{document_id}/embedded-invites" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/documents/{document_id}/embedded-invites/{embedded_invite_id}/link — Generate embedded invite link

This endpoint allows API users to generate a link for a document embedded invite.

Retrieve the field invite `id` from the response [`POST /v2/documents/{{document_id}}/embedded-invites`](/docs/document-embedded-signing/operations/create-embedded-signing-invite).

In your request specify: 

`auth_method`: Pre-defined in [`POST /v2/documents/{{document_id}}/embedded-invites`](/docs/document-embedded-signing/operations/create-embedded-signing-invite) request method used to authenticate a recipient within the integrated application.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | Document ID. |
| `embedded_invite_id` | string | Yes | ID of the embedded invite. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "auth_method"
  ],
  "properties": {
    "auth_method": {
      "enum": [
        "password",
        "email",
        "mfa",
        "social",
        "biometric",
        "other",
        "none"
      ],
      "type": "string",
      "example": "none",
      "description": "Defines the method used to authenticate the recipient within the integrated application. Allowed values: `password`, `email`, `mfa`, `social`, `biometric`, `other`, `none`. Must match the value specified when creating the embedded invite."
    },
    "link_expiration": {
      "type": "integer",
      "maximum": 45,
      "minimum": 15,
      "description": "Specifies how many minutes the link will remain active. The allowed range is 15 to 45 minutes."
    },
    "session_expiration": {
      "type": "integer",
      "maximum": 1440,
      "minimum": 15,
      "description": "Specifies how many minutes the signing session will remain active.",
      "x-stoplight": {
        "id": "xrygn5ah56dle"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "auth_method": "none",
  "link_expiration": 15,
  "session_expiration": 15
}
```

## Responses

### 200

Success. Returns the generated embedded invite link for the document.

**Example** (`Successful response`)

```json
{
  "data": {
    "link": "https://example.com/document/01310ebfdffdef5257245abe85098bc116ad6fd7"
  }
}
```

### 400

* `session_expiration` is not an integer.
* `session_expiration` is out of range.


**Example** (`session_expiration not integer`)

```json
{
  "errors": [
    {
      "code": 19016006,
      "message": "The `session_expiration` field must be an integer."
    }
  ]
}
```

**Example** (`session_expiration out of range`)

```json
{
  "errors": [
    {
      "code": 19016007,
      "message": "The `session_expiration` field must be between 15 and 1440 minutes."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/documents/{document_id}/embedded-invites/{embedded_invite_id}/link" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"auth_method": "none", "link_expiration": 15, "session_expiration": 15}'
```

---

## POST /document/{doc_id_for_sms}/invite — Invite to sign via SMS

This endpoint allows users to send a document for signature via SMS. Recipients receive an SMS with a link to the document. It is the same `POST /document/{document_id}/invite` request as [Invite to sign](/docs/document-field-invite/operations/post-document-doc-id-invite), with signers identified by `phone_invite`. Different signers of one invite can receive it by SMS or by email.

Learn more about [SMS invites](/docs/sms-invite).

**Notes**

* SMS delivery is available for signers in the `to` array. Viewers and approvers receive the invite by email.
* Identify each signer by exactly one of `phone_invite`, `email`, or `email_group`.
* Use `sms_message` to customize the SMS text. `subject`, `message`, and `header` in `to` apply only to signers invited by email.
* `subject` and `message` in the request root are allowed when at least one signer receives the invite by email.
* `phone_invite` is `+` followed by digits, max `14` characters.
* SMS invites require the CFR and **Require login to sign** organization settings to be off, and cannot be used with `sso_login` authentication. See the errors in the `400` response.
* Custom `sms_message` and `authentication_sms_message` require an API free trial, an active API subscription, or a Site License.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `doc_id_for_sms` | string | Yes | ID of the document. The same `document_id` as in [Invite to sign](/docs/document-field-invite/operations/post-document-doc-id-invite). |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "from",
    "to"
  ],
  "properties": {
    "cc": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Email addresses of CC recipients. Each address must be unique."
    },
    "to": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "role"
        ],
        "properties": {
          "role": {
            "type": "string",
            "minLength": 1,
            "description": "Signer's role name, for example `Signer 1`. Required unless `role_id` is specified."
          },
          "email": {
            "type": "string",
            "minLength": 1,
            "description": "Signer's email address for an email invite. Use exactly one of `email`, `phone_invite`, or `email_group` per signer."
          },
          "order": {
            "type": "integer",
            "description": "Order of signing: `1` - the signer signs the document first, then the document is sent to `2`, `3`, and so on. Several signers can have the same order. Min: `1`, Max: `127`."
          },
          "phone": {
            "type": "string",
            "example": "+1XXXXXXXXXX",
            "description": "Phone number used to verify the signer. Required with `\"authentication_type\": \"phone\"`."
          },
          "header": {
            "type": "string"
          },
          "method": {
            "enum": [
              "sms",
              "phone_call"
            ],
            "type": "string",
            "default": "sms",
            "description": "Method of the `phone` authentication type. Required with `\"authentication_type\": \"phone\"`. Possible values: `sms`, `phone_call`."
          },
          "message": {
            "type": "string",
            "minLength": 1,
            "description": "Custom email message for the signer. Not allowed for signers invited by SMS. Requires a paid API plan, an API free trial, or a Site License."
          },
          "role_id": {
            "type": "string",
            "minLength": 1,
            "description": "ID of the signer's role. Can be used instead of `role`."
          },
          "subject": {
            "type": "string",
            "minLength": 1,
            "description": "Custom email subject for the signer. Not allowed for signers invited by SMS. Requires a paid API plan, an API free trial, or a Site License."
          },
          "language": {
            "enum": [
              "en",
              "es",
              "fr"
            ],
            "type": "string",
            "description": "Language of the signing session and notification emails for the signer. Possible values: `en`, `es`, `fr`. If not set, the language of your SignNow account is used. If emails are branded, you can set up [your own](/docs/branding-email-resources#language-branding) email texts in different languages."
          },
          "password": {
            "type": "string",
            "description": "Password used to verify the signer. Required with `\"authentication_type\": \"password\"`."
          },
          "reassign": {
            "type": "string",
            "default": "0",
            "description": "Specifies whether the signer can forward the invite to another email address. `0` - signer cannot forward the invite, `1` - signer can forward the invite. Cannot be used with `email_group`."
          },
          "reminder": {
            "type": "object",
            "properties": {
              "remind_after": {
                "type": "integer",
                "description": "Days after the invite is sent before a reminder is delivered. Must be less than `expiration_days`."
              },
              "remind_before": {
                "type": "integer",
                "description": "Days before expiration when a reminder is delivered. Must be less than `expiration_days`."
              },
              "remind_repeat": {
                "type": "integer",
                "description": "Days between repeated reminders."
              }
            },
            "description": "Reminder settings for the signer."
          },
          "signature": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Type of QES signature. Possible values: `eideasy`,` eideasy-pdf`, and `nom151`. All signers in the invite must have the same signature type."
              }
            },
            "description": "This object is used to request QES signatures from signers. To use it, a user must be a member of an organization with QES settings enabled. If QES is used, it must be used for all signers in the invite.<br>For more information, see [QES user guide](/docs/qualified-electronic-signature)."
          },
          "email_group": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "A name of the email group. Must be defined in the `email_groups` array."
              }
            },
            "description": "A group of users that should receive the invite. When one of the users signs the document, the document is completed. Must be used with the `email_groups` array. Use exactly one of `email`, `phone_invite`, or `email_group` per signer. Cannot be used with `reassign`."
          },
          "sms_message": {
            "type": "string",
            "example": "Hi, here is a document for signature from {sender_email}",
            "description": "Custom text of the SMS invite, max `230` characters. Only GSM-7 characters are allowed. Supports the `{sender_email}` placeholder, which is replaced with the sender's email address. The link to the document and an opt-out notice are added at the end of the SMS automatically. Without this parameter, the signer receives the default message: \"{sender_email} has sent you a document. Follow the link to view the document\". Used only for signers invited by SMS. Requires an API free trial, an active API subscription, or a Site License."
          },
          "phone_invite": {
            "type": "string",
            "example": "+1XXXXXXXXXX",
            "description": "Signer's phone number for an SMS invite: `+` followed by digits, max `14` characters. Use exactly one of `email`, `phone_invite`, or `email_group` per signer. See [Invite to sign via SMS](/docs/document-field-invite/operations/post-document-document-id-for-sms-invite-send-invite-via-sms)."
          },
          "redirect_uri": {
            "type": "string",
            "description": "When all the requested fields are completed and signed, the signer is redirected to this URI."
          },
          "expiration_days": {
            "type": "integer",
            "default": 30,
            "description": "In how many days the invite expires. Min: `1`, Max: `180`. Default: `30`."
          },
          "payment_request": {
            "type": "object",
            "description": "Payment request settings. See [Send document invite with payment request](/docs/request-payments/operations/post-document-document-id-invite)."
          },
          "redirect_target": {
            "enum": [
              "blank",
              "self"
            ],
            "type": "string",
            "default": "blank",
            "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab."
          },
          "close_redirect_uri": {
            "type": "string",
            "description": "The link that opens when a signer clicks\u00a0**Save Progress and Finish Later**\u00a0during a signing session or\u00a0**Close**\u00a0in view mode. "
          },
          "authentication_type": {
            "type": "string",
            "description": "Type of signer's identity verification. Possible values: `password`, `phone`, `sn_login`, `sso_login`. `sso_login` cannot be used for signers invited by SMS."
          },
          "force_new_signature": {
            "type": "number",
            "description": "Whether or not the signer can use their saved signature. Possible values: 0 - signer can use a saved signature, 1 - signer has to add a new signature."
          },
          "decline_by_signature": {
            "type": "string",
            "default": "0",
            "description": "Specifies whether the signer can decline the invite by clicking a signature field. `0` - signer cannot decline, `1` - signer can decline."
          },
          "decline_redirect_uri": {
            "type": "string",
            "description": "The link that opens after the signing session has been declined by the signer."
          },
          "is_short_link_invite": {
            "type": "boolean"
          },
          "signing_instructions": {
            "type": "string"
          },
          "prefill_signature_name": {
            "type": "string",
            "example": "Jane Doe",
            "maxLength": 255,
            "description": "The text displayed in the Signature field. The signer can edit this value."
          },
          "id_verification_required": {
            "type": "string"
          },
          "authentication_sms_message": {
            "type": "string",
            "example": "Enter the password {password} to unlock your document.",
            "description": "Custom SMS message with the verification code, max `140` characters. Must contain the `{password}` placeholder. Used only with `\"method\": \"sms\"`. Without this parameter, the signer receives the default SMS: \"SignNow document invite unlock code: 123456\". Requires an API free trial, an active API subscription, or a Site License."
          },
          "is_close_redirect_canceled": {
            "type": "boolean",
            "default": false,
            "description": "Specifies whether the save progress redirect setting is canceled for the organization.`true` \u2013 the redirect is canceled;`false` \u2013 the redirect remains active."
          },
          "electronic_consent_required": {
            "type": "boolean"
          },
          "is_finish_redirect_canceled": {
            "type": "boolean",
            "default": false,
            "description": "Specifies whether the completion redirect setting is canceled for the organization.`true` \u2013 the redirect is canceled;`false` \u2013 the redirect remains active."
          },
          "is_decline_redirect_canceled": {
            "type": "boolean",
            "default": false,
            "description": "Specifies whether the decline redirect setting is canceled for the organization.`true` \u2013 the redirect is canceled;`false` \u2013 the redirect remains active."
          },
          "required_preset_signature_name": {
            "type": "string",
            "example": "Jane Doe",
            "description": "The text displayed in the Signature field. The signer cannot edit this value. Cannot be used simultaneously with `prefill_signature_name` or `force_new_signature` for the same role."
          }
        }
      },
      "minItems": 1,
      "description": "Signers and their invite settings. Identify each signer by exactly one of `email`, `phone_invite`, or `email_group`.",
      "uniqueItems": true
    },
    "from": {
      "type": "string",
      "minLength": 1,
      "description": "Sender's email address: you can use only the email address associated with your SignNow account (login email) as `from` address."
    },
    "notify": {
      "type": "object",
      "properties": {
        "cc": {
          "type": "boolean"
        },
        "owner": {
          "type": "boolean"
        }
      }
    },
    "cc_step": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Name of the step."
          },
          "step": {
            "type": "integer",
            "description": "The order of sending, starts from `1`."
          },
          "email": {
            "type": "string",
            "minLength": 1,
            "description": "CC recipient's email address."
          }
        }
      },
      "minItems": 1,
      "description": "Order and settings for sending CC emails.",
      "uniqueItems": true
    },
    "message": {
      "type": "string",
      "minLength": 1,
      "description": "Email message for all signers invited by email. Not allowed when all signers are invited by SMS. Requires a paid API plan, an API free trial, or a Site License."
    },
    "subject": {
      "type": "string",
      "minLength": 1,
      "description": "Email subject for all signers invited by email. Not allowed when all signers are invited by SMS. Requires a paid API plan, an API free trial, or a Site License."
    },
    "viewers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "minLength": 1,
            "description": "Viewer's role name."
          },
          "email": {
            "type": "string",
            "minLength": 1,
            "description": "Viewer's email address."
          },
          "order": {
            "type": "integer",
            "description": "The order of sending, starts from `1`. Min: `1`, Max: `127`."
          },
          "header": {
            "type": "string"
          },
          "message": {
            "type": "string",
            "description": "Custom email message for the viewer. Requires a paid API plan, an API free trial, or a Site License."
          },
          "subject": {
            "type": "string",
            "description": "Custom email subject for the viewer. Requires a paid API plan, an API free trial, or a Site License."
          },
          "email_group": {
            "type": "object"
          },
          "redirect_target": {
            "enum": [
              "blank",
              "self"
            ],
            "type": "string",
            "description": "Determines whether to open the redirect link in a new tab or in the same tab. Possible values: `blank` - new tab, `self` - same tab."
          },
          "close_redirect_uri": {
            "type": "string",
            "example": "https://unique-solutions.com",
            "description": "The link that opens after the viewer clicks **Close**.",
            "x-stoplight": {
              "id": "lflmo6swpygw1"
            }
          },
          "is_short_link_invite": {
            "type": "boolean"
          }
        }
      },
      "minItems": 1,
      "description": "Recipients with read-only access to the document. Viewers receive the invite by email.",
      "uniqueItems": true
    },
    "settings": {
      "type": "object",
      "properties": {
        "pki_enabled": {
          "type": "boolean"
        }
      }
    },
    "approvers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "example": "Approver",
            "description": "Approver's role name."
          },
          "email": {
            "type": "string",
            "example": "approver@email.com",
            "description": "Approver's email address."
          },
          "order": {
            "type": "integer",
            "description": "The order of receiving the invite. Min: `1`, Max: `127`."
          },
          "header": {
            "type": "string"
          },
          "message": {
            "type": "string",
            "example": "Review and approve the invoice",
            "description": "Custom email message for the approver. Requires a paid API plan, an API free trial, or a Site License."
          },
          "subject": {
            "type": "string",
            "example": "Approve the invoice",
            "description": "Custom email subject for the approver. Requires a paid API plan, an API free trial, or a Site License."
          },
          "reminder": {
            "type": "object",
            "properties": {
              "remind_after": {
                "type": "integer",
                "description": "Days after the invite is sent before a reminder is delivered. Must be less than `expiration_days`."
              },
              "remind_before": {
                "type": "integer",
                "description": "Days before expiration when a reminder is delivered. Must be less than `expiration_days`."
              },
              "remind_repeat": {
                "type": "integer",
                "description": "Days between repeated reminders."
              }
            },
            "description": "Reminder settings for the approver."
          },
          "redirect_uri": {
            "type": "string",
            "example": "https://www.signnow.com/",
            "description": "The URL that opens after the approver approves the document."
          },
          "authentication": {
            "type": "object",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "type": "string",
                "description": "Type of verification. Possible values: `password`, `phone`, `sn_login`, `sso_login`."
              },
              "phone": {
                "type": "string",
                "description": "Phone number used to verify the approver. Required with `\"type\": \"phone\"`."
              },
              "method": {
                "enum": [
                  "sms",
                  "phone_call"
                ],
                "type": "string",
                "description": "Method of the `phone` verification type. Required with `\"type\": \"phone\"`. Possible values: `sms`, `phone_call`."
              },
              "password": {
                "type": "string",
                "description": "Password used to verify the approver. Required with `\"type\": \"password\"`."
              },
              "sms_message": {
                "type": "string",
                "description": "Custom SMS message with the verification code, max `140` characters. Used with `\"method\": \"sms\"`."
              }
            },
            "description": "Approver's identity verification settings."
          },
          "expiration_days": {
            "type": "integer",
            "description": "Number of days before the invite expires. Min: `1`, Max: `180`."
          },
          "redirect_target": {
            "enum": [
              "blank",
              "self"
            ],
            "type": "string",
            "example": "blank",
            "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab."
          },
          "is_short_link_invite": {
            "type": "boolean"
          }
        }
      },
      "description": "Recipients who review and approve the document. Approvers receive the invite by email."
    },
    "cc_message": {
      "type": "string",
      "minLength": 1,
      "description": "CC email message for all CC recipients."
    },
    "cc_subject": {
      "type": "string",
      "minLength": 1,
      "description": "CC email subject for all CC recipients."
    },
    "compliance": {
      "type": "object"
    },
    "email_groups": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "An ID of an email group. A unique 40-character long ID that you need to create."
          },
          "name": {
            "type": "string",
            "description": "A name of the group. Use it in the `to.email_group` array."
          },
          "emails": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string",
                  "description": "An email address of the group member."
                }
              }
            },
            "description": "Email addresses that should receive an invite. Must be unique within the group."
          }
        }
      },
      "description": "A group of users that should receive the invite."
    },
    "redirect_uri": {
      "type": "string"
    },
    "mail_provider": {
      "type": "string"
    },
    "client_timestamp": {
      "type": "integer"
    },
    "general_reminder": {
      "type": "object",
      "properties": {
        "remind_after": {
          "type": "integer",
          "description": "Days after invite is sent before a reminder is delivered. Must be less than `general_expiration_days`."
        },
        "remind_before": {
          "type": "integer",
          "description": "Days before expiration when a reminder is delivered. Must be less than `general_expiration_days`."
        },
        "remind_repeat": {
          "type": "integer",
          "description": "Days between repeated reminders."
        }
      },
      "x-nullable": true,
      "description": "Default `reminder` applied to all recipients in the invite."
    },
    "general_expiration_days": {
      "type": "integer",
      "example": 30,
      "maximum": 180,
      "minimum": 1,
      "x-nullable": true,
      "description": "Default `expiration_days` applied to all recipients in the invite. Min: `1`, Max: `180`. Default: `30`."
    }
  },
  "x-examples": {
    "example-1": {
      "to": [
        {
          "role": "Signer 1",
          "order": 1,
          "role_id": "482cbd33dd6921f176ba9ae8c28742e52862c47d",
          "language": "en",
          "reassign": "0",
          "reminder": {
            "remind_after": 3,
            "remind_repeat": 7
          },
          "sms_message": "Hi, here is a document for signature from {sender_email}",
          "phone_invite": "+1XXXXXXXXXX",
          "redirect_uri": "https://example.com",
          "expiration_days": 30,
          "redirect_target": "blank",
          "decline_by_signature": "1"
        }
      ],
      "from": "sender@email.com"
    }
  }
}
```

**Example** (`SMS invite`)

```json
{
  "to": [
    {
      "role": "Signer 1",
      "order": 1,
      "role_id": "482cbd33dd6921f176ba9ae8c28742e52862c47d",
      "language": "en",
      "reassign": "0",
      "reminder": {
        "remind_after": 3,
        "remind_repeat": 7
      },
      "sms_message": "Hi, here is a document for signature from {sender_email}",
      "phone_invite": "+1XXXXXXXXXX",
      "redirect_uri": "https://example.com",
      "expiration_days": 30,
      "redirect_target": "blank",
      "decline_by_signature": "1"
    }
  ],
  "from": "sender@email.com"
}
```

**Example** (`SMS invite with 2FA`)

```json
{
  "to": [
    {
      "role": "Signer 1",
      "order": 1,
      "phone": "+1XXXXXXXXXX",
      "method": "sms",
      "role_id": "482cbd33dd6921f176ba9ae8c28742e52862c47d",
      "sms_message": "Hi, here is a document for signature from {sender_email}",
      "phone_invite": "+1XXXXXXXXXX",
      "authentication_type": "phone",
      "authentication_sms_message": "Enter the password {password} to unlock the document."
    },
    {
      "role": "Signer 2",
      "order": 2,
      "role_id": "4940e7860fc09fbe53ec3009b11a3a4f057807ed",
      "password": "123456",
      "phone_invite": "+1XXXXXXXXXX",
      "authentication_type": "password"
    }
  ],
  "from": "sender@email.com"
}
```

**Example** (`SMS and email recipients`)

```json
{
  "cc": [
    "cc_recipient@email.com"
  ],
  "to": [
    {
      "role": "Signer 1",
      "order": 1,
      "role_id": "482cbd33dd6921f176ba9ae8c28742e52862c47d",
      "sms_message": "Hi, here is a document for signature from {sender_email}",
      "phone_invite": "+1XXXXXXXXXX",
      "expiration_days": 30
    },
    {
      "role": "Signer 2",
      "email": "signer2@email.com",
      "order": 2,
      "message": "Hi, this is an invite to sign a document.",
      "role_id": "4940e7860fc09fbe53ec3009b11a3a4f057807ed",
      "subject": "You've got a new signature request",
      "expiration_days": 30
    }
  ],
  "from": "sender@email.com",
  "message": "Please review and sign the document.",
  "subject": "sender@email.com needs your signature",
  "viewers": [
    {
      "role": "Viewer 1",
      "email": "viewer@email.com",
      "order": 3,
      "message": "You've got a new document to review.",
      "subject": "New document"
    }
  ],
  "cc_message": "A document was sent for signature.",
  "cc_subject": "Document sent for signature"
}
```

## Responses

### 200

Returns success if the request is correct.

**Example** (`Successful response`)

```json
{
  "status": "success"
}
```

### 400

* Incorrect phone number.

All standard responses for invite:

* Incorrect access token, "code": 1537. Message: "invalid_token".
* Incorrect "to" email, "code": 65536. Message: "To must be a valid email.".
* Incorrect "from" email, "code": 65536. Message: "From must be a valid email.".
* Wrong role, "code": 65536. Message: "Role {{role_id_1}} does not exist on document".
* The document doesn't contain fields, "code": 65594. Message: "Cannot send a field invite: This document does not contain fields.".
* The same field invite is sent twice, "code": 65629. Message: "Could not create duplicate field invite".
* Incorrect document, "code": 65582. Message: "Document not found".
* Authentication type is missing, "code": 65536. Message: "Authentication type must not be empty".
* The password or phone parameter for the authentication type is missing, "code": 65536. Message: "Both password and phone must not be empty".

* `sms_message` value is too long, code 65536. Message: "SMS message should not exceed 230 characters".
* `sms_message` value is blank, code 65536. Message: "SMS message must not be empty".
* `sms_message` contains characters outside GSM-7, code 65536. Message: "Only GSM-7 characters are allowed for `sms_message`.".

* `phone_invite` value is not valid, code 104833. Message: "The phone_invite value is invalid.".
* `phone_invite` value is blank, code 104833. Message: "The phone_invite must not be empty string.".
* `phone_invite` value is longer than 14 characters, code 104833. Message: "The phone_invite value is too long. It should have 14 characters.".
* Phone number doesn't exist, code 39297. Message: "The phone_invite value holds a non-existent phone number.".
* Incorrect data in 'phone_invite', code 104833. Message: "The phone_invite value should be of type string.".
* Must be email or phone number, not both at the same time, code 65582. Message: "Either `phone_invite`, `email`, or `email_group` in `to` is required. Only one parameter at a time is allowed.".
* The organization setting ‘Require Login to Sign’ is on, code 46. Message: "The phone_invite cannot be used with require_login_for_signing setting enabled.".
* The organization CFR setting is enabled, code 46. Message: "phone_invite cannot be used with cfr setting enabled.".
* The signer's `authentication_type` is `sso_login`, code 19099002. Message: "Authentication type sso_login is incompatible with SMS delivery type.".

* `subject` or `message` is set for a signer invited by SMS, code 65582. Message: "The phone_invite field is not allowed with: message, subject".
* `electronic_consent_required` is `true` for a signer invited by SMS, code 65582. Message: "Electronic consent cannot be required for invite via sms".
* Root `subject` or `message` is set and all signers are invited by SMS, code 65536. Message: "The phone_invite field is not allowed with subject in root when all signers via sms." or "The phone_invite field is not allowed with message in root when all signers via sms.".
* A viewer is identified by `phone_invite` instead of `email`, code 65536. Message: "Either `email` or `email_group` in `viewers` is required. Only one parameter at a time is allowed.".
* An approver is identified by `phone_invite` instead of `email`, code 65585. Message: "The `email` value should not be blank.".

* The custom SMS limit of a trial subscription is reached, code 46. Message: "Custom SMS limit exceeded for trial subscription.".
* Phone verification is used on a subscription without it, code 46. Message: "Phone authentication can't be used with the current subscription.".

**Example** (`SMS for a viewer`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Either `email` or `email_group` in `viewers` is required. Only one parameter at a time is allowed."
    }
  ]
}
```

**Example** (`CFR setting enabled`)

```json
{
  "errors": [
    {
      "code": 46,
      "message": "phone_invite cannot be used with cfr setting enabled."
    }
  ]
}
```

**Example** (`SMS for an approver`)

```json
{
  "errors": [
    {
      "code": 65585,
      "message": "The `email` value should not be blank."
    }
  ]
}
```

**Example** (`Subject or message for an SMS signer`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The phone_invite field is not allowed with: message, subject"
    }
  ]
}
```

**Example** (`The selected phone number is incorrect`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "phone_invite is not valid phone for the sms sent."
    }
  ]
}
```

**Example** (`Could not create duplicate field invite`)

```json
{
  "errors": [
    {
      "code": 65629,
      "message": "Could not create duplicate field invite."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/document/{doc_id_for_sms}/invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"to": [{"role": "Signer 1", "order": 1, "role_id": "482cbd33dd6921f176ba9ae8c28742e52862c47d", "language": "en", "reassign": "0", "reminder": {"remind_after": 3, "remind_repeat": 7}, "sms_message": "Hi, here is a document for signature from {sender_email}", "phone_invite": "+1XXXXXXXXXX", "redirect_uri": "https://example.com", "expiration_days": 30, "redirect_target": "blank", "decline_by_signature": "1"}], "from": "sender@email.com"}'
```

---

## PUT /document/{document_id}/fieldinvitecancel — Cancel invite

This endpoint allows API users to cancel an invite to sign a document.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the requested document. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "reason"
  ],
  "properties": {
    "reason": {
      "type": "string",
      "minLength": 1,
      "description": "The reason for cancellation."
    }
  },
  "x-examples": {
    "example-1": {
      "reason": "Cancellation reason"
    }
  },
  "description": ""
}
```

**Example** (`Request body`)

```json
{
  "reason": "Cancellation reason"
}
```

## Responses

### 200

Successful response. The invite is canceled.

**Example** (`Successful response`)

```json
{
  "status": "success"
}
```

### 400

* Wrong, expired, or missing token.
* The document doesn't exist.
* `reason` is an empty string.
* The document has no active invite to cancel.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Empty reason`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The reason value must not be empty string."
    }
  ]
}
```

**Example** (`Document completed`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Forbidden to cancel completed document."
    }
  ]
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/document/{document_id}/fieldinvitecancel" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"reason": "Cancellation reason"}'
```

---

## POST /document/{document_id}/invite — Invite to sign

This endpoint allows API users to create and send a field invite to sign a document with fields. Each signer receives the invite by email, by SMS, or as a member of an email group.

* For an invite with fields sent by SMS, see [Invite to sign via SMS](/docs/document-field-invite/operations/post-document-document-id-for-sms-invite-send-invite-via-sms).
* For an invite without fields, see [Create freeform invite](/docs/doc-freeform-invite/operations/post-freeform-document-id-invite).

Learn more about an [Invite to sign a document](/docs/invite-to-sign#send-a-document-for-signature).

<details>

**<summary>Use additional attributes to customize signing experience</summary>**

Parameter | Description | Example
---------|----------|---------
 `reassign` | A recipient can forward the invite by clicking **More Actions** > **Forward Invite** and entering an email address. | <img src="/reference-assets/images/Screenshots with attribute explanations/Field invite/reassign.png" alt="Forward invite"> 
 `force_new_signature` | A recipient must create a new signature for each signature field. | <img src="/reference-assets/images/Screenshots with attribute explanations/Field invite/Force_new_signature.png" alt="Force new signature">
 `prefill_signature_name` | A string with a signature name that appears when a signer clicks a signature field. The signer can edit the signature.|
 `required_preset_signature_name` | A string with a signature name that appears when a signer clicks a signature field. The signer cannot edit the signature. |
 `decline_by_signature` | When a signer clicks a signature field, they see two options: sign the fields and decline the document. | <img src="/reference-assets/images/Screenshots with attribute explanations/Field invite/Decline_by_signature.png" alt="Decline by signature">
 `authentication_type` | Requires a recipient to enter a password or a code before viewing the document. For more information, see [Two-factor authentication](/docs/two-factor-authentication). | <img src="/reference-assets/images/Screenshots with attribute explanations/Field invite/Document_authentication.png" alt="Password_authentication">
</details>

<br>

> [!NOTE]
> * Identify each signer in `to` by exactly one of `email`, `phone_invite`, or `email_group`.
> * Viewers and approvers receive the invite by email.
> * Each role can be assigned to only one recipient.
> * A recipient cannot be a viewer and a signer in the same step, and each step can have only one approver.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "from",
    "to"
  ],
  "properties": {
    "cc": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Email addresses of CC recipients. Each address must be unique."
    },
    "to": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "role"
        ],
        "properties": {
          "role": {
            "type": "string",
            "minLength": 1,
            "description": "Signer's role name, for example `Signer 1`. Required unless `role_id` is specified."
          },
          "email": {
            "type": "string",
            "minLength": 1,
            "description": "Signer's email address for an email invite. Use exactly one of `email`, `phone_invite`, or `email_group` per signer."
          },
          "order": {
            "type": "integer",
            "description": "Order of signing: `1` - the signer signs the document first, then the document is sent to `2`, `3`, and so on. Several signers can have the same order. Min: `1`, Max: `127`."
          },
          "phone": {
            "type": "string",
            "example": "+1XXXXXXXXXX",
            "description": "Phone number used to verify the signer. Required with `\"authentication_type\": \"phone\"`."
          },
          "header": {
            "type": "string"
          },
          "method": {
            "enum": [
              "sms",
              "phone_call"
            ],
            "type": "string",
            "default": "sms",
            "description": "Method of the `phone` authentication type. Required with `\"authentication_type\": \"phone\"`. Possible values: `sms`, `phone_call`."
          },
          "message": {
            "type": "string",
            "minLength": 1,
            "description": "Custom email message for the signer. Not allowed for signers invited by SMS. Requires a paid API plan, an API free trial, or a Site License."
          },
          "role_id": {
            "type": "string",
            "minLength": 1,
            "description": "ID of the signer's role. Can be used instead of `role`."
          },
          "subject": {
            "type": "string",
            "minLength": 1,
            "description": "Custom email subject for the signer. Not allowed for signers invited by SMS. Requires a paid API plan, an API free trial, or a Site License."
          },
          "language": {
            "enum": [
              "en",
              "es",
              "fr"
            ],
            "type": "string",
            "description": "Language of the signing session and notification emails for the signer. Possible values: `en`, `es`, `fr`. If not set, the language of your SignNow account is used. If emails are branded, you can set up [your own](/docs/branding-email-resources#language-branding) email texts in different languages."
          },
          "password": {
            "type": "string",
            "description": "Password used to verify the signer. Required with `\"authentication_type\": \"password\"`."
          },
          "reassign": {
            "type": "string",
            "default": "0",
            "description": "Specifies whether the signer can forward the invite to another email address. `0` - signer cannot forward the invite, `1` - signer can forward the invite. Cannot be used with `email_group`."
          },
          "reminder": {
            "type": "object",
            "properties": {
              "remind_after": {
                "type": "integer",
                "description": "Days after the invite is sent before a reminder is delivered. Must be less than `expiration_days`."
              },
              "remind_before": {
                "type": "integer",
                "description": "Days before expiration when a reminder is delivered. Must be less than `expiration_days`."
              },
              "remind_repeat": {
                "type": "integer",
                "description": "Days between repeated reminders."
              }
            },
            "description": "Reminder settings for the signer."
          },
          "signature": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Type of QES signature. Possible values: `eideasy`,` eideasy-pdf`, and `nom151`. All signers in the invite must have the same signature type."
              }
            },
            "description": "This object is used to request QES signatures from signers. To use it, a user must be a member of an organization with QES settings enabled. If QES is used, it must be used for all signers in the invite.<br>For more information, see [QES user guide](/docs/qualified-electronic-signature)."
          },
          "email_group": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "A name of the email group. Must be defined in the `email_groups` array."
              }
            },
            "description": "A group of users that should receive the invite. When one of the users signs the document, the document is completed. Must be used with the `email_groups` array. Use exactly one of `email`, `phone_invite`, or `email_group` per signer. Cannot be used with `reassign`."
          },
          "sms_message": {
            "type": "string",
            "example": "Hi, here is a document for signature from {sender_email}",
            "description": "Custom text of the SMS invite, max `230` characters. Only GSM-7 characters are allowed. Supports the `{sender_email}` placeholder, which is replaced with the sender's email address. The link to the document and an opt-out notice are added at the end of the SMS automatically. Without this parameter, the signer receives the default message: \"{sender_email} has sent you a document. Follow the link to view the document\". Used only for signers invited by SMS. Requires an API free trial, an active API subscription, or a Site License."
          },
          "phone_invite": {
            "type": "string",
            "example": "+1XXXXXXXXXX",
            "description": "Signer's phone number for an SMS invite: `+` followed by digits, max `14` characters. Use exactly one of `email`, `phone_invite`, or `email_group` per signer. See [Invite to sign via SMS](/docs/document-field-invite/operations/post-document-document-id-for-sms-invite-send-invite-via-sms)."
          },
          "redirect_uri": {
            "type": "string",
            "description": "When all the requested fields are completed and signed, the signer is redirected to this URI."
          },
          "expiration_days": {
            "type": "integer",
            "default": 30,
            "description": "In how many days the invite expires. Min: `1`, Max: `180`. Default: `30`."
          },
          "payment_request": {
            "type": "object",
            "description": "Payment request settings. See [Send document invite with payment request](/docs/request-payments/operations/post-document-document-id-invite)."
          },
          "redirect_target": {
            "enum": [
              "blank",
              "self"
            ],
            "type": "string",
            "default": "blank",
            "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab."
          },
          "close_redirect_uri": {
            "type": "string",
            "description": "The link that opens when a signer clicks\u00a0**Save Progress and Finish Later**\u00a0during a signing session or\u00a0**Close**\u00a0in view mode. "
          },
          "authentication_type": {
            "type": "string",
            "description": "Type of signer's identity verification. Possible values: `password`, `phone`, `sn_login`, `sso_login`. `sso_login` cannot be used for signers invited by SMS. `phone` is available on paid plans; on a free trial or without a paid subscription, use `password`."
          },
          "force_new_signature": {
            "type": "number",
            "description": "Whether or not the signer can use their saved signature. Possible values: 0 - signer can use a saved signature, 1 - signer has to add a new signature."
          },
          "decline_by_signature": {
            "type": "string",
            "default": "0",
            "description": "Specifies whether the signer can decline the invite by clicking a signature field. `0` - signer cannot decline, `1` - signer can decline."
          },
          "decline_redirect_uri": {
            "type": "string",
            "description": "The link that opens after the signing session has been declined by the signer."
          },
          "is_short_link_invite": {
            "type": "boolean"
          },
          "signing_instructions": {
            "type": "string",
            "description": "Instructions shown to the signer during the signing session."
          },
          "prefill_signature_name": {
            "type": "string",
            "example": "Jane Doe",
            "maxLength": 255,
            "description": "The text displayed in the Signature field. The signer can edit this value."
          },
          "id_verification_required": {
            "type": "string"
          },
          "authentication_sms_message": {
            "type": "string",
            "example": "Enter the password {password} to unlock your document.",
            "description": "Custom SMS message with the verification code, max `140` characters. Must contain the `{password}` placeholder. Used only with `\"method\": \"sms\"`. Without this parameter, the signer receives the default SMS: \"SignNow document invite unlock code: 123456\". Requires an API free trial, an active API subscription, or a Site License."
          },
          "is_close_redirect_canceled": {
            "type": "boolean",
            "default": false,
            "description": "Specifies whether the save progress redirect setting is canceled for the organization.`true` \u2013 the redirect is canceled;`false` \u2013 the redirect remains active."
          },
          "electronic_consent_required": {
            "type": "boolean",
            "description": "`true` if the signer must accept the electronic consent before signing."
          },
          "is_finish_redirect_canceled": {
            "type": "boolean",
            "default": false,
            "description": "Specifies whether the completion redirect setting is canceled for the organization.`true` \u2013 the redirect is canceled;`false` \u2013 the redirect remains active."
          },
          "is_decline_redirect_canceled": {
            "type": "boolean",
            "default": false,
            "description": "Specifies whether the decline redirect setting is canceled for the organization.`true` \u2013 the redirect is canceled;`false` \u2013 the redirect remains active."
          },
          "required_preset_signature_name": {
            "type": "string",
            "example": "Jane Doe",
            "description": "The text displayed in the Signature field. The signer cannot edit this value. Cannot be used simultaneously with `prefill_signature_name` or `force_new_signature` for the same role."
          }
        }
      },
      "minItems": 1,
      "description": "Signers and their invite settings. Identify each signer by exactly one of `email`, `phone_invite`, or `email_group`.",
      "uniqueItems": true
    },
    "from": {
      "type": "string",
      "minLength": 1,
      "description": "Sender's email address: you can use only the email address associated with your SignNow account (login email) as `from` address."
    },
    "notify": {
      "type": "object",
      "properties": {
        "cc": {
          "type": "boolean",
          "description": "`true` to notify CC recipients."
        },
        "owner": {
          "type": "boolean",
          "description": "`true` to notify the document owner."
        }
      },
      "description": "Notification settings of the invite."
    },
    "cc_step": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Name of the step."
          },
          "step": {
            "type": "integer",
            "description": "The order of sending, starts from `1`."
          },
          "email": {
            "type": "string",
            "minLength": 1,
            "description": "CC recipient's email address."
          }
        }
      },
      "minItems": 1,
      "description": "Order and settings for sending CC emails.",
      "uniqueItems": true
    },
    "message": {
      "type": "string",
      "minLength": 1,
      "description": "Email message for all signers invited by email. Not allowed when all signers are invited by SMS. Requires a paid API plan, an API free trial, or a Site License."
    },
    "subject": {
      "type": "string",
      "minLength": 1,
      "description": "Email subject for all signers invited by email. Not allowed when all signers are invited by SMS. Requires a paid API plan, an API free trial, or a Site License."
    },
    "viewers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "minLength": 1,
            "description": "Viewer's role name."
          },
          "email": {
            "type": "string",
            "minLength": 1,
            "description": "Viewer's email address."
          },
          "order": {
            "type": "integer",
            "description": "The order of sending, starts from `1`. Min: `1`, Max: `127`."
          },
          "header": {
            "type": "string"
          },
          "message": {
            "type": "string",
            "description": "Custom email message for the viewer. Requires a paid API plan, an API free trial, or a Site License."
          },
          "subject": {
            "type": "string",
            "description": "Custom email subject for the viewer. Requires a paid API plan, an API free trial, or a Site License."
          },
          "email_group": {
            "type": "object",
            "description": "Email group to send the invite to instead of a single viewer."
          },
          "redirect_target": {
            "enum": [
              "blank",
              "self"
            ],
            "type": "string",
            "description": "Determines whether to open the redirect link in a new tab or in the same tab. Possible values: `blank` - new tab, `self` - same tab."
          },
          "close_redirect_uri": {
            "type": "string",
            "example": "https://unique-solutions.com",
            "description": "The link that opens after the viewer clicks **Close**.",
            "x-stoplight": {
              "id": "lflmo6swpygw1"
            }
          },
          "is_short_link_invite": {
            "type": "boolean"
          }
        }
      },
      "minItems": 1,
      "description": "Recipients with read-only access to the document. Viewers receive the invite by email.",
      "uniqueItems": true
    },
    "settings": {
      "type": "object",
      "properties": {
        "pki_enabled": {
          "type": "boolean"
        }
      }
    },
    "approvers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "example": "Approver",
            "description": "Approver's role name."
          },
          "email": {
            "type": "string",
            "example": "approver@email.com",
            "description": "Approver's email address."
          },
          "order": {
            "type": "integer",
            "description": "The order of receiving the invite. Min: `1`, Max: `127`."
          },
          "header": {
            "type": "string"
          },
          "message": {
            "type": "string",
            "example": "Review and approve the invoice",
            "description": "Custom email message for the approver. Requires a paid API plan, an API free trial, or a Site License."
          },
          "subject": {
            "type": "string",
            "example": "Approve the invoice",
            "description": "Custom email subject for the approver. Requires a paid API plan, an API free trial, or a Site License."
          },
          "reminder": {
            "type": "object",
            "properties": {
              "remind_after": {
                "type": "integer",
                "description": "Days after the invite is sent before a reminder is delivered. Must be less than `expiration_days`."
              },
              "remind_before": {
                "type": "integer",
                "description": "Days before expiration when a reminder is delivered. Must be less than `expiration_days`."
              },
              "remind_repeat": {
                "type": "integer",
                "description": "Days between repeated reminders."
              }
            },
            "description": "Reminder settings for the approver."
          },
          "redirect_uri": {
            "type": "string",
            "example": "https://www.signnow.com/",
            "description": "The URL that opens after the approver approves the document."
          },
          "authentication": {
            "type": "object",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "type": "string",
                "description": "Type of verification. Possible values: `password`, `phone`, `sn_login`, `sso_login`."
              },
              "phone": {
                "type": "string",
                "description": "Phone number used to verify the approver. Required with `\"type\": \"phone\"`."
              },
              "method": {
                "enum": [
                  "sms",
                  "phone_call"
                ],
                "type": "string",
                "description": "Method of the `phone` verification type. Required with `\"type\": \"phone\"`. Possible values: `sms`, `phone_call`."
              },
              "password": {
                "type": "string",
                "description": "Password used to verify the approver. Required with `\"type\": \"password\"`."
              },
              "sms_message": {
                "type": "string",
                "description": "Custom SMS message with the verification code, max `140` characters. Used with `\"method\": \"sms\"`."
              }
            },
            "description": "Approver's identity verification settings."
          },
          "expiration_days": {
            "type": "integer",
            "description": "Number of days before the invite expires. Min: `1`, Max: `180`."
          },
          "redirect_target": {
            "enum": [
              "blank",
              "self"
            ],
            "type": "string",
            "example": "blank",
            "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab."
          },
          "is_short_link_invite": {
            "type": "boolean"
          }
        }
      },
      "description": "Recipients who review and approve the document. Approvers receive the invite by email."
    },
    "cc_message": {
      "type": "string",
      "minLength": 1,
      "description": "CC email message for all CC recipients."
    },
    "cc_subject": {
      "type": "string",
      "minLength": 1,
      "description": "CC email subject for all CC recipients."
    },
    "compliance": {
      "type": "object"
    },
    "email_groups": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "An ID of an email group. A unique 40-character long ID that you need to create."
          },
          "name": {
            "type": "string",
            "description": "A name of the group. Use it in the `to.email_group` array."
          },
          "emails": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string",
                  "description": "An email address of the group member."
                }
              }
            },
            "description": "Email addresses that should receive an invite. Must be unique within the group."
          }
        }
      },
      "description": "A group of users that should receive the invite."
    },
    "redirect_uri": {
      "type": "string",
      "description": "URL the signer is redirected to after completing the document."
    },
    "mail_provider": {
      "type": "string"
    },
    "client_timestamp": {
      "type": "integer",
      "description": "Unix timestamp of the request on the client side."
    },
    "general_reminder": {
      "type": "object",
      "properties": {
        "remind_after": {
          "type": "integer",
          "description": "Days after invite is sent before a reminder is delivered. Must be less than `general_expiration_days`."
        },
        "remind_before": {
          "type": "integer",
          "description": "Days before expiration when a reminder is delivered. Must be less than `general_expiration_days`."
        },
        "remind_repeat": {
          "type": "integer",
          "description": "Days between repeated reminders."
        }
      },
      "x-nullable": true,
      "description": "Default `reminder` applied to all recipients in the invite."
    },
    "general_expiration_days": {
      "type": "integer",
      "example": 30,
      "maximum": 180,
      "minimum": 1,
      "x-nullable": true,
      "description": "Default `expiration_days` applied to all recipients in the invite. Min: `1`, Max: `180`. Default: `30`."
    }
  },
  "x-examples": {
    "example-1": {
      "cc": [
        "cc_recipient1@email.com",
        "cc_recipient2@email.com"
      ],
      "to": [
        {
          "role": "Signer 1",
          "email": "signer1@email.com",
          "order": 1,
          "message": "Hi, this is an invite to sign a document from sender@email.com.",
          "role_id": "48cffc4b323229433758c0d72b23d7800ea7fa7a",
          "subject": "You\u2019ve got a new signature request",
          "language": "en",
          "password": "123456",
          "reassign": "0",
          "reminder": {
            "remind_after": 3,
            "remind_repeat": 7
          },
          "redirect_uri": "https://unique-solutions.com",
          "expiration_days": 30,
          "redirect_target": "blank",
          "close_redirect_uri": "https://unique-solutions.com",
          "authentication_type": "password",
          "force_new_signature": 1,
          "decline_by_signature": "0",
          "decline_redirect_uri": "https://unique-solutions.com",
          "prefill_signature_name": "Recipient signature"
        }
      ],
      "from": "sender@email.com",
      "cc_step": [
        {
          "name": "CC 1",
          "step": 1,
          "email": "cc_recipient1@email.com"
        },
        {
          "name": "CC 2",
          "step": 2,
          "email": "cc_recipient2@email.com"
        }
      ],
      "message": "sender@email.com invited you to sign the Invoice document",
      "subject": "sender@email.com needs your signature",
      "viewers": [
        {
          "role": "Viewer 1",
          "email": "viewer@email.com",
          "order": 1,
          "message": "You\u2019ve got a new document to review.",
          "subject": "New document"
        }
      ],
      "approvers": [
        {
          "role": "Approver",
          "email": "approver@email.com",
          "order": 3,
          "message": "Hi, this is an invite to review and approve the purchase agreement.",
          "subject": "Review and approve the agreement",
          "redirect_uri": "https://example.com",
          "authentication": {
            "type": "password",
            "password": "123458"
          },
          "expiration_days": 30,
          "redirect_target": "blank"
        }
      ],
      "cc_message": "cc Invoice request for Signer 1",
      "cc_subject": "cc Invoice request",
      "general_reminder": {
        "remind_after": 3,
        "remind_before": 5,
        "remind_repeat": 7
      },
      "general_expiration_days": 30
    }
  }
}
```

**Example** (`With QES`)

```json
{
  "to": [
    {
      "role": "Signer 1",
      "email": "signer@email.com",
      "order": 1,
      "message": "Hi, this is an invite to sign a document from sender@email.com.",
      "role_id": "6e9580fa76ba4edca18fa6e680a36d10a6bab503",
      "subject": "You\u2019ve got a new signature request",
      "reassign": "0",
      "signature": {
        "type": "eideasy"
      },
      "expiration_days": 30,
      "force_new_signature": 1,
      "decline_by_signature": "0",
      "prefill_signature_name": "Jane Doe"
    }
  ],
  "from": "sender@email.com"
}
```

**Example** (`With an email group`)

```json
{
  "to": [
    {
      "role": "Signer 1",
      "email_group": {
        "name": "HR department"
      }
    }
  ],
  "from": "sender@email.com",
  "email_groups": [
    {
      "id": "b31d1cae529c4f5ebaf04b6e585e360c137abf27",
      "name": "HR department",
      "emails": [
        {
          "email": "signer1@email.com"
        },
        {
          "email": "signer2@email.com"
        }
      ]
    }
  ]
}
```

**Example** (`Regular field invite`)

```json
{
  "cc": [
    "cc_recipient1@email.com",
    "cc_recipient2@email.com"
  ],
  "to": [
    {
      "role": "Signer 1",
      "email": "signer1@email.com",
      "order": 1,
      "message": "Hi, this is an invite to sign a document from sender@email.com.",
      "role_id": "48cffc4b323229433758c0d72b23d7800ea7fa7a",
      "subject": "You\u2019ve got a new signature request",
      "language": "en",
      "password": "123456",
      "reassign": "0",
      "reminder": {
        "remind_after": 3,
        "remind_repeat": 7
      },
      "redirect_uri": "https://unique-solutions.com",
      "expiration_days": 30,
      "redirect_target": "blank",
      "close_redirect_uri": "https://unique-solutions.com",
      "authentication_type": "password",
      "force_new_signature": 1,
      "decline_by_signature": "0",
      "decline_redirect_uri": "https://unique-solutions.com",
      "prefill_signature_name": "Recipient signature"
    }
  ],
  "from": "sender@email.com",
  "cc_step": [
    {
      "name": "CC 1",
      "step": 1,
      "email": "cc_recipient1@email.com"
    },
    {
      "name": "CC 2",
      "step": 2,
      "email": "cc_recipient2@email.com"
    }
  ],
  "message": "sender@email.com invited you to sign the Invoice document",
  "subject": "sender@email.com needs your signature",
  "viewers": [
    {
      "role": "Viewer 1",
      "email": "viewer@email.com",
      "order": 1,
      "message": "You\u2019ve got a new document to review.",
      "subject": "New document"
    }
  ],
  "approvers": [
    {
      "role": "Approver",
      "email": "approver@email.com",
      "order": 3,
      "message": "Hi, this is an invite to review and approve the purchase agreement.",
      "subject": "Review and approve the agreement",
      "redirect_uri": "https://example.com",
      "authentication": {
        "type": "password",
        "password": "123458"
      },
      "expiration_days": 30,
      "redirect_target": "blank"
    }
  ],
  "cc_message": "cc Invoice request for Signer 1",
  "cc_subject": "cc Invoice request",
  "general_reminder": {
    "remind_after": 3,
    "remind_before": 5,
    "remind_repeat": 7
  },
  "general_expiration_days": 30
}
```

**Example** (`Password authentication`)

```json
{
  "cc": [
    "cc_recipient1@email.com",
    "cc_recipient2@email.com"
  ],
  "to": [
    {
      "role": "Signer 1",
      "email": "signer1@email.com",
      "order": 1,
      "message": "Hi, this is an invite to sign a document from sender@email.com.",
      "role_id": "48cffc4b323229433758c0d72b23d7800ea7fa7a",
      "subject": "You\u2019ve got a new signature request",
      "password": "123456",
      "reassign": "0",
      "reminder": {
        "remind_after": 3,
        "remind_repeat": 7
      },
      "redirect_uri": "https://example.com",
      "expiration_days": 30,
      "redirect_target": "blank",
      "close_redirect_uri": "https://close-redirect-uri.com",
      "authentication_type": "password",
      "force_new_signature": 1,
      "decline_by_signature": "0",
      "decline_redirect_uri": "https://signnow.com",
      "prefill_signature_name": "Recipient signature"
    }
  ],
  "from": "sender@email.com",
  "cc_step": [
    {
      "name": "CC 1",
      "step": 1,
      "email": "cc_recipient1@email.com"
    },
    {
      "name": "CC 2",
      "step": 2,
      "email": "cc_recipient2@email.com"
    }
  ],
  "message": "sender@email.com invited you to sign the Invoice document",
  "subject": "sender@email.com needs your signature",
  "viewers": [
    {
      "role": "Viewer 1",
      "email": "viewer@email.com",
      "order": 1,
      "message": "You\u2019ve got a new document to review.",
      "subject": "New document",
      "redirect_target": "blank"
    }
  ],
  "cc_message": "cc Invoice request for Signer 1",
  "cc_subject": "cc Invoice request"
}
```

## Responses

### 200

Returns success if the request is correct. 

**Example** (`Successful response`)

```json
{
  "status": "success"
}
```

### 400

* Wrong, expired, or missing token.
* `to` is not a correct email address.
* `from` is not a correct email address.
* `role_id_1` doesn't exist on the document.
* Document has no active fields.
* Document has active invites.
* Document is not found.
* Missing authentication type.
* `language` is not a string.
* Incorrect `language`. Allowed values: `en`, `fr`, `es`.
* `redirect_uri` is not a string.
* Empty `redirect_uri`.
* `redirect_uri` is not a correct URL.
* `redirect_uri` is longer than 2048 characters.
* `decline_redirect_uri` is not a string.
* Empty `decline_redirect_uri`.
* `decline_redirect_uri` is not a correct URL.
* `decline_redirect_uri` is longer than 2048 characters.
* `redirect_target` is not a string.
* Incorrect `redirect_target`. Allowed values: `self`, `blank`.
* One of `redirect_uri` fields is required when `redirect_target` is added.
* Missing signature type.
* Incorrect `signature.type`. Allowed values: `eideasy`,`eideasy-pdf`, `nom151`.
* Missing or different QES settings for one or more signers.
* Either `to.email` or `to.email_group` should be used.
* Email group is not defined.
* Email addresses in an email group are not unique.
* `email_group` is not an array.
* `email_group.name` is not a string.
* `email_groups` is not an array.
* `email_groups.id` is not a string.
* `email_groups.name` is not a string.
* `email_groups.emails` is not an array.
* `emails.[*].email` is not a string.
* `close_redirect_uri` is not a string.
* `close_redirect_uri` is empty.
* `close_redirect_uri` is not a correct URL address.
* `close_redirect_uri` is longer than 2048 characters.
* `viewers.close_redirect_uri` is not a string.
* `viewers.close_redirect_uri` is empty.
* `viewers.close_redirect_uri` is not a correct URL address.
* `viewers.close_redirect_uri` is longer than 2048 characters.
* `viewers.redirect_target is` added but `viewers.close_redirect_uri` is missing.
* `viewers.redirect_target` is not a string.
* Incorrect `viewers.redirect_target` value.
* Phone authentication on a free trial or without a paid subscription.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document not found"
    }
  ]
}
```

**Example** (`Empty redirect_uri`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `redirect_uri` field must not be empty."
    }
  ]
}
```

**Example** (`Incorrect language`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `language` field is invalid, allowed values: \"en\", \"es\", \"fr\"."
    }
  ]
}
```

**Example** (`language not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `language` field must be a string."
    }
  ]
}
```

**Example** (`Incorrect `to` email`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "To must be a valid email."
    }
  ]
}
```

**Example** (`Missing redirect_uri`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The one of `redirect_uri` fields is required when `redirect_target` is added."
    }
  ]
}
```

**Example** (`email_group not array`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `email_group` should be of type array."
    }
  ]
}
```

**Example** (`redirect_uri too long`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `redirect_uri` field must contain no more than 2048 characters."
    }
  ]
}
```

**Example** (`role_id doesn't exist`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Role {{role_id_1}} does not exist on document"
    }
  ]
}
```

**Example** (`Incorrect `from` email`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "From must be a valid email."
    }
  ]
}
```

**Example** (`Incorrect redirect_uri`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `redirect_uri` field contains a URL in an invalid format."
    }
  ]
}
```

**Example** (`Missing signature type`)

```json
{
  "errors": [
    {
      "code": 66390,
      "message": "Signature type could not be blank"
    }
  ]
}
```

**Example** (`email_groups not array`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `email_groups` must be an array."
    }
  ]
}
```

**Example** (`Email group not defined`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "`HR department` should be present in `email_groups`."
    }
  ]
}
```

**Example** (`emails.email not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Field `email` in `email_groups.emails` should be of type string."
    }
  ]
}
```

**Example** (`redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `redirect_uri` field must be a string."
    }
  ]
}
```

**Example** (`Empty close_redirect_uri`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `close_redirect_uri` field must not be empty."
    }
  ]
}
```

**Example** (`Incorrect signature type`)

```json
{
  "errors": [
    {
      "code": 66390,
      "message": "The signature_type must be one of the following types: eideasy, eideasy-pdf, nom151"
    }
  ]
}
```

**Example** (`Incorrect redirect_target`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `redirect_target` field is invalid, allowed values: self, blank."
    }
  ]
}
```

**Example** (`Empty decline_redirect_uri`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `decline_redirect_uri` field must not be empty."
    }
  ]
}
```

**Example** (`email_groups.id not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Field `id` in `email_groups` should be of type string."
    }
  ]
}
```

**Example** (`redirect_target not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `redirect_target` field must be a string."
    }
  ]
}
```

**Example** (`Document has active invites`)

```json
{
  "errors": [
    {
      "code": 65629,
      "message": "Could not create duplicate field invite"
    }
  ]
}
```

**Example** (`Missing authentication type`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Authentication type must not be empty"
    }
  ]
}
```

**Example** (`close_redirect_uri too long`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `close_redirect_uri` field must contain no more than 2048 characters."
    }
  ]
}
```

**Example** (`email_group.name not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Field `name` in `to.email_group` should be of type string."
    }
  ]
}
```

**Example** (`close_redirect_uri not a URL`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `close_redirect_uri` field contains a URL in an invalid format."
    }
  ]
}
```

**Example** (`email_groups.name not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Field `name` in `email_groups` should be of type string."
    }
  ]
}
```

**Example** (`Document has no active fields`)

```json
{
  "errors": [
    {
      "code": 65594,
      "message": "Cannot send a field invite: This document does not contain fields."
    }
  ]
}
```

**Example** (`Email group emails not unique`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Emails in email group should be unique."
    }
  ]
}
```

**Example** (`close_redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `close_redirect_uri` field must be a string."
    }
  ]
}
```

**Example** (`decline_redirect_uri too long`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `decline_redirect_uri` field must contain no more than 2048 characters."
    }
  ]
}
```

**Example** (`email_groups.emails not array`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Field `emails` in `email_groups` should be of type array."
    }
  ]
}
```

**Example** (`Incorrect decline_redirect_uri`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `decline_redirect_uri` field contains a URL in an invalid format"
    }
  ]
}
```

**Example** (`Use either email or email_group`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Either `phone_invite`, `email`, or `email_group` in `to` is required. Only one parameter at a time is allowed."
    }
  ]
}
```

**Example** (`decline_redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `decline_redirect_uri` field must be a string."
    }
  ]
}
```

**Example** (`Empty viewers.close_redirect_uri`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `close_redirect_uri` field in `viewers` must not be empty."
    }
  ]
}
```

**Example** (`Missing or different QES settings`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Invalid advanced sign provider for sender organization"
    }
  ]
}
```

**Example** (`Phone authentication not available`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Phone authentication can't be used with the current subscription."
    }
  ]
}
```

**Example** (`viewers.redirect_target not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `redirect_target` field in `viewers` must be a string."
    }
  ]
}
```

**Example** (`viewers.close_redirect_uri too long`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `close_redirect_uri` field in `viewers` must contain no more than 2048 characters."
    }
  ]
}
```

**Example** (`viewers.close_redirect_uri not a URL`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `close_redirect_uri` field in `viewers` contains a URL in an invalid format."
    }
  ]
}
```

**Example** (`viewers.close_redirect_uri is missing`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `close_redirect_uri` field in `viewers` is required when `redirect_target` is added."
    }
  ]
}
```

**Example** (`viewers.close_redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `close_redirect_uri` field in `viewers` must be a string."
    }
  ]
}
```

**Example** (`Incorrect viewers.redirect_target value`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `redirect_target` field in `viewers` is invalid, allowed values: self, blank."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/document/{document_id}/invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"to": [{"role": "Signer 1", "email": "signer@email.com", "order": 1, "message": "Hi, this is an invite to sign a document from sender@email.com.", "role_id": "6e9580fa76ba4edca18fa6e680a36d10a6bab503", "subject": "You\u2019ve got a new signature request", "reassign": "0", "signature": {"type": "eideasy"}, "expiration_days": 30, "force_new_signature": 1, "decline_by_signature": "0", "prefill_signature_name": "Jane Doe"}], "from": "sender@email.com"}'
```

---

## PUT /fieldinvite/{field_request__id}/resend — Resend email invite

This endpoint allows API users to resend an invite to sign a document.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `field_request__id` | string | Yes | ID of the field request. Take it from `fields[].field_request_id` in the [Get document](/docs/document/operations/get-document) response. A `field_invites[].id` value returns `400 "could not resend"`. |

## Responses

### 200

Successful response. The invite email is sent again.

**Example** (`Successful response`)

```json
{
  "result": "success"
}
```

### 400

* Wrong, expired, or missing token.
* The field invite ID is wrong.
* It isn't this signer's turn to sign yet.
* The invite has expired.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Invite expired`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Could not resend expired invite."
    }
  ]
}
```

**Example** (`Wrong field invite ID`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "could not resend"
    }
  ]
}
```

**Example** (`Signer is out of order`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Could not resend: routing out of order."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/fieldinvite/{field_request__id}/resend" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## POST /v2/documents/{document_id}/field-invites/{field_invite_id}/full-decline — Decline to sign a field invite

Allows API users to decline signing a field invite.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |
| `field_invite_id` | string | Yes | ID of the field invite. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "reason"
  ],
  "properties": {
    "reason": {
      "type": "string",
      "description": "The reason for decline."
    },
    "client_timestamp": {
      "type": "integer",
      "description": "Unix timestamp of decline."
    }
  },
  "x-examples": {
    "Example 1": {
      "reason": "decline reason",
      "client_timestamp": 1586523305
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "reason": "decline reason",
  "client_timestamp": 1586523305
}
```

## Responses

### 204

Success, no content

### 400

The access token is incorrect.

**Example** (`Incorrect access token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 404

* Requested document or field invite not found.
* The document is in the Trash folder. This action is forbidden.
* User does not have read access to this document.
* Requested field invite not in pending status.
* Document must not be part of a document group.
* Invite has expired.

**Example** (`Invite has expired`)

```json
{
  "errors": [
    {
      "code": 19001035,
      "message": "Invite has expired."
    }
  ]
}
```

**Example** (`Field invite does not belong to document`)

```json
{
  "errors": [
    {
      "code": 19001018,
      "message": "Field invite does not belong to document"
    }
  ]
}
```

**Example** (`Requested document or field invite not found`)

```json
{
  "errors": [
    {
      "code": 19002001,
      "message": "Document not found"
    }
  ]
}
```

**Example** (`Requested field invite not in pending status.`)

```json
{
  "errors": [
    {
      "code": 19001030,
      "message": "Requested field invite not in pending status."
    }
  ]
}
```

**Example** (`Document must not be part of a document group.`)

```json
{
  "errors": [
    {
      "code": 19001033,
      "message": "Document must not be part of a document group."
    }
  ]
}
```

**Example** (`User does not have read access to this document`)

```json
{
  "errors": [
    {
      "code": 19001031,
      "message": "User does not have read access to this document"
    }
  ]
}
```

**Example** (`Document is full declined. Please cancel the invite first.`)

```json
{
  "errors": [
    {
      "code": 19001034,
      "message": "Document is full declined. Please cancel the invite first."
    }
  ]
}
```

**Example** (`The document is in the Trash folder. This action is forbidden.`)

```json
{
  "errors": [
    {
      "code": 19001032,
      "message": "The document is in the Trash folder. This action is forbidden."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/documents/{document_id}/field-invites/{field_invite_id}/full-decline" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"reason": "decline reason", "client_timestamp": 1586523305}'
```

---

## GET /v2/documents/{document_id}/field-invites/{field_invite_id}/full-decline — Get the declined invite

This endpoint allows API users to get the recipient who declined an invite, and the time and reason for the decline. The document owner can call this endpoint.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |
| `field_invite_id` | string | Yes | ID of the field invite. |

## Responses

### 200

Details of the declined invite.

**Example** (`Successful response`)

```json
{
  "data": {
    "email": "user@example.com",
    "reason": "The terms are not acceptable.",
    "created": 1792744458
  }
}
```

### 400

The access token is incorrect.

**Example** (`Incorrect access token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

Is document owner.

**Example** (`Is document owner`)

```json
{
  "errors": [
    {
      "code": 19001002,
      "message": "User is not document owner."
    }
  ]
}
```

### 404

* Requested document or field invite not found.
* The document is in the Trash folder. This action is forbidden.
* Field invite does not belong to document.
* Requested field invite not in pending status.
* Document field invite is not full declined.

**Example** (`Field invite does not belong to document`)

```json
{
  "errors": [
    {
      "code": 19001018,
      "message": "Field invite does not belong to document"
    }
  ]
}
```

**Example** (`Document field invite is not full declined.`)

```json
{
  "errors": [
    {
      "code": 19018001,
      "message": "Document field invite is not full declined."
    }
  ]
}
```

**Example** (`Requested document or field invite not found`)

```json
{
  "errors": [
    {
      "code": 19002001,
      "message": "Document not found"
    }
  ]
}
```

**Example** (`Requested field invite not in pending status.`)

```json
{
  "errors": [
    {
      "code": 19001028,
      "message": "Requested field invite not in pending status."
    }
  ]
}
```

**Example** (`The document is in the Trash folder. This action is forbidden.`)

```json
{
  "errors": [
    {
      "code": 19001030,
      "message": "The document is in the Trash folder. This action is forbidden."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/documents/{document_id}/field-invites/{field_invite_id}/full-decline" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /document/{document_id}/trigger_fieldinvite — Replace signer: Step 3 - Send

This endpoint allows API users to send the invite to the new signer. This is step 3 of 3 to replace a signer in an invite.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document in the invite. |

## Responses

### 200

Successful response. The invite is sent.

**Example** (`Successful response`)

```json
{
  "status": "success"
}
```

### 400

* Wrong, expired, or missing token.
* The document has no field invite.
* The document doesn't exist.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`No field invite`)

```json
{
  "errors": [
    {
      "code": 65615,
      "message": "Field invite missing on this document"
    }
  ]
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/document/{document_id}/trigger_fieldinvite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## POST /field_invite — Replace signer: Step 2 - Replace

This endpoint allows API users to assign a new signer to the invite. This is step 2 of 3 to replace a signer in an invite.

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "email",
    "role_id",
    "is_replace",
    "password",
    "phone"
  ],
  "properties": {
    "email": {
      "type": "string",
      "minLength": 1,
      "description": "New signer's email address."
    },
    "phone": {
      "type": "string",
      "description": "Phone number requested for identity verification. Required if `\"authentication_type\": \"phone\"`."
    },
    "role_id": {
      "type": "string",
      "minLength": 1,
      "description": "The role id for the new signer. You can find it in the response from `GET /document/{{document_id}}` request as the `role_id` parameter in the `field_invites` array."
    },
    "password": {
      "type": "string",
      "minLength": 1,
      "description": "Password requested for identity verification. Required if `\"authentication_type\": \"password\"`."
    },
    "reminder": {
      "type": "number",
      "description": "In how many days to send a reminder to the signer; 30 days max."
    },
    "is_replace": {
      "type": "boolean",
      "description": "Boolean: determines whether to use the subject, message, and order of signing specified in the invite to the previous signer. Possible values: `\"true\"` - yes, keep the subject, message, and order of signing from the previous signer's invite; `\"false\"` - use the subject, message, and the order of signing from this payload."
    },
    "expiration_days": {
      "type": "number",
      "description": "In how many days the invite expires; 30 days max."
    },
    "authentication_type": {
      "type": "string",
      "minLength": 1,
      "description": "Type of recipient's identity verification. Possible values: `\"password\"` or `\"phone\"`. `phone` is available on paid plans; on a free trial or without a paid subscription, use `password`."
    },
    "decline_by_signature": {
      "type": "number",
      "description": "Adds the `Decline` button to the Signature field for the signer. Possible values: 0 - no `Decline` button, 1- add the `Decline` button."
    }
  },
  "x-examples": {
    "example-1": {
      "email": "new_signer@email.com",
      "role_id": "d9b491bd632e25cc5ec1a3b0b83dfccc164382bd",
      "password": "123456",
      "reminder": 0,
      "is_replace": true,
      "expiration_days": 30,
      "authentication_type": "password",
      "decline_by_signature": 0
    }
  },
  "description": ""
}
```

**Example** (`Request body`)

```json
{
  "email": "new_signer@email.com",
  "role_id": "d95a500c73fb0f226ece99a3ec804005f20d4312",
  "password": "123456",
  "reminder": 0,
  "is_replace": true,
  "expiration_days": 30,
  "authentication_type": "password",
  "decline_by_signature": 0
}
```

## Responses

### 200

Successful response. Returns the ID of the new invite.

**Example** (`Successful response`)

```json
{
  "id": "30e75828e8124c43d6fd769402a757b5d4d383a3"
}
```

### 400

* Wrong, expired, or missing token.
* `email` isn't a valid email address.
* The role with `role_id` doesn't exist.
* An invite for this role already exists. Delete it with `DELETE /field_invite/{field_invite_id}` first.
* The role has no invite to replace. Send the invite first.
* Phone authentication on a free trial or without a paid subscription.

**Example** (`Wrong email`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Email must be a valid email."
    }
  ]
}
```

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Role not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Role does not exists"
    }
  ]
}
```

**Example** (`No invite to replace`)

```json
{
  "errors": [
    {
      "code": 65615,
      "message": "Invite could not be replaced"
    }
  ]
}
```

**Example** (`Invite already exists`)

```json
{
  "errors": [
    {
      "code": 65615,
      "message": "Invite already exists"
    }
  ]
}
```

**Example** (`Phone authentication not available`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Phone authentication can't be used with the current subscription."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/field_invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email": "new_signer@email.com", "role_id": "d95a500c73fb0f226ece99a3ec804005f20d4312", "password": "123456", "reminder": 0, "is_replace": true, "expiration_days": 30, "authentication_type": "password", "decline_by_signature": 0}'
```

---

## DELETE /field_invite/{field_invite_id} — Replace signer: Step 1 - Delete

This endpoint allows API users to delete the invite of the current signer. This is step 1 of 3 to replace a signer in an invite.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `field_invite_id` | string | Yes | Path parameter: ID of invite to sign the document. You can find it in the response from `GET /document/{{document_id}}` request as the `id` parameter in the `field_invites` array. |

## Responses

### 200

Successful response. The field invite is deleted.

**Example** (`Successful response`)

```json
{
  "status": "success"
}
```

### 400

* Wrong, expired, or missing token.
* The field invite doesn't exist.
* The field invite is sent to an email group.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Field invite not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Action field invite not found"
    }
  ]
}
```

**Example** (`Field invite with email group`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Forbidden to delete the field invite with email group"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/field_invite/{field_invite_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/signing-session-settings — Customize welcome message

This endpoint allows API users to add a welcome message to field invites sent from this application. The welcome message appears when a signer clicks the welcome message button in the signing session.

<img src="/reference-assets/images/Screenshots with attribute explanations/welcome_message.png" alt="Welcome message example">

**Notes**

* Each user can have one welcome message. To replace it, reset it with [Reset welcome message to default](/docs/document-field-invite/operations/delete-v2-signing-session-settings) first.

## Authorization

bearer

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "welcome_message"
  ],
  "properties": {
    "welcome_message": {
      "type": "string",
      "description": "Text of the welcome message. Min: `3`, Max: `200` characters. Allowed characters: letters `A-Z` and `a-z`, digits `0-9`, plain brackets `()`, dot `.`, dash `-`, space and comma `,`."
    }
  },
  "x-examples": {
    "Set welcome message": {
      "welcome_message": "Hi, please review and sign this document."
    }
  }
}
```

**Example** (`Set welcome message`)

```json
{
  "welcome_message": "Hi, please review and sign this document."
}
```

## Responses

### 201

The welcome message has been saved. The response body is empty.

### 400

- Request with any of cases:

    - incorrect token of user.
    - expired token of user.
    - empty header.
    - authorization = null.
    - authorization without value.
- Setting already exists.
- `welcome_message` not received.	
- `welcome_message` received with empty value.
- `welcome_message` is not received as a string (it received like array or integer, etc.).
- `welcome_message` value contains less than 3 symbols.
- `welcome_message` value contains more than 200 symbols.
- `welcome_message` value contains incorrect symbol(s).


**Example** (`Incorrect access token`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

**Example** (`Setting already exists`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Signing session setting already exists"
    }
  ]
}
```

**Example** (``welcome_message` < 3 symbols`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "`welcome_message` must be at least 3 characters long."
    }
  ]
}
```

**Example** (`welcome_message > 200 symbols`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "`welcome_message` cannot be longer than 200 characters."
    }
  ]
}
```

**Example** (``welcome_message` isn't string`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "`welcome_message` field data must be a string"
    }
  ]
}
```

**Example** (``welcome_message` not received.`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "`welcome_message` field is required"
    }
  ]
}
```

**Example** (``welcome_message` with empty value`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "`welcome_message` must not be empty"
    }
  ]
}
```

**Example** (`welcome_message with incorrect symbol(s)`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "Unsupported symbol was met. Allowed symbols: A-Z, a-z, 0-9, plain brackets '()', dot '.', dash '-', space ' ' and comma ','"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/signing-session-settings" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"welcome_message": "Hi, please review and sign this document."}'
```

---

## GET /v2/signing-session-settings — Get welcome message

This endpoint allows API users to retrieve the signing session settings, including the custom signing welcome message.

## Authorization

bearer

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "data": {
    "welcome_message": "Hi! Please sign this document."
  }
}
```

### 400

* Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/signing-session-settings" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/signing-session-settings — Reset welcome message to default

This endpoint allow to reset signing session settings to default values (default signing welcome message).

## Authorization

bearer

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Responses

### 204

Signing session settings reset successfully.

### 400

Request with any of cases:

- incorrect token of user.
- expired token of user.
- empty header.
- authorization = null.
- authorization without value.

**Example** (`Incorrect access token`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

### 404

Signing session settings have default values.

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/signing-session-settings" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/document-groups/{dg_id}/invite/{dg_invite_id} — Complete DG correction

This endpoint allows API users to complete a document group correction and apply the new signers, documents, and invite settings. With this endpoint, you can:

* Change the signers and viewers of the document group
* Update the invite settings
* Reorder and remove documents that were not signed yet
* Add new documents to the document group

Before completing the correction, [initiate](/docs/document-group/operations/post-v2-document-groups-document-group-id-invite-document-group-invite-id-correction) it.

**Partially signed invites**

A recipient counts as having signed once they complete their signing action or fill in at least one field on any document in the group. The document does not need to be fully completed.

When some recipients have already signed:

* Add new signers and viewers to the last step that was at least partially signed, or to any later step. Earlier steps are locked.
* A recipient who already signed a document in the last signed step can be added to that step as a viewer of another document.
* The role of a recipient who already signed keeps its email address.

Steps that were cancelled when the correction started are recreated when you complete it:

* If the last signed step is complete, the next step's invites are sent right away. Adding only viewers to the completed step does not change this.
* If you add a signer to the last completed step, the step returns to pending. The next step's invites are sent once the new signer finishes.

*For example*, an invite has three steps, and steps 1 and 2 are signed. You can add new signers to steps 2 and 3. If you add a signer to step 2, step 3's invites are sent after that signer completes step 2.

**Short-link signers**

To give a signer a link instead of an email invite, set `is_short_link_invite` to `true` and omit `email`. Add short-link signers to the first step (`order: 1`). A step can include several of them.

* The endpoint returns `204` with no body. Get each signer's link from `short_link_url` in [Get document group info (v.2)](/docs/document-group/operations/get-document-group-info-v2). In that response, `signer_email` shows the guest address generated for the signer, such as `guest_signer_123456789012@no.reply`.
* Every completed correction generates a new link for each short-link signer. Share the link from the latest response.
* Short-link signers support `authentication` and `expiration_days`.

Short links can also be created with [Create/edit signing link for doc group](/docs/signing-link/operations/post-v2-document-group-document-group-id-signing-links) and [Update doc group invite](/docs/doc-group-field-invite/operations/update-document-group-invite).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `dg_id` | string | Yes | ID of the document group. |
| `dg_invite_id` | string | Yes | ID of the document group invite. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "invites",
    "client_timestamp"
  ],
  "properties": {
    "cc": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "An email address that should be in copy of the invite."
          }
        }
      },
      "description": "An array of email addresses that should be in copy of the invite email."
    },
    "invites": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "order",
          "signers"
        ],
        "properties": {
          "order": {
            "type": "integer",
            "maximum": 100,
            "minimum": 1,
            "description": "An order of a signing step: <br> 1 - the recipient(s) sign the document group first, then the document group is sent to 2 and so on."
          },
          "signers": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "documents"
              ],
              "properties": {
                "email": {
                  "type": "string",
                  "description": "Recipient's email address. Required unless `is_short_link_invite` is `true`."
                },
                "message": {
                  "type": "string",
                  "maxLength": 4998,
                  "description": "Custom email message for the recipient."
                },
                "subject": {
                  "type": "string",
                  "maxLength": 1000,
                  "description": "Custom email subject for the recipient."
                },
                "reassign": {
                  "type": "boolean",
                  "description": "Whether or not to allow recipients to reassign this invite to another email address. Cannot be used along with authentication."
                },
                "reminder": {
                  "type": "object",
                  "properties": {
                    "remind_after": {
                      "type": "integer",
                      "description": "In how many days after sending an invite to send a reminder."
                    },
                    "remind_before": {
                      "type": "integer",
                      "description": "In how many days before expiration to send a reminder."
                    },
                    "remind_repeat": {
                      "type": "integer",
                      "description": "In how many dates after reminder email to send another reminder."
                    }
                  },
                  "description": "When to send a reminder email to the recipient."
                },
                "documents": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "id",
                      "role",
                      "action"
                    ],
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "ID of the document on which actions are required from this recipient."
                      },
                      "role": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Recipient's role associated with one or more fields. Can be found in the response to the [Get document](/docs/document/operations/get-document) request."
                      },
                      "action": {
                        "enum": [
                          "sign",
                          "view",
                          "approve"
                        ],
                        "type": "string",
                        "description": "What kind of action is required. Possible values `sign`,`view`, `approve`."
                      }
                    }
                  },
                  "description": "An array of objects with documents that require action from the recipient."
                },
                "redirect_uri": {
                  "type": "string",
                  "example": "https://www.signnow.com/",
                  "description": "When all the requested fields are completed and signed, the signer is redirected to this URI."
                },
                "authentication": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "Authentication type. Possible values: `password`, `phone`, or `sso_login`. `phone` is available on paid plans; on a free trial or without a paid subscription, use `password`. `sso_login` requires an active SSO configuration for the organization."
                    },
                    "phone": {
                      "type": "string",
                      "description": "Required if `type=phone`. User's phone number."
                    },
                    "method": {
                      "enum": [
                        "sms",
                        "phone_call"
                      ],
                      "type": "string",
                      "description": "Required if `type=phone`. Possible values: `phone_call` or `sms`."
                    },
                    "password": {
                      "type": "string",
                      "description": "Required if `type=password`. The password for user authentication."
                    },
                    "sms_message": {
                      "type": "string",
                      "maxLength": 140,
                      "description": "Use if `method=sms`. A custom SMS message.",
                      "x-stoplight": {
                        "id": "svya3n7ep65r3"
                      }
                    }
                  },
                  "description": "Object that contains the type of signer's identity verification: with password, phone call, SMS, or SSO login."
                },
                "expiration_days": {
                  "type": "integer",
                  "maximum": 180,
                  "minimum": 3,
                  "description": "In how many days the invite expires."
                },
                "redirect_target": {
                  "enum": [
                    "blank",
                    "self"
                  ],
                  "type": "string",
                  "example": "blank",
                  "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab.",
                  "x-stoplight": {
                    "id": "rx8g2k63dadna"
                  }
                },
                "close_redirect_uri": {
                  "type": "string",
                  "example": "https://www.signnow.com/",
                  "description": "The link that opens when a recipient clicks\u00a0**Save Progress and Finish Later**\u00a0during a signing session or\u00a0**Close**\u00a0in view mode."
                },
                "decline_by_signature": {
                  "type": "boolean",
                  "description": "Whether or not to allow recipients to decline the invite."
                },
                "decline_redirect_uri": {
                  "type": "string",
                  "example": "https://www.signnow.com/",
                  "description": "After declining the invite, the signer is redirected to this URI."
                },
                "is_short_link_invite": {
                  "type": "boolean",
                  "default": false,
                  "description": "Set to `true` to invite the signer by a short link instead of email. Allowed in the first step (`order: 1`) only; omit `email`. After the correction is completed, the link is available in `short_link_url` of [Get document group info (v.2)](/docs/document-group/operations/get-document-group-info-v2)."
                },
                "is_close_redirect_canceled": {
                  "type": "boolean",
                  "default": false,
                  "description": "Specifies whether the save progress redirect setting is canceled for the organization.`true`\u00a0\u2013 the redirect is canceled;`false`\u00a0\u2013 the redirect remains active.",
                  "x-stoplight": {
                    "id": "lkvpjp7wi7ujh"
                  }
                },
                "is_finish_redirect_canceled": {
                  "type": "boolean",
                  "default": false,
                  "description": "Specifies whether the completion redirect setting is canceled for the organization.`true`\u00a0\u2013 the redirect is canceled;`false`\u00a0\u2013 the  redirect remains active.",
                  "x-stoplight": {
                    "id": "lkvpjp7wi7ujh"
                  }
                },
                "is_decline_redirect_canceled": {
                  "type": "boolean",
                  "default": false,
                  "description": "Specifies whether the decline redirect setting is canceled for the organization.`true`\u00a0\u2013 the redirect is canceled;`false`\u00a0\u2013 the redirect remains active.",
                  "x-stoplight": {
                    "id": "lkvpjp7wi7ujh"
                  }
                }
              }
            }
          }
        }
      },
      "description": "An array of objects with signing steps. Each step consists of an order number and a signers array with signers' email addresses and settings."
    },
    "order_type": {
      "enum": [
        "at_the_same_time",
        "recipient_order",
        "advanced_order",
        null
      ],
      "type": "string",
      "x-nullable": true,
      "description": "Recipient routing rule applied to all recipients in the invite. `at_the_same_time` - all at once; `recipient_order` - sequential by `order` parameter; `advanced_order` - advanced rules."
    },
    "mail_provider": {
      "type": "string",
      "description": "Defines the `from` field of the invite to sign email and other emails that are connected to the invite (cc, reminder, forward, reassign, and cancel). Possible values: \u2018default\u2019 or an email address. To use an email address, first, you must connect it to the SignNow account at the UI. If set to \u2018default\u2019, the default email address that had been set up is used. "
    },
    "client_timestamp": {
      "type": "integer",
      "description": "The timestamp of when the correction was completed.",
      "x-stoplight": {
        "id": "u4aeoi8st69oo"
      }
    },
    "general_reminder": {
      "type": "object",
      "properties": {
        "remind_after": {
          "type": "integer",
          "description": "Days after invite is sent before a reminder is delivered. Must be less than `general_expiration_days`."
        },
        "remind_before": {
          "type": "integer",
          "description": "Days before expiration when a reminder is delivered. Must be less than `general_expiration_days`."
        },
        "remind_repeat": {
          "type": "integer",
          "description": "Days between repeated reminders."
        }
      },
      "x-nullable": true,
      "description": "Default `reminder` applied to all recipients in the invite."
    },
    "completion_emails": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "Email address of the completion email recipient."
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether to send completion emails."
          },
          "disable_document_attachment": {
            "type": "boolean",
            "description": "Whether to send document attachments with the completion email."
          }
        }
      },
      "description": "An array of objects that contain email addresses and custom settings for sending emails about completing the invite."
    },
    "general_expiration_days": {
      "type": "integer",
      "maximum": 180,
      "minimum": 1,
      "x-nullable": true,
      "description": "Default `expiration_days` applied to all recipients in the invite. Min: `1`, Max: `180`. Default: `30`."
    },
    "general_expiration_time": {
      "type": "integer",
      "x-nullable": true,
      "description": "Default expiration timestamp (Unix time, seconds) applied to all recipients in the invite."
    }
  },
  "x-examples": {
    "Example 1": {
      "cc": [
        {
          "email": "{{cc}}"
        }
      ],
      "invites": [
        {
          "order": 1,
          "signers": [
            {
              "email": "{{signer1}}",
              "message": "message",
              "subject": "subject",
              "reassign": true,
              "reminder": {
                "remind_after": 2,
                "remind_before": 3,
                "remind_repeat": 5
              },
              "documents": [
                {
                  "id": "{{document_id_01}}",
                  "role": "Signer 1",
                  "action": "sign"
                }
              ],
              "redirect_uri": "https://redirect.com",
              "authentication": {
                "type": "phone",
                "phone": "+12345",
                "method": "sms"
              },
              "expiration_days": 30,
              "close_redirect_uri": "https://close.com",
              "decline_by_signature": true,
              "decline_redirect_uri": "https://decline.com"
            }
          ]
        },
        {
          "order": 2,
          "signers": [
            {
              "email": "{{signer2}}",
              "documents": [
                {
                  "id": "{{document_id_02}}",
                  "role": "Signer 1",
                  "action": "sign"
                }
              ],
              "authentication": {
                "type": "password",
                "password": "12345"
              }
            },
            {
              "email": "{{signer1}}",
              "documents": [
                {
                  "id": "{{document_id_02}}",
                  "role": "Viewer",
                  "action": "view"
                }
              ]
            }
          ]
        }
      ],
      "order_type": "recipient_order",
      "mail_provider": "default",
      "general_reminder": {
        "remind_after": 3,
        "remind_before": 5,
        "remind_repeat": 7
      },
      "completion_emails": [
        {
          "email": "{{completion_email}}",
          "disabled": false,
          "disable_document_attachment": true
        }
      ],
      "general_expiration_days": 30
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "cc": [
    {
      "email": "cc@email.com"
    }
  ],
  "invites": [
    {
      "order": 1,
      "signers": [
        {
          "email": "signer1@email.com",
          "message": "Custom message",
          "subject": "Custom subject",
          "reassign": true,
          "reminder": {
            "remind_after": 2,
            "remind_before": 3,
            "remind_repeat": 5
          },
          "documents": [
            {
              "id": "2274bf62786844e981584543275cdc0c88d67d45",
              "role": "Recipient",
              "action": "sign"
            }
          ],
          "redirect_uri": "https://redirect.com",
          "expiration_days": 30,
          "close_redirect_uri": "https://close.com",
          "decline_by_signature": true,
          "decline_redirect_uri": "https://decline.com"
        }
      ]
    },
    {
      "order": 2,
      "signers": [
        {
          "email": "signer2@email.com",
          "message": "Custom message",
          "subject": "Custom subject",
          "reminder": {
            "remind_after": 2,
            "remind_before": 3,
            "remind_repeat": 5
          },
          "documents": [
            {
              "id": "d2d3c991cf574ef18e99c745e41bffa0985855e0",
              "role": "Recipient",
              "action": "sign"
            }
          ],
          "redirect_uri": "https://redirect.com",
          "authentication": {
            "type": "password",
            "password": "P@$$Word#123"
          },
          "expiration_days": 30,
          "close_redirect_uri": "https://close.com",
          "decline_by_signature": true,
          "decline_redirect_uri": "https://decline.com"
        }
      ]
    }
  ],
  "order_type": "recipient_order",
  "mail_provider": "j.doe@email.com",
  "client_timestamp": "1720428823",
  "general_reminder": {
    "remind_after": 3,
    "remind_before": 5,
    "remind_repeat": 7
  },
  "completion_emails": [
    {
      "email": "j.doe@email.com",
      "disabled": false,
      "disable_document_attachment": true
    }
  ],
  "general_expiration_days": 30
}
```

**Example** (`Short-link signer`)

```json
{
  "invites": [
    {
      "order": 1,
      "signers": [
        {
          "documents": [
            {
              "id": "2274bf62786844e981584543275cdc0c88d67d45",
              "role": "Recipient",
              "action": "sign"
            }
          ],
          "expiration_days": 7,
          "is_short_link_invite": true
        }
      ]
    },
    {
      "order": 2,
      "signers": [
        {
          "email": "signer2@email.com",
          "documents": [
            {
              "id": "d2d3c991cf574ef18e99c745e41bffa0985855e0",
              "role": "Recipient",
              "action": "sign"
            }
          ],
          "authentication": {
            "type": "sso_login"
          }
        }
      ]
    }
  ],
  "client_timestamp": 1720428823
}
```

## Responses

### 204

Success, no content

### 400

* Document group is not in correction state.
* All documents should be in the document group.
* Role `role` does not exist.
* Role `role` must be used in the invite.
* Authentication is required for this organization.
* Field `phone` is not a phone number.
* Email subject must not be empty or default.
* Phone authentication on a free trial or without a paid subscription.
* At least one document must contain fields.
* Reassign is not allowed for viewers.
* Authentication is not allowed for viewers.
* Invite is not pending.
* This user doesn't have an active mail provider.
* Currency is not supported.
* A short link invite is not in the first step (`order: 1`).
* A short link invite contains an email address.
* `is_short_link_invite` is not a boolean.
* `email` is missing for a signer without a short link.
* `sso_login` authentication is used, but the organization has no active SSO configuration.
* A signer has already completed a document on the last completed step and cannot be added as a signer of another document on this step.
* A step is not the last completed step and cannot be edited.
* The recipient with this role has already completed a document and cannot be edited.
* `invites` is not an array.
* `invites` value is not an array.
* `cc` is not an array.
* `cc` value is not an array.
* `completion_emails` is not an array.
* `completion_emails` value is not an array.
* `order` is not an integer.
* `signers` is not an array.
* `signers` value is not an array.
* `signers.email` is not a string.
* `documents` is not an array.
* `documents` value is not an array.
* `message` is not a string.
* `subject` is not a string.
* `expiration_days` is not an integer.
* `decline_by_signature` is not a boolean.
* `reassign` is not a boolean.
* `documents.id` is not a string.
* `documents.role` is not a string.
* `authentication.type` is not a string.
* `authentication.phone` is not a string.
* `authentication.method` is not a string.
* `authentication.sms_message` is not a string.
* `authentication.password` is not a string.
* `cc.email` is not a string.
* `completion_emails.email` is not a string.
* `completion_emails.disabled` is not a boolean.
* `completion_emails.disable_document_attachment` is not a boolean.
* `authentication` is not an object.
* `reminder` is not an object.
* `redirect_uri` is not a string.
* `decline_redirect_uri` is not a string.
* `close_redirect_uri` is not a string.
* `mail_provider` is not a string.

**Example** (`cc not array`)

```json
{
  "errors": [
    {
      "code": 19067004,
      "message": "Field `cc` should be of type array."
    }
  ]
}
```

**Example** (`Email missing`)

```json
{
  "errors": [
    {
      "code": 19067017,
      "message": "Field `email` in `invites.signers` should not be null."
    }
  ]
}
```

**Example** (`invites not array`)

```json
{
  "errors": [
    {
      "code": 19067002,
      "message": "Field `invites` should be of type array."
    }
  ]
}
```

**Example** (`order not integer`)

```json
{
  "errors": [
    {
      "code": 19067009,
      "message": "Field `order` in `invites` should be of type integer."
    }
  ]
}
```

**Example** (`signers not array`)

```json
{
  "errors": [
    {
      "code": 19067012,
      "message": "Field `signers` in `invites` should be of type array."
    }
  ]
}
```

**Example** (`Invite not pending`)

```json
{
  "errors": [
    {
      "code": 19068012,
      "message": "Invite should be pending"
    }
  ]
}
```

**Example** (`Role doesn't exist`)

```json
{
  "errors": [
    {
      "code": 19068003,
      "message": "Role `role` does not exist."
    }
  ]
}
```

**Example** (`SSO not configured`)

```json
{
  "errors": [
    {
      "code": 19099001,
      "message": "Authentication type sso_login requires an active SSO configuration for the organization."
    }
  ]
}
```

**Example** (`cc value not array`)

```json
{
  "errors": [
    {
      "code": 19067005,
      "message": "Each element of array `cc` should be of type array."
    }
  ]
}
```

**Example** (`message not string`)

```json
{
  "errors": [
    {
      "code": 19067024,
      "message": "Field `message` in `invites.signers` should be of type string."
    }
  ]
}
```

**Example** (`subject not string`)

```json
{
  "errors": [
    {
      "code": 19067028,
      "message": "Field `subject` in `invites.signers` should be of type string."
    }
  ]
}
```

**Example** (`cc.email not string`)

```json
{
  "errors": [
    {
      "code": 19067063,
      "message": "Field `email` in `cc` should be of type string."
    }
  ]
}
```

**Example** (`documents not array`)

```json
{
  "errors": [
    {
      "code": 19067022,
      "message": "Field `documents` in `invites.signers` should be of type array."
    }
  ]
}
```

**Example** (`reminder not object`)

```json
{
  "errors": [
    {
      "code": 19067075,
      "message": "Field `reminder` in `invites.signers` should be of type object."
    }
  ]
}
```

**Example** (`DG not in correction`)

```json
{
  "errors": [
    {
      "code": 19068001,
      "message": "Document Group should be in correction state."
    }
  ]
}
```

**Example** (`reassign not boolean`)

```json
{
  "errors": [
    {
      "code": 19067037,
      "message": "Field `reassign` in `invites.signers` should be of type bool."
    }
  ]
}
```

**Example** (`Missing email subject`)

```json
{
  "errors": [
    {
      "code": 19068007,
      "message": "Cannot use empty or default email subject."
    }
  ]
}
```

**Example** (`Step cannot be edited`)

```json
{
  "errors": [
    {
      "code": 19068014,
      "message": "You could not add new invites to step that signed and it is not last step with signing. Step: 1. Email: signer@example.com. Doc Id: 2274bf62786844e981584543275cdc0c88d67d45"
    }
  ]
}
```

**Example** (`Currency not supported`)

```json
{
  "errors": [
    {
      "code": 19068017,
      "message": "Currency not supported"
    }
  ]
}
```

**Example** (`Existing role not used`)

```json
{
  "errors": [
    {
      "code": 19068004,
      "message": "Role `role` is not specified."
    }
  ]
}
```

**Example** (`Incorrect phone number`)

```json
{
  "errors": [
    {
      "code": 19068006,
      "message": "Field `phone` is not valid phone number."
    }
  ]
}
```

**Example** (`Authentication required`)

```json
{
  "errors": [
    {
      "code": 19068005,
      "message": "Authentication is required for this organization."
    }
  ]
}
```

**Example** (`No active mail provider`)

```json
{
  "errors": [
    {
      "code": 19068016,
      "message": "The active mail provider does not exist for current user."
    }
  ]
}
```

**Example** (`Viewers cannot reassign`)

```json
{
  "errors": [
    {
      "code": 19068010,
      "message": "Reassign is not allowed for viewers."
    }
  ]
}
```

**Example** (`documents.id not string`)

```json
{
  "errors": [
    {
      "code": 19067039,
      "message": "Field `id` in `invites.signers.documents` should be of type string."
    }
  ]
}
```

**Example** (`invites value not array`)

```json
{
  "errors": [
    {
      "code": 19067003,
      "message": "Each element of array `invites` should be of type array."
    }
  ]
}
```

**Example** (`redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 19067082,
      "message": "Field `redirect_uri` in `invites.signers` should be of type string."
    }
  ]
}
```

**Example** (`signers value not array`)

```json
{
  "errors": [
    {
      "code": 19067013,
      "message": "Each element of array `signers` in `invites` should be of type array."
    }
  ]
}
```

**Example** (`mail_provider not string`)

```json
{
  "errors": [
    {
      "code": 19067088,
      "message": "The `mail_provider` field must be a string."
    }
  ]
}
```

**Example** (`signers.email not string`)

```json
{
  "errors": [
    {
      "code": 19067018,
      "message": "Field `email` in `invites.signers` should be of type string."
    }
  ]
}
```

**Example** (`authentication not object`)

```json
{
  "errors": [
    {
      "code": 19067074,
      "message": "Field `authentication` in `invites.signers` should be of type object."
    }
  ]
}
```

**Example** (`documents value not array`)

```json
{
  "errors": [
    {
      "code": 19067023,
      "message": "Each element of array `documents` in `invites.signers` should be of type array."
    }
  ]
}
```

**Example** (`documents.role not string`)

```json
{
  "errors": [
    {
      "code": 19067042,
      "message": "Field `role` in `invites.signers.documents` should be of type string."
    }
  ]
}
```

**Example** (`No fields on the documents`)

```json
{
  "errors": [
    {
      "code": 19068009,
      "message": "At least one document must contain fields."
    }
  ]
}
```

**Example** (`Recipient cannot be edited`)

```json
{
  "errors": [
    {
      "code": 19068015,
      "message": "Wrong signer's email who has already signed"
    }
  ]
}
```

**Example** (`completion_emails not array`)

```json
{
  "errors": [
    {
      "code": 19067006,
      "message": "Field `completion_emails` should be of type array."
    }
  ]
}
```

**Example** (`expiration_days not integer`)

```json
{
  "errors": [
    {
      "code": 19067033,
      "message": "Field `expiration_days` in `invites.signers` should be of type integer."
    }
  ]
}
```

**Example** (`No authentication for viewers`)

```json
{
  "errors": [
    {
      "code": 19068011,
      "message": "Authentication is not allowed for viewers."
    }
  ]
}
```

**Example** (`Signer action cannot be added`)

```json
{
  "errors": [
    {
      "code": 19068013,
      "message": "You could not add new signer action to signed signers in last signed step. Step: 2. Email: signer@example.com. Doc Id: 2274bf62786844e981584543275cdc0c88d67d45"
    }
  ]
}
```

**Example** (`close_redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 19067096,
      "message": "The close_redirect_uri field in invites.signers must be a string."
    }
  ]
}
```

**Example** (`Document not in document group`)

```json
{
  "errors": [
    {
      "code": 19068002,
      "message": "All documents should be part of the document group."
    }
  ]
}
```

**Example** (`authentication.type not string`)

```json
{
  "errors": [
    {
      "code": 19067048,
      "message": "Field `type` in `invites.signers.authentication` should be of type string."
    }
  ]
}
```

**Example** (`authentication.phone not string`)

```json
{
  "errors": [
    {
      "code": 19067050,
      "message": "Field `phone` in `invites.signers.authentication` should be of type string."
    }
  ]
}
```

**Example** (`decline_redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 19067091,
      "message": "The decline_redirect_uri field in invites.signers must be a string."
    }
  ]
}
```

**Example** (`authentication.method not string`)

```json
{
  "errors": [
    {
      "code": 19067053,
      "message": "Field `method` in `invites.signers.authentication` should be of type string."
    }
  ]
}
```

**Example** (`decline_by_signature not boolean`)

```json
{
  "errors": [
    {
      "code": 19067036,
      "message": "Field `decline_by_signature` in `invites.signers` should be of type bool."
    }
  ]
}
```

**Example** (`is_short_link_invite not boolean`)

```json
{
  "errors": [
    {
      "code": 19067107,
      "message": "The `is_short_link_invite` field must be true or false."
    }
  ]
}
```

**Example** (`completion_emails value not array`)

```json
{
  "errors": [
    {
      "code": 19067007,
      "message": "Each element of array `completion_emails` should be of type array."
    }
  ]
}
```

**Example** (`Phone authentication not available`)

```json
{
  "errors": [
    {
      "code": 19068008,
      "message": "Phone authentication can't be used with the current subscription."
    }
  ]
}
```

**Example** (`authentication.password not string`)

```json
{
  "errors": [
    {
      "code": 19067060,
      "message": "Field `password` in `invites.signers.authentication` should be of type string."
    }
  ]
}
```

**Example** (`completion_emails.email not string`)

```json
{
  "errors": [
    {
      "code": 19067067,
      "message": "Field `email` in `completion_emails` should be of type string."
    }
  ]
}
```

**Example** (`Short link invite not in first step`)

```json
{
  "errors": [
    {
      "code": 19067105,
      "message": "Only default ordering is allowed with short link invites."
    }
  ]
}
```

**Example** (`authentication.sms_message not string`)

```json
{
  "errors": [
    {
      "code": 19067056,
      "message": "Field `sms_message` in `invites.signers.authentication` should be of type string."
    }
  ]
}
```

**Example** (`completion_emails.disabled not boolean`)

```json
{
  "errors": [
    {
      "code": 19067070,
      "message": "Field `disabled` in `completion_emails` should be of type bool."
    }
  ]
}
```

**Example** (`disable_document_attachment not boolean`)

```json
{
  "errors": [
    {
      "code": 19067071,
      "message": "Field `disable_document_attachment` in `completion_emails` should be of type bool."
    }
  ]
}
```

**Example** (`Email not allowed for short link invites`)

```json
{
  "errors": [
    {
      "code": 19067106,
      "message": "Short link invite cannot contain email field."
    }
  ]
}
```

### 403

User is not a document group owner.

**Example** (`Not document group owner`)

```json
{
  "errors": [
    {
      "code": 19001010,
      "message": "Current user is not document group owner."
    }
  ]
}
```

### 404

* Document group is not found.
* Document group invite is not found.

**Example** (`Invite not found`)

```json
{
  "errors": [
    {
      "code": 19002005,
      "message": "Document group invite `a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0` not found."
    }
  ]
}
```

**Example** (`Document group not found`)

```json
{
  "errors": [
    {
      "code": 19001011,
      "message": "Document group `unique_id` not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/document-groups/{dg_id}/invite/{dg_invite_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"cc": [{"email": "cc@email.com"}], "invites": [{"order": 1, "signers": [{"email": "signer1@email.com", "message": "Custom message", "subject": "Custom subject", "reassign": true, "reminder": {"remind_after": 2, "remind_before": 3, "remind_repeat": 5}, "documents": [{"id": "2274bf62786844e981584543275cdc0c88d67d45", "role": "Recipient", "action": "sign"}], "redirect_uri": "https://redirect.com", "expiration_days": 30, "close_redirect_uri": "https://close.com", "decline_by_signature": true, "decline_redirect_uri": "https://decline.com"}]}, {"order": 2, "signers": [{"email": "signer2@email.com", "message": "Custom message", "subject": "Custom subject", "reminder": {"remind_after": 2, "remind_before": 3, "remind_repeat": 5}, "documents": [{"id": "d2d3c991cf574ef18e99c745e41bffa0985855e0", "role": "Recipient", "action": "sign"}], "redirect_uri": "https://redirect.com", "authentication": {"type": "password", "password": "P@$$Word#123"}, "expiration_days": 30, "close_redirect_uri": "https://close.com", "decline_by_signature": true, "decline_redirect_uri": "https://decline.com"}]}], "order_type": "recipient_order", "mail_provider": "j.doe@email.com", "client_timestamp": "1720428823", "general_reminder": {"remind_after": 3, "remind_before": 5, "remind_repeat": 7}, "completion_emails": [{"email": "j.doe@email.com", "disabled": false, "disable_document_attachment": true}], "general_expiration_days": 30}'
```

---

## POST /v2/document-groups/{dg_id}/invite/{dg_invite_id}/correction — Initiate DG correction

This endpoint allows API users to put a document group invite into correction mode. After that, [complete the correction](/docs/document-group/operations/put-v2-document-groups-document-group-id-invite-document-group-invite-id-correction) to change the signers, documents, and invite settings.

A correction can be initiated after some recipients have already signed. When the correction starts:

* Invites in steps that are not yet completed are cancelled. Pending recipients cannot access the documents until the correction is completed.
* Completed steps and everything already signed are kept and locked.

**Notes**

* The invite must be in `pending` status.
* A document group cannot be corrected if:
    * the invite includes a guest signer who wasn't sent a short link, an approver, or an SMS invite,
    * the invite is embedded or includes email groups,
    * the document group was declined or is already in correction mode,
    * the document group contains multirole or conditional fields,
    * the document group is in a shared folder.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `dg_id` | string | Yes | ID of the document group. |
| `dg_invite_id` | string | Yes | ID of the document group invite. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "client_timestamp"
  ],
  "properties": {
    "client_timestamp": {
      "type": "integer",
      "description": "The timestamp of when the correction mode has been initiated.",
      "x-stoplight": {
        "id": "h5wjik7o8ikuv"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "client_timestamp": 1720428823
}
```

## Responses

### 204

Success, no content

### 400

* Group has a guest signer who wasn't sent a short link.
* Group invite is not pending.
* Group invite is embedded.
* Document group is already in a correction state.
* Document group contains multirole fields.
* Field invites with email groups are present.
* Document group is in a shared folder.
* Document group has conditional fields.
* Group invite includes approvers.
* Group invite includes SMS invites.
* Document group is declined.
* `client_timestamp` is not an integer.
* `client_timestamp` is out of the allowed range.
* `client_timestamp` is null.

**Example** (`Email group issue`)

```json
{
  "errors": [
    {
      "code": 19066007,
      "message": "Field invites with emails groups are present"
    }
  ]
}
```

**Example** (`DG in shared folder`)

```json
{
  "errors": [
    {
      "code": 19066008,
      "message": "Cannot initiate correction for DG in the shared folder."
    }
  ]
}
```

**Example** (`DG in declined state`)

```json
{
  "errors": [
    {
      "code": 19066012,
      "message": "Do not allow initiate correction for document group in declined state"
    }
  ]
}
```

**Example** (`Embedded group invite`)

```json
{
  "errors": [
    {
      "code": 19066004,
      "message": "Invite should not be embedded"
    }
  ]
}
```

**Example** (`DG in correction state`)

```json
{
  "errors": [
    {
      "code": 19066005,
      "message": "Document Group is already in correction state"
    }
  ]
}
```

**Example** (`DG with multirole fields`)

```json
{
  "errors": [
    {
      "code": 19066006,
      "message": "Document Group contains multirole fields"
    }
  ]
}
```

**Example** (`Group has a guest signer`)

```json
{
  "errors": [
    {
      "code": 19066001,
      "message": "Could not initiate correction mode when guest signer present"
    }
  ]
}
```

**Example** (`Group invite not pending`)

```json
{
  "errors": [
    {
      "code": 19066003,
      "message": "Invite should be pending"
    }
  ]
}
```

**Example** (`client_timestamp is null`)

```json
{
  "errors": [
    {
      "code": 19070003,
      "message": "Client timestamp should not be null."
    }
  ]
}
```

**Example** (`DG with conditional fields`)

```json
{
  "errors": [
    {
      "code": 19066009,
      "message": "Document group should not have conditional fields."
    }
  ]
}
```

**Example** (`client_timestamp not integer`)

```json
{
  "errors": [
    {
      "code": 19070001,
      "message": "Client timestamp should be a integer."
    }
  ]
}
```

**Example** (`client_timestamp out of range`)

```json
{
  "errors": [
    {
      "code": 19070002,
      "message": "The client timestamp should be between 0 and 4294967295."
    }
  ]
}
```

**Example** (`Group invite includes approvers`)

```json
{
  "errors": [
    {
      "code": 19066010,
      "message": "Do not allow initiate correction with approvers"
    }
  ]
}
```

**Example** (`Group invite includes SMS invites`)

```json
{
  "errors": [
    {
      "code": 19066011,
      "message": "Do not allow initiate correction with invites with type sms"
    }
  ]
}
```

### 403

User is not a document group owner.

**Example** (`User is not a document group owner`)

```json
{
  "errors": [
    {
      "code": 19001010,
      "message": "Current user is not document group owner."
    }
  ]
}
```

### 404

* Document group is not found.
* Document group invite is not found.

**Example** (`Invite not found`)

```json
{
  "errors": [
    {
      "code": 19002005,
      "message": "Document group invite `a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0` not found."
    }
  ]
}
```

**Example** (`Invite doesn't belong to this group`)

```json
{
  "errors": [
    {
      "code": 19001011,
      "message": "Document group `{uniqueId}` not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-groups/{dg_id}/invite/{dg_invite_id}/correction" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"client_timestamp": 1720428823}'
```

---

## GET /documentgroup/{document_group_id} — Get document group

This endpoint allows API users to retrieve details about a specific document group, including its documents, assigned roles, and any FreeForm or field invites. 
 
The `invite_id` property indicates the group invite if it exists, or is null if no invite has been created.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Responses

### 200

Successful response. Returns the document group with its documents, field invites, and settings. If an invite was sent to an email group, the field invite contains the `email_group` object.

**Example** (`Success`)

```json
{
  "id": "30437e7e3ad894ad0be758e1a2ba5c62f3ffa740",
  "state": "pending",
  "documents": [
    {
      "id": "d93b53d9be4911458c4086142bc2fb55ec8db6fb",
      "roles": [
        "Candidate",
        "HR manager",
        "Viewer 2",
        "Viewer 3"
      ],
      "settings": [],
      "thumbnail": {
        "large": "https://api.signnow.com/document/d93b53d9be4911458c4086142bc2fb55ec8db6fb/thumbnail?size=large",
        "small": "https://api.signnow.com/document/d93b53d9be4911458c4086142bc2fb55ec8db6fb/thumbnail?size=small",
        "medium": "https://api.signnow.com/document/d93b53d9be4911458c4086142bc2fb55ec8db6fb/thumbnail?size=medium"
      },
      "document_name": "Offerletter",
      "field_invites": [
        {
          "id": "92d66a3d6221a9b68a5f0efd5c07eb35a2e542e6",
          "short_link_url": null,
          "signature_type": null,
          "payment_request": null
        }
      ],
      "allowed_to_remove": true,
      "origin_document_id": "999ebdd807e4c13f70eb1892801de7eadfc2db37",
      "has_unassigned_field": false,
      "has_credit_card_number": false
    },
    {
      "id": "30437e7e3ad894ad0be758e1a2ba5c62f3ffa740",
      "roles": [
        "CEO",
        "Employee",
        "HR manager",
        "Viewer 1"
      ],
      "settings": [],
      "thumbnail": {
        "large": "https://api.signnow.com/document/30437e7e3ad894ad0be758e1a2ba5c62f3ffa740/thumbnail?size=large",
        "small": "https://api.signnow.com/document/30437e7e3ad894ad0be758e1a2ba5c62f3ffa740/thumbnail?size=small",
        "medium": "https://api.signnow.com/document/30437e7e3ad894ad0be758e1a2ba5c62f3ffa740/thumbnail?size=medium"
      },
      "document_name": "EMPLOYMENTCONTRACT",
      "field_invites": [
        {
          "id": "137585228f7a637219654153e3c38e822eaf0ddc",
          "short_link_url": null,
          "signature_type": null,
          "payment_request": null
        },
        {
          "id": "e1aa9caeadf499eb6954d6819d04af6b3dd21c9d",
          "short_link_url": null,
          "signature_type": null,
          "payment_request": null
        }
      ],
      "allowed_to_remove": true,
      "origin_document_id": "18dc0d5ce407fb16c1d7fc5ca7c7c383f356061b",
      "has_unassigned_field": false,
      "has_credit_card_number": false
    }
  ],
  "folder_id": "93a42c36781b041ac907e1f744fedd2b7564ef20",
  "invite_id": "9b24f849fee97647a7b88ecf7cd94969af83aa41",
  "group_name": "Jessica Moore onboarding package",
  "share_info": {
    "role": "owner",
    "is_personally_shared_to_others": false
  },
  "mail_provider": null,
  "freeform_invite": {
    "id": null
  },
  "scheduled_invite": null,
  "email_action_on_complete": null,
  "document_group_attributes": {
    "from_name": "Sample Sender",
    "from_email": "owner@email.com"
  },
  "originator_organization_settings": [
    {
      "value": "0",
      "setting": "no_user_signature_return"
    },
    {
      "value": "https://app.signnow.com/webapp/",
      "setting": "invite_completion_redirect_url"
    },
    {
      "value": "https://app.signnow.com/webapp/",
      "setting": "invite_decline_redirect_url"
    },
    {
      "value": "0",
      "setting": "required_preset_signature_name"
    },
    {
      "value": "0",
      "setting": "require_email_subject"
    },
    {
      "value": "0",
      "setting": "require_login_for_signing"
    },
    {
      "value": "0",
      "setting": "logout_on_signing"
    },
    {
      "value": "0",
      "setting": "front_end_session_length"
    },
    {
      "value": "0",
      "setting": "add_signature_stamp_with_name"
    },
    {
      "value": "0",
      "setting": "cfr_title_21_part_11"
    },
    {
      "value": "0",
      "setting": "require_authentication_for_invites"
    },
    {
      "value": "1",
      "setting": "document_guide"
    },
    {
      "value": "0",
      "setting": "disable_email_notifications"
    },
    {
      "value": "no",
      "setting": "block_login_via_social_networks"
    },
    {
      "value": "1",
      "setting": "common_experiments"
    },
    {
      "value": "0",
      "setting": "hide_decline_to_sign_option_in_signing_session"
    },
    {
      "value": "0",
      "setting": "hide_upgrade_subscription_button"
    },
    {
      "value": "",
      "setting": "do_no_consent_redirect_url"
    },
    {
      "value": "0",
      "setting": "lock_signing_date_by_default"
    },
    {
      "value": "0",
      "setting": "allow_download_certificate"
    },
    {
      "value": "0",
      "setting": "have_merged_document_group_option"
    },
    {
      "value": "1",
      "setting": "guide_signers_only_through_required_fields"
    },
    {
      "value": "30",
      "setting": "invite_expiration_days"
    },
    {
      "value": "0",
      "setting": "allow_big_attachment_file"
    },
    {
      "value": "0",
      "setting": "allow_big_count_of_attachment_fields_per_document"
    },
    {
      "value": "0",
      "setting": "enable_hyperlink_field"
    },
    {
      "value": "0",
      "setting": "disable_download_action_in_editor"
    },
    {
      "value": "bottom",
      "setting": "signature_stamp_position"
    },
    {
      "value": "0",
      "setting": "enable_pki"
    },
    {
      "value": "1",
      "setting": "save_signer_signature_and_initials"
    },
    {
      "value": "1",
      "setting": "auto_apply_signatures_and_initials_to_document_fields"
    },
    {
      "value": "0",
      "setting": "receive_signer_email_after_sent_field_invite_to_yourself"
    },
    {
      "value": "0",
      "setting": "allow_edit_document_after_signing"
    },
    {
      "value": "off",
      "setting": "every_signature_and_initials_field_requires_user_authentication"
    },
    {
      "value": "0",
      "setting": "enable_render_pages_in_editor_as_images"
    },
    {
      "value": "0",
      "setting": "enable_team_admin_move_docs"
    },
    {
      "value": "0",
      "setting": "disable_email_recipients"
    },
    {
      "value": "0",
      "setting": "allow_team_admin_rename_docs"
    },
    {
      "value": "0",
      "setting": "allow_qes"
    },
    {
      "value": "0",
      "setting": "enable_qes"
    },
    {
      "value": "https://www.signnow.com/",
      "setting": "invite_canceled_redirect_url"
    },
    {
      "value": "https://app.signnow.com/webapp/",
      "setting": "save_draft_redirect_url"
    },
    {
      "value": "0",
      "setting": "add_signers_name_to_document_history_header"
    }
  ]
}
```

**Example** (`Success with email_group block`)

```json
{
  "id": "f43ff62a4d42d9fc7f4a9d42c6c4eb148ca44475",
  "state": "pending",
  "documents": [
    {
      "id": "da6f422f866373b83c88e52cea78899d7a681a3c",
      "roles": [
        "Signer 1"
      ],
      "settings": [],
      "thumbnail": {
        "large": "https://api.signnow.com/document/da6f422f866373b83c88e52cea78899d7a681a3c/thumbnail?size=large",
        "small": "https://api.signnow.com/document/da6f422f866373b83c88e52cea78899d7a681a3c/thumbnail?size=small",
        "medium": "https://api.signnow.com/document/da6f422f866373b83c88e52cea78899d7a681a3c/thumbnail?size=medium"
      },
      "document_name": "Sample document",
      "field_invites": [
        {
          "id": "b699855092987022b53465340611c907a2618cbd",
          "email_group": {
            "id": "43818066bb1705a385923691ebefc28fb2335593",
            "name": "Sample group name"
          },
          "short_link_url": null,
          "signature_type": null,
          "payment_request": null
        }
      ],
      "allowed_to_remove": true,
      "origin_document_id": null,
      "has_unassigned_field": false,
      "has_credit_card_number": false
    }
  ],
  "folder_id": "c2d95f69c564baebbfaf507c87a722eac23f3392",
  "invite_id": "c3a2dc52f15b699f4ffd932a33b6a9d83cc0cf64",
  "group_name": "Group with email_group invite",
  "share_info": {
    "role": "owner",
    "is_personally_shared_to_others": false
  },
  "mail_provider": null,
  "freeform_invite": {
    "id": null
  },
  "scheduled_invite": null,
  "email_action_on_complete": null,
  "document_group_attributes": {
    "from_name": "Sample Sender",
    "from_email": "owner@email.com"
  },
  "originator_organization_settings": []
}
```

### 400

* Wrong, expired, or missing token.
* The document group doesn't exist.
* The document group belongs to another user.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Not the owner`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "User is not document group owner"
    }
  ]
}
```

**Example** (`Document group not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "unable to find document group"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/documentgroup/{document_group_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /documentgroup/{document_group_id}/historyfull — Get document group history

This endpoint allows API users to retrieve the full history of a document group. 

For the events:

* `document_group_authentication_success`
* `document_group_authentication_failure`

the response may contain an additional parameter `phone_number_2fa` which shows the signer's phone number used for authentication method `phone` or `sms`. 

For the event: 

* `document_group_authentication_success` 

the response may contain an additional parameter `authentication_code` which shows the code used for authentication method `sms`. The signer receives a code by SMS and enters this code to access the opened document.

<details>

**<summary>View the complete list of document group events:</summary>**

| **Event name** | **Meaning** |
| --- | --- |
| `document_group_created` | The document group was created. |
| `document_group_user_logged_in` | A user logged in during interaction with the document group. |
| `document_group_viewed` | The document group was viewed. |
| `document_group_approved` | The document group was approved. |
| `document_group_signed` | The document group was signed. |
| `document_group_sign_owner_attachment_sent` | The completed document group was sent to the owner as an attachment. |
| `document_group_sign_signer_attachment_sent` | The completed document group was sent to the signer as an attachment. |
| `document_group_downloaded` | The document group was downloaded. |
| `document_group_invite_sent` | The document group invite was sent. |
| `document_group_invite_resend` | The document group invite was resent. |
| `document_group_invite_completed` | The document group invite was completed. |
| `document_group_invite_cancelled` | The document group invite was cancelled. |
| `document_group_invite_full_declined` | The document group invite was declined by all recipients. |
| `document_group_invite_approver_full_declined` | The document group invite was declined by all approvers. |
| `document_group_fieldinvite_declined` | The document group field invite was declined. |
| `document_group_freeform_invite_sent` | A FreeForm invite for the document group was sent. |
| `document_group_freeform_invite_resend` | A FreeForm invite for the document group was resent. |
| `document_group_freeform_invite_cancelled` | A FreeForm invite for the document group was cancelled. |
| `document_group_freeform_invite_signed_by_user` | A recipient signed a FreeForm invite for the document group. |
| `document_group_freeform_invite_completed` | A FreeForm invite for the document group was completed. |
| `document_group_freeform_sign_owner_attachment_sent` | The document group signed in a FreeForm invite was sent to the owner. |
| `document_group_freeform_sign_signer_attachment_sent` | The document group signed in a FreeForm invite was sent to the signer. |
| `document_group_authentication_success` | A document group signer successfully passed authentication. |
| `document_group_authentication_failure` | A document group signer failed to pass authentication. |
| `document_group_approver_authentication_success` | A document group approver successfully passed authentication. |
| `document_group_approver_authentication_failure` | A document group approver failed to pass authentication. |
| `document_group_correction_start` | A correction process started for the document group. |
| `document_group_correction_finish` | A correction process finished for the document group. |

</details>

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Responses

### 200

Successful response. Returns the history events of the document group, with pagination details and a summary in `meta`. For the `document_group_authentication_success` and `document_group_authentication_failure` events, `json_attributes` contains `authentication_type` and `phone_number_2fa`.

The `id_address` attribute is deprecated. Use `ip_address` instead.

**Example** (`without invite`)

```json
{
  "data": [
    {
      "email": "owner@email.com",
      "event": "document_group_downloaded",
      "created": 1590054771,
      "user_id": "ff294db734e38215507200f1d3dc76c526162807",
      "unique_id": "5a4f923de5fb2554fc2ef3a8b7697653cf6e489f",
      "ip_address": "00.00.00.00",
      "session_id": null,
      "client_app_name": "Sample Application",
      "json_attributes": null,
      "client_timestamp": 1586165940,
      "document_group_id": "be3f35eab7b07c0346eedc9fe4f04bd0d80edef4"
    }
  ],
  "meta": {
    "summary": {
      "created": 1625136688,
      "amount_of_pages": 11
    },
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

**Example** (`with a group invite`)

```json
{
  "data": [
    {
      "email": "sender@email.com",
      "event": "document_group_downloaded",
      "created": 1590054771,
      "user_id": "ff294db734e38215507200f1d3dc76c526162807",
      "unique_id": "5a4f923de5fb2554fc2ef3a8b7697653cf6e489f",
      "ip_address": "142.32.0.1",
      "session_id": null,
      "client_app_name": "Sample Application",
      "json_attributes": null,
      "client_timestamp": 1586165940,
      "document_group_id": "be3f35eab7b07c0346eedc9fe4f04bd0d80edef4"
    }
  ],
  "meta": {
    "summary": {
      "sender": "sender@email.com",
      "created": 1625136688,
      "group_sent": 1622029581,
      "recipients": [
        "recipient1@email.com",
        "recipient2@email.com"
      ],
      "group_status": "pending",
      "last_updated": 1625233888,
      "amount_of_pages": 11
    },
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

**Example** (`document group authentication failure`)

```json
{
  "data": [
    {
      "email": "owner_document_group@email.com",
      "event": "document_group_created",
      "created": 1672751428,
      "user_id": "356649ccba2b15c14eddea110332624ae78004c7",
      "unique_id": "95c839c729403f5ca270b55f0b3a2dd3a6e31790",
      "ip_address": "00.00.00.00",
      "client_app_name": "Sample application",
      "json_attributes": null,
      "client_timestamp": 0,
      "document_group_id": "7d78249073af6aaa8eb55e0c8a4446e2330e64ea"
    },
    {
      "email": "owner_document_group@email.com",
      "event": "document_group_invite_sent",
      "created": 1672751636,
      "user_id": "356649ccba2b15c14eddea110332624ae78004c7",
      "unique_id": "c47080a79f246198e4ccb9c618ed74ac633cb125",
      "ip_address": "00.00.00.00",
      "client_app_name": "Sample application",
      "json_attributes": {
        "signers": [
          "signer1@email.com",
          "signer2@email.com"
        ],
        "viewers": [],
        "document_unique_ids": [
          "0169d7c027e348a2e0bef03cc8ed56377492bfcc"
        ],
        "group_invite_unique_id": "8d3d035260de5e7d4300b931f77f024088e18fcd"
      },
      "client_timestamp": 1745310494,
      "document_group_id": "7d78249073af6aaa8eb55e0c8a4446e2330e64ea"
    },
    {
      "email": "signer1@email.com",
      "event": "document_group_authentication_failure",
      "created": 1672751775,
      "user_id": "6a27b7c3316c2cb8ae6ebdc2d96721b2735a2249",
      "unique_id": "78987dda51aa730232f06342277c32897f3d02fe",
      "ip_address": "00.00.00.00",
      "client_app_name": "Sample Application",
      "json_attributes": {
        "phone_number_2fa": "+1XXX-XXXXXXX",
        "authentication_type": "sms",
        "document_unique_ids": [
          "0169d7c027e348a2e0bef03cc8ed56377492bfcc"
        ],
        "group_invite_unique_id": "8d3d035260de5e7d4300b931f77f024088e18fcd"
      },
      "client_timestamp": 1672751775,
      "document_group_id": "7d78249073af6aaa8eb55e0c8a4446e2330e64ea"
    },
    {
      "email": "signer2@email.com",
      "event": "document_group_authentication_failure",
      "created": 1672751811,
      "user_id": "83c4e7e0455617f7e4fe3db5a29a73c96349f52a",
      "unique_id": "0d0dbedfb5dcbca7a264a2492e251e2e861965f0",
      "ip_address": "00.00.00.00",
      "client_app_name": "Sample Application",
      "json_attributes": {
        "phone_number_2fa": "+1XXX-XXXXXXX",
        "authentication_type": "phone_call",
        "document_unique_ids": [
          "0169d7c027e348a2e0bef03cc8ed56377492bfcc"
        ],
        "group_invite_unique_id": "8d3d035260de5e7d4300b931f77f024088e18fcd"
      },
      "client_timestamp": 1672751811,
      "document_group_id": "7d78249073af6aaa8eb55e0c8a4446e2330e64ea"
    }
  ],
  "meta": {
    "summary": {
      "sender": "owner_document_group@email.com",
      "created": 1672751428,
      "cc_emails": [
        "cc-recipient1@email.com",
        "cc-recipient2@email.com"
      ],
      "group_sent": 1672751635,
      "recipients": [
        "signer1@email.com",
        "signer2@email.com"
      ],
      "group_status": "pending",
      "last_updated": 1672751635,
      "amount_of_pages": 2
    }
  }
}
```

### 400

* Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

The user does not have access to the document group.

**Example** (`The user does not have access to the document group`)

```json
{
  "errors": [
    {
      "message": "Access to DocumentGroup denied"
    }
  ]
}
```

### 404

* The document group was not found.
* The document group is not active.

**Example** (`Document group not found`)

```json
{
  "errors": [
    {
      "message": "Document group `ff294db734e38215507200f1d3dc76c526162807` not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/documentgroup/{document_group_id}/historyfull" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /user/documentgroups — Get document groups

This endpoint allows API users to get all document groups the user owns. 

Results are sorted by `last_updated` and paginated with the `limit` and `offset` query parameters.

## Authorization

bearer

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `limit` | integer | Yes | Number of document groups to return. Min: `1`, Max: `50`. |
| `offset` | integer | No | Number of document groups to skip. Min: `0`. Default: `0`. |

## Responses

### 200

Document groups owned by the user.

**Example** (`Successful response`)

```json
{
  "document_groups": [
    {
      "state": "created",
      "group_id": "153b4dd70d65deeecd9de9728c53649f4da1f046",
      "documents": [
        {
          "id": "ff25a62f1451abbdc91e6eaaaf80e13f6b01fb4f",
          "name": "Sample document",
          "roles": [
            "Signer 1",
            "Signer 2"
          ],
          "settings": {
            "advanced_signing_flow": false
          },
          "thumbnail": {
            "large": "https://api.signnow.com/document/ff25a62f1451abbdc91e6eaaaf80e13f6b01fb4f/thumbnail?size=large",
            "small": "https://api.signnow.com/document/ff25a62f1451abbdc91e6eaaaf80e13f6b01fb4f/thumbnail?size=small",
            "medium": "https://api.signnow.com/document/ff25a62f1451abbdc91e6eaaaf80e13f6b01fb4f/thumbnail?size=medium"
          },
          "page_count": 2,
          "has_credit_card_number": false
        }
      ],
      "folder_id": null,
      "invite_id": null,
      "group_name": "Sample document group",
      "is_embedded": false,
      "last_updated": "1792662063",
      "invite_status": null,
      "freeform_invite": {
        "id": null
      },
      "has_guest_signer": false,
      "is_full_declined": false,
      "has_signing_group": false
    }
  ],
  "document_group_total_count": 1,
  "originator_organization_settings": [
    {
      "value": "0",
      "setting": "require_email_subject"
    },
    {
      "value": "1",
      "setting": "document_guide"
    }
  ]
}
```

### 400

* Wrong, expired, or missing token.
* `limit` is missing or isn't between `1` and `50`.
* `offset` is less than `0`.

**Example** (`Wrong limit`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The limit query parameter is required and must be between 1 and 50"
    }
  ]
}
```

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Wrong offset`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The offset query parameter is required and must be 0 or greater"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/user/documentgroups" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/document-groups/{document_group_id} — Get document group info (v.2)

This endpoint allows API users to retrieve detailed information about a specific document group, including its documents, assigned roles, field and FreeForm invites, share info, owner details, and originator organization settings.

Available to the document group owner and to any user invited on any step, regardless of the current invite or step status.

**Notes**

* Use the `include` query parameter to add optional data to the response. To request several values, separate them with commas, for example `?include=documents.fields,reminder`. Unknown values are ignored.
* With `?include=documents.fields`, each item in `documents` contains a `fields` array. Without it, the response doesn't include `fields`, so existing integrations are not affected.
* The objects in `fields` have the same format as the `fields` array of [`GET /document/{document_id}`](/docs/document/operations/get-document) and cover all field types it returns.
* The response doesn't include dropdown options (`enumeration_options`) or checkbox groups (`checkbox_groups`). [`GET /document/{document_id}`](/docs/document/operations/get-document) returns them at the document level, so call it for each document that needs them.
* To add or update fields, call [`PUT /document/{document_id}`](/docs/document/operations/edit-document) for each document.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `include=document_group_attributes` | string | No | If used, the response will contain document group attributes. |
| `include=reminder` | string | No | If used, the response includes `general_expiration_time`, `general_expiration_days`, and `general_reminder` — defaults applied to all recipients in the invite. |
| `include=documents.fields` | string | No | If used, each item in `documents` contains a `fields` array with the fields of that document. |
| `include=documents.freeform_invites` | string | No | If used, each item in `documents` contains a `freeform_invites` array with the FreeForm invites sent for that document. |
| `include=documents.signatures` | string | No | If used, each item in `documents` contains a `signatures` array with the signatures added to that document. |
| `include=entity_labels` | string | No | If used, the response contains `entity_labels`: the labels assigned to the document group. |
| `include=origin_dgt` | string | No | If used, the response contains `origin_dgt`: the document group template the document group was created from. |
| `include=recently_used` | string | No | If used, the response contains `recently_used`: the Unix timestamp of the last activity on the document group. |

## Responses

### 200

Successful response. Returns the document group with its documents, invites, and owner. To also return document fields, signatures, labels, the source template, or the last activity time, use the `include` query parameter.

**Example** (`Field invite`)

```json
{
  "data": {
    "id": "d6cd5f48ad2301d6b2b62453e84a4e0e3e9d1700",
    "name": "Sample document group",
    "owner": {
      "id": "570759912460bad0cdce7059b2bbbd2abc3c84b8",
      "email": "owner@email.com",
      "organization": {
        "id": "1e5ec308d0b7bb7637ee53468a49a79803871c52"
      }
    },
    "state": "pending",
    "created": 1774375376,
    "updated": 1777288567,
    "cc_emails": [],
    "documents": [
      {
        "id": "d473cdd7510d07f5c82934d3b8da92fd23c86316",
        "owner": {
          "id": "570759912460bad0cdce7059b2bbbd2abc3c84b8",
          "email": "owner@email.com"
        },
        "roles": [
          "Candidate",
          "HR manager",
          "Viewer 2",
          "Viewer 3"
        ],
        "updated": 1777288568,
        "settings": [],
        "folder_id": "ed9f287bc5e59f8dd8eb2568f2955093d05f6cee",
        "thumbnail": {
          "large": "https://api.signnow.com/document/d473cdd7510d07f5c82934d3b8da92fd23c86316/thumbnail?size=large",
          "small": "https://api.signnow.com/document/d473cdd7510d07f5c82934d3b8da92fd23c86316/thumbnail?size=small",
          "medium": "https://api.signnow.com/document/d473cdd7510d07f5c82934d3b8da92fd23c86316/thumbnail?size=medium"
        },
        "has_fields": true,
        "page_count": 1,
        "document_name": "Offerletter",
        "field_invites": [
          {
            "id": "c91ea1fc73e44ce3c6005bc39e7fcec3b144d219",
            "role": "HR manager",
            "action": "approve",
            "status": "pending",
            "created": 1777288568,
            "message": "Sample document group needs your signature.",
            "updated": 1777288568,
            "language": null,
            "compliance": {
              "cfr": null
            },
            "email_group": {
              "id": null,
              "name": null
            },
            "signer_email": "signer1@email.com",
            "signing_order": 1,
            "email_statuses": [
              {
                "status": "sent",
                "created_at": 1777288569,
                "last_reaction_at": 1777288569
              },
              {
                "status": "mail_open",
                "created_at": 1777289723,
                "last_reaction_at": 1777289723
              }
            ],
            "short_link_url": null,
            "signature_type": null,
            "expiration_days": 30,
            "expiration_time": 1779880568,
            "payment_request": null,
            "is_full_declined": false,
            "next_reminder_at": null,
            "sms_sent_statuses": [],
            "password_protected": "0",
            "signer_phone_invite": null
          },
          {
            "id": "5a7861d04272e14393eaf0ca2ad58ab62ff8061f",
            "role": "Candidate",
            "action": "sign",
            "status": "created",
            "created": 1777288568,
            "message": "Sample document group needs your signature.",
            "updated": 1777288568,
            "language": null,
            "compliance": {
              "cfr": null
            },
            "email_group": {
              "id": null,
              "name": null
            },
            "signer_email": "signer2@email.com",
            "signing_order": 2,
            "email_statuses": [],
            "short_link_url": null,
            "signature_type": null,
            "expiration_days": 30,
            "expiration_time": null,
            "payment_request": null,
            "is_full_declined": false,
            "next_reminder_at": null,
            "sms_sent_statuses": [],
            "password_protected": "0",
            "signer_phone_invite": null
          },
          {
            "id": "549928d4aaa7f9671a02dbaf06cbaf15442a7f86",
            "role": "Viewer 2",
            "action": "view",
            "status": "created",
            "created": 1777288568,
            "message": "Sample document group needs your signature.",
            "updated": 1777288568,
            "language": null,
            "compliance": {
              "cfr": null
            },
            "email_group": {
              "id": null,
              "name": null
            },
            "signer_email": "signer3@email.com",
            "signing_order": 3,
            "email_statuses": [],
            "short_link_url": null,
            "signature_type": null,
            "expiration_days": 30,
            "expiration_time": null,
            "payment_request": null,
            "is_full_declined": false,
            "next_reminder_at": null,
            "sms_sent_statuses": [],
            "password_protected": "0",
            "signer_phone_invite": null
          },
          {
            "id": "f72781cd8814e11b4058232e0107fb01606bc1b3",
            "role": "Viewer 3",
            "action": "view",
            "status": "created",
            "created": 1777288568,
            "message": "Sample document group needs your signature.",
            "updated": 1777288568,
            "language": null,
            "compliance": {
              "cfr": null
            },
            "email_group": {
              "id": null,
              "name": null
            },
            "signer_email": "signer4@email.com",
            "signing_order": 4,
            "email_statuses": [],
            "short_link_url": null,
            "signature_type": null,
            "expiration_days": 30,
            "expiration_time": null,
            "payment_request": null,
            "is_full_declined": false,
            "next_reminder_at": null,
            "sms_sent_statuses": [],
            "password_protected": "0",
            "signer_phone_invite": null
          }
        ],
        "allow_to_remove": true,
        "shared_with_team": null,
        "origin_document_id": "7cb0045bd5d446aabd178e546e7a2fcd4c4975e1",
        "has_unassigned_field": false,
        "has_credit_card_number": false
      },
      {
        "id": "d6cd5f48ad2301d6b2b62453e84a4e0e3e9d1700",
        "owner": {
          "id": "570759912460bad0cdce7059b2bbbd2abc3c84b8",
          "email": "owner@email.com"
        },
        "roles": [
          "CEO",
          "Employee",
          "HR manager",
          "Viewer 1"
        ],
        "updated": 1777288568,
        "settings": [],
        "folder_id": "ed9f287bc5e59f8dd8eb2568f2955093d05f6cee",
        "thumbnail": {
          "large": "https://api.signnow.com/document/d6cd5f48ad2301d6b2b62453e84a4e0e3e9d1700/thumbnail?size=large",
          "small": "https://api.signnow.com/document/d6cd5f48ad2301d6b2b62453e84a4e0e3e9d1700/thumbnail?size=small",
          "medium": "https://api.signnow.com/document/d6cd5f48ad2301d6b2b62453e84a4e0e3e9d1700/thumbnail?size=medium"
        },
        "has_fields": true,
        "page_count": 1,
        "document_name": "EMPLOYMENTCONTRACT",
        "field_invites": [
          {
            "id": "fb1bac88d11794ddb3dd0eae96bee680a6a6a73e",
            "role": "HR manager",
            "action": "approve",
            "status": "pending",
            "created": 1777288568,
            "message": "Sample document group needs your signature.",
            "updated": 1777288568,
            "language": null,
            "compliance": {
              "cfr": null
            },
            "email_group": {
              "id": null,
              "name": null
            },
            "signer_email": "signer1@email.com",
            "signing_order": 1,
            "email_statuses": [
              {
                "status": "sent",
                "created_at": 1777288569,
                "last_reaction_at": 1777288569
              },
              {
                "status": "mail_open",
                "created_at": 1777289723,
                "last_reaction_at": 1777289723
              }
            ],
            "short_link_url": null,
            "signature_type": null,
            "expiration_days": 30,
            "expiration_time": 1779880568,
            "payment_request": null,
            "is_full_declined": false,
            "next_reminder_at": null,
            "sms_sent_statuses": [],
            "password_protected": "0",
            "signer_phone_invite": null
          },
          {
            "id": "20e5fa559c93e95bad63f4a64d53d718566400b0",
            "role": "Viewer 1",
            "action": "view",
            "status": "created",
            "created": 1777288568,
            "message": "Sample document group needs your signature.",
            "updated": 1777288568,
            "language": null,
            "compliance": {
              "cfr": null
            },
            "email_group": {
              "id": null,
              "name": null
            },
            "signer_email": "signer3@email.com",
            "signing_order": 2,
            "email_statuses": [],
            "short_link_url": null,
            "signature_type": null,
            "expiration_days": 30,
            "expiration_time": null,
            "payment_request": null,
            "is_full_declined": false,
            "next_reminder_at": null,
            "sms_sent_statuses": [],
            "password_protected": "0",
            "signer_phone_invite": null
          },
          {
            "id": "7d18c8f296b5866bcfa4c5d737bc74675b233a25",
            "role": "CEO",
            "action": "sign",
            "status": "created",
            "created": 1777288568,
            "message": "Sample document group needs your signature.",
            "updated": 1777288568,
            "language": null,
            "compliance": {
              "cfr": null
            },
            "email_group": {
              "id": null,
              "name": null
            },
            "signer_email": "signer2@email.com",
            "signing_order": 3,
            "email_statuses": [],
            "short_link_url": null,
            "signature_type": null,
            "expiration_days": 30,
            "expiration_time": null,
            "payment_request": null,
            "is_full_declined": false,
            "next_reminder_at": null,
            "sms_sent_statuses": [],
            "password_protected": "0",
            "signer_phone_invite": null
          },
          {
            "id": "14f918246445443c6a97120294fae395762fc9da",
            "role": "Employee",
            "action": "sign",
            "status": "created",
            "created": 1777288568,
            "message": "Sample document group needs your signature.",
            "updated": 1777288568,
            "language": null,
            "compliance": {
              "cfr": null
            },
            "email_group": {
              "id": null,
              "name": null
            },
            "signer_email": "signer4@email.com",
            "signing_order": 4,
            "email_statuses": [],
            "short_link_url": null,
            "signature_type": null,
            "expiration_days": 30,
            "expiration_time": null,
            "payment_request": null,
            "is_full_declined": false,
            "next_reminder_at": null,
            "sms_sent_statuses": [],
            "password_protected": "0",
            "signer_phone_invite": null
          }
        ],
        "allow_to_remove": true,
        "shared_with_team": null,
        "origin_document_id": "2d5865bbde01c9f26e75a8c6d9800b6a301cdf22",
        "has_unassigned_field": false,
        "has_credit_card_number": false
      }
    ],
    "folder_id": "ed9f287bc5e59f8dd8eb2568f2955093d05f6cee",
    "invite_id": "c3ad976ec7e2db6434d1f678021a3c5489d59b86",
    "expires_at": 1779880568,
    "share_info": {
      "role": "owner",
      "is_team_shared": false,
      "is_personally_shared_to_others": false
    },
    "owner_email": "owner@email.com",
    "sender_name": "Sample Sender",
    "completed_at": null,
    "sender_email": "owner@email.com",
    "mail_provider": null,
    "last_invite_id": "c3ad976ec7e2db6434d1f678021a3c5489d59b86",
    "sign_as_merged": true,
    "freeform_invite": {
      "id": null,
      "last_id": null,
      "message": null
    },
    "pending_step_id": "ac970cd9495b3611d20953912cee03346edca06a",
    "general_reminder": {
      "remind_after": 3,
      "remind_before": 5,
      "remind_repeat": 7
    },
    "scheduled_invite": null,
    "general_expiration_days": 30,
    "general_expiration_time": null,
    "email_action_on_complete": null,
    "document_group_attributes": {
      "from_name": "Sample Sender",
      "from_email": "owner@email.com"
    },
    "originator_organization_settings": [
      {
        "value": "no",
        "setting": "digitally_sign_dowloaded_docs"
      },
      {
        "value": "no",
        "setting": "electronic_consent_required"
      },
      {
        "value": "0",
        "setting": "require_email_subject"
      },
      {
        "value": "0",
        "setting": "require_authentication_for_invites"
      },
      {
        "value": "https://www.signnow.com/",
        "setting": "invite_canceled_redirect_url"
      },
      {
        "value": "https://app.signnow.com/webapp/",
        "setting": "invite_completion_redirect_url"
      },
      {
        "value": "https://app.signnow.com/webapp/",
        "setting": "invite_decline_redirect_url"
      },
      {
        "value": "https://app.signnow.com/webapp/",
        "setting": "save_draft_redirect_url"
      },
      {
        "value": "0",
        "setting": "disable_branding_setup"
      },
      {
        "value": "1",
        "setting": "guide_signers_only_through_required_fields"
      },
      {
        "value": "1",
        "setting": "document_guide"
      },
      {
        "value": "0",
        "setting": "required_preset_signature_name"
      },
      {
        "value": "0",
        "setting": "require_login_for_signing"
      },
      {
        "value": "0",
        "setting": "logout_on_signing"
      },
      {
        "value": "0",
        "setting": "front_end_session_length"
      },
      {
        "value": "0",
        "setting": "add_signature_stamp_with_name"
      },
      {
        "value": "0",
        "setting": "cfr_title_21_part_11"
      },
      {
        "value": "0",
        "setting": "no_user_signature_return"
      },
      {
        "value": "0",
        "setting": "disable_email_notifications"
      },
      {
        "value": "no",
        "setting": "block_login_via_social_networks"
      },
      {
        "value": "0",
        "setting": "hide_upgrade_subscription_button"
      },
      {
        "value": "0",
        "setting": "hide_decline_to_sign_option_in_signing_session"
      },
      {
        "value": "1",
        "setting": "common_experiments"
      },
      {
        "value": "0",
        "setting": "have_merged_document_group_option"
      },
      {
        "value": "0",
        "setting": "allow_download_certificate"
      },
      {
        "value": "30",
        "setting": "invite_expiration_days"
      },
      {
        "value": "0",
        "setting": "allow_big_count_of_attachment_fields_per_document"
      },
      {
        "value": "0",
        "setting": "allow_big_attachment_file"
      },
      {
        "value": "0",
        "setting": "enable_hyperlink_field"
      },
      {
        "value": "0",
        "setting": "disable_download_action_in_editor"
      },
      {
        "value": "bottom",
        "setting": "signature_stamp_position"
      },
      {
        "value": "1",
        "setting": "save_signer_signature_and_initials"
      },
      {
        "value": "1",
        "setting": "auto_apply_signatures_and_initials_to_document_fields"
      },
      {
        "value": "0",
        "setting": "receive_signer_email_after_sent_field_invite_to_yourself"
      },
      {
        "value": "0",
        "setting": "allow_edit_document_after_signing"
      },
      {
        "value": "0",
        "setting": "enable_render_pages_in_editor_as_images"
      },
      {
        "value": "off",
        "setting": "every_signature_and_initials_field_requires_user_authentication"
      },
      {
        "value": "0",
        "setting": "enable_team_admin_move_docs"
      },
      {
        "value": "0",
        "setting": "allow_team_admin_rename_docs"
      },
      {
        "value": "0",
        "setting": "disable_email_recipients"
      },
      {
        "value": "0",
        "setting": "allow_qes"
      },
      {
        "value": "0",
        "setting": "enable_qes"
      },
      {
        "value": "0",
        "setting": "add_signers_name_to_document_history_header"
      }
    ]
  }
}
```

**Example** (`Freeform invite`)

```json
{
  "data": {
    "id": "1247cb7c03b5c347d8d1dfdcf7f2183c2016210c",
    "name": "Sample document group with freeform invite",
    "owner": {
      "id": "f72781cd8814e11b4058232e0107fb01606bc1b3",
      "email": "owner@email.com",
      "organization": {
        "id": "e092530a535246370afe2fd2a79d5b06555aa7dc"
      }
    },
    "state": "pending",
    "created": 1686312228,
    "updated": 1686312300,
    "cc_emails": [],
    "documents": [
      {
        "id": "07e35323aafcb71f4b0158682c00695e3e9d0e97",
        "owner": {
          "id": "f72781cd8814e11b4058232e0107fb01606bc1b3",
          "email": "owner@email.com"
        },
        "roles": [
          "Signer 1"
        ],
        "updated": 1686312233,
        "settings": [],
        "folder_id": null,
        "thumbnail": {
          "large": "https://api.signnow.com/document/07e35323aafcb71f4b0158682c00695e3e9d0e97/thumbnail?size=large",
          "small": "https://api.signnow.com/document/07e35323aafcb71f4b0158682c00695e3e9d0e97/thumbnail?size=small",
          "medium": "https://api.signnow.com/document/07e35323aafcb71f4b0158682c00695e3e9d0e97/thumbnail?size=medium"
        },
        "has_fields": false,
        "page_count": 1,
        "document_name": "Sample document",
        "field_invites": [],
        "allow_to_remove": true,
        "freeform_invites": [
          {
            "id": "ff7c7b3345e259cc8359d3ac01240aab2660a187",
            "email": "signer@email.com",
            "status": "pending",
            "language": null,
            "email_statuses": [
              {
                "status": "sent",
                "created_at": 1686312234,
                "last_reaction_at": 1686312234
              },
              {
                "status": "mail_open",
                "created_at": 1686398634,
                "last_reaction_at": 1686398634
              }
            ]
          }
        ],
        "shared_with_team": null,
        "origin_document_id": null,
        "has_unassigned_field": false,
        "has_credit_card_number": false
      }
    ],
    "folder_id": null,
    "invite_id": "22e8cb67851990a1d43556b5dc7c0b12cc5a98dc",
    "expires_at": null,
    "share_info": {
      "role": "owner",
      "is_team_shared": false,
      "is_personally_shared_to_others": false
    },
    "owner_email": "owner@email.com",
    "sender_name": "Sample Sender",
    "completed_at": null,
    "sender_email": "owner@email.com",
    "mail_provider": null,
    "last_invite_id": "22e8cb67851990a1d43556b5dc7c0b12cc5a98dc",
    "sign_as_merged": false,
    "freeform_invite": {
      "id": "22e8cb67851990a1d43556b5dc7c0b12cc5a98dc",
      "last_id": "22e8cb67851990a1d43556b5dc7c0b12cc5a98dc",
      "message": null
    },
    "pending_step_id": null,
    "general_reminder": null,
    "scheduled_invite": null,
    "general_expiration_days": null,
    "general_expiration_time": null,
    "email_action_on_complete": null,
    "document_group_attributes": {
      "from_name": "Sample Sender",
      "from_email": "owner@email.com"
    },
    "originator_organization_settings": []
  }
}
```

**Example** (`Signing completed`)

```json
{
  "data": {
    "id": "022ac524cdb6c0bd8b21a92596b8236bd787d719",
    "name": "Group with email_group invite",
    "owner": {
      "id": "f72781cd8814e11b4058232e0107fb01606bc1b3",
      "email": "owner@email.com",
      "organization": {
        "id": "e092530a535246370afe2fd2a79d5b06555aa7dc"
      }
    },
    "state": "completed",
    "created": 1686312228,
    "updated": 1777375000,
    "cc_emails": [],
    "documents": [
      {
        "id": "07e35323aafcb71f4b0158682c00695e3e9d0e97",
        "owner": {
          "id": "570759912460bad0cdce7059b2bbbd2abc3c84b8",
          "email": "owner@email.com"
        },
        "roles": [
          "Signer 1"
        ],
        "updated": 1777288568,
        "settings": [],
        "folder_id": "ed9f287bc5e59f8dd8eb2568f2955093d05f6cee",
        "thumbnail": {
          "large": "https://api.signnow.com/document/07e35323aafcb71f4b0158682c00695e3e9d0e97/thumbnail?size=large",
          "small": "https://api.signnow.com/document/07e35323aafcb71f4b0158682c00695e3e9d0e97/thumbnail?size=small",
          "medium": "https://api.signnow.com/document/07e35323aafcb71f4b0158682c00695e3e9d0e97/thumbnail?size=medium"
        },
        "has_fields": true,
        "page_count": 1,
        "document_name": "Sample document",
        "field_invites": [
          {
            "id": "2b8650902fc4ef7bb47566ee56e30c98b705751c",
            "role": "Signer 1",
            "action": "sign",
            "status": "fulfilled",
            "created": 1777288568,
            "message": "Sample document group needs your signature.",
            "updated": 1777288568,
            "language": null,
            "compliance": {
              "cfr": null
            },
            "email_group": {
              "id": "3e53ec51f8b7dafd6b4778fce9400df7882cf15e",
              "name": "Sample group name"
            },
            "signer_email": "signer1@email.com",
            "signing_order": 1,
            "email_statuses": [
              {
                "status": "sent",
                "created_at": 1777288569,
                "last_reaction_at": 1777288569
              },
              {
                "status": "mail_open",
                "created_at": 1777289723,
                "last_reaction_at": 1777289723
              }
            ],
            "short_link_url": null,
            "signature_type": null,
            "expiration_days": 30,
            "expiration_time": 1779880568,
            "payment_request": null,
            "is_full_declined": false,
            "next_reminder_at": null,
            "sms_sent_statuses": [],
            "password_protected": "0",
            "signer_phone_invite": null
          }
        ],
        "allow_to_remove": true,
        "shared_with_team": null,
        "origin_document_id": null,
        "has_unassigned_field": false,
        "has_credit_card_number": false
      }
    ],
    "folder_id": null,
    "invite_id": "22e8cb67851990a1d43556b5dc7c0b12cc5a98dc",
    "expires_at": null,
    "share_info": {
      "role": "owner",
      "is_team_shared": false,
      "is_personally_shared_to_others": false
    },
    "owner_email": "owner@email.com",
    "sender_name": "Sample Sender",
    "completed_at": 1777375000,
    "sender_email": "owner@email.com",
    "mail_provider": null,
    "last_invite_id": "22e8cb67851990a1d43556b5dc7c0b12cc5a98dc",
    "sign_as_merged": false,
    "freeform_invite": {
      "id": null,
      "last_id": null,
      "message": null
    },
    "pending_step_id": null,
    "general_reminder": null,
    "scheduled_invite": null,
    "general_expiration_days": null,
    "general_expiration_time": null,
    "email_action_on_complete": null,
    "document_group_attributes": {
      "from_name": "Sample Sender",
      "from_email": "owner@email.com"
    },
    "originator_organization_settings": []
  }
}
```

**Example** (`With document fields`)

```json
{
  "data": {
    "id": "49b8c482cb048ac3a548bd3b456461411dd721e6",
    "name": "Sample document group",
    "owner": {
      "id": "991090d3354da2e6f36363d61e690dcb565b155f",
      "email": "owner@email.com",
      "organization": {
        "id": "78e7f680e80e4629ae7711ce8c44a08d15374614"
      }
    },
    "state": "pending",
    "created": 1777288000,
    "updated": 1777288567,
    "cc_emails": [],
    "documents": [
      {
        "id": "f45185b6e4994847516f29d1184ba7d101801b45",
        "owner": {
          "id": "991090d3354da2e6f36363d61e690dcb565b155f",
          "email": "owner@email.com"
        },
        "roles": [
          "Signer 1",
          "Signer 2"
        ],
        "fields": [
          {
            "id": "a91eb6ffa7dec10def01e9d5c269c5ecf49a9563",
            "role": "Signer 1",
            "type": "text",
            "role_id": "0663e06d6970d7ef3cd7f4523355e7683b6562f2",
            "field_id": "a5db59b09285bed96b2250c29cee4bc7192217d9",
            "fulfiller": "signer1@email.com",
            "element_id": null,
            "originator": "owner@email.com",
            "json_attributes": {
              "x": 84,
              "y": 485,
              "bold": false,
              "font": "Arial",
              "name": "Text Field 5",
              "size": 12,
              "align": "left",
              "color": "000000",
              "width": 207,
              "height": 21,
              "italic": false,
              "valign": "top",
              "required": true,
              "font_size": 8,
              "max_chars": 0,
              "max_lines": 0,
              "underline": false,
              "arrangement": "none",
              "page_number": 0
            },
            "field_request_id": "a5db59b09285bed96b2250c29cee4bc7192217d9",
            "template_field_id": null,
            "field_request_canceled": null
          },
          {
            "id": "64ff64a8e3ff786d0f67f4241d8ea43a9c2d0a9f",
            "role": "Signer 2",
            "type": "text",
            "role_id": "3e53ec51f8b7dafd6b4778fce9400df7882cf15e",
            "field_id": "bd7703c48b60be2da15d7ee8bde4fda23f928a21",
            "fulfiller": "signer2@email.com",
            "element_id": null,
            "originator": "owner@email.com",
            "json_attributes": {
              "x": 321,
              "y": 485,
              "bold": false,
              "font": "Arial",
              "name": "Text Field 7",
              "size": 12,
              "align": "left",
              "color": "000000",
              "width": 208,
              "height": 21,
              "italic": false,
              "valign": "top",
              "required": true,
              "font_size": 8,
              "max_chars": 0,
              "max_lines": 0,
              "underline": false,
              "arrangement": "none",
              "page_number": 0
            },
            "field_request_id": "bd7703c48b60be2da15d7ee8bde4fda23f928a21",
            "template_field_id": null,
            "field_request_canceled": null
          },
          {
            "id": "cad428cf5dcdbc338494074276f16acdbc6a6963",
            "role": "Signer 1",
            "type": "signature",
            "role_id": "0663e06d6970d7ef3cd7f4523355e7683b6562f2",
            "field_id": "904301b74d245db52694991d129b7abeb1a12cb0",
            "fulfiller": "signer1@email.com",
            "element_id": null,
            "originator": "owner@email.com",
            "json_attributes": {
              "x": 83,
              "y": 444,
              "name": "Signature 1",
              "width": 208,
              "height": 25,
              "required": true,
              "page_number": 0,
              "allowed_types": [
                "type",
                "draw",
                "upload"
              ]
            },
            "field_request_id": "904301b74d245db52694991d129b7abeb1a12cb0",
            "template_field_id": null,
            "field_request_canceled": null
          },
          {
            "id": "9b4e9388d797b3c3abb274cac86e276ee0b54ce7",
            "role": "Signer 2",
            "type": "signature",
            "role_id": "3e53ec51f8b7dafd6b4778fce9400df7882cf15e",
            "field_id": "88b0b8fb41561381dd73c3becddb4dd51571236b",
            "fulfiller": "signer2@email.com",
            "element_id": null,
            "originator": "owner@email.com",
            "json_attributes": {
              "x": 321,
              "y": 444,
              "name": "Signature 3",
              "width": 208,
              "height": 24,
              "required": true,
              "page_number": 0,
              "allowed_types": [
                "type",
                "draw",
                "upload"
              ]
            },
            "field_request_id": "88b0b8fb41561381dd73c3becddb4dd51571236b",
            "template_field_id": null,
            "field_request_canceled": null
          }
        ],
        "updated": 1777288568,
        "settings": [],
        "folder_id": "d473cdd7510d07f5c82934d3b8da92fd23c86316",
        "thumbnail": {
          "large": "https://api.signnow.com/document/f45185b6e4994847516f29d1184ba7d101801b45/thumbnail?size=large",
          "small": "https://api.signnow.com/document/f45185b6e4994847516f29d1184ba7d101801b45/thumbnail?size=small",
          "medium": "https://api.signnow.com/document/f45185b6e4994847516f29d1184ba7d101801b45/thumbnail?size=medium"
        },
        "has_fields": true,
        "page_count": 1,
        "document_name": "Subcontract agreement",
        "field_invites": [
          {
            "id": "ff7c7b3345e259cc8359d3ac01240aab2660a187",
            "role": "Signer 1",
            "action": "sign",
            "status": "pending",
            "created": 1777288568,
            "message": "Sample document group needs your signature.",
            "updated": 1777288568,
            "language": null,
            "compliance": {
              "cfr": null
            },
            "email_group": {
              "id": null,
              "name": null
            },
            "signer_email": "signer1@email.com",
            "signing_order": 1,
            "email_statuses": [
              {
                "status": "sent",
                "created_at": 1777288569,
                "last_reaction_at": 1777288569
              }
            ],
            "short_link_url": null,
            "signature_type": null,
            "expiration_days": 30,
            "expiration_time": 1779880568,
            "payment_request": null,
            "is_full_declined": false,
            "next_reminder_at": null,
            "sms_sent_statuses": [],
            "password_protected": "0",
            "signer_phone_invite": null
          },
          {
            "id": "4c02ebb05064b105ceca85735f30a0bcd45a004f",
            "role": "Signer 2",
            "action": "sign",
            "status": "pending",
            "created": 1777288568,
            "message": "Sample document group needs your signature.",
            "updated": 1777288568,
            "language": null,
            "compliance": {
              "cfr": null
            },
            "email_group": {
              "id": null,
              "name": null
            },
            "signer_email": "signer2@email.com",
            "signing_order": 1,
            "email_statuses": [
              {
                "status": "sent",
                "created_at": 1777288569,
                "last_reaction_at": 1777288569
              }
            ],
            "short_link_url": null,
            "signature_type": null,
            "expiration_days": 30,
            "expiration_time": 1779880568,
            "payment_request": null,
            "is_full_declined": false,
            "next_reminder_at": null,
            "sms_sent_statuses": [],
            "password_protected": "0",
            "signer_phone_invite": null
          }
        ],
        "allow_to_remove": true,
        "shared_with_team": null,
        "origin_document_id": null,
        "has_unassigned_field": false,
        "has_credit_card_number": false
      },
      {
        "id": "839bf685e4add4c867f67fdeaff0d2d068755af9",
        "owner": {
          "id": "991090d3354da2e6f36363d61e690dcb565b155f",
          "email": "owner@email.com"
        },
        "roles": [
          "Signer 1",
          "Viewer 1"
        ],
        "fields": [
          {
            "id": "18de0cd683b6b01f7e5f3857973a50b49bda908c",
            "role": "Signer 1",
            "type": "checkbox",
            "role_id": "570759912460bad0cdce7059b2bbbd2abc3c84b8",
            "field_id": "101357f4639f90052af3424cf8340999565115a5",
            "fulfiller": "signer1@email.com",
            "element_id": null,
            "originator": "owner@email.com",
            "json_attributes": {
              "x": 253,
              "y": 687,
              "name": "Checkbox 1",
              "value": "Age 15-20",
              "width": 11,
              "height": 11,
              "required": false,
              "page_number": 0,
              "prefilled_text": "0"
            },
            "field_request_id": "101357f4639f90052af3424cf8340999565115a5",
            "template_field_id": null,
            "field_request_canceled": null
          },
          {
            "id": "1394937b78d4007067468a3b3906139a0e792cd2",
            "role": "Signer 1",
            "type": "checkbox",
            "role_id": "570759912460bad0cdce7059b2bbbd2abc3c84b8",
            "field_id": "332c617f82e98006156d5d078b681b0c44ef3ca1",
            "fulfiller": "signer1@email.com",
            "element_id": null,
            "originator": "owner@email.com",
            "json_attributes": {
              "x": 253,
              "y": 704,
              "name": "Checkbox 2",
              "value": "Age 20-30",
              "width": 11,
              "height": 11,
              "required": false,
              "page_number": 0,
              "prefilled_text": "0"
            },
            "field_request_id": "332c617f82e98006156d5d078b681b0c44ef3ca1",
            "template_field_id": null,
            "field_request_canceled": null
          },
          {
            "id": "43056aa84e069380d95681e23f61de9afa33a66f",
            "role": "Signer 1",
            "type": "checkbox",
            "role_id": "570759912460bad0cdce7059b2bbbd2abc3c84b8",
            "field_id": "c8750b17037875a9d4c1dca146d6278c282b8b1b",
            "fulfiller": "signer1@email.com",
            "element_id": null,
            "originator": "owner@email.com",
            "json_attributes": {
              "x": 253,
              "y": 720,
              "name": "Checkbox 3",
              "value": "Age 30-40",
              "width": 11,
              "height": 11,
              "required": false,
              "page_number": 0,
              "prefilled_text": "0"
            },
            "field_request_id": "c8750b17037875a9d4c1dca146d6278c282b8b1b",
            "template_field_id": null,
            "field_request_canceled": null
          },
          {
            "id": "c91ea1fc73e44ce3c6005bc39e7fcec3b144d219",
            "role": "Signer 1",
            "type": "enumeration",
            "role_id": "570759912460bad0cdce7059b2bbbd2abc3c84b8",
            "field_id": "9c9faee64810d673399d91e3625e460ffe0100df",
            "fulfiller": "signer1@email.com",
            "element_id": null,
            "originator": "owner@email.com",
            "json_attributes": {
              "x": 402,
              "y": 682,
              "bold": false,
              "font": "Arial",
              "name": "Dropdown 1",
              "size": 14,
              "align": "left",
              "color": "000000",
              "label": "Vacation type",
              "width": 103,
              "height": 12,
              "italic": false,
              "required": true,
              "font_size": 10,
              "underline": false,
              "page_number": 0,
              "custom_defined_option": ""
            },
            "field_request_id": "9c9faee64810d673399d91e3625e460ffe0100df",
            "template_field_id": null,
            "field_request_canceled": null
          },
          {
            "id": "450fa037c8b237e5648201dd39ea8a1a29924cb9",
            "role": "Signer 1",
            "type": "radiobutton",
            "radio": [
              {
                "x": 100,
                "y": 671,
                "value": "Red",
                "width": 23,
                "height": 23,
                "checked": 0,
                "created": 1777288560,
                "radio_id": "bd7703c48b60be2da15d7ee8bde4fda23f928a21",
                "page_number": 0,
                "json_attributes": []
              },
              {
                "x": 100,
                "y": 701,
                "value": "Green",
                "width": 23,
                "height": 23,
                "checked": 0,
                "created": 1777288560,
                "radio_id": "f45185b6e4994847516f29d1184ba7d101801b45",
                "page_number": 0,
                "json_attributes": []
              },
              {
                "x": 100,
                "y": 730,
                "value": "Black",
                "width": 23,
                "height": 23,
                "checked": 0,
                "created": 1777288560,
                "radio_id": "c0a67d571dccda13c93d4753c15da759edfc2bd8",
                "page_number": 0,
                "json_attributes": []
              }
            ],
            "role_id": "570759912460bad0cdce7059b2bbbd2abc3c84b8",
            "field_id": "abba4e7e7f95e32f25f438ce6080fecb5efd71f2",
            "fulfiller": "signer1@email.com",
            "element_id": null,
            "originator": "owner@email.com",
            "json_attributes": {
              "x": 100,
              "y": 671,
              "name": "Radio Group 1",
              "width": 23,
              "height": 23,
              "required": true,
              "page_number": 0
            },
            "field_request_id": "abba4e7e7f95e32f25f438ce6080fecb5efd71f2",
            "template_field_id": null,
            "field_request_canceled": null
          }
        ],
        "updated": 1777288568,
        "settings": [],
        "folder_id": "d473cdd7510d07f5c82934d3b8da92fd23c86316",
        "thumbnail": {
          "large": "https://api.signnow.com/document/839bf685e4add4c867f67fdeaff0d2d068755af9/thumbnail?size=large",
          "small": "https://api.signnow.com/document/839bf685e4add4c867f67fdeaff0d2d068755af9/thumbnail?size=small",
          "medium": "https://api.signnow.com/document/839bf685e4add4c867f67fdeaff0d2d068755af9/thumbnail?size=medium"
        },
        "has_fields": true,
        "page_count": 1,
        "document_name": "Employment agreement",
        "field_invites": [
          {
            "id": "ccb65e8240158ec2bf6e77a5e4da87c363846ebc",
            "role": "Signer 1",
            "action": "sign",
            "status": "pending",
            "created": 1777288568,
            "message": "Sample document group needs your signature.",
            "updated": 1777288568,
            "language": null,
            "compliance": {
              "cfr": null
            },
            "email_group": {
              "id": null,
              "name": null
            },
            "signer_email": "signer1@email.com",
            "signing_order": 1,
            "email_statuses": [
              {
                "status": "sent",
                "created_at": 1777288569,
                "last_reaction_at": 1777288569
              }
            ],
            "short_link_url": null,
            "signature_type": null,
            "expiration_days": 30,
            "expiration_time": 1779880568,
            "payment_request": null,
            "is_full_declined": false,
            "next_reminder_at": null,
            "sms_sent_statuses": [],
            "password_protected": "0",
            "signer_phone_invite": null
          },
          {
            "id": "e265e0bb1a34158211e5da6a43b520fda3656bbe",
            "role": "Viewer 1",
            "action": "view",
            "status": "fulfilled",
            "created": 1777288568,
            "message": "Sample document group needs your signature.",
            "updated": 1777288568,
            "language": null,
            "compliance": {
              "cfr": null
            },
            "email_group": {
              "id": null,
              "name": null
            },
            "signer_email": "signer2@email.com",
            "signing_order": 1,
            "email_statuses": [
              {
                "status": "sent",
                "created_at": 1777288569,
                "last_reaction_at": 1777288569
              }
            ],
            "short_link_url": null,
            "signature_type": null,
            "expiration_days": 30,
            "expiration_time": null,
            "payment_request": null,
            "is_full_declined": false,
            "next_reminder_at": null,
            "sms_sent_statuses": [],
            "password_protected": "0",
            "signer_phone_invite": null
          }
        ],
        "allow_to_remove": true,
        "shared_with_team": null,
        "origin_document_id": null,
        "has_unassigned_field": false,
        "has_credit_card_number": false
      }
    ],
    "folder_id": "d473cdd7510d07f5c82934d3b8da92fd23c86316",
    "invite_id": "c8750b17037875a9d4c1dca146d6278c282b8b1b",
    "expires_at": 1779880568,
    "share_info": {
      "role": "owner",
      "is_team_shared": false,
      "is_personally_shared_to_others": false
    },
    "owner_email": "owner@email.com",
    "sender_name": "",
    "completed_at": null,
    "sender_email": "owner@email.com",
    "mail_provider": null,
    "last_invite_id": "c8750b17037875a9d4c1dca146d6278c282b8b1b",
    "sign_as_merged": true,
    "freeform_invite": {
      "id": null,
      "last_id": null,
      "message": null
    },
    "pending_step_id": "c7e7346204523c1f4ee00032b79d165f49e9cab0",
    "scheduled_invite": null,
    "email_action_on_complete": null,
    "originator_organization_settings": [
      {
        "value": "1",
        "setting": "document_guide"
      },
      {
        "value": "30",
        "setting": "invite_expiration_days"
      }
    ]
  }
}
```

**Example** (`Field invite with email group`)

```json
{
  "data": {
    "id": "022ac524cdb6c0bd8b21a92596b8236bd787d719",
    "name": "Group with email_group invite",
    "owner": {
      "id": "f72781cd8814e11b4058232e0107fb01606bc1b3",
      "email": "owner@email.com",
      "organization": {
        "id": "e092530a535246370afe2fd2a79d5b06555aa7dc"
      }
    },
    "state": "pending",
    "created": 1686312228,
    "updated": 1686312300,
    "cc_emails": [],
    "documents": [
      {
        "id": "07e35323aafcb71f4b0158682c00695e3e9d0e97",
        "owner": {
          "id": "570759912460bad0cdce7059b2bbbd2abc3c84b8",
          "email": "owner@email.com"
        },
        "roles": [
          "Signer 1"
        ],
        "updated": 1777288568,
        "settings": [],
        "folder_id": "ed9f287bc5e59f8dd8eb2568f2955093d05f6cee",
        "thumbnail": {
          "large": "https://api.signnow.com/document/07e35323aafcb71f4b0158682c00695e3e9d0e97/thumbnail?size=large",
          "small": "https://api.signnow.com/document/07e35323aafcb71f4b0158682c00695e3e9d0e97/thumbnail?size=small",
          "medium": "https://api.signnow.com/document/07e35323aafcb71f4b0158682c00695e3e9d0e97/thumbnail?size=medium"
        },
        "has_fields": true,
        "page_count": 1,
        "document_name": "Sample document",
        "field_invites": [
          {
            "id": "2b8650902fc4ef7bb47566ee56e30c98b705751c",
            "role": "Signer 1",
            "action": "sign",
            "status": "pending",
            "created": 1777288568,
            "message": "Sample document group needs your signature.",
            "updated": 1777288568,
            "language": null,
            "compliance": {
              "cfr": null
            },
            "email_group": {
              "id": "3e53ec51f8b7dafd6b4778fce9400df7882cf15e",
              "name": "Sample group name"
            },
            "signer_email": "signer1@email.com",
            "signing_order": 1,
            "email_statuses": [
              {
                "status": "sent",
                "created_at": 1777288569,
                "last_reaction_at": 1777288569
              },
              {
                "status": "mail_open",
                "created_at": 1777289723,
                "last_reaction_at": 1777289723
              }
            ],
            "short_link_url": null,
            "signature_type": null,
            "expiration_days": 30,
            "expiration_time": 1779880568,
            "payment_request": null,
            "is_full_declined": false,
            "next_reminder_at": null,
            "sms_sent_statuses": [],
            "password_protected": "0",
            "signer_phone_invite": null
          }
        ],
        "allow_to_remove": true,
        "shared_with_team": null,
        "origin_document_id": null,
        "has_unassigned_field": false,
        "has_credit_card_number": false
      }
    ],
    "folder_id": null,
    "invite_id": "22e8cb67851990a1d43556b5dc7c0b12cc5a98dc",
    "expires_at": 1779880568,
    "share_info": {
      "role": "owner",
      "is_team_shared": false,
      "is_personally_shared_to_others": false
    },
    "owner_email": "owner@email.com",
    "sender_name": "Sample Sender",
    "completed_at": null,
    "sender_email": "owner@email.com",
    "mail_provider": null,
    "last_invite_id": "22e8cb67851990a1d43556b5dc7c0b12cc5a98dc",
    "sign_as_merged": false,
    "freeform_invite": {
      "id": null,
      "last_id": null,
      "message": null
    },
    "pending_step_id": "fd4a2044627234d2b0b6f9251353ba6a93e97fc4",
    "general_reminder": null,
    "scheduled_invite": null,
    "general_expiration_days": null,
    "general_expiration_time": null,
    "email_action_on_complete": null,
    "document_group_attributes": {
      "from_name": "Sample Sender",
      "from_email": "owner@email.com"
    },
    "originator_organization_settings": []
  }
}
```

**Example** (`With signatures and origin template`)

```json
{
  "data": {
    "id": "022ac524cdb6c0bd8b21a92596b8236bd787d719",
    "name": "Group with email_group invite",
    "owner": {
      "id": "f72781cd8814e11b4058232e0107fb01606bc1b3",
      "email": "owner@email.com",
      "organization": {
        "id": "e092530a535246370afe2fd2a79d5b06555aa7dc"
      }
    },
    "state": "completed",
    "created": 1686312228,
    "updated": 1777375000,
    "cc_emails": [],
    "documents": [
      {
        "id": "07e35323aafcb71f4b0158682c00695e3e9d0e97",
        "owner": {
          "id": "570759912460bad0cdce7059b2bbbd2abc3c84b8",
          "email": "owner@email.com"
        },
        "roles": [
          "Signer 1"
        ],
        "updated": 1777288568,
        "settings": [],
        "folder_id": "ed9f287bc5e59f8dd8eb2568f2955093d05f6cee",
        "thumbnail": {
          "large": "https://api.signnow.com/document/07e35323aafcb71f4b0158682c00695e3e9d0e97/thumbnail?size=large",
          "small": "https://api.signnow.com/document/07e35323aafcb71f4b0158682c00695e3e9d0e97/thumbnail?size=small",
          "medium": "https://api.signnow.com/document/07e35323aafcb71f4b0158682c00695e3e9d0e97/thumbnail?size=medium"
        },
        "has_fields": true,
        "page_count": 1,
        "signatures": [
          {
            "id": "5a7861d04272e14393eaf0ca2ad58ab62ff8061f",
            "created": "1777374900",
            "user_id": "b0757eda4bffe8d18b2d13272a76cbb0317f6007"
          }
        ],
        "document_name": "Sample document",
        "field_invites": [
          {
            "id": "2b8650902fc4ef7bb47566ee56e30c98b705751c",
            "role": "Signer 1",
            "action": "sign",
            "status": "fulfilled",
            "created": 1777288568,
            "message": "Sample document group needs your signature.",
            "updated": 1777288568,
            "language": null,
            "compliance": {
              "cfr": null
            },
            "email_group": {
              "id": "3e53ec51f8b7dafd6b4778fce9400df7882cf15e",
              "name": "Sample group name"
            },
            "signer_email": "signer1@email.com",
            "signing_order": 1,
            "email_statuses": [
              {
                "status": "sent",
                "created_at": 1777288569,
                "last_reaction_at": 1777288569
              },
              {
                "status": "mail_open",
                "created_at": 1777289723,
                "last_reaction_at": 1777289723
              }
            ],
            "short_link_url": null,
            "signature_type": null,
            "expiration_days": 30,
            "expiration_time": 1779880568,
            "payment_request": null,
            "is_full_declined": false,
            "next_reminder_at": null,
            "sms_sent_statuses": [],
            "password_protected": "0",
            "signer_phone_invite": null
          }
        ],
        "allow_to_remove": true,
        "shared_with_team": null,
        "origin_document_id": null,
        "has_unassigned_field": false,
        "has_credit_card_number": false
      }
    ],
    "folder_id": null,
    "invite_id": "22e8cb67851990a1d43556b5dc7c0b12cc5a98dc",
    "expires_at": null,
    "origin_dgt": {
      "id": "e177b430d3a00e36a3195472d1a76b6640696c05",
      "owner_id": "570759912460bad0cdce7059b2bbbd2abc3c84b8",
      "template_group_name": "Sample document group template"
    },
    "share_info": {
      "role": "owner",
      "is_team_shared": false,
      "is_personally_shared_to_others": false
    },
    "owner_email": "owner@email.com",
    "sender_name": "Sample Sender",
    "completed_at": 1777375000,
    "sender_email": "owner@email.com",
    "entity_labels": [],
    "mail_provider": null,
    "recently_used": 1777375000,
    "last_invite_id": "22e8cb67851990a1d43556b5dc7c0b12cc5a98dc",
    "sign_as_merged": false,
    "freeform_invite": {
      "id": null,
      "last_id": null,
      "message": null
    },
    "pending_step_id": null,
    "general_reminder": null,
    "scheduled_invite": null,
    "general_expiration_days": null,
    "general_expiration_time": null,
    "email_action_on_complete": null,
    "document_group_attributes": {
      "from_name": "Sample Sender",
      "from_email": "owner@email.com"
    },
    "originator_organization_settings": []
  }
}
```

### 400

* Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

- Request with token that belongs to a user who is not the document group owner, was not invited to the group, and has no shared access to it.

**Example** (`Request with token that belongs to a user who is not the document group owner, was not invited to the group, and has no shared access to it`)

```json
{
  "errors": [
    {
      "message": "Access to DocumentGroup is denied"
    }
  ]
}
```

### 404

- id does not exist.
- id is not active.

**Example** (`id does not exist`)

```json
{
  "errors": [
    {
      "message": "Document group `<group id>` not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/document-groups/{document_group_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/document-groups/{document_group_id}/metadata — Add metadata to doc group

This endpoint allows users to add metadata to the selected document group. All added metadata will be linked to the document group during the [invite to sign](/docs/doc-group-field-invite/operations/invite-to-sign-document-group). Also, if you'd like to use this metadata in any event subscription, you can add upon [creating a webhook](/docs/basic-auth/operations/create-event-subscription).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "content": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "Any type of metadata that should be added to the document group. For example,`signer_id`."
        },
        "key1": {
          "type": "string",
          "description": "Any type of metadata that should be added to the document group. For example, `timestamp`."
        },
        "key2": {
          "type": "string",
          "description": "Any type of metadata that should be added to the document group. For example, `document_group_owner_id`."
        }
      },
      "description": "Array of the keys to be added to the metadata."
    }
  },
  "x-examples": {
    "Example 1": {
      "content": {
        "key": "value",
        "key1": "value",
        "key2": "value"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "content": {
    "key": "value",
    "key1": "value",
    "key2": "value"
  }
}
```

## Responses

### 204

Success, no content

### 400

Incorrect or missing token* request with invalid payload.
* Request with empty payload.
* Request with `content` which is not an array.
* Request with `content` which is more than 20 elements.
* Request with empty `content`.
* Request with `key` which is not a string.
* Request with `key` empty.
* Request with `key` which is more than 100 chars.
* Request with `key` with a special char.
* Request with `key value` which is not a string.
* Request with `key value` empty.
* Request with `key value` which is more than 100 chars.
* Request with `key value` with a 4-byte symbol.

**Example** (`Request with `key` empty`)

```json
{
  "errors": [
    {
      "code": 23004006,
      "message": "The keys of the `content` field must not be empty."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Request with empty content`)

```json
{
  "errors": [
    {
      "code": 23004003,
      "message": "The `content` field must not be empty."
    }
  ]
}
```

**Example** (`Request with empty payload`)

```json
{
  "errors": [
    {
      "code": 23004001,
      "message": "The `content` field is required."
    }
  ]
}
```

**Example** (`Request with invalid payload`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid payload"
    }
  ]
}
```

**Example** (`Request with `key value` empty`)

```json
{
  "errors": [
    {
      "code": 23004010,
      "message": "The values of the `content` field must not be empty."
    }
  ]
}
```

**Example** (`Request with `key` with a special char`)

```json
{
  "errors": [
    {
      "code": 23004008,
      "message": "The keys of the `content` field must contain only letters, numbers, underscores and hyphens."
    }
  ]
}
```

**Example** (`Request with `key` which is not a string`)

```json
{
  "errors": [
    {
      "code": 23004005,
      "message": "The keys of the `content` field must be strings."
    }
  ]
}
```

**Example** (`Request with `content` which is not an array`)

```json
{
  "errors": [
    {
      "code": 23004002,
      "message": "The `content` field must be an array."
    }
  ]
}
```

**Example** (`Request with `key value` with a 4-byte symbol`)

```json
{
  "errors": [
    {
      "code": 23004012,
      "message": "The values of the `content` field must not contain 4-byte characters."
    }
  ]
}
```

**Example** (`Request with `key` value which is not a string`)

```json
{
  "errors": [
    {
      "code": 23004009,
      "message": "The values of the `content` field must be strings."
    }
  ]
}
```

**Example** (`Request with `key` which is more than 100 chars`)

```json
{
  "errors": [
    {
      "code": 23004007,
      "message": "The keys of the `content` field must contain no more than 100 characters."
    }
  ]
}
```

**Example** (`Request with `content` which is more than 20 elements`)

```json
{
  "errors": [
    {
      "code": 23004004,
      "message": "The `content` field must contain no more than 20 elements."
    }
  ]
}
```

**Example** (`Request with `key value` which is more than 100 chars`)

```json
{
  "errors": [
    {
      "code": 23004011,
      "message": "The values of the `content` field must contain no more than 100 characters."
    }
  ]
}
```

### 403

* Request with `group_id` in trash.
* Request with `group_id` archieved.
* Request with bearer token from another user.

**Example** (`Request with `group_id` in trash`)

```json
{
  "errors": [
    {
      "code": 13020066,
      "message": "Cannot access the document group while it is in the trash bin."
    }
  ]
}
```

**Example** (`Request with `group_id` archieved`)

```json
{
  "errors": [
    {
      "code": 13020065,
      "message": "Cannot access the document group while it is in the archive folder."
    }
  ]
}
```

**Example** (`Request with bearer token from another user`)

```json
{
  "errors": [
    {
      "code": 13020008,
      "message": "Access to DocumentGroup is denied"
    }
  ]
}
```

### 404

* Request with `group_id` which does not exist.
* Request with `group_id` which is a template.

**Example** (`Request with `group_id` which is a template`)

```json
{
  "message": "Document group `4fdf7723d0a623a8b5bbecae17707c1ab7a1683e` not found"
}
```

**Example** (`Request with `group_id` which does not exist`)

```json
{
  "errors": [
    {
      "message": "Document group `4fdf7723d0a623a8b5bbecae17707c1ab7a1683e` not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/metadata" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"content": {"key": "value", "key1": "value", "key2": "value"}}'
```

---

## GET /v2/document-groups/{document_group_id}/metadata — Get metadata of doc group

This endpoint allows API users to get metadata for a document group.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Responses

### 200

Metadata of the document group. `data` is an empty array when the document group has no metadata.

**Example** (`With metadata`)

```json
{
  "data": {
    "content": {
      "source": "crm",
      "order_id": "12345"
    },
    "created": 1792744364,
    "updated": 1792744364,
    "application_id": "d8ab8c6828db5514b5391bcf85fa5a7d33a93c75"
  }
}
```

**Example** (`Without metadata`)

```json
{
  "data": []
}
```

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with bearer token from another user.

**Example** (`Request with bearer token from another user`)

```json
{
  "errors": [
    {
      "code": 13020008,
      "message": "Access to DocumentGroup is denied"
    }
  ]
}
```

### 404

* Request with `group_id` which does not exist.
* Request with `group_id` which is a template.

**Example** (`Request with `group_id` which is a template`)

```json
{
  "message": "Document group `4f7577d5f61ed9860beb42dae13ad948f1532adc` not found"
}
```

**Example** (`Request with `group_id` which does not exist`)

```json
{
  "errors": [
    {
      "message": "Document group `4f7577d5f61ed9860beb42dae13ad948f1532adc` not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/metadata" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/document-groups/{document_group_id}/metadata — Remove metadata from doc group

This endpoint allows users to delete metadata for a document group.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with bearer token from another user.

**Example** (`Request with bearer token from another user`)

```json
{
  "errors": [
    {
      "code": 13020008,
      "message": "Access to DocumentGroup is denied"
    }
  ]
}
```

### 404

* Request with `group_id` which does not exist.
* Request with `group_id` which is a template.
* Request with `group_id` that does not have metadata.

**Example** (`Request with `group_id` which is a template`)

```json
{
  "errors": [
    {
      "message": "Document group `4f6340b6cc5ab28e6cf2090cc420813bfbfae103` not found"
    }
  ]
}
```

**Example** (`Request with `group_id` which does not exist`)

```json
{
  "errors": [
    {
      "message": "Document group `4f6340b6cc5ab28e6cf2090cc420813bfbfae103` not found"
    }
  ]
}
```

**Example** (`Request with `group_id` that does not have metadata`)

```json
{
  "errors": [
    {
      "code": 23004017,
      "message": "Metadata not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/metadata" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/document-groups/{document_group_id}/roles — Share document group

This endpoint allows API users to share a document group with a user by email, assigning them a specified role. If the user does not have an account, one is created automatically.

**Notes**

* **Viewer** - can view, download, and make copies of documents in a document group; **sender** - can view, download, make copies, invite to sign, and manage document invites; **editor** - has all sender permissions and can also edit documents in the document group.
* Only the owner of the document group can share it.
* A document group can be shared only once with the same user. Attempting to share again (even with a different role) returns an error.
* The user receives an email notification about the shared document group, including a preview link.
* If the user does not exist in the system, a new account is created automatically.
* If the document group was created from a document group template (DGT) that is already shared with the target user (as owner or sender), the sharing is rejected with a conflict error.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | Document group ID. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "email",
    "role"
  ],
  "properties": {
    "role": {
      "enum": [
        "viewer",
        "sender",
        "editor"
      ],
      "type": "string",
      "example": "viewer",
      "description": "Role to assign. Allowed values: `viewer`, `sender`, `editor`."
    },
    "email": {
      "type": "string",
      "example": "user@email.com",
      "description": "Email address of the user to share with."
    },
    "message": {
      "type": "string",
      "example": "Please review the documents.",
      "description": "Custom message to include in the notification email."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "role": "viewer",
  "email": "user@example.com",
  "message": "Please review these documents."
}
```

## Responses

### 200

Document group successfully shared.

**Example** (`Successful response`)

```json
{
  "id": "def456abc123def456abc123def456abc123defg",
  "role": "viewer",
  "email": "user@example.com"
}
```

### 400

Bad request. Possible errors:

* Document group not found.
* You can't share document to yourself.
* Entity can only be shared once.
* Email validation errors.
* Role validation errors.
* Message validation errors.

**Example** (`Already shared`)

```json
{
  "errors": [
    {
      "code": 12029008,
      "message": "Entity can only be shared once."
    }
  ]
}
```

**Example** (`Message too long`)

```json
{
  "errors": [
    {
      "code": 12029028,
      "message": "Field `message` should not exceed 10000 characters."
    }
  ]
}
```

**Example** (`Role is required`)

```json
{
  "errors": [
    {
      "code": 12029004,
      "message": "Role is required."
    }
  ]
}
```

**Example** (`Email is required`)

```json
{
  "errors": [
    {
      "code": 12029002,
      "message": "Email is required."
    }
  ]
}
```

**Example** (`Message too short`)

```json
{
  "errors": [
    {
      "code": 12029028,
      "message": "Field `message` should be not less than 1 characters."
    }
  ]
}
```

**Example** (`Email is not valid`)

```json
{
  "errors": [
    {
      "code": 12029003,
      "message": "Email is not valid."
    }
  ]
}
```

**Example** (`Role must be string`)

```json
{
  "errors": [
    {
      "code": 12029005,
      "message": "Role must be string."
    }
  ]
}
```

**Example** (`Incorrect role value`)

```json
{
  "errors": [
    {
      "code": 12030014,
      "message": "Field `role` value should be one of [\"viewer\", \"sender\", \"editor\"], value: [\"admin\"] given."
    }
  ]
}
```

**Example** (`Email must be a string`)

```json
{
  "errors": [
    {
      "code": 12029001,
      "message": "Email must be a string."
    }
  ]
}
```

**Example** (`Message must be string`)

```json
{
  "errors": [
    {
      "code": 12029027,
      "message": "Field `message` should be string, value: [...] given."
    }
  ]
}
```

**Example** (`Can't share to yourself`)

```json
{
  "errors": [
    {
      "code": 12029007,
      "message": "You can't share document to yourself."
    }
  ]
}
```

**Example** (`Document group not found`)

```json
{
  "errors": [
    {
      "code": 12029026,
      "message": "Document group not found."
    }
  ]
}
```

**Example** (`Message must not be empty`)

```json
{
  "errors": [
    {
      "code": 12029029,
      "message": "Field `message` must not be empty."
    }
  ]
}
```

### 403

Forbidden. You don't have access to the document group.

**Example** (`Forbidden`)

```json
{
  "errors": [
    {
      "code": 12029012,
      "message": "You don't have access to the entity."
    }
  ]
}
```

### 404

Incorrect document group ID format (not a 40-character hex string).

**Example** (`Not found`)

```json
{
  "errors": [
    {
      "code": 404,
      "message": "Not found."
    }
  ]
}
```

### 409

Conflict. The document group is already shared with the user.

**Example** (`Conflict`)

```json
{
  "errors": [
    {
      "code": 12029031,
      "message": "Sharing entity conflict: parent entity already shared."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/roles" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"role": "viewer", "email": "user@example.com", "message": "Please review these documents."}'
```

---

## GET /v2/document-groups/{document_group_id}/roles — Get document group users

This endpoint allows API users to retrieve a paginated list of users who have access to the specified document group, including their roles, names, and avatar links.

**Notes**

* The owner sees all users with roles (including themselves as `owner`).
* A non-owner (user with shared access) sees only the owner and themselves.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | Document group ID. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `per_page` | integer | No | Number of items per page. Min: `1`, Max: `100`. Default: `15`. |
| `page` | integer | No | Page number. Min: `1`. Default: `1`. |

## Responses

### 200

Success. Retrieves a paginated list of users with access to the document group.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "abc123def456abc123def456abc123def456abcd",
      "role": "owner",
      "email": "owner@example.com",
      "full_name": "John Doe",
      "avatar_url": "https://example.com/avatars/abc123/download"
    },
    {
      "id": "def456abc123def456abc123def456abc123defg",
      "role": "viewer",
      "email": "viewer@example.com",
      "full_name": "Jane Smith",
      "avatar_url": "https://example.com/avatars/abc456/download"
    }
  ],
  "meta": {
    "pagination": {
      "count": 2,
      "total": 2,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

Bad request. Possible errors:

* Incorrect or missing token.
* Document group not found.
* You don't have access to the entity.

**Example** (`No access to entity`)

```json
{
  "errors": [
    {
      "code": 12029012,
      "message": "You don't have access to the entity."
    }
  ]
}
```

**Example** (`Document group not found`)

```json
{
  "errors": [
    {
      "code": 12029026,
      "message": "Document group not found."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/roles" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/document-groups/{document_group_id}/roles — Unshare document group from all users

This endpoint allows API users to remove sharing access for all users from the document group.

**Notes**

* Only the owner of the document group can perform this action.
* All shared users are removed.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | Document group ID. |

## Responses

### 204

All users successfully unshared. No content returned.

### 400

Bad request. Possible errors:

* Incorrect or missing token.
* Document group not found.

**Example** (`Document group not found`)

```json
{
  "errors": [
    {
      "code": 12029026,
      "message": "Document group not found."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

Forbidden. Only the document group owner can unshare all users.

**Example** (`Forbidden`)

```json
{
  "errors": [
    {
      "code": 12029012,
      "message": "You don't have access to the entity."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/roles" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/document-groups/{document_group_id}/roles/{user_id} — Update document group role

This endpoint allows API users to change the role of a user who already has sharing access to the document group.

**Notes**

* **Viewer** - can view, download, and make copies of documents in a document group; **sender** - can view, download, make copies, invite to sign, and manage document invites; **editor** - has all sender permissions and can also edit documents in the document group.
* Only the owner of the document group can change roles.
* The previous role is replaced with the new one.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | Document group ID. |
| `user_id` | string | Yes | ID of the user whose role is being changed. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "role"
  ],
  "properties": {
    "role": {
      "enum": [
        "viewer",
        "sender",
        "editor"
      ],
      "type": "string",
      "example": "sender",
      "description": "New role to assign. Allowed values: `viewer`, `sender`, `editor`."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "role": "sender"
}
```

## Responses

### 200

Role successfully updated.

**Example** (`Successful response`)

```json
{
  "id": "def456abc123def456abc123def456abc123defg",
  "role": "sender",
  "email": "user@example.com"
}
```

### 400

Bad request. Possible errors:

* Incorrect or missing token.
* Document group not found.
* User role not found.
* Role is required.
* Role must be string.
* Invalid role value.

**Example** (`Role is required`)

```json
{
  "errors": [
    {
      "code": 12029004,
      "message": "Role is required."
    }
  ]
}
```

**Example** (`Role must be string`)

```json
{
  "errors": [
    {
      "code": 12029005,
      "message": "Role must be string."
    }
  ]
}
```

**Example** (`User role not found`)

```json
{
  "errors": [
    {
      "code": 12029011,
      "message": "User role not found."
    }
  ]
}
```

**Example** (`Incorrect role value`)

```json
{
  "errors": [
    {
      "code": 12030014,
      "message": "Field `role` value should be one of [\"viewer\", \"sender\", \"editor\"], value: [\"admin\"] given."
    }
  ]
}
```

**Example** (`Document group not found`)

```json
{
  "errors": [
    {
      "code": 12029026,
      "message": "Document group not found."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

Forbidden. Only the document group owner can change roles.

**Example** (`Forbidden`)

```json
{
  "errors": [
    {
      "code": 12029012,
      "message": "You don't have access to the entity."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/roles/{user_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"role": "sender"}'
```

---

## DELETE /v2/document-groups/{document_group_id}/roles/{user_id} — Unshare document group from user

This endpoint allows API users to remove sharing access for a specific user from the document group.

**Notes**

* The owner can unshare any user except themselves.
* A shared user can unshare only themselves (self-unshare).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | Document group ID. |
| `user_id` | string | Yes | ID of the user to unshare. |

## Responses

### 204

User successfully unshared. No content returned.

### 400

Bad request. Possible errors:

* Incorrect or missing token.
* Document group not found.
* Managing user not found.
* Entity owner can't unshare it from himself.
* You don't have access to the entity.
* User role not found.

**Example** (`No access to entity`)

```json
{
  "errors": [
    {
      "code": 12029012,
      "message": "You don't have access to the entity."
    }
  ]
}
```

**Example** (`User role not found`)

```json
{
  "errors": [
    {
      "code": 12029011,
      "message": "User role not found."
    }
  ]
}
```

**Example** (`Managing user not found`)

```json
{
  "errors": [
    {
      "code": 12029023,
      "message": "Managing user not found."
    }
  ]
}
```

**Example** (`Document group not found`)

```json
{
  "errors": [
    {
      "code": 12029026,
      "message": "Document group not found."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Owner can't unshare themselves`)

```json
{
  "errors": [
    {
      "code": 12029022,
      "message": "Entity owner can't unshare it from himself."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/roles/{user_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/document-group-templates/{document_group_template_id}/roles — Share document group template

This endpoint allows API users to share a document group template with a user by email, assigning them a specified role. If the user does not have an account, one is created automatically.

**Notes**

* **Viewer** - can view, download, and make copies of documents in a document group template; **sender** - can view, download, make copies, invite to sign, and manage document invites; **editor** - has all sender permissions and can also edit the document group template.
* Only the owner of the document group template can share it.
* A document group template can be shared only once with the same user. Attempting to share again (even with a different role) returns an error.
* The user receives an email notification about the shared template.
* If the user does not exist in the system, a new account is created automatically.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_template_id` | string | Yes | Document group template ID. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "email",
    "role"
  ],
  "properties": {
    "role": {
      "enum": [
        "viewer",
        "sender",
        "editor"
      ],
      "type": "string",
      "example": "viewer",
      "description": "Role to assign. Allowed values: `viewer`, `sender`, `editor`."
    },
    "email": {
      "type": "string",
      "example": "user@email.com",
      "description": "Email address of the user to share with."
    },
    "message": {
      "type": "string",
      "example": "Please review this template.",
      "description": "Custom message to include in the notification email."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "role": "viewer",
  "email": "user@example.com",
  "message": "Please review this template."
}
```

## Responses

### 200

Document group template successfully shared.

**Example** (`Successful response`)

```json
{
  "id": "def456abc123def456abc123def456abc123defg",
  "role": "viewer",
  "email": "user@example.com"
}
```

### 400

Bad request. Possible errors:

* Document group template not found.
* You can't share document to yourself.
* Entity can only be shared once.
* Email validation errors.
* Role validation errors.
* Message validation errors.

**Example** (`Already shared`)

```json
{
  "errors": [
    {
      "code": 12029008,
      "message": "Entity can only be shared once."
    }
  ]
}
```

**Example** (`Message too long`)

```json
{
  "errors": [
    {
      "code": 12029028,
      "message": "Field `message` should not exceed 10000 characters."
    }
  ]
}
```

**Example** (`Role is required`)

```json
{
  "errors": [
    {
      "code": 12029004,
      "message": "Role is required."
    }
  ]
}
```

**Example** (`Email is required`)

```json
{
  "errors": [
    {
      "code": 12029002,
      "message": "Email is required."
    }
  ]
}
```

**Example** (`Message too short`)

```json
{
  "errors": [
    {
      "code": 12029028,
      "message": "Field `message` should be not less than 1 characters."
    }
  ]
}
```

**Example** (`Email is not valid`)

```json
{
  "errors": [
    {
      "code": 12029003,
      "message": "Email is not valid."
    }
  ]
}
```

**Example** (`Role must be string`)

```json
{
  "errors": [
    {
      "code": 12029005,
      "message": "Role must be string."
    }
  ]
}
```

**Example** (`Incorrect role value`)

```json
{
  "errors": [
    {
      "code": 12030014,
      "message": "Field `role` value should be one of [\"viewer\", \"sender\", \"editor\"], value: [\"admin\"] given."
    }
  ]
}
```

**Example** (`Email must be a string`)

```json
{
  "errors": [
    {
      "code": 12029001,
      "message": "Email must be a string."
    }
  ]
}
```

**Example** (`Message must be string`)

```json
{
  "errors": [
    {
      "code": 12029027,
      "message": "Field `message` should be string, value: [...] given."
    }
  ]
}
```

**Example** (`Can't share to yourself`)

```json
{
  "errors": [
    {
      "code": 12029007,
      "message": "You can't share document to yourself."
    }
  ]
}
```

**Example** (`Message must not be empty`)

```json
{
  "errors": [
    {
      "code": 12029029,
      "message": "Field `message` must not be empty."
    }
  ]
}
```

**Example** (`Document group template not found`)

```json
{
  "errors": [
    {
      "code": 12029025,
      "message": "Document group template not found."
    }
  ]
}
```

### 403

Forbidden. You don't have access to the document group template.

**Example** (`Forbidden`)

```json
{
  "errors": [
    {
      "code": 12029012,
      "message": "You don't have access to the entity."
    }
  ]
}
```

### 404

Incorrect document group template ID format (not a 40-character hex string).

**Example** (`Not found`)

```json
{
  "404": "Unable to find a route to match the URI: v2/document-groups/{id}/roles"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-group-templates/{document_group_template_id}/roles" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"role": "viewer", "email": "user@example.com", "message": "Please review this template."}'
```

---

## GET /v2/document-group-templates/{document_group_template_id}/roles — Get document group template roles

This endpoint allows API users to retrieve a paginated list of users who have access to the specified document group template, including their roles, names, and avatar links.

**Notes**

* The owner sees all users with roles (including themselves as `owner`).
* A non-owner (shared user) sees only the owner and themselves.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_template_id` | string | Yes | Document group template ID. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `per_page` | integer | No | Number of items per page. Min: `1`, Max: `100`. Default: `15`. |
| `page` | integer | No | Page number. Min: `1`. Default: `1`. |

## Responses

### 200

Success. Retrieves a paginated list of users with access to the document group template.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "abc123def456abc123def456abc123def456abcd",
      "role": "owner",
      "email": "owner@example.com",
      "full_name": "John Doe",
      "avatar_url": "https://example.com/avatars/abc123/download"
    },
    {
      "id": "def456abc123def456abc123def456abc123defg",
      "role": "viewer",
      "email": "viewer@example.com",
      "full_name": "Jane Smith",
      "avatar_url": "https://example.com/avatars/abc456/download"
    }
  ],
  "meta": {
    "pagination": {
      "count": 2,
      "total": 2,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

Bad request. Possible errors:

* Incorrect or missing token.
* Document group template not found.
* You don't have access to the entity.

**Example** (`No access to entity`)

```json
{
  "errors": [
    {
      "code": 12029012,
      "message": "You don't have access to the entity."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Document group template not found`)

```json
{
  "errors": [
    {
      "code": 12029025,
      "message": "Document group template not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/document-group-templates/{document_group_template_id}/roles" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/document-group-templates/{document_group_template_id}/roles — Unshare document group template from all users

This endpoint allows the owner of a document group template to remove sharing access for all users at once.

**Notes**

* Only the owner of the document group template can perform this action.
* All shared users are removed.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_template_id` | string | Yes | Document group template ID. |

## Responses

### 204

All users successfully unshared. No content returned.

### 400

Bad request. Possible errors:

* Incorrect or missing token.
* Document group template not found.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Document group template not found`)

```json
{
  "errors": [
    {
      "code": 12029025,
      "message": "Document group template not found."
    }
  ]
}
```

### 403

Forbidden. You don't have access to the document group template.

**Example** (`Forbidden`)

```json
{
  "errors": [
    {
      "code": 12029012,
      "message": "You don't have access to the entity."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/document-group-templates/{document_group_template_id}/roles" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/document-group-templates/{document_group_template_id}/roles/{user_id} — Update document group template role

This endpoint allows the owner of a document group template to change the role of a user who already has sharing access.

**Notes**

* Only the owner of the document group template can change roles.
* The user must already have a role assigned (i.e., the template must be shared with them first).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_template_id` | string | Yes | Document group template ID. |
| `user_id` | string | Yes | ID of the user whose role is being changed. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "role"
  ],
  "properties": {
    "role": {
      "enum": [
        "viewer",
        "sender",
        "editor"
      ],
      "type": "string",
      "example": "sender",
      "description": "New role to assign. Allowed values: `viewer`, `sender`, `editor`."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "role": "sender"
}
```

## Responses

### 200

Role successfully updated.

**Example** (`Successful response`)

```json
{
  "id": "def456abc123def456abc123def456abc123defg",
  "role": "sender",
  "email": "user@example.com"
}
```

### 400

Bad request. Possible errors:

* Incorrect or missing token.
* Document group template not found.
* User role not found.
* Role validation errors.

**Example** (`Role is required`)

```json
{
  "errors": [
    {
      "code": 12029004,
      "message": "Role is required."
    }
  ]
}
```

**Example** (`Role must be string`)

```json
{
  "errors": [
    {
      "code": 12029005,
      "message": "Role must be string."
    }
  ]
}
```

**Example** (`User role not found`)

```json
{
  "errors": [
    {
      "code": 12029011,
      "message": "User role not found."
    }
  ]
}
```

**Example** (`Incorrect role value`)

```json
{
  "errors": [
    {
      "code": 12030014,
      "message": "Field `role` value should be one of [\"viewer\", \"sender\", \"editor\"], value: [\"admin\"] given."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Document group template not found`)

```json
{
  "errors": [
    {
      "code": 12029025,
      "message": "Document group template not found."
    }
  ]
}
```

### 403

Forbidden. You don't have access to the document group template.

**Example** (`Forbidden`)

```json
{
  "errors": [
    {
      "code": 12029012,
      "message": "You don't have access to the entity."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/document-group-templates/{document_group_template_id}/roles/{user_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"role": "sender"}'
```

---

## DELETE /v2/document-group-templates/{document_group_template_id}/roles/{user_id} — Unshare document group template from user

This endpoint allows API users to remove sharing access for a specific user from the document group template.

**Notes**

* The owner can unshare any user except themselves.
* A shared user (`viewer`, `sender`, or `editor`) can unshare only themselves (self-unshare).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_template_id` | string | Yes | Document group template ID. |
| `user_id` | string | Yes | ID of the user to unshare. |

## Responses

### 204

User successfully unshared. No content returned.

### 400

Bad request. Possible errors:

* Incorrect or missing token.
* Document group template not found.
* Managing user not found.
* Entity owner can't unshare it from himself.
* You don't have access to the entity.
* User role not found.

**Example** (`No access to entity`)

```json
{
  "errors": [
    {
      "code": 12029012,
      "message": "You don't have access to the entity."
    }
  ]
}
```

**Example** (`User role not found`)

```json
{
  "errors": [
    {
      "code": 12029011,
      "message": "User role not found."
    }
  ]
}
```

**Example** (`Managing user not found`)

```json
{
  "errors": [
    {
      "code": 12029023,
      "message": "Managing user not found."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Owner can't unshare themselves`)

```json
{
  "errors": [
    {
      "code": 12029022,
      "message": "Entity owner can't unshare it from himself."
    }
  ]
}
```

**Example** (`Document group template not found`)

```json
{
  "errors": [
    {
      "code": 12029025,
      "message": "Document group template not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/document-group-templates/{document_group_template_id}/roles/{user_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/document-groups/{document_group_id}/embedded-editor — Create link for doc group

This endpoint allows API users to generate a link to embed the SignNow editor into their app, allowing their customers to edit documents without sending them for signing.

To generate an embedded editor link, make sure that:

- the document group has not been sent for signing or signed.
- the document group is not deleted or archived.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | Document group ID. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "redirect_uri": {
      "type": "string",
      "description": "Optional: link that opens after the user has completed editing the document group."
    },
    "link_expiration": {
      "type": "integer",
      "description": "15 minutes by default. Can be set max to 43200 minutes by a user with Admin level of access."
    },
    "redirect_target": {
      "enum": [
        "blank",
        "self"
      ],
      "type": "string",
      "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab, default value.",
      "x-stoplight": {
        "id": "oc6q4mzzu5cun"
      }
    }
  },
  "x-examples": {
    "Example 1": {
      "redirect_uri": "{some_valid_url}",
      "link_expiration": 15,
      "redirect_target": "blank"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "redirect_uri": "https://example.com",
  "link_expiration": 15,
  "redirect_target": "blank"
}
```

## Responses

### 200

Link to the document group in the embedded editor.

**Example** (`Successful response`)

```json
{
  "data": {
    "url": "https://app.signnow.com/webapp/documentgroup/1373e2d3f81ab9f598478c2fc87940483f00c05a/edit?access_token=ff89ea1a3e75ef8326ffa6d7f1a0f2fbd6843517ca1f092c0d33042314b958bc&redirect_uri=https%3A%2F%2Fexample.com&embedded=1&redirect_target=blank"
  }
}
```

### 400

* Incorrect or missing token.
* Document group was already sent.
* Document group not found.

**Validation errors:**

* `redirect_uri` is not a string.
* Empty `redirect_uri`.
* `redirect_uri` is longer than 2048 characters.
* `redirect_uri` is not a correct URL.
* `link_expiration` is not an integer.
* `link_expiration` must be between 15 and 45.
* Custom `link_expiration` is more than 43200 minutes.
* `redirect_target` is not a string.
* Incorrect `redirect_target`. Allowed values: `self`, `blank`.
* `redirect_uri` is required if `redirect_target` is added.


**Example** (`Empty redirect_uri`)

```json
{
  "errors": [
    {
      "code": 19046002,
      "message": "Parameter `redirect_uri` must not be an empty string."
    }
  ]
}
```

**Example** (`Missing redirect_uri`)

```json
{
  "errors": [
    {
      "code": 19046009,
      "message": "The `redirect_uri` field is required when `redirect_target` is added."
    }
  ]
}
```

**Example** (`redirect_uri too long`)

```json
{
  "errors": [
    {
      "code": 19046003,
      "message": "Parameter `redirect_uri` must not exceed 2048 characters."
    }
  ]
}
```

**Example** (`redirect_uri not a URL`)

```json
{
  "errors": [
    {
      "code": 19046004,
      "message": "Parameter `redirect_uri` must be a valid URL."
    }
  ]
}
```

**Example** (`link_expiration too big`)

```json
{
  "errors": [
    {
      "code": 19049001,
      "message": "The link expiration should be less than or equal to 45 minutes."
    }
  ]
}
```

**Example** (`redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 19046001,
      "message": "Parameter `redirect_uri` must be a string."
    }
  ]
}
```

**Example** (`Document group not found`)

```json
{
  "errors": [
    {
      "code": 19002010,
      "message": "Document group `0000000000000000000000000000000000000000` not found."
    }
  ]
}
```

**Example** (`Incorrect redirect_target`)

```json
{
  "errors": [
    {
      "code": 19046008,
      "message": "The `redirect_target` field is invalid, allowed values: self, blank."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`link_expiration too little`)

```json
{
  "errors": [
    {
      "code": 19046006,
      "message": "The link expiration should be greater than or equal to 15 minutes."
    }
  ]
}
```

**Example** (`redirect_target not string`)

```json
{
  "errors": [
    {
      "code": 19046007,
      "message": "The `redirect_target` field must be a string."
    }
  ]
}
```

**Example** (`link_expiration not integer`)

```json
{
  "errors": [
    {
      "code": 19046005,
      "message": "The link expiration value should be of type int."
    }
  ]
}
```

**Example** (`Custom link_expiration too big`)

```json
{
  "errors": [
    {
      "code": 19049001,
      "message": "The link expiration should be less than or equal to 43200 minutes."
    }
  ]
}
```

**Example** (`Document group was already sent`)

```json
{
  "errors": [
    {
      "code": 19001036,
      "message": "An invite already exists for this document group."
    }
  ]
}
```

### 403

User doesn't own the document group.

**Example** (`User doesn't own the document group`)

```json
{
  "code": 19001010,
  "message": "Current user is not document group owner."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/embedded-editor" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"redirect_uri": "https://example.com", "link_expiration": 15, "redirect_target": "blank"}'
```

---

## POST /v2/documents/{document_id}/embedded-editor — Create link for document

This endpoint allows API users to generate a link to embed the SignNow document editor into their app, allowing their customers to edit documents without sending them for signing.

To generate an embedded editor link, make sure that:

- the document has not been sent for signing or signed.
- the document is not deleted or archived.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document to open in the embedded editor. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "redirect_uri": {
      "type": "string",
      "description": "The page that opens after the signing session ends.",
      "x-stoplight": {
        "id": "kxpmc6cagjvqz"
      }
    },
    "link_expiration": {
      "type": "integer",
      "description": "15 minutes by default. Can be set max to 43200 minutes by a user with Admin level of access."
    },
    "redirect_target": {
      "enum": [
        "blank",
        "self"
      ],
      "type": "string",
      "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab, default value.",
      "x-stoplight": {
        "id": "lxwrbfcdu3pnc"
      }
    }
  },
  "x-examples": {
    "example-1": {
      "redirect_uri": "some_valid_url",
      "link_expiration": 15,
      "redirect_target": "blank"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "redirect_uri": "some_valid_url",
  "link_expiration": 15,
  "redirect_target": "blank"
}
```

## Responses

### 200

Returns a link in case of correct request.

**Example** (`Successful response`)

```json
{
  "data": {
    "url": "https://example.com/document/9de589f4bfdfbfde8eaf1f27feab9946454a9851?access_token={access_token}&redirect_uri=https%3A%2F%2Fwww.example.com&embedded=1&redirect_target=blank"
  }
}
```

### 400

* Wrong, expired, or missing token.
* Document was already sent.

**Validation errors:**

* `redirect_uri` is not a string.
* Empty `redirect_uri`.
* `redirect_uri` is longer than 2048 characters.
* `redirect_uri` is not a correct URL.
* `link_expiration` is not an integer.
* `link_expiration` must be between 15 and 45.
* Custom `link_expiration` is more than 43200 minutes.
* `redirect_target` is not a string.
* Incorrect `redirect_target`. Allowed values: `self`, `blank`.
* `redirect_uri` is required if `redirect_target` is added.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Empty redirect_uri`)

```json
{
  "errors": [
    {
      "code": 19046002,
      "message": "Parameter `redirect_uri` must not be an empty string."
    }
  ]
}
```

**Example** (`Missing redirect_uri`)

```json
{
  "errors": [
    {
      "code": 19046009,
      "message": "The `redirect_uri` field is required when `redirect_target` is added."
    }
  ]
}
```

**Example** (`redirect_uri too long`)

```json
{
  "errors": [
    {
      "code": 19046003,
      "message": "Parameter `redirect_uri` must not exceed 2048 characters."
    }
  ]
}
```

**Example** (`redirect_uri not a URL`)

```json
{
  "errors": [
    {
      "code": 19046004,
      "message": "Parameter `redirect_uri` must be a valid URL."
    }
  ]
}
```

**Example** (`link_expiration too big`)

```json
{
  "errors": [
    {
      "code": 19049001,
      "message": "The link expiration should be less than or equal to 45 minutes."
    }
  ]
}
```

**Example** (`redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 19046001,
      "message": "Parameter `redirect_uri` must be a string."
    }
  ]
}
```

**Example** (`Document was already sent`)

```json
{
  "errors": [
    {
      "code": 19001047,
      "message": "Document has been already sent to a signer."
    }
  ]
}
```

**Example** (`Incorrect redirect_target`)

```json
{
  "errors": [
    {
      "code": 19046008,
      "message": "The `redirect_target` field is invalid, allowed values: self, blank."
    }
  ]
}
```

**Example** (`link_expiration too little`)

```json
{
  "errors": [
    {
      "code": 19046006,
      "message": "The link expiration should be greater than or equal to 15 minutes."
    }
  ]
}
```

**Example** (`redirect_target not string`)

```json
{
  "errors": [
    {
      "code": 19046007,
      "message": "The `redirect_target` field must be a string."
    }
  ]
}
```

**Example** (`link_expiration not integer`)

```json
{
  "errors": [
    {
      "code": 19046005,
      "message": "The link expiration value should be of type int."
    }
  ]
}
```

**Example** (`Custom link_expiration too big`)

```json
{
  "errors": [
    {
      "code": 19049001,
      "message": "The link expiration should be less than or equal to 43200 minutes."
    }
  ]
}
```

### 403

User doesn't own the document.

**Example** (`User doesn't own the document`)

```json
{
  "errors": [
    {
      "code": 19001002,
      "message": "User is not document owner."
    }
  ]
}
```

### 422

* The document is in the Trash folder, code 19001021. Message: "Cannot fulfill request for the document in Trash folder."
* The document was deleted, including from the Trash folder, code 19001022. Message: "Document not found".

**Example** (`Document is in the Trash`)

```json
{
  "errors": [
    {
      "code": 19001021,
      "message": "Cannot fulfill request for the document in Trash folder."
    }
  ]
}
```

**Example** (`Document deleted (from the Trash as well)`)

```json
{
  "errors": [
    {
      "code": 19001022,
      "message": "Document not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/documents/{document_id}/embedded-editor" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"redirect_uri": "some_valid_url", "link_expiration": 15, "redirect_target": "blank"}'
```

---

## POST /v2/document-groups/{document_group_id}/embedded-sending — Create link for doc group

This endpoint allows API users to create a link for embedded document group sending. 

Add the `type` attribute to the payload to specify the sending step at which the embedded link should open and to control what actions the sender can perform. 
- `manage`: The link opens on the **Add documents to document group page** (default).
- `edit`: The link opens in the editor, allowing the sender to add fields and send the invite.
- `send-invite`: The link opens on the **Send Invite** page.

Use the request body attributes to configure redirect options, specify link expiration, and customize the sender’s email and name appearance.

For more information, see [Embedded sending guide](/docs/guides-embedded-sending).


## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes |  ID of the requested document group. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "default": "manage",
      "description": "Specifies the sending step at which the embedded link should open: `manage` \u2014 opens the link on the Add documents to document group page (default); `edit`\u2014 opens the link in the editor; `send-invite` \u2014 opens the link on the Send Invite page.",
      "x-stoplight": {
        "id": "00nqby7r7jx1i"
      }
    },
    "from_name": {
      "type": "string",
      "example": "Anna Green",
      "maxLength": 300,
      "description": "Use this attribute to customize the name that appears: 1) on the Send Invite page (From, Invite Email Subject, and Invite Email Message); 2) in the invite and reassign emails: in email subject and email body; 3) in the signing session: as the name in From in the header and on the detailed From card."
    },
    "from_email": {
      "type": "string",
      "example": "sender@email.com",
      "maxLength": 255,
      "description": "Use this attribute to customize the email address that appears: 1) [part before @]on the Send Invite page (From, Invite Email Subject, and Invite Email Message) 2) in the invite and reassign emails: [part before @] in email subject and email body; when clicking Contact Sender and in Reply-to; 3) in the signing session: as the email in From in the header and on the detailed From card; when clicking Contact Sender in the More Actions menu and on the detailed From card."
    },
    "redirect_uri": {
      "type": "string",
      "example": "https://www.signnow.com/",
      "minLength": 1,
      "description": "The page that opens after embedded sending has been set up. Required if `redirect_target` is added."
    },
    "link_expiration": {
      "type": "integer",
      "default": 15,
      "maximum": 45,
      "minimum": 15,
      "description": "Specifies how many minutes the link remains active. The allowed range is 15 to 45 minutes."
    },
    "redirect_target": {
      "enum": [
        "blank",
        "self"
      ],
      "type": "string",
      "description": "Determines whether to open the redirect link in a new tab in the browser or in the same tab. Possible values: `blank` - opens the link in a new tab, `self` - opens the link in the same tab (default).",
      "x-stoplight": {
        "id": "d2unhtkuqshu0"
      }
    }
  },
  "x-examples": {
    "example-1": {
      "redirect_uri": "https://your.redirect.uri.com"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "type": "edit",
  "from_name": "Jane Doe",
  "from_email": "sender@email.com",
  "redirect_uri": "https://example.com",
  "link_expiration": 25,
  "redirect_target": "blank"
}
```

## Responses

### 200

Returns the link for embedded sending.


**Example** (`Successful response`)

```json
{
  "data": {
    "url": "https://app.signnow.com/webapp/documentgroup/7e783060c18363c080f6731d21976c3fbe0b70f1/edit?access_token={token}&embedded=1"
  }
}
```

### 400

* Wrong, expired, or missing token.
* Incorrect payload.

**Validation errors**:

* `redirect_uri` is not a string.
* Empty `redirect_uri`.
* `redirect_uri` is longer than 2048 characters.
* `redirect_uri` is not a correct URL.
* UTF 4-byte characters in `redirect_uri` are not supported.
* `link_expiration` is not an integer.
* `link_expiration` must be between 15 and 45.
* Custom `link_expiration` is more than 43200 minutes.
* `redirect_target` is not a string.
* Incorrect `redirect_target`. Allowed values: `self`, `blank`.
* `redirect_uri` is required if `redirect_target` is added.
* The `type` is not a string.
* The `type` value is incorrect.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Incorrect payload`)

```json
{
  "errors": [
    {
      "code": 19001000,
      "message": "Invalid payload"
    }
  ]
}
```

**Example** (`type not a string`)

```json
{
  "errors": [
    {
      "code": 19043011,
      "message": "The type value must be of type string."
    }
  ]
}
```

**Example** (`Empty redirect_uri`)

```json
{
  "errors": [
    {
      "code": 19043005,
      "message": "Field `redirect_uri` must not be an empty string."
    }
  ]
}
```

**Example** (`Missing redirect_uri`)

```json
{
  "errors": [
    {
      "code": 19043010,
      "message": "The `redirect_uri` field is required when `redirect_target` is added."
    }
  ]
}
```

**Example** (`redirect_uri too long`)

```json
{
  "errors": [
    {
      "code": 19043001,
      "message": "Parameter `redirect_uri` must not exceed 2048 characters."
    }
  ]
}
```

**Example** (`redirect_uri not a URL`)

```json
{
  "errors": [
    {
      "code": 19043003,
      "message": "Parameter `redirect_uri` must be a valid URL."
    }
  ]
}
```

**Example** (`link_expiration too big`)

```json
{
  "errors": [
    {
      "code": 19048001,
      "message": "The link expiration should be less than or equal to 45 minutes."
    }
  ]
}
```

**Example** (`redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 19043004,
      "message": "Parameter `redirect_uri` must be a string."
    }
  ]
}
```

**Example** (`type value is incorrect`)

```json
{
  "errors": [
    {
      "code": 19043012,
      "message": "The `type` value is invalid, allowed values: \"manage\", \"edit\", \"send-invite\"."
    }
  ]
}
```

**Example** (`Incorrect redirect_target`)

```json
{
  "errors": [
    {
      "code": 19043009,
      "message": "The `redirect_target` field is invalid, allowed values: self, blank."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "errors": [
    {
      "code": 1537,
      "message": "Invalid token"
    }
  ]
}
```

**Example** (`link_expiration too little`)

```json
{
  "errors": [
    {
      "code": 19043007,
      "message": "The link expiration should be greater than or equal to 15 minutes."
    }
  ]
}
```

**Example** (`redirect_target not string`)

```json
{
  "errors": [
    {
      "code": 19043008,
      "message": "The `redirect_target` field must be a string."
    }
  ]
}
```

**Example** (`link_expiration not integer`)

```json
{
  "errors": [
    {
      "code": 19043006,
      "message": "The link expiration value should be of type int."
    }
  ]
}
```

**Example** (`Custom link_expiration too big`)

```json
{
  "errors": [
    {
      "code": 19048001,
      "message": "The link expiration should be less than or equal to 43200 minutes."
    }
  ]
}
```

**Example** (`4-byte characters in redirect_uri`)

```json
{
  "errors": [
    {
      "code": 19043002,
      "message": "4-byte characters in `redirect_uri` are not supported."
    }
  ]
}
```

### 403

The user does not own the document group.

**Example** (`The user does not own the document group`)

```json
{
  "errors": [
    {
      "code": 19001010,
      "message": "Current user is not document group owner."
    }
  ]
}
```

### 404

Document group is not found.

**Example** (`Document group is not found`)

```json
{
  "errors": [
    {
      "code": 19002010,
      "message": "Document group `XXXXXcc2afb4e988ba2c68851d1e59e1137XXXX`not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/embedded-sending" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"type": "edit", "from_name": "Jane Doe", "from_email": "sender@email.com", "redirect_uri": "https://example.com", "link_expiration": 25, "redirect_target": "blank"}'
```

---

## POST /v2/documents/{document_id}/embedded-sending — Create link for document

This endpoint allows API users to create a link for embedded document sending.

Use the request body attributes to define where the link opens (the editor or the Send Invite page), configure redirect options, specify link expiration, and customize the sender’s email and name appearance.

For more information, see [Embedded sending guide](/docs/guides-embedded-sending) and check out our video tutorial.

<details open>

**<summary>Video tutorial</summary>**

<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>

[Video tutorial](https://www.youtube.com/watch?v=MR_Rko0X0aU)

</details>

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the requested document. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "type"
  ],
  "properties": {
    "type": {
      "type": "string",
      "minLength": 1,
      "description": "The type of invite settings available by the link. Possible values: `invite` - the Send Invite page opens for the document where user add the signer's address, email subject and message etc.; `document` - the document opens in the editor for adding fillable fields, and then the Send Invite page opens."
    },
    "from_name": {
      "type": "string",
      "example": "Anna Green",
      "maxLength": 300,
      "description": "Use this attribute to customize the name that appears: 1) on the Send Invite page (From, Invite Email Subject, and Invite Email Message); 2) in the invite and reassign emails: in email subject and email body; 3) in the signing session: as the name in From in the header and on the detailed From card."
    },
    "from_email": {
      "type": "string",
      "example": "sender@email.com",
      "maxLength": 255,
      "description": "Use this attribute to customize the email address that appears: 1) [part before @]on the Send Invite page (From, Invite Email Subject, and Invite Email Message) 2) in the invite and reassign emails: [part before @] in email subject and email body; when clicking Contact Sender and in Reply-to; 3) in the signing session: as the email in From in the header and on the detailed From card; when clicking Contact Sender in the More Actions menu and on the detailed From card."
    },
    "redirect_uri": {
      "type": "string",
      "minLength": 1,
      "description": "The page that opens after the signing session ends."
    },
    "link_expiration": {
      "type": "integer",
      "default": 15,
      "maximum": 45,
      "minimum": 15,
      "description": "Specifies how many minutes the link remains active. The allowed range is 15 to 45 minutes."
    },
    "redirect_target": {
      "enum": [
        "blank",
        "self"
      ],
      "type": "string",
      "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab, default value.",
      "x-stoplight": {
        "id": "0twi4weakxf1z"
      }
    }
  },
  "x-examples": {
    "example-1": {
      "type": "document",
      "redirect_uri": "https://your.redirect.uri.com"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "type": "document",
  "from_name": "Jane Doe",
  "from_email": "sender@email.com",
  "redirect_uri": "https://example.com",
  "link_expiration": 15,
  "redirect_target": "blank"
}
```

## Responses

### 200

Returns the link for embedded sending in case of correct request.



**Example** (`Successful response`)

```json
{
  "data": {
    "url": "http://example.com/invite/161b701704603e9a3a5b63d016ee06f3aff2742a?access_token={token}&redirect_uri=http%3A%2F%2Fyour.redirect.uri.com&embedded_sending=1&redirect_target=blank"
  }
}
```

### 400

* Incorrect or missing token.
* User doesn't own the document.
* Document not found.
* Document was already sent.
* Cannot send an invite for the document from Trash folder.
* Incorrect payload.

**Validation errors:**

* Missing `type`.
* Incorrect `type`. Allowed values: `document`, `invite`.
* `redirect_uri` is not a string.
* `redirect_uri` is longer than 2048 characters.
* `redirect_uri` is not a correct URL.
* UTF 4-byte characters in `redirect_uri` are not supported.
* `link_expiration` is not an integer.
* `link_expiration` must be between 15 and 45.
* Custom `link_expiration` is more than 43200 minutes.
* `redirect_target` is not a string.
* Incorrect `redirect_target`. Allowed values: `self`, `blank`.
* `redirect_uri` is required if `redirect_target` is added.

**Example** (`missing type`)

```json
{
  "errors": [
    {
      "code": 19038001,
      "message": "The `type` value should not be blank."
    }
  ]
}
```

**Example** (`Incorrect type`)

```json
{
  "errors": [
    {
      "code": 19038002,
      "message": "The `type` attribute is invalid, allowed values: document, invite."
    }
  ]
}
```

**Example** (`Incorrect payload`)

```json
{
  "errors": [
    {
      "code": 19001000,
      "message": "Invalid payload"
    }
  ]
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 19002001,
      "message": "Document not found"
    }
  ]
}
```

**Example** (`Missing redirect_uri`)

```json
{
  "errors": [
    {
      "code": 19038011,
      "message": "The `redirect_uri` field is required when `redirect_target` is added."
    }
  ]
}
```

**Example** (`redirect_uri too long`)

```json
{
  "errors": [
    {
      "code": 19038004,
      "message": "Parameter `redirect_uri` must not exceed 2048 characters."
    }
  ]
}
```

**Example** (`redirect_uri not a URL`)

```json
{
  "errors": [
    {
      "code": 19038006,
      "message": "Parameter `redirect_uri` must be a valid URL."
    }
  ]
}
```

**Example** (`User not document owner`)

```json
{
  "errors": [
    {
      "code": 19001002,
      "message": "User is not document owner."
    }
  ]
}
```

**Example** (`link_expiration too big`)

```json
{
  "errors": [
    {
      "code": 19047001,
      "message": "The link expiration should be less than or equal to 45 minutes."
    }
  ]
}
```

**Example** (`redirect_uri not string`)

```json
{
  "errors": [
    {
      "code": 19038003,
      "message": "Parameter `redirect_uri` must be a string."
    }
  ]
}
```

**Example** (`Document in Trash folder`)

```json
{
  "errors": [
    {
      "code": 19001021,
      "message": "Cannot send an invite for the document from Trash folder."
    }
  ]
}
```

**Example** (`Document was already sent`)

```json
{
  "errors": [
    {
      "code": 19001047,
      "message": "Document has been already sent to a signer."
    }
  ]
}
```

**Example** (`Incorrect redirect_target`)

```json
{
  "errors": [
    {
      "code": 19038010,
      "message": "The `redirect_target` field is invalid, allowed values: self, blank."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "errors": [
    {
      "code": 1537,
      "message": "Invalid token"
    }
  ]
}
```

**Example** (`link_expiration too little`)

```json
{
  "errors": [
    {
      "code": 19038008,
      "message": "The link expiration should be greater than or equal to 15 minutes."
    }
  ]
}
```

**Example** (`redirect_target not string`)

```json
{
  "errors": [
    {
      "code": 19038009,
      "message": "The `redirect_target` field must be a string."
    }
  ]
}
```

**Example** (`link_expiration not integer`)

```json
{
  "errors": [
    {
      "code": 19038007,
      "message": "The link expiration value should be of type int."
    }
  ]
}
```

**Example** (`Custom link_expiration too big`)

```json
{
  "errors": [
    {
      "code": 19047001,
      "message": "The link expiration should be less than or equal to 43200 minutes."
    }
  ]
}
```

**Example** (`4-byte characters in redirect_uri`)

```json
{
  "errors": [
    {
      "code": 19038005,
      "message": "4-byte characters in `redirect_uri` are not supported."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/documents/{document_id}/embedded-sending" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"type": "document", "from_name": "Jane Doe", "from_email": "sender@email.com", "redirect_uri": "https://example.com", "link_expiration": 15, "redirect_target": "blank"}'
```

---

## POST /v2/document-groups/{document_group_id}/embedded-view — Create document group embedded view link

This endpoint allows API users to create an embedded view link for the specified document group. The link opens the document group in embedded view mode, where users can review and download its documents without logging in to SignNow.

You can customize the view mode experience in the editor and on the **You’ve viewed a document** page:

* Set a custom logo in the editor and on the **You’ve viewed a document** page using `logo.url`.
* Customize the **Download Document** button style on the **You’ve viewed a document** page using `general.buttons.secondary`.
* Show or hide the **More Actions** menu in the editor using `settings.visibility`.
* Show or hide the **Close** button in the editor using `close-button.visibility`.
* Show or hide the **Download Document** button in the editor using `download-button.visibility`.
* Show or hide the sidebar navigation buttons in the editor using `icons`.
* Show or hide the **Download Document** button on the **You’ve viewed a document** page using `complete-page.button-download.visibility`.

Learn more about [branding](/docs/guides-branding#about-branding).

**Notes**

* Embedded view links can be created for documents and document groups.
* The link opens without authentication and can be used multiple times until it expires.
* The link can be created for a document group in any status, for example waiting for others or signed.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | Document group ID. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "redirect_uri": {
      "type": "string",
      "example": "https://www.signnow.com/",
      "description": "The link that opens after a user clicks the **Close** button. If not set, the default page **You\u2019ve viewed a document** page will be used.\n",
      "x-stoplight": {
        "id": "m2sqpk22ey5jo"
      }
    },
    "link_expiration": {
      "type": "integer",
      "default": 43200,
      "maximum": 518400,
      "minimum": 43200,
      "description": "Link expiration time in minutes. ",
      "x-stoplight": {
        "id": "9m305v788jfgj"
      }
    },
    "redirect_target": {
      "enum": [
        "blank",
        "self"
      ],
      "type": "string",
      "default": "self",
      "description": "Specifies where to open the redirect link. Can only be used if `redirect_url` is set. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab.",
      "x-stoplight": {
        "id": "26epj7lys211h"
      }
    }
  }
}
```

**Example** (`Request with all parameters`)

```json
{
  "redirect_uri": "https://www.signnow.com/",
  "link_expiration": 43200,
  "redirect_target": "blank"
}
```

## Responses

### 200

The link has been created.

**Example** (`Successful response`)

```json
{
  "data": {
    "link": "https://app.signnow.com/webapp/documentgroup/aba1aed8fa6e3e2e1fc1e0312669ec58efce4fdd/edit?access_token=a3f9c2e17b8d4e6f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f&embedded=1"
  }
}
```

### 400

- The bearer token is incorrect.
- The payload is incorrect.
- The `link_expiration` value type is incorrect.
- The `link_expiration` range value is incorrect.  Must be between 43200 minutes (30 days) and 518400 minutes (360 days).
- The `redirect_uri` value type is incorrect.
- The `redirect_uri` field is empty.
- The `redirect_uri` value is too long.
- The `redirect_uri` has an incorrect format.
- The `redirect_target` field value is incorrect.
- The `redirect_uri` field is required when `redirect_target` is added.

### 403

- The application is not external.
- The user is not a document group owner.

### 404


The document group is not found.

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/embedded-view" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"redirect_uri": "https://www.signnow.com/", "link_expiration": 43200, "redirect_target": "blank"}'
```

---

## POST /v2/documents/{document_id}/embedded-view — Create document embedded view link

This endpoint allows API users to create an embedded view link for the specified document. The link opens the document in embedded view mode, where users can review and download it without logging in to SignNow.

You can customize the view mode experience in the editor and on the **You’ve viewed a document** page:

* Set a custom logo in the editor and on the **You’ve viewed a document** page using `logo.url`.
* Customize the **Download Document** button style on the **You’ve viewed a document** page using `general.buttons.secondary`.
* Show or hide the **More Actions** menu in the editor using `settings.visibility`.
* Show or hide the **Close** button in the editor using `close-button.visibility`.
* Show or hide the **Download Document** button in the editor using `download-button.visibility`.
* Show or hide the sidebar navigation buttons in the editor using `icons`.
* Show or hide the **Download Document** button on the **You’ve viewed a document** page using `complete-page.button-download.visibility`.

Learn more about [branding](/docs/guides-branding#about-branding).

**Notes**

* Embedded view links can be created for documents and document groups.
* The link opens without authentication and can be used multiple times until it expires.
* The link can be created for a document in any status, for example waiting for others or signed.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | Document ID. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "redirect_uri": {
      "type": "string",
      "example": "https://www.signnow.com/",
      "description": "The link that opens after a user clicks the **Close** button. If not set, the default page **You\u2019ve viewed a document** page will be used.\n",
      "x-stoplight": {
        "id": "m2sqpk22ey5jo"
      }
    },
    "link_expiration": {
      "type": "integer",
      "default": 43200,
      "maximum": 518400,
      "minimum": 43200,
      "description": "Link expiration time in minutes. ",
      "x-stoplight": {
        "id": "9m305v788jfgj"
      }
    },
    "redirect_target": {
      "enum": [
        "blank",
        "self"
      ],
      "type": "string",
      "default": "self",
      "description": "Specifies where to open the redirect link. Can only be used if `redirect_url` is set. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab.",
      "x-stoplight": {
        "id": "26epj7lys211h"
      }
    }
  }
}
```

**Example** (`Request with all parameters`)

```json
{
  "redirect_uri": "https://www.signnow.com/",
  "link_expiration": 43200,
  "redirect_target": "blank"
}
```

## Responses

### 200

The link has been created.

**Example** (`Successful response`)

```json
{
  "data": {
    "link": "https://app.signnow.com/webapp/document/c352882970d835659554996b5ff85b174e3f5646?access_token=a3f9c2e17b8d4e6f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f&embedded=1"
  }
}
```

### 400

- The bearer token is incorrect.
- The payload is incorrect.
- The `link_expiration` value type is incorrect.
- The `link_expiration` range value is incorrect.  Must be between 43200 minutes (30 days) and 518400 minutes (360 days).
- The `redirect_uri` value type is incorrect.
- The `redirect_uri` field is empty.
- The `redirect_uri` value is too long.
- The `redirect_uri` has an incorrect format.
- The `redirect_target` field value is incorrect.
- The `redirect_uri` field is required when `redirect_target` is added.

### 403

- The application is not external.
- The user is not a document owner.

### 404


The document is not found.

### 422

- The specified document is a template.
- The specified document has been deleted.
- The specified document has been archived.

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/documents/{document_id}/embedded-view" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"redirect_uri": "https://www.signnow.com/", "link_expiration": 43200, "redirect_target": "blank"}'
```

---

## POST /v2/document-groups/{document_group_id}/favorites — Mark doc group as favorite

This endpoint allows API users to add a document group to favorites.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | The ID of the document group. |

## Responses

### 201

The document group has been added to favorites. The response body is empty.

### 400

* Invalid request with {document_group_unique_id} where user is not owner of document group (the user did not create the document group).
* Request with incorrect or missing token.
* Invalid request with {document_group_unique_id} when DG is placed not in the Documents folders(Archive, Shared or Trash).

**Example** (`Request with Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Invalid request with {document_group_unique_id} where user is not owner of document group `)

```json
{
  "errors": [
    {
      "code": 13044005,
      "message": "The user does not have access to the document group."
    }
  ]
}
```

**Example** (`Invalid request with {document_group_unique_id} when DG is placed not in the Documents folders(Archive, Shared or Trash)`)

```json
{
  "errors": [
    {
      "code": 13044006,
      "message": "The document group must be in the Documents folder or its sub-folder."
    }
  ]
}
```

### 403

Invalid request with {document_group_unique_id} where user does not have access to the document group.

**Example** (`Invalid request with {document_group_unique_id} where user does not have access to the document group`)

```json
{
  "errors": [
    {
      "code": 13044007,
      "message": "The user does not have permission to the document group."
    }
  ]
}
```

### 404

Invalid request with non-existent document group unique id.

**Example** (`Invalid request with non-existent document group unique id.`)

```json
{
  "errors": [
    {
      "code": 13009004,
      "message": "Document group `79e2fb24c48449c3a09d4a433053051eebc2182d` not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/favorites" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## DELETE /v2/document-groups/{document_group_id}/favorites — Remove doc group from favorites

This endpoint allows users to remove a document group from favorites

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | The ID of the document group. |

## Responses

### 204

Success, no content

### 400

* Invalid request with {document_group_unique_id} where user is not owner of document group (the user did not create the document group).
* Request with incorrect or missing token.
* Invalid request with {document_group_unique_id} when document group placed not in the Documents folder(s)(Archive, Trash or Shared folders).

**Example** (`Request with Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Invalid request with {document_group_unique_id} where user is not owner of document group `)

```json
{
  "errors": [
    {
      "code": 13044005,
      "message": "The user does not have access to the document group."
    }
  ]
}
```

**Example** (`Invalid request with {document_group_unique_id} when Document Group plased not in the Documents folder(s)(Archive, Trash or Shared folders)`)

```json
{
  "errors": [
    {
      "code": 13044006,
      "message": "The document group must be in the Documents folder or its sub-folders."
    }
  ]
}
```

### 403

Invalid request with {document_group_unique_id} when user is have not access to the document group.

**Example** (`Invalid request with {document_group_unique_id} when user is have not access to the Document Group`)

```json
{
  "errors": [
    {
      "code": 13044005,
      "message": "The user does not have access to the document group."
    }
  ]
}
```

### 404

Invalid request with non-existent document group unique id.

**Example** (`Invalid request with non-existent document group unique id.`)

```json
{
  "errors": [
    {
      "code": 13009004,
      "message": "Document group `79e2fb24c48449c3a09d4a433053051eebc2182d` not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/favorites" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/documents/{document_id}/favorites — Mark document as favorite

This endpoint allows API users to add a document to favorites.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | The ID of the document (40 characters). |

## Responses

### 201

The document has been added to favorites. The response body is empty.

### 400

* Invalid request with {document_unique_id} where user is not owner of document (the user did not upload the document).
* Request with incorrect or missing token.
* Invalid request with {document_unique_id} when document placed not in the Documents folder(s)(Archive, Trash or Shared folders).

**Example** (`Request with Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Invalid request with {document_unique_id} where user is not owner of document (The user did not upload the document)`)

```json
{
  "errors": [
    {
      "code": 13044002,
      "message": "The user does not have access to the document."
    }
  ]
}
```

**Example** (`Invalid request with {document_unique_id} when Document placed not in the Documents folder(s)(Archive, Trash or Shared folders)`)

```json
{
  "errors": [
    {
      "code": 13044004,
      "message": "The document must be in the Documents folder or its sub-folder."
    }
  ]
}
```

### 403

Invalid request with {document_unique_id} when user does not have access to the document.

**Example** (`Invalid request with {document_unique_id} when user does not have access to the Document`)

```json
{
  "errors": [
    {
      "code": 13044003,
      "message": "The user does not have permission to the document."
    }
  ]
}
```

### 404

Invalid request with non-existent document unique id.

**Example** (`Invalid request with non-existent document unique id.`)

```json
{
  "errors": [
    {
      "code": 13047001,
      "message": "Document `bd54c722946d4361a1818ae8964867189f29ced1` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/documents/{document_id}/favorites" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## DELETE /v2/documents/{document_id}/favorites — Remove document from favorites

This endpoint allows users to delete a document from favorites.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | The ID of the document (40 characters). |

## Responses

### 204

Success, no content

### 400

* Invalid request with {document_unique_id} where user is not owner of document (the user did not upload the document).
* Request with incorrect or missing token.
* Invalid request with {document_unique_id} when document placed not in the Documents folder(s)(Archive, Trash or Shared folders).

**Example** (`Request with Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Invalid request with {document_unique_id} where user is not owner of document (The user did not upload the document)`)

```json
{
  "errors": [
    {
      "code": 13044002,
      "message": "The user does not have access to the document."
    }
  ]
}
```

**Example** (`Invalid request with {document_unique_id} when Document placed not in the Documents folder(s)(Archive, Trash or Shared folders)`)

```json
{
  "errors": [
    {
      "code": 13044004,
      "message": "The document must be in the Documents folder or its sub-folder."
    }
  ]
}
```

### 403

Invalid request with {document_unique_id} when user does not have access to the document.

**Example** (`Invalid request with {document_unique_id} when user does not have access to the Document`)

```json
{
  "errors": [
    {
      "code": 13044003,
      "message": "The user does not have permission to the document."
    }
  ]
}
```

### 404

Invalid request with non-existent document unique id.

**Example** (`Invalid request with non-existent document unique id.`)

```json
{
  "errors": [
    {
      "code": 13047001,
      "message": "Document `bd54c722946d4361a1818ae8964867189f29ced1` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/documents/{document_id}/favorites" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/favorites — Retrieve all favorites

This endpoint allows API users to get the list of documents and document groups marked as favorites.

## Authorization

bearer

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `page` | string | No | Default value by page = 1. |
| `per_page` | string | No | Number of documents per page. Default value = 15. |

## Responses

### 200

List of documents and document groups the user added to favorites.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "1373e2d3f81ab9f598478c2fc87940483f00c05a",
      "entity_type": "document-group"
    },
    {
      "id": "65a2a09722dbe3200c2d244355a98c75bba72cc2",
      "entity_type": "document"
    }
  ],
  "meta": {
    "pagination": {
      "count": 2,
      "links": [],
      "total": 2,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* Request with incorrect or missing token.
* Request with incorrect query string.

**Example** (`Request with incorrect query string`)

```json
{
  "errors": [
    {
      "code": 13003004,
      "message": "Query parameter `page` must be a digit"
    },
    {
      "code": 13003005,
      "message": "Query parameter `page` must be more than 0"
    }
  ]
}
```

**Example** (`Request with Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/favorites" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /folder/{folder_id} — Get folder by id

This endpoint allows API users to retrieve the details of a folder, including its subfolders and the documents it contains. Use query parameters to filter, sort, and paginate the document list.

**Notes**

* `total_documents` is the total number of documents in the folder. The `documents` array contains only the page selected by `limit` and `offset`.
* To include document group templates, set `entity_type` to `dgt` or `all`. By default, a templates folder returns only templates.
* Each document's `document_group_template_info` lists the active document group templates that include it. For a document that isn't part of any document group template, the array is empty.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `folder_id` | string | Yes | ID of the folder to return. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `filter-values` | string | No | Value for the filter set in `filters`. For `filters=signing-status`, one of: `signed`, `pending`, `waiting-for-me`, `waiting-for-others`, `unsent`, `expired`. For `filters=documents-created` or `filters=documents-updated`, a Unix timestamp: the response includes documents created or updated after this time. |
| `sortby` | string | No | Field to sort documents by. Possible values: `updated`, `created`, `document-name`. |
| `order` | string | No | Order of sorting. Can be used only with `sortby`. Possible values: `asc`, `desc`. |
| `offset` | integer | No | Number of documents to skip before the returned page starts. |
| `limit` | integer | No | Maximum number of documents to return. Max: `100`. |
| `entity_type` | string | No | Entities to include in the response. Possible values: `document-all` (documents, including documents in document groups), `document` (documents that aren't in document groups), `document-group` (document groups only), `template` (templates only), `dgt` (document group templates only), `all` (documents and document groups, or templates and document group templates in a templates folder). |
| `entity_labels` | string | No | Label to filter documents and document groups by. Possible values: `declined` (the invite was declined), `undelivered` (the invite email wasn't delivered). To use both, separate them with a comma: `declined,undelivered`. |
| `filters` | string | No | Filter to apply to the document list. Possible values: `signing-status`, `documents-created`, `documents-updated`. Use with `filter-values`. The `documents-created` and `documents-updated` filters exclude templates. |
| `include_documents_subfolders` | boolean | No | Whether to include subfolders to the response. Allowed values: `1`, `0`. |
| `with_team_documents` | boolean | No | Whether to display Team Documents folders. |
| `only_favorites` | boolean | No | Whether to show only favorite documents and document groups. |

## Responses

### 200

* Success
* With document group where user is a signer (+email group)
* With document group where user is the owner (+email group)
* With viewer field invites (+email group)
* With `entity_type=document-group` query
* With `entity_type=dgt` query

**Example** (`Success`)

```json
{
  "id": "1854d1191e5a862b8deb0badb1a8a29d9b23fad8",
  "name": "Documents",
  "shared": false,
  "created": "1409253077",
  "folders": [],
  "user_id": "385859a93e9f216be2650cd8ef1a2fbd7da9c69c",
  "documents": [
    {
      "id": "8580a5cc6f09e5a451f532ce357dd2b862d8bc89",
      "tags": [
        {
          "name": "fields",
          "type": "system"
        }
      ],
      "owner": "document_owner@email.com",
      "roles": [
        {
          "name": "Client",
          "unique_id": "108a4ae129611a50f772c1ae6ed626f1af3c959c",
          "signing_order": "1"
        }
      ],
      "seals": [],
      "texts": [
        {
          "x": "281",
          "y": "195",
          "id": "d243243012aac357c45c19ee2c1998b6358bc457",
          "data": "10/16/14",
          "font": "Arial",
          "size": "8",
          "email": "email_address@email.com",
          "created": "1413485018",
          "user_id": "ab410b7ff074fdaa7fec872244bf28dbb7e3e3d1",
          "line_height": "9.08",
          "page_number": "0"
        }
      ],
      "checks": [],
      "fields": [
        {
          "id": "ec103bdfd6fe29f2a719412c6d9dd13798afc6ef",
          "role": "Client",
          "type": "text",
          "role_id": "108a4ae129611a50f772c1ae6ed626f1af3c959c",
          "field_id": "4006d215f9b56bc706a73b6467e4876c27a4f110",
          "fulfiller": "fulfiller@email.com",
          "element_id": "d243243012aac357c45c19ee2c1998b6358bc457",
          "originator": "originator@email.com",
          "json_attributes": {
            "x": 281,
            "y": 195,
            "label": "Date",
            "width": 102,
            "height": 21,
            "required": true,
            "page_number": 0,
            "prefilled_text": ""
          },
          "field_request_id": "4006d215f9b56bc706a73b6467e4876c27a4f110",
          "template_field_id": "72de91bc89b622b6fcb561863803b3543013b33d",
          "field_request_canceled": null
        },
        {
          "id": "439c3ab0ed4f4f7cc2f5557f4deaceee54154cdf",
          "role": "Client",
          "type": "signature",
          "role_id": "108a4ae129611a50f772c1ae6ed626f1af3c959c",
          "field_id": "4dfaa15dda85d21f6bfd74ccb2fa57fb100b57bb",
          "fulfiller": "fulfiller@email.com",
          "element_id": "5caeaa94ca9bfa52d59a7e1bfd0f434cf858f50c",
          "originator": "originator@email.com",
          "json_attributes": {
            "x": 91,
            "y": 186,
            "width": 122,
            "height": 34,
            "required": true,
            "page_number": 0
          },
          "field_request_id": "4dfaa15dda85d21f6bfd74ccb2fa57fb100b57bb",
          "template_field_id": "e95b1f221fc6bad34ebb9e6809ba3f2053dfd437",
          "field_request_canceled": null
        }
      ],
      "created": "1413307342",
      "inserts": [],
      "updated": "1413485018",
      "user_id": "385859a93e9f216be2650cd8ef1a2fbd7da9c69c",
      "requests": [
        {
          "email_sent_statuses": [
            {
              "status": "sent",
              "created_at": 1640108848,
              "last_reaction_at": 1640108848
            },
            {
              "status": "mail_open",
              "created_at": 1640108848,
              "last_reaction_at": 1640108849
            },
            {
              "status": "bounce",
              "created_at": 1640108848,
              "last_reaction_at": 1640108851
            },
            {
              "status": "mail_click",
              "created_at": 1640108848,
              "last_reaction_at": 1640108850
            }
          ]
        }
      ],
      "template": false,
      "parent_id": "1854d1191e5a862b8deb0badb1a8a29d9b23fad8",
      "thumbnail": {
        "large": "http://example.com/document/8580a5cc6f09e5a451f532ce357dd2b862d8bc89/thumbnail?size=large",
        "small": "http://example.com/document/8580a5cc6f09e5a451f532ce357dd2b862d8bc89/thumbnail?size=small",
        "medium": "http://example.com/document/8580a5cc6f09e5a451f532ce357dd2b862d8bc89/thumbnail?size=medium"
      },
      "page_count": "1",
      "signatures": [
        {
          "x": "91",
          "y": "195",
          "id": "5caeaa94ca9bfa52d59a7e1bfd0f434cf858f50c",
          "email": "email_address@email.com",
          "width": "122",
          "height": "25",
          "created": "1413485018",
          "user_id": "ab410b7ff074fdaa7fec872244bf28dbb7e3e3d1",
          "page_number": "0"
        }
      ],
      "attachments": [],
      "exported_to": [
        {
          "is_exported": false,
          "export_domain": "example.com",
          "exported_user_ids": []
        }
      ],
      "is_favorite": false,
      "version_time": "1413485018",
      "document_name": "Document 1",
      "entity_labels": [],
      "field_invites": [
        {
          "id": "738038bbedef2f94f7397869a099ca643dd5bd87",
          "role": "Client",
          "email": "user@email.com",
          "status": "fulfilled",
          "updated": "1413485018"
        },
        {
          "email_sent_statuses": [
            {
              "status": "sent",
              "created_at": 1640108848,
              "last_reaction_at": 1640108848
            },
            {
              "status": "mail_open",
              "created_at": 1640108848,
              "last_reaction_at": 1640108849
            },
            {
              "status": "bounce",
              "created_at": 1640108848,
              "last_reaction_at": 1640108851
            },
            {
              "status": "mail_click",
              "created_at": 1640108848,
              "last_reaction_at": 1640108850
            }
          ]
        }
      ],
      "notary_invites": [],
      "origin_user_id": "385859a93e9f216be2650cd8ef1a2fbd7da9c69c",
      "original_filename": "document_sample.pdf",
      "origin_document_id": "4a9b85af10913a404cf1f79192c46f4d2b15f76f",
      "enumeration_options": [],
      "document_group_template_info": [
        {
          "shared": 0,
          "own_as_merged": false,
          "document_group_template_id": "a1e6573b74a5f0327f0d9daa8421b6f7e6282e59",
          "document_group_template_name": "Onboarding package"
        }
      ]
    }
  ],
  "parent_id": "07d79fbf3d1308c5796c64a4147e4a4bc30c9170",
  "system_folder": true,
  "total_documents": 1
}
```

**Example** (`With declined document `)

```json
{
  "id": "1854d1191e5a862b8deb0badb1a8a29d9b23fad8",
  "name": "Documents",
  "shared": false,
  "created": "1409253077",
  "folders": [],
  "user_id": "385859a93e9f216be2650cd8ef1a2fbd7da9c69c",
  "documents": [
    {
      "id": "8580a5cc6f09e5a451f532ce357dd2b862d8bc89",
      "tags": [
        {
          "name": "fields",
          "type": "system"
        }
      ],
      "owner": "document_owner@email.com",
      "roles": [
        {
          "name": "Client",
          "unique_id": "108a4ae129611a50f772c1ae6ed626f1af3c959c",
          "signing_order": "1"
        }
      ],
      "seals": [],
      "texts": [],
      "checks": [],
      "fields": [
        {
          "id": "ec103bdfd6fe29f2a719412c6d9dd13798afc6ef",
          "role": "Client",
          "type": "text",
          "role_id": "108a4ae129611a50f772c1ae6ed626f1af3c959c",
          "field_id": "4006d215f9b56bc706a73b6467e4876c27a4f110",
          "fulfiller": "fulfiller@email.com",
          "element_id": "d243243012aac357c45c19ee2c1998b6358bc457",
          "originator": "originator@email.com",
          "json_attributes": {
            "x": 281,
            "y": 195,
            "label": "Date",
            "width": 102,
            "height": 21,
            "required": true,
            "page_number": 0,
            "prefilled_text": ""
          },
          "field_request_id": "4006d215f9b56bc706a73b6467e4876c27a4f110",
          "template_field_id": "72de91bc89b622b6fcb561863803b3543013b33d",
          "field_request_canceled": null
        },
        {
          "id": "439c3ab0ed4f4f7cc2f5557f4deaceee54154cdf",
          "role": "Client",
          "type": "signature",
          "role_id": "108a4ae129611a50f772c1ae6ed626f1af3c959c",
          "field_id": "4dfaa15dda85d21f6bfd74ccb2fa57fb100b57bb",
          "fulfiller": "fulfiller@email.com",
          "element_id": "5caeaa94ca9bfa52d59a7e1bfd0f434cf858f50c",
          "originator": "originator@email.com",
          "json_attributes": {
            "x": 91,
            "y": 186,
            "width": 122,
            "height": 34,
            "required": true,
            "page_number": 0
          },
          "field_request_id": "4dfaa15dda85d21f6bfd74ccb2fa57fb100b57bb",
          "template_field_id": "e95b1f221fc6bad34ebb9e6809ba3f2053dfd437",
          "field_request_canceled": null
        }
      ],
      "created": "1413307342",
      "inserts": [],
      "updated": "1413485018",
      "user_id": "385859a93e9f216be2650cd8ef1a2fbd7da9c69c",
      "requests": [],
      "template": false,
      "parent_id": "1854d1191e5a862b8deb0badb1a8a29d9b23fad8",
      "thumbnail": {
        "large": "http://example.com/document/8580a5cc6f09e5a451f532ce357dd2b862d8bc89/thumbnail?size=large",
        "small": "http://example.com/document/8580a5cc6f09e5a451f532ce357dd2b862d8bc89/thumbnail?size=small",
        "medium": "http://example.com/document/8580a5cc6f09e5a451f532ce357dd2b862d8bc89/thumbnail?size=medium"
      },
      "page_count": "1",
      "signatures": [],
      "attachments": [],
      "exported_to": [
        {
          "is_exported": false,
          "export_domain": "example.com",
          "exported_user_ids": []
        }
      ],
      "is_favorite": false,
      "version_time": "1413485018",
      "document_name": "Document 1",
      "entity_labels": [
        {
          "updated": 1716320189,
          "is_system": true,
          "label_name": "declined"
        }
      ],
      "field_invites": [
        {
          "id": "738038bbedef2f94f7397869a099ca643dd5bd87",
          "role": "Client",
          "email": "user@email.com",
          "status": "fulfilled",
          "updated": "1413485018"
        },
        {
          "email_sent_statuses": [
            {
              "status": "sent",
              "created_at": 1640108848,
              "last_reaction_at": 1640108848
            },
            {
              "status": "mail_open",
              "created_at": 1640108848,
              "last_reaction_at": 1640108849
            },
            {
              "status": "bounce",
              "created_at": 1640108848,
              "last_reaction_at": 1640108851
            },
            {
              "status": "mail_click",
              "created_at": 1640108848,
              "last_reaction_at": 1640108850
            }
          ]
        }
      ],
      "notary_invites": [],
      "origin_user_id": "385859a93e9f216be2650cd8ef1a2fbd7da9c69c",
      "original_filename": "document_sample.pdf",
      "origin_document_id": "4a9b85af10913a404cf1f79192c46f4d2b15f76f",
      "enumeration_options": []
    }
  ],
  "parent_id": "07d79fbf3d1308c5796c64a4147e4a4bc30c9170",
  "system_folder": true,
  "total_documents": 1
}
```

**Example** (`With viewer field invites`)

```json
{
  "id": "a9ac43822ebc81e02672e6474166dc3f18d14c5b",
  "name": "Documents",
  "shared": false,
  "created": "1616586778",
  "folders": [],
  "user_id": "3032bc9359ae771a7cf1ef076c37593b8180cc10",
  "documents": [
    {
      "id": "cd8a6caff1efcd5e3bcc0a5f8faedd7db5043625",
      "owner": "document-owner@email.com",
      "created": 1616586981,
      "invites": [
        {
          "email": "signer@email.com",
          "order": "1",
          "action": "sign",
          "status": "fulfilled",
          "document_id": "06d0f92bf2cf6b5749ec2fde9018fbcfa6b6c462",
          "document_name": "Performance review",
          "authentication": null,
          "expiration_time": null
        },
        {
          "email": "manager@email.com",
          "order": "2",
          "action": "sign",
          "status": "fulfilled",
          "document_id": "06d0f92bf2cf6b5749ec2fde9018fbcfa6b6c462",
          "document_name": "Performance review",
          "authentication": null,
          "expiration_time": null
        },
        {
          "order": "2",
          "action": "view",
          "status": "pending",
          "document_id": "06d0f92bf2cf6b5749ec2fde9018fbcfa6b6c462",
          "email_group": {
            "id": "e7d703f9c028198c136a22bfa25b35b53d7791db",
            "name": "HR team"
          },
          "document_name": "Performance review",
          "authentication": null,
          "expiration_time": 1618210633
        }
      ],
      "updated": 1616586981,
      "user_id": "3032bc9359ae771a7cf1ef076c37593b8180cc10",
      "documents": [
        {
          "id": "d243243012aac357c45c19ee2c1998b6358bc457",
          "name": "sample",
          "roles": [
            "Signer 1",
            "Manager"
          ]
        }
      ],
      "invite_id": "ee92afd18b434160c2375ee9b765294db160e468",
      "entity_labels": [],
      "document_group_name": "Document Group 24-3-2021",
      "viewer_field_invites": [
        {
          "id": "ee92afd18b434160c2375ee9b765294db160e468",
          "email_group": {
            "id": "e7d703f9c028198c136a22bfa25b35b53d7791db",
            "name": "HR team"
          }
        }
      ]
    }
  ],
  "parent_id": "66b00b8e43e81fc4f2894d697407db5ec3fe5d1c",
  "system_folder": true,
  "total_documents": 1
}
```

**Example** (`With `entity_type=dgt` query`)

```json
{
  "id": "dafcf0486fde5d2a4845ff0f4f77ceed741da56c",
  "owner": "document-group-owner@email.com",
  "state": null,
  "pinned": false,
  "created": 1693474793,
  "invites": [],
  "updated": 1693474793,
  "user_id": "094a412b0cac4aa0bbbc525ed29e873fed70b184",
  "documents": [
    {
      "id": "108a4ae129611a50f772c1ae6ed626f1af3c959c",
      "name": "Sample image",
      "roles": [],
      "settings": null
    },
    {
      "id": "13c0f2f9617c4f61ca24fe14d3c9fe69700c58db",
      "name": "Sample image",
      "roles": [
        "Recipient 1"
      ],
      "settings": null
    }
  ],
  "invite_id": null,
  "parent_id": "f168bd45056f3a6a3105ffccca905ccd3d69e16e",
  "entity_type": "dgt",
  "is_favorite": false,
  "entity_labels": [],
  "recently_used": 1693474793,
  "sign_as_merged": false,
  "freeform_actions": [],
  "freeform_invite_id": null,
  "document_group_name": "Sample Document group",
  "originator_organization_settings": []
}
```

**Example** (`With `entity_type=document-group` query`)

```json
{
  "id": "4981d7a02a142db83bf2153d3dcec1ea78565a93",
  "owner": "document-group-owner@email.com",
  "state": "created",
  "pinned": false,
  "status": "created",
  "created": 1695288759,
  "invites": [],
  "updated": 1695288759,
  "user_id": "094a412b0cac4aa0bbbc525ed29e873fed70b184",
  "documents": [
    {
      "id": "2ca0843f880076aa6f228439b85465b77abd793d",
      "name": "Sample image",
      "roles": [],
      "settings": {
        "advanced_signing_flow": false
      }
    },
    {
      "id": "8299117e113fe353db1ec5e918f8c26797b59789",
      "name": "Sample image",
      "roles": [
        "Recipient 1"
      ],
      "settings": {
        "advanced_signing_flow": false
      }
    }
  ],
  "invite_id": null,
  "parent_id": "fb940c1ab23a5366c4d037b9cf184e1d4f004f5e",
  "entity_type": "document-group",
  "is_favorite": false,
  "entity_labels": [],
  "recently_used": 1695288759,
  "sign_as_merged": false,
  "freeform_actions": [],
  "freeform_invite_id": null,
  "document_group_name": "Sample Document group",
  "originator_organization_settings": []
}
```

**Example** (`With document group where user is a signer`)

```json
{
  "id": "a9ac43822ebc81e02672e6474166dc3f18d14c5b",
  "name": "Documents",
  "shared": false,
  "created": "1616586778",
  "folders": [],
  "user_id": "3032bc9359ae771a7cf1ef076c37593b8180cc10",
  "documents": [
    {
      "id": "cd8a6caff1efcd5e3bcc0a5f8faedd7db5043625",
      "owner": "owner-email@email.com",
      "created": 1616586981,
      "updated": 1616586981,
      "user_id": "3032bc9359ae771a7cf1ef076c37593b8180cc10",
      "documents": [
        {
          "id": "d243243012aac357c45c19ee2c1998b6358bc457",
          "name": "sample",
          "roles": [
            "Signer 1",
            "Signer 2"
          ],
          "field_invites": [
            {
              "id": "e46b397eca8641fa99a46aec03482d2339d352c6",
              "email_group": {
                "id": "f6b94b6314a9be296e10844c9abb84fd35508a56",
                "name": "Contact group"
              }
            },
            {
              "id": "f0e05737aff830f8351c887c908b552ce5048f8e",
              "email_group": {
                "id": "c2825a468cab739f2773685c64547e4d0de2f25e",
                "name": "Contact group"
              }
            }
          ]
        }
      ],
      "invite_id": "ee92afd18b434160c2375ee9b765294db160e468",
      "entity_labels": [],
      "document_group_name": "Document Group 24-3-2021"
    }
  ],
  "parent_id": "66b00b8e43e81fc4f2894d697407db5ec3fe5d1c",
  "system_folder": true,
  "total_documents": 1
}
```

**Example** (`With document group invite where user is the owner`)

```json
{
  "id": "a9ac43822ebc81e02672e6474166dc3f18d14c5b",
  "name": "Documents",
  "shared": false,
  "created": "1616586778",
  "folders": [],
  "user_id": "3032bc9359ae771a7cf1ef076c37593b8180cc10",
  "documents": [
    {
      "id": "cd8a6caff1efcd5e3bcc0a5f8faedd7db5043625",
      "owner": "document-owner@email.com",
      "created": 1616586981,
      "invites": [
        {
          "email": "signer@email.com",
          "order": "1",
          "action": "sign",
          "status": "fulfilled",
          "document_id": "06d0f92bf2cf6b5749ec2fde9018fbcfa6b6c462",
          "document_name": "Performance review",
          "authentication": null,
          "expiration_time": null
        },
        {
          "email": "manager@email.com",
          "order": "2",
          "action": "sign",
          "status": "fulfilled",
          "document_id": "06d0f92bf2cf6b5749ec2fde9018fbcfa6b6c462",
          "document_name": "Performance review",
          "authentication": null,
          "expiration_time": null
        },
        {
          "order": "2",
          "action": "view",
          "status": "pending",
          "document_id": "06d0f92bf2cf6b5749ec2fde9018fbcfa6b6c462",
          "email_group": {
            "id": "e7d703f9c028198c136a22bfa25b35b53d7791db",
            "name": "HR team"
          },
          "document_name": "Performance review",
          "authentication": null,
          "expiration_time": 1618210633
        }
      ],
      "updated": 1616586981,
      "user_id": "3032bc9359ae771a7cf1ef076c37593b8180cc10",
      "documents": [
        {
          "id": "d243243012aac357c45c19ee2c1998b6358bc457",
          "name": "sample",
          "roles": [
            "Signer 1",
            "Manager"
          ]
        }
      ],
      "invite_id": "ee92afd18b434160c2375ee9b765294db160e468",
      "entity_labels": [],
      "document_group_name": "Document Group 24-3-2021"
    }
  ],
  "parent_id": "66b00b8e43e81fc4f2894d697407db5ec3fe5d1c",
  "system_folder": true,
  "total_documents": 1
}
```

### 400

The folder does not exist or does not belong to the user.

**Example** (`Folder not found`)

```json
{
  "errors": [
    {
      "code": 65611,
      "message": "resource does not exist"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/folder/{folder_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /user/folder — Create folder

This endpoint allows API users to create a folder inside the specified parent folder.

**Notes**

* To get the ID of a parent folder, such as `Documents`, call `GET /user/folder`.

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "name",
    "parent_id"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the new folder."
    },
    "parent_id": {
      "type": "string",
      "description": "ID of the folder to create the new folder in."
    }
  }
}
```

**Example** (`Create folder`)

```json
{
  "name": "Contracts 2026",
  "parent_id": "f0e1d2c3b4a5f6e7d8c9b0a1f2e3d4c5b6a7f8e9"
}
```

## Responses

### 200

The folder was created. Returns its ID.

**Example** (`Folder created`)

```json
{
  "id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0"
}
```

### 400

* `name` is missing or empty.
* The parent folder does not exist.

**Example** (`Empty name`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "name must not be empty"
    }
  ]
}
```

**Example** (`Parent folder not found`)

```json
{
  "errors": [
    {
      "code": 65626,
      "message": "parent resource does not exist"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/user/folder" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "Contracts 2026", "parent_id": "f0e1d2c3b4a5f6e7d8c9b0a1f2e3d4c5b6a7f8e9"}'
```

---

## GET /user/folder — Get all folders

This endpoint allows API users to get the root folder of the user and its top-level folders, including the system folders (`Documents`, `Archive`, `Templates`, `Trash Bin`) and team folders.

**Notes**

* The same operation is also available at `GET /folder`.
* `document_count` and `template_count` depend on `entity_type`. By default (`document-all`), a folder counts only documents or only templates, depending on the folder type.
* To get the contents of a specific folder, call `GET /folder/{folder_id}`.

## Authorization

bearer

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `filters` | string | No | Filter to apply to the document list. Possible values: `signing-status`, `documents-created`, `documents-updated`. Set the filter value in `filter-values`. |
| `filter-values` | string | No | Value for the filter set in `filters`. For `signing-status`: `signed`, `pending`, `waiting-for-me`, `waiting-for-others`, `unsent`. For `documents-created` and `documents-updated`: a Unix timestamp; documents created or updated from that time are returned. Date filters do not apply to templates. |
| `sortby` | string | No | Field to sort documents by. Possible values: `created`, `updated`, `recently_used`. `recently_used` sorts templates by the date the last invite was sent and applies to `Templates` folders. |
| `order` | string | No | Sort order. Can be used only with `sortby`. Possible values: `desc`, `asc`. Default: `desc`. |
| `limit` | integer | No | Maximum number of documents to return. Max: `100`. Larger values are reduced to `100`. |
| `offset` | integer | No | Number of documents to skip before the returned page starts. |
| `subfolder-data` | string | No | Whether to include subfolders in the response. Possible values: `1`, `0`. Must be used with `include_documents_subfolders`. |
| `include_documents_subfolders` | string | No | Whether to include subfolders in the response. Possible values: `1`, `0`. Must be used with `subfolder-data`. |
| `with_team_documents` | string | No | Whether to include `Team Documents` folders. Possible values: `true`, `false`. |
| `only_favorites` | string | No | Whether to return only favorite documents and document groups. Possible values: `true`, `false`. Default: `false`. |
| `entity_type` | string | No | Entities counted in `document_count` and `template_count`. Possible values: `document-all` (default): only documents or only templates, depending on the folder type. `all`: all entity types in the folder. `document`: documents that are not in a document group; `Documents`, `Archive`, and `Trash Bin` folders only. `document-group`: documents in document groups; `Documents`, `Archive`, and `Trash Bin` folders only. `template`: templates; `Templates` and `Trash Bin` folders only. `dgt`: document group templates; `Templates` and `Trash Bin` folders only. |

## Responses

### 200

* Success
* With document group invite where user is the owner
* With document group invite where user is the signer
* With viewer field invites


**Example** (`Success`)

```json
{
  "id": "38697ad01ad8dad98e5f81439775940c6f40ba0f",
  "name": "Root Folder",
  "shared": false,
  "created": "1532531633",
  "folders": [
    {
      "id": "251dd280b288182ad4c6493726b6a8f213ecf812",
      "name": "Templates",
      "shared": false,
      "created": "1532531633",
      "user_id": "89cc3b125c73c80d68d9fdf672426a4273ba7c8a",
      "sub_folders": [],
      "folder_count": "0",
      "document_count": "0",
      "template_count": "11"
    },
    {
      "id": "3bfdd05b3be61241fa743f11e9f3c03539a46238",
      "name": "Team Templates",
      "shared": true,
      "created": "1557915422",
      "team_id": "c38fa601feb71c335e70e50006fc1fca9e8adf5e",
      "user_id": "89cc3b125c73c80d68d9fdf672426a4273ba7c8a",
      "team_name": "Sample team",
      "team_type": "VIEWABLE",
      "sub_folders": [],
      "folder_count": "0",
      "document_count": "0",
      "template_count": "3"
    },
    {
      "id": "5426d2e8af6beaee4da6154c1d4037e92788464e",
      "name": "Team Templates",
      "shared": true,
      "created": "1543922139",
      "team_id": "96f4d8b767cbc1badd95bb82d7ccb15701e28287",
      "user_id": "89cc3b125c73c80d68d9fdf672426a4273ba7c8a",
      "team_name": "My team",
      "team_type": "VIEWABLE",
      "sub_folders": [],
      "folder_count": "0",
      "document_count": "0",
      "template_count": "1"
    },
    {
      "id": "8320475dd00a86f18311ad72b4b5cde67ed1f7da",
      "name": "Archive",
      "shared": false,
      "created": "1532531633",
      "user_id": "89cc3b125c73c80d68d9fdf672426a4273ba7c8a",
      "sub_folders": [],
      "folder_count": "0",
      "document_count": "21",
      "template_count": 0
    },
    {
      "id": "9ea63029fb7b8b3007cb871b9fcef554f1db52e5",
      "name": "Trash Bin",
      "shared": false,
      "created": "1567466970",
      "user_id": "89cc3b125c73c80d68d9fdf672426a4273ba7c8a",
      "sub_folders": [],
      "folder_count": "0",
      "document_count": "0",
      "template_count": 0
    },
    {
      "id": "c8ad123a9ca674f49070e59dbe32806d300aa680",
      "name": "Documents",
      "shared": false,
      "created": "1532531633",
      "user_id": "89cc3b125c73c80d68d9fdf672426a4273ba7c8a",
      "sub_folders": [],
      "folder_count": "0",
      "document_count": "74",
      "template_count": 0
    }
  ],
  "user_id": "89cc3b125c73c80d68d9fdf672426a4273ba7c8a",
  "documents": [],
  "parent_id": null,
  "system_folder": false,
  "total_documents": 0
}
```

**Example** (`With viewer field invites`)

```json
{
  "id": "a9c50c4fd12fc61a1d9f0364b04a981ce717c783",
  "name": "Documents",
  "shared": false,
  "created": "1616586778",
  "folders": [],
  "user_id": "30fa20445ecc569f1b6269e01369c709bf3f9398",
  "documents": [
    {
      "id": "cd1364085149afc82f79eb28c21080190994a2cc",
      "owner": "document-owner@email.com",
      "created": 1616586981,
      "invites": [
        {
          "email": "signer@email.com",
          "order": "1",
          "action": "sign",
          "status": "fulfilled",
          "document_id": "06f32e82688ed868dc34465c14c41e642c282f28",
          "document_name": "Performance review",
          "authentication": null,
          "expiration_time": null
        },
        {
          "email": "manager@email.com",
          "order": "2",
          "action": "sign",
          "status": "fulfilled",
          "document_id": "06f32e82688ed868dc34465c14c41e642c282f28",
          "document_name": "Performance review",
          "authentication": null,
          "expiration_time": null
        },
        {
          "order": "2",
          "action": "view",
          "status": "pending",
          "document_id": "06f32e82688ed868dc34465c14c41e642c282f28",
          "email_group": {
            "id": "e7b69891e5e699736212fe2c79f2d3dda68c7b57",
            "name": "HR team"
          },
          "document_name": "Performance review",
          "authentication": null,
          "expiration_time": 1618210633
        }
      ],
      "updated": 1616586981,
      "user_id": "30fa20445ecc569f1b6269e01369c709bf3f9398",
      "documents": [
        {
          "id": "d2873eaea0fa1b09ec2df19bfe718ec50c896426",
          "name": "sample",
          "roles": [
            "Signer 1",
            "Manager"
          ]
        }
      ],
      "invite_id": "ee9b80704287ec855a5b58e8d14b79fbdde8fdbc",
      "document_group_name": "Document Group 24-3-2021",
      "viewer_field_invites": [
        {
          "id": "ee9b80704287ec855a5b58e8d14b79fbdde8fdbc",
          "email_group": {
            "id": "e7b69891e5e699736212fe2c79f2d3dda68c7b57",
            "name": "HR team"
          }
        }
      ]
    }
  ],
  "parent_id": "667ac6283ec9d72a48dc858962564a6f1bcb38f6",
  "system_folder": true,
  "total_documents": 1
}
```

**Example** (`With document group where user is a signer`)

```json
{
  "id": "a9c50c4fd12fc61a1d9f0364b04a981ce717c783",
  "name": "Documents",
  "shared": false,
  "created": "1616586778",
  "folders": [],
  "user_id": "30fa20445ecc569f1b6269e01369c709bf3f9398",
  "documents": [
    {
      "id": "cd1364085149afc82f79eb28c21080190994a2cc",
      "owner": "owner-email@email.com",
      "created": 1616586981,
      "updated": 1616586981,
      "user_id": "30fa20445ecc569f1b6269e01369c709bf3f9398",
      "documents": [
        {
          "id": "d2873eaea0fa1b09ec2df19bfe718ec50c896426",
          "name": "sample",
          "roles": [
            "Signer 1",
            "Signer 2"
          ],
          "field_invites": [
            {
              "id": "e491809e26baf1aec83a9654adc5fadc27a04301",
              "email_group": {
                "id": "f666c0a96c527faad470b7da6f262a0c4c8967f1",
                "name": "Contact group"
              }
            },
            {
              "id": "2b6d0a2d03fde6fa0ecd9a13e0d2b9c605c3036d",
              "email_group": {
                "id": "c24c9e85479bbbf17d755699510fa94114e65347",
                "name": "Contact group"
              }
            }
          ]
        }
      ],
      "invite_id": "ee9b80704287ec855a5b58e8d14b79fbdde8fdbc",
      "document_group_name": "Document Group 24-3-2021"
    }
  ],
  "parent_id": "667ac6283ec9d72a48dc858962564a6f1bcb38f6",
  "system_folder": true,
  "total_documents": 1
}
```

**Example** (`With document group invite where user is the owner`)

```json
{
  "id": "a9c50c4fd12fc61a1d9f0364b04a981ce717c783",
  "name": "Documents",
  "shared": false,
  "created": "1616586778",
  "folders": [],
  "user_id": "30fa20445ecc569f1b6269e01369c709bf3f9398",
  "documents": [
    {
      "id": "cd1364085149afc82f79eb28c21080190994a2cc",
      "owner": "document-owner@email.com",
      "created": 1616586981,
      "invites": [
        {
          "email": "signer@email.com",
          "order": "1",
          "action": "sign",
          "status": "fulfilled",
          "document_id": "06f32e82688ed868dc34465c14c41e642c282f28",
          "document_name": "Performance review",
          "authentication": null,
          "expiration_time": null
        },
        {
          "email": "manager@email.com",
          "order": "2",
          "action": "sign",
          "status": "fulfilled",
          "document_id": "06f32e82688ed868dc34465c14c41e642c282f28",
          "document_name": "Performance review",
          "authentication": null,
          "expiration_time": null
        },
        {
          "order": "2",
          "action": "view",
          "status": "pending",
          "document_id": "06f32e82688ed868dc34465c14c41e642c282f28",
          "email_group": {
            "id": "e7b69891e5e699736212fe2c79f2d3dda68c7b57",
            "name": "HR team"
          },
          "document_name": "Performance review",
          "authentication": null,
          "expiration_time": 1618210633
        }
      ],
      "updated": 1616586981,
      "user_id": "30fa20445ecc569f1b6269e01369c709bf3f9398",
      "documents": [
        {
          "id": "d2873eaea0fa1b09ec2df19bfe718ec50c896426",
          "name": "sample",
          "roles": [
            "Signer 1",
            "Manager"
          ]
        }
      ],
      "invite_id": "ee9b80704287ec855a5b58e8d14b79fbdde8fdbc",
      "document_group_name": "Document Group 24-3-2021"
    }
  ],
  "parent_id": "667ac6283ec9d72a48dc858962564a6f1bcb38f6",
  "system_folder": true,
  "total_documents": 1
}
```

### 400

* Get info about specific folder which doesn't belong to the user.

**Example** (`Get info about specific folder which doesn't belong to the user`)

```json
{
  "errors": [
    {
      "code": 65611,
      "message": "resource does not exist"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/user/folder" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /user/folder/{folder_id} — Rename folder

This endpoint allows API users to rename a folder.

**Notes**

* The same operation is also available at `PUT /folder/{folder_id}`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `folder_id` | string | Yes | ID of the folder to rename. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "New name of the folder."
    }
  }
}
```

**Example** (`Rename folder`)

```json
{
  "name": "Signed contracts"
}
```

## Responses

### 200

The folder was renamed. Returns its ID.

**Example** (`Folder renamed`)

```json
{
  "id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0"
}
```

### 400

* `name` is missing.
* The folder does not exist or does not belong to the user.

**Example** (`Missing name`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid payload"
    }
  ]
}
```

**Example** (`Folder not found`)

```json
{
  "errors": [
    {
      "code": 65611,
      "message": "resource does not exist"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/user/folder/{folder_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "Signed contracts"}'
```

---

## DELETE /user/folder/{folder_id} — Delete folder

This endpoint allows API users to delete a folder.

**Notes**

* The same operation is also available at `DELETE /folder/{folder_id}`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `folder_id` | string | Yes | ID of the folder to delete. |

## Responses

### 200

The folder was deleted.

**Example** (`Folder deleted`)

```json
{
  "success": true
}
```

### 400

The folder does not exist or does not belong to the user.

**Example** (`Folder not found`)

```json
{
  "errors": [
    {
      "code": 65611,
      "message": "resource does not exist"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/user/folder/{folder_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/folders/{folder_id}/document-templates/pinned — Get pinned templates

This endpoint allows API users to get the pinned templates in the `Templates` folder or one of its subfolders.

**Notes**

* `folder_id` must be the ID of the `Templates` folder or one of its subfolders. For any other folder, the endpoint returns `400`.
* To get the ID of the `Templates` folder, call `GET /user/folder`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `folder_id` | string | Yes | ID of the `Templates` folder or one of its subfolders. |

## Responses

### 200

The pinned templates in the folder. `data` is empty if no templates are pinned.

* User has 1 pinned template
* User has no pinned templates

**Example** (`User has 1 pinned template`)

```json
{
  "data": [
    {
      "id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0",
      "tags": [
        {
          "name": "fields",
          "type": "system",
          "unique_id": "d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3"
        },
        {
          "name": "field_signature",
          "type": "system",
          "unique_id": "e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4"
        },
        {
          "name": "template",
          "type": "system",
          "unique_id": "f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5"
        }
      ],
      "owner": "user@example.com",
      "roles": [
        {
          "name": "Role 1",
          "unique_id": "c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2",
          "signing_order": 1
        }
      ],
      "created": 1792405293,
      "updated": 1792405294,
      "user_id": "b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1",
      "thumbnail": {
        "large": "https://api.signnow.com/document/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0/thumbnail?size=large",
        "small": "https://api.signnow.com/document/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0/thumbnail?size=small",
        "medium": "https://api.signnow.com/document/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0/thumbnail?size=medium"
      },
      "page_count": 1,
      "signatures": [],
      "attachments": [],
      "version_time": 1792405294,
      "viewer_roles": [],
      "document_name": "Purchase order terms",
      "recently_used": 1792405294,
      "routing_details": [
        {
          "cc": [],
          "id": "a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6",
          "data": [
            {
              "name": "Role 1",
              "role_id": "c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2",
              "attributes": [],
              "inviter_role": false,
              "default_email": "signer@example.com",
              "signing_order": 1,
              "decline_by_signature": false
            }
          ],
          "cc_step": [],
          "created": 1792405294,
          "updated": 1792405294,
          "viewers": [],
          "approvers": [],
          "invite_link_instructions": null
        }
      ],
      "original_filename": "purchase-order-terms.pdf",
      "document_group_template_info": []
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

**Example** (`User has no pinned templates`)

```json
{
  "data": [],
  "meta": {
    "pagination": {
      "count": 0,
      "links": [],
      "total": 0,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

User folder {folder_id} is not Template folder or Template sub-folder.

**Example** (`User folder {folder_id} is not Template folder or Template sub-folder`)

```json
{
  "errors": [
    {
      "code": 13033002,
      "message": "User folder `a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0` is not Template folder or Template sub-folder."
    }
  ]
}
```

### 403

Folder {folder_id} doesn’t belong to a user.

**Example** (`Folder {folder_id} doesn’t belong to a user`)

```json
{
  "errors": [
    {
      "code": 13033001,
      "message": "User is not owner of the `a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0` user folder."
    }
  ]
}
```

### 404

The folder does not exist.

**Example** (`Folder not found`)

```json
{
  "errors": [
    {
      "message": "UserFolder `a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0` not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/folders/{folder_id}/document-templates/pinned" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/trash — Empty trash bin folder

This endpoint allows API users to empty the `Trash Bin` folder.

**Notes**

* All entities in the `Trash Bin` folder are permanently deleted and cannot be restored.

## Authorization

bearer

## Responses

### 204

Trash Bin folder cleared successfully.

### 400

Invalid token response will be sent with any of cases:
- invalid token of user.
- expired token of user.
- empty header.
- authorization = null.
- authorization without value.
- somesing went wrong during the clearing process.

**Example** (`Invalid token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/trash" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/applications/{application_id}/brand — Assign brand to application

This endpoint allows API users to assign a brand to an application.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `application_id` | string | Yes | ID of the application. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "brand_id"
  ],
  "properties": {
    "brand_id": {
      "type": "string",
      "description": "ID of the brand that will be assigned."
    }
  },
  "x-examples": {
    "Assign brand": {
      "brand_id": "4c1d9e7a2b3f4e5d8a6b7c9d0e1f2a3b4c5d6e7f"
    }
  }
}
```

**Example** (`Assign brand`)

```json
{
  "brand_id": "4c1d9e7a2b3f4e5d8a6b7c9d0e1f2a3b4c5d6e7f"
}
```

## Responses

### 201

The brand has been assigned to the application. The response body is empty.

### 400

* Incorrect or missing token.
* Incorrect payload.
* `brand_id` is not a string.
* Empty `brand_id`.
* Missing or incorrect `brand_id`.

**Example** (`Empty brand_id`)

```json
{
  "code": 25002071,
  "message": "Brand id must not be an empty string."
}
```

**Example** (`Incorrect payload`)

```json
{
  "code": 25002002,
  "message": "Invalid payload given."
}
```

**Example** (`brand_id not string`)

```json
{
  "code": 25002070,
  "message": "Brand id must be a string."
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Missing or incorrect brand_id`)

```json
{
  "code": 25002069,
  "message": "Brand id is required"
}
```

### 403

* The user is authorized with a token from an app they don’t own.
* The bearer token is valid but it belongs to another user.
* Brand with this `brand_id` doesn't exist.
* User doesn't own this brand.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002077,
  "message": "You are not allowed to assign provided brand."
}
```

**Example** (`Another user's token`)

```json
{
  "code": 25002075,
  "message": "Brand assign to provided application is not allowed."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

**Example** (`User doesn't own this brand`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

### 404

`application_id` does not exist.


**Example** (`application_id does not exist`)

```json
{
  "code": "25002076",
  "message": "Application unique identifier does not exist."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/applications/{application_id}/brand" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"brand_id": "4c1d9e7a2b3f4e5d8a6b7c9d0e1f2a3b4c5d6e7f"}'
```

---

## GET /v2/applications/{application_id}/brand — Get brand of application

This endpoint allows API users to retrieve branding that has been assigned to an application.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `application_id` | string | Yes | ID of the application. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `use_hierarchy` | string | No | Retrieve branding assigned specifically to the application with or without branding of its parent organization. Possible values: `true` - show organization branding if no specific branding is assigned to the application; `false` - show only the branding specifically assigned to the application (if any).  |

## Responses

### 200

Brand assigned to the application. With `use_hierarchy=true`, returns the brand inherited from a higher level when the application has none.

**Example** (`No brand`)

```json
{
  "data": []
}
```

**Example** (`Brand found`)

```json
{
  "data": {
    "link": "https://api.signnow.com/v2/brands/2b715ceecdcf9ec54089500692b1a38549ff8f02",
    "level": "application",
    "title": "My brand",
    "resources": {
      "logo": {
        "data": {
          "original": "https://api.signnow.com/v2/brands/2b715ceecdcf9ec54089500692b1a38549ff8f02/resources/logo"
        },
        "link": "https://api.signnow.com/v2/brands/2b715ceecdcf9ec54089500692b1a38549ff8f02/resources/logo?hash=735929a6da50356b4827b037b992dc7e5e631d0a"
      },
      "general": {
        "data": {
          "icons": {
            "color": "#546470",
            "border": "#ffffff",
            "background": "#ffffff",
            "hover-color": "#546470",
            "hover-border": "#f1f2f4",
            "hover-background": "#f1f2f4"
          },
          "texts": {
            "color": "#2f373e"
          },
          "header": {
            "background": "#ffffff"
          },
          "buttons": {
            "default": {
              "color": "#546470",
              "border": "#ffffff",
              "background": "#ffffff",
              "hover-color": "#546470",
              "active-color": "#546470",
              "hover-border": "#f1f2f4",
              "active-border": "#ffffff",
              "hover-background": "#f1f2f4",
              "active-background": "#ffffff"
            },
            "primary": {
              "color": "#ffffff",
              "border": "#0777cf",
              "background": "#0777cf",
              "hover-color": "#ffffff",
              "active-color": "#ffffff",
              "hover-border": "#348fd7",
              "active-border": "#003458",
              "hover-background": "#348fd7",
              "active-background": "#076dbd"
            },
            "dropdown": {
              "color": "#546470",
              "border": "#ffffff",
              "background": "#ffffff",
              "hover-color": "#546470",
              "active-color": "#546470",
              "hover-border": "#f1f2f4",
              "active-border": "#ffffff",
              "hover-background": "#f1f2f4",
              "active-background": "#ffffff"
            },
            "secondary": {
              "color": "#38424b",
              "border": "#e3e6e9",
              "background": "#e3e6e9",
              "hover-color": "#38424b",
              "active-color": "#38424b",
              "hover-border": "#f1f2f4",
              "active-border": "#d5dade",
              "hover-background": "#f1f2f4",
              "active-background": "#d5dade"
            }
          },
          "hyperlink": {
            "color": "#546470",
            "hover-color": "#667988",
            "active-color": "#4b5963"
          },
          "help-center": {
            "visibility": true
          },
          "consent-text": {
            "en": "{sender_email} has invited you to fill out and sign this in one place.",
            "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
            "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
          },
          "main-background": "#efefef",
          "welcome-message": {
            "body-text": {
              "en": "{sender_email} has invited you to fill out and sign this in one place.",
              "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
              "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
            },
            "visibility": true,
            "header-text": {
              "en": "Hi, {signer_email}",
              "es": "Hola, {signer_email}",
              "fr": "Bonjour, {signer_email}"
            }
          }
        },
        "link": "https://api.signnow.com/v2/brands/2b715ceecdcf9ec54089500692b1a38549ff8f02/resources/general"
      }
    },
    "unique_id": "2b715ceecdcf9ec54089500692b1a38549ff8f02",
    "owner_type": "user"
  }
}
```

### 400

Incorrect or missing token.

**Example** (`no token/invalid token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 404

* Incorrect `application_id`.
* `application_id` does not exist. 
* `application_id` has been deleted.

**Example** (`Deleted application_id`)

```json
{
  "code": 25002065,
  "message": "Application deleted."
}
```

**Example** (`Incorrect application_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/documents/567/brand"
}
```

**Example** (`application_id does not exist`)

```json
{
  "code": 25002062,
  "message": "Application unique identifier does not exist."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/applications/{application_id}/brand" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/applications/{application_id}/brand — Unassign brand from application

This endpoint allows users to delete branding assignment from an application.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `application_id` | string | Yes | ID of the application. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The bearer token is valid but it belongs to another user.
* The user is authorized with a token from an app they don’t own.


**Example** (`Another user's token`)

```json
{
  "code": 25002075,
  "message": "Brand assign to provided application is not allowed."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

### 404

* `application_id` does not exist.
* `application_id` has been deleted.

**Example** (`Deleted application_id`)

```json
{
  "code": 25002065,
  "message": "Application deleted."
}
```

**Example** (`application_id does not exist`)

```json
{
  "code": 25002062,
  "message": "Application unique identifier does not exist."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/applications/{application_id}/brand" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/document-groups/{document_group_id}/brand — Assign brand to doc group

This endpoint allows API users to assign a brand to a document group.

**Notes**

* Members of an organization (workspace) can assign branding to document groups when the organization's `disable_branding_setup` setting is `0`. To check the organization (workspace) settings, use [Get organization settings](/docs/organization/operations/get-v2-organizations-org-id-settings).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "brand_id"
  ],
  "properties": {
    "brand_id": {
      "type": "string",
      "description": "ID of the brand that will be assigned."
    }
  },
  "x-examples": {
    "Assign brand": {
      "brand_id": "4c1d9e7a2b3f4e5d8a6b7c9d0e1f2a3b4c5d6e7f"
    }
  }
}
```

**Example** (`Assign brand`)

```json
{
  "brand_id": "4c1d9e7a2b3f4e5d8a6b7c9d0e1f2a3b4c5d6e7f"
}
```

## Responses

### 201

The brand has been assigned to the document group. The response body is empty.

### 400

* Incorrect or missing token.
* Incorrect payload.
* `brand_id` is not a string.
* Empty `brand_id`.
* Missing or incorrect `brand_id`.

**Example** (`Empty brand_id`)

```json
{
  "code": 25002071,
  "message": "Brand id must not be an empty string."
}
```

**Example** (`Incorrect payload`)

```json
{
  "code": 25002002,
  "message": "Invalid payload given."
}
```

**Example** (`brand_id not string`)

```json
{
  "code": 25002070,
  "message": "Brand id must be a string."
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Missing or incorrect brand_id`)

```json
{
  "code": 25002069,
  "message": "Brand id is required"
}
```

### 403

* The user is authorized with a token from an app they don’t own.
* The bearer token is valid but it belongs to another user.
* Brand with this `brand_id` doesn't exist.
* User doesn't own this brand.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002077,
  "message": "You are not allowed to assign provided brand."
}
```

**Example** (`Another user's token`)

```json
{
  "code": 25002075,
  "message": "Brand assign to provided application is not allowed."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

**Example** (`User doesn't own this brand`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

### 404

`document_group_id` doesn't exist.

**Example** (`document_group_id doesn't exist`)

```json
{
  "code": 25002063,
  "message": "Document group unique identifier does not exist."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/brand" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"brand_id": "4c1d9e7a2b3f4e5d8a6b7c9d0e1f2a3b4c5d6e7f"}'
```

---

## GET /v2/document-groups/{document_group_id}/brand — Get brand of doc group

This endpoint allows API users to retrieve branding that has been assigned to a document group.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `use_hierarchy` | string | No | Retrieve branding assigned specifically to the document group with or without branding of its parent application/organization. Possible values: `true` - show application/organization branding if no specific branding is assigned to the document group; `false` - show only the branding specifically assigned to the document group (if any).  |

## Responses

### 200

Brand assigned to the document group. With `use_hierarchy=true`, returns the brand inherited from a higher level when the document group has none.

**Example** (`No brand`)

```json
{
  "data": []
}
```

**Example** (`Brand found`)

```json
{
  "data": {
    "link": "https://api.signnow.com/v2/brands/2b715ceecdcf9ec54089500692b1a38549ff8f02",
    "level": "application",
    "title": "My brand",
    "resources": {
      "logo": {
        "data": {
          "original": "https://api.signnow.com/v2/brands/2b715ceecdcf9ec54089500692b1a38549ff8f02/resources/logo"
        },
        "link": "https://api.signnow.com/v2/brands/2b715ceecdcf9ec54089500692b1a38549ff8f02/resources/logo?hash=735929a6da50356b4827b037b992dc7e5e631d0a"
      },
      "general": {
        "data": {
          "icons": {
            "color": "#546470",
            "border": "#ffffff",
            "background": "#ffffff",
            "hover-color": "#546470",
            "hover-border": "#f1f2f4",
            "hover-background": "#f1f2f4"
          },
          "texts": {
            "color": "#2f373e"
          },
          "header": {
            "background": "#ffffff"
          },
          "buttons": {
            "default": {
              "color": "#546470",
              "border": "#ffffff",
              "background": "#ffffff",
              "hover-color": "#546470",
              "active-color": "#546470",
              "hover-border": "#f1f2f4",
              "active-border": "#ffffff",
              "hover-background": "#f1f2f4",
              "active-background": "#ffffff"
            },
            "primary": {
              "color": "#ffffff",
              "border": "#0777cf",
              "background": "#0777cf",
              "hover-color": "#ffffff",
              "active-color": "#ffffff",
              "hover-border": "#348fd7",
              "active-border": "#003458",
              "hover-background": "#348fd7",
              "active-background": "#076dbd"
            },
            "dropdown": {
              "color": "#546470",
              "border": "#ffffff",
              "background": "#ffffff",
              "hover-color": "#546470",
              "active-color": "#546470",
              "hover-border": "#f1f2f4",
              "active-border": "#ffffff",
              "hover-background": "#f1f2f4",
              "active-background": "#ffffff"
            },
            "secondary": {
              "color": "#38424b",
              "border": "#e3e6e9",
              "background": "#e3e6e9",
              "hover-color": "#38424b",
              "active-color": "#38424b",
              "hover-border": "#f1f2f4",
              "active-border": "#d5dade",
              "hover-background": "#f1f2f4",
              "active-background": "#d5dade"
            }
          },
          "hyperlink": {
            "color": "#546470",
            "hover-color": "#667988",
            "active-color": "#4b5963"
          },
          "help-center": {
            "visibility": true
          },
          "consent-text": {
            "en": "{sender_email} has invited you to fill out and sign this in one place.",
            "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
            "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
          },
          "main-background": "#efefef",
          "welcome-message": {
            "body-text": {
              "en": "{sender_email} has invited you to fill out and sign this in one place.",
              "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
              "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
            },
            "visibility": true,
            "header-text": {
              "en": "Hi, {signer_email}",
              "es": "Hola, {signer_email}",
              "fr": "Bonjour, {signer_email}"
            }
          }
        },
        "link": "https://api.signnow.com/v2/brands/2b715ceecdcf9ec54089500692b1a38549ff8f02/resources/general"
      }
    },
    "unique_id": "2b715ceecdcf9ec54089500692b1a38549ff8f02",
    "owner_type": "user"
  }
}
```

### 400

Incorrect or missing token.

**Example** (`no token/invalid token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 404

* Incorrect `document_group_id`.
* `document_group_id` does not exist.

**Example** (`Incorrect document_group_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/documents/567/brand"
}
```

**Example** (`document_group_id does not exist`)

```json
{
  "code": 25002062,
  "message": "Document group unique identifier does not exist."
}
```

### 422

`document_group_id` has been deleted.

**Example** (`Document group not active`)

```json
{
  "code": 25002067,
  "message": "Document group is not active."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/brand" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/document-groups/{document_group_id}/brand — Unassign brand from doc group

This endpoint allows users to delete branding assignment from a document group.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The bearer token is valid but it belongs to another user.
* The user is authorized with a token from an app they don’t own.


**Example** (`Another user's token`)

```json
{
  "code": 25002075,
  "message": "Brand assign to provided application is not allowed."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

### 404

`document_group_id` doesn't exist.

**Example** (`document_group_id doesn't exist`)

```json
{
  "code": 25002063,
  "message": "Document group unique identifier does not exist."
}
```

### 422

`document_group_id` has been deleted.

**Example** (`Document group not active`)

```json
{
  "code": 25002067,
  "message": "Document group is not active."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/brand" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/documents/{document_id}/brand — Assign brand to document

This endpoint allows API users to assign a brand to a document.

**Notes**

* Members of an organization (workspace) can assign branding to documents when the organization's `disable_branding_setup` setting is `0`. To check the organization (workspace) settings, use [Get organization settings](/docs/organization/operations/get-v2-organizations-org-id-settings).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "brand_id"
  ],
  "properties": {
    "brand_id": {
      "type": "string",
      "description": "ID of the brand that will be assigned."
    }
  },
  "x-examples": {
    "Assign brand": {
      "brand_id": "4c1d9e7a2b3f4e5d8a6b7c9d0e1f2a3b4c5d6e7f"
    }
  }
}
```

**Example** (`Assign brand`)

```json
{
  "brand_id": "4c1d9e7a2b3f4e5d8a6b7c9d0e1f2a3b4c5d6e7f"
}
```

## Responses

### 201

The brand has been assigned to the document. The response body is empty.

### 400

* Incorrect or missing token.
* Incorrect payload.
* `brand_id` is not a string.
* Empty `brand_id`.
* Missing or incorrect `brand_id`.

**Example** (`Empty brand_id`)

```json
{
  "code": 25002071,
  "message": "Brand id must not be an empty string."
}
```

**Example** (`Incorrect payload`)

```json
{
  "code": 25002002,
  "message": "Invalid payload given."
}
```

**Example** (`brand_id not string`)

```json
{
  "code": 25002070,
  "message": "Brand id must be a string."
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Missing or incorrect brand_id`)

```json
{
  "code": 25002069,
  "message": "Brand id is required"
}
```

### 403

* The user is authorized with a token from an app they don’t own.
* The bearer token is valid but it belongs to another user.
* Brand with this `brand_id` doesn't exist.
* User doesn't own this brand.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002077,
  "message": "You are not allowed to assign provided brand."
}
```

**Example** (`Another user's token`)

```json
{
  "code": 25002075,
  "message": "Brand assign to provided application is not allowed."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

**Example** (`User doesn't own this brand`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

### 404

`document_id` doesn't exist.

**Example** (`document_id doesn't exist`)

```json
{
  "code": 25002062,
  "message": "Document unique identifier does not exist."
}
```

### 422

`document_id` has been deleted.

**Example** (`Document deleted`)

```json
{
  "code": 25002065,
  "message": "Document deleted."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/documents/{document_id}/brand" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"brand_id": "4c1d9e7a2b3f4e5d8a6b7c9d0e1f2a3b4c5d6e7f"}'
```

---

## GET /v2/documents/{document_id}/brand — Get brand of document

This endpoint allows API users to retrieve branding that has been assigned to a document. 

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `use_hierarchy` | boolean | No | Retrieve branding assigned specifically to the document with or without branding of its parent application/organization. Possible values: `true` - show application/organization branding if no specific branding is assigned to the document; `false` - show only the branding specifically assigned to the document (if any).  |

## Responses

### 200

Brand assigned to the document. With `use_hierarchy=true`, returns the brand inherited from a higher level when the document has none.

**Example** (`No brand`)

```json
{
  "data": []
}
```

**Example** (`Brand found`)

```json
{
  "data": {
    "link": "https://api.signnow.com/v2/brands/2b715ceecdcf9ec54089500692b1a38549ff8f02",
    "level": "application",
    "title": "My brand",
    "resources": {
      "logo": {
        "data": {
          "original": "https://api.signnow.com/v2/brands/2b715ceecdcf9ec54089500692b1a38549ff8f02/resources/logo"
        },
        "link": "https://api.signnow.com/v2/brands/2b715ceecdcf9ec54089500692b1a38549ff8f02/resources/logo?hash=735929a6da50356b4827b037b992dc7e5e631d0a"
      },
      "general": {
        "data": {
          "icons": {
            "color": "#546470",
            "border": "#ffffff",
            "background": "#ffffff",
            "hover-color": "#546470",
            "hover-border": "#f1f2f4",
            "hover-background": "#f1f2f4"
          },
          "texts": {
            "color": "#2f373e"
          },
          "header": {
            "background": "#ffffff"
          },
          "buttons": {
            "default": {
              "color": "#546470",
              "border": "#ffffff",
              "background": "#ffffff",
              "hover-color": "#546470",
              "active-color": "#546470",
              "hover-border": "#f1f2f4",
              "active-border": "#ffffff",
              "hover-background": "#f1f2f4",
              "active-background": "#ffffff"
            },
            "primary": {
              "color": "#ffffff",
              "border": "#0777cf",
              "background": "#0777cf",
              "hover-color": "#ffffff",
              "active-color": "#ffffff",
              "hover-border": "#348fd7",
              "active-border": "#003458",
              "hover-background": "#348fd7",
              "active-background": "#076dbd"
            },
            "dropdown": {
              "color": "#546470",
              "border": "#ffffff",
              "background": "#ffffff",
              "hover-color": "#546470",
              "active-color": "#546470",
              "hover-border": "#f1f2f4",
              "active-border": "#ffffff",
              "hover-background": "#f1f2f4",
              "active-background": "#ffffff"
            },
            "secondary": {
              "color": "#38424b",
              "border": "#e3e6e9",
              "background": "#e3e6e9",
              "hover-color": "#38424b",
              "active-color": "#38424b",
              "hover-border": "#f1f2f4",
              "active-border": "#d5dade",
              "hover-background": "#f1f2f4",
              "active-background": "#d5dade"
            }
          },
          "hyperlink": {
            "color": "#546470",
            "hover-color": "#667988",
            "active-color": "#4b5963"
          },
          "help-center": {
            "visibility": true
          },
          "consent-text": {
            "en": "{sender_email} has invited you to fill out and sign this in one place.",
            "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
            "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
          },
          "main-background": "#efefef",
          "welcome-message": {
            "body-text": {
              "en": "{sender_email} has invited you to fill out and sign this in one place.",
              "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
              "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
            },
            "visibility": true,
            "header-text": {
              "en": "Hi, {signer_email}",
              "es": "Hola, {signer_email}",
              "fr": "Bonjour, {signer_email}"
            }
          }
        },
        "link": "https://api.signnow.com/v2/brands/2b715ceecdcf9ec54089500692b1a38549ff8f02/resources/general"
      }
    },
    "unique_id": "2b715ceecdcf9ec54089500692b1a38549ff8f02",
    "owner_type": "user"
  }
}
```

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 404

* Incorrect `document_id`.
* `document_id` doesn't exist.

**Example** (`Incorrect document_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/documents/567/brand"
}
```

**Example** (`document_id doesn't exist`)

```json
{
  "code": 25002062,
  "message": "Document unique identifier does not exist."
}
```

### 422

`document_id` has been deleted.

**Example** (`Document deleted`)

```json
{
  "code": 25002065,
  "message": "Document deleted."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/documents/{document_id}/brand" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/documents/{document_id}/brand — Unassign brand from document

This endpoint allows users to delete branding assignment from a document.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.


**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The bearer token is valid but it belongs to another user.
* The user is authorized with a token from an app they don’t own.


**Example** (`Another user's token`)

```json
{
  "code": 25002075,
  "message": "Brand assign to provided application is not allowed."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

### 404

`document_id` doesn't exist.

**Example** (`Document not found`)

```json
{
  "code": 25002062,
  "message": "Document unique identifier does not exist."
}
```

### 422

`document_id` has been deleted.

**Example** (`Deleted document_id`)

```json
{
  "code": 25002065,
  "message": "Document deleted."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/documents/{document_id}/brand" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/brands/{brand_id}/resources/editor — Create and edit editor brand resource

This endpoint allows users to create and update an editor brand resource.

Learn more about the [editor brand resource](/docs/branding-editor-resource).

Note: to create an editor resource for a brand, you need to own the brand.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "fields": {
      "type": "object",
      "properties": {
        "date": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the date field in the fields panel."
        },
        "text": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the text field in the fields panel."
        },
        "email": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the email field in the fields panel."
        },
        "stamp": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the stamp field in the fields panel."
        },
        "formula": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the formula field in the fields panel."
        },
        "checkbox": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the checkbox field in the fields panel."
        },
        "dropdown": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the dropdown field in the fields panel."
        },
        "fullname": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the fullname field in the fields panel."
        },
        "initials": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the initials field in the fields panel."
        },
        "hyperlink": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the hyperlink field in the fields panel."
        },
        "signature": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the signature field in the fields panel."
        },
        "attachment": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the attachment field in the fields panel."
        },
        "radiobutton": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the radiobutton field in the fields panel."
        }
      },
      "description": "Settings of the fields panel on the left sidebar. Available for embedded sending, embedded editor, and FreeForm invite."
    },
    "sidebar": {
      "type": "object",
      "properties": {
        "background": {
          "type": "string",
          "description": "Background color for a signing session sidebar in HEX color code.",
          "x-stoplight": {
            "id": "dfw23c05aouig"
          }
        },
        "visibility": {
          "type": "boolean",
          "description": "Whether the sidebar should be visible or not.",
          "x-stoplight": {
            "id": "cbhiilylozzwa"
          }
        }
      },
      "x-stoplight": {
        "id": "ual5b6jqnv2yk"
      }
    },
    "toolbar": {
      "type": "object",
      "properties": {
        "background": {
          "type": "string",
          "example": "#ffffff",
          "description": "Background color of the toolbar in HEX color code."
        },
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Whether to show the toolbar in the header."
        }
      },
      "description": "Configuration of the toolbar in the header. Available for embedded sending and embedded editor."
    },
    "settings": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether to show or hide the **More Actions** button."
        }
      },
      "description": "Settings object that contains attributes for the **More Actions** dropdown button."
    },
    "auth-page": {
      "type": "object",
      "properties": {
        "check-pin": {
          "type": "object",
          "properties": {
            "phone": {
              "type": "object",
              "properties": {
                "body-text": {
                  "type": "object",
                  "properties": {
                    "en": {
                      "type": "string",
                      "example": "Enter the document password sent you by voice call or sms.",
                      "maxLength": 900,
                      "description": "Custom text in English.",
                      "x-stoplight": {
                        "id": "4oa16auoqf0fa"
                      }
                    },
                    "es": {
                      "type": "string",
                      "example": "Introduce la contrase\u00f1a del documento que te ha enviado por llamada de voz o sms.",
                      "maxLength": 900,
                      "description": "Custom text in Spanish.",
                      "x-stoplight": {
                        "id": "qokgt5uf2vw4o"
                      }
                    },
                    "fr": {
                      "type": "string",
                      "example": "Entrez le mot de passe du document que vous avez re\u00e7u par appel vocal ou sms.",
                      "maxLength": 900,
                      "description": "Custom text in French.",
                      "x-stoplight": {
                        "id": "4cvtpf8q47o4q"
                      }
                    }
                  },
                  "description": "Custom text displayed for phone/SMS-protected invites.",
                  "x-stoplight": {
                    "id": "4q0qjqd8pf2c4"
                  }
                }
              },
              "description": "Customizes text for phone/SMS-protected invites.",
              "x-stoplight": {
                "id": "cskehlszefrtf"
              }
            },
            "password": {
              "type": "object",
              "properties": {
                "body-text": {
                  "type": "object",
                  "properties": {
                    "en": {
                      "type": "string",
                      "example": "Enter the document password below to unlock the document.",
                      "maxLength": 900,
                      "description": "Custom text in English.",
                      "x-stoplight": {
                        "id": "mwaletfi0vnul"
                      }
                    },
                    "es": {
                      "type": "string",
                      "example": "Introduce la contrase\u00f1a del documento a continuaci\u00f3n para desbloquear el documento.",
                      "maxLength": 900,
                      "description": "Custom text in Spanish.",
                      "x-stoplight": {
                        "id": "bej968vw1is16"
                      }
                    },
                    "fr": {
                      "type": "string",
                      "example": "Entrez le mot de passe du document ci-dessous pour d\u00e9verrouiller le document.",
                      "maxLength": 900,
                      "description": "Custom text in French.",
                      "x-stoplight": {
                        "id": "uvna8qsuswf5q"
                      }
                    }
                  },
                  "description": "Custom text displayed for password-protected invites.",
                  "x-stoplight": {
                    "id": "t6a5i0upldgok"
                  }
                }
              },
              "description": "Customizes text for password-protected invites.",
              "x-stoplight": {
                "id": "g52nok92gps0c"
              }
            }
          },
          "description": "Customizes text prompting the signer to enter the password.",
          "x-stoplight": {
            "id": "jw2603xbtkmm1"
          }
        },
        "header-text": {
          "type": "object",
          "properties": {
            "en": {
              "type": "string",
              "example": "{sender_email} invited you to sign {document_name}",
              "maxLength": 300,
              "description": "Custom header text in English. Placeholders `{sender_email}` and `{document_name}` are available.",
              "x-stoplight": {
                "id": "4wvo3ymnkgwil"
              }
            },
            "es": {
              "type": "string",
              "example": "{sender_email} te ha invitado a firmar {document_name}",
              "maxLength": 300,
              "description": "Custom header text in Spanish. Placeholders `{sender_email}` and `{document_name}` are available.",
              "x-stoplight": {
                "id": "4jnzpj578fimk"
              }
            },
            "fr": {
              "type": "string",
              "example": "{sender_email} vous a invit\u00e9 \u00e0 signer {document_name}",
              "maxLength": 300,
              "description": "Custom header text in French. Placeholders `{sender_email}` and `{document_name}` are available.",
              "x-stoplight": {
                "id": "5vcuuipytn3bo"
              }
            }
          },
          "description": "Customizes a header text displayed to the signer on the two-factor authentication page.",
          "x-stoplight": {
            "id": "f9kxq68wp5ne6"
          }
        },
        "request-pin": {
          "type": "object",
          "properties": {
            "body-text": {
              "type": "object",
              "properties": {
                "en": {
                  "type": "string",
                  "example": "Press the button bellow to have the password sent to you by voice call or sms message.",
                  "maxLength": 900,
                  "description": "Custom text with instructions in English.",
                  "x-stoplight": {
                    "id": "49ulwxbc2viuv"
                  }
                },
                "es": {
                  "type": "string",
                  "example": "Pulsa el bot\u00f3n de abajo para que te env\u00eden la contrase\u00f1a por llamada de voz o mensaje sms.",
                  "maxLength": 900,
                  "description": "Custom text with instructions in Spanish.",
                  "x-stoplight": {
                    "id": "bflr4t0j1btds"
                  }
                },
                "fr": {
                  "type": "string",
                  "example": "Appuyez sur le bouton ci-dessous pour que le mot de passe vous soit envoy\u00e9 par appel vocal ou sms.",
                  "maxLength": 900,
                  "description": "Custom text with instructions in French.",
                  "x-stoplight": {
                    "id": "hn0sjdcxxfm9o"
                  }
                }
              },
              "description": "Custom text displayed to the signer with instructions for obtaining a password.",
              "x-stoplight": {
                "id": "a4pamralydqlv"
              }
            }
          },
          "description": "Customizes text with instructions for obtaining a password via voice call or SMS. Displayed only for phone/SMS-protected invites.",
          "x-stoplight": {
            "id": "e48u7arbaiedw"
          }
        }
      },
      "description": "An object that customizes the authentication page for invites protected by two-factor authentication, including phone calls, SMS, and passwords set by the sender. The\u00a0`auth-page`\u00a0is available for document and document group field invites, as well as embedded document and document group invites.",
      "x-stoplight": {
        "id": "hnfivogqmv3dj"
      }
    },
    "navigation": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether to show or hide the navigation elements."
        }
      },
      "description": "Navigation object that contains attributes for the navigation elements."
    },
    "sender-info": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether the **Contact Sender** option on the **More Actions** menu should be visible or not.",
          "x-stoplight": {
            "id": "289i85fjcraw0"
          }
        },
        "contact-name": {
          "type": "string",
          "maxLength": 300,
          "description": "The name of the sender that should appear if a signer clicks **Contact Sender**.",
          "x-stoplight": {
            "id": "pf0w0j6f6bx52"
          }
        },
        "contact-email": {
          "type": "string",
          "maxLength": 254,
          "description": "The email of the sender that should appear if a signer clicks **Contact Sender**.",
          "x-stoplight": {
            "id": "qee9k36oyhcv4"
          }
        }
      },
      "x-stoplight": {
        "id": "k7o9kpg4xwotg"
      }
    },
    "close-button": {
      "type": "object",
      "properties": {
        "title": {
          "type": "object",
          "properties": {
            "editor": {
              "type": "object",
              "properties": {
                "en": {
                  "type": "string",
                  "example": "Save and Close",
                  "maxLength": 50,
                  "description": "Button title in English."
                },
                "es": {
                  "type": "string",
                  "example": "Guardar y cerrar",
                  "maxLength": 50,
                  "description": "Button title in Spanish."
                },
                "fr": {
                  "type": "string",
                  "example": "Enregistrer et fermer",
                  "maxLength": 50,
                  "description": "Button title in French."
                }
              },
              "description": "Customizes text of the **Save and Close** button in the editor. Available for the embedded editor and embedded sending mode."
            },
            "signing": {
              "type": "object",
              "properties": {
                "en": {
                  "type": "string",
                  "example": "Save Progress and Finish Later",
                  "maxLength": 50,
                  "description": "Text in English for signing session."
                },
                "es": {
                  "type": "string",
                  "example": "Guardar progresos y terminar m\u00e1s tarde",
                  "maxLength": 50,
                  "description": "Text in Spanish for signing session."
                },
                "fr": {
                  "type": "string",
                  "example": "Enregistrer la progression et terminer plus tard",
                  "maxLength": 50,
                  "description": "Text in French for signing session."
                }
              },
              "description": "Customizes text of the **Save Progress and Finish Later** option during the signing session."
            }
          },
          "description": "Localized text for the closing options in signing session, embedded sending and editor modes."
        },
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Whether the **Close** button (in the header in view mode) or **Save progress and Finish Later** option (in the **More Actions** menu during the signing session) should be visible.",
          "x-stoplight": {
            "id": "zvayj3d7fhuix"
          }
        }
      },
      "description": "Object that defines the visibility and text for the closing options.",
      "x-stoplight": {
        "id": "eyv4wpbrp2zg0"
      }
    },
    "progress-bar": {
      "type": "object",
      "properties": {
        "default-color": {
          "type": "string",
          "description": "Default color of the progress bar."
        },
        "completed-color": {
          "type": "string",
          "description": "Progress bar color when the signer has completed or partially completed the invite to sign."
        }
      },
      "description": "Progress bar object that contains attributes for the progress bar elements."
    },
    "support-chat": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "string",
          "description": "Whether the support chat icon should be visible or not.",
          "x-stoplight": {
            "id": "7gl0te77gvzxq"
          }
        }
      },
      "x-stoplight": {
        "id": "ebqbj4norxtiq"
      }
    },
    "accessibility": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Text color of the button in HEX color code."
        },
        "border": {
          "type": "string",
          "description": "Border color of the button in HEX color code."
        },
        "enabled": {
          "type": "boolean",
          "description": "Whether to enable or disable the accessibility mode. By default accessibility is off."
        },
        "background": {
          "type": "string",
          "description": "Background color of the button in HEX color code."
        },
        "visibility": {
          "type": "boolean",
          "description": "Whether to show or hide the accessibility option in the **More Actions** menu."
        },
        "hover-color": {
          "type": "string",
          "description": "Text color of the button in HEX color code when the accessibility button is hovered over."
        },
        "active-color": {
          "type": "string",
          "description": "Text color of the button in HEX color code when accessibility is on."
        },
        "hover-border": {
          "type": "string",
          "description": "Border button color in HEX color code when the accessibility button is hovered over."
        },
        "active-border": {
          "type": "string",
          "description": "Border button color in HEX color code when accessibility is on."
        },
        "hover-background": {
          "type": "string",
          "description": "Background button color in HEX color code when the accessibility button is hovered over."
        },
        "active-background": {
          "type": "string",
          "description": "Background button color in HEX color code when accessibility is on."
        }
      },
      "description": "Accessibility object that contains attributes for the accessibility button."
    },
    "complete-page": {
      "type": "object",
      "properties": {
        "decline": {
          "type": "object",
          "properties": {
            "body-text": {
              "type": "object",
              "properties": {
                "en": {
                  "type": "string",
                  "description": "Decline main text in English.",
                  "x-stoplight": {
                    "id": "vkkeal2b63cu2"
                  }
                },
                "es": {
                  "type": "string",
                  "description": "Decline main text in Spanish.",
                  "x-stoplight": {
                    "id": "mrlyqw7qz40ip"
                  }
                },
                "fr": {
                  "type": "string",
                  "description": "Decline main text in French.",
                  "x-stoplight": {
                    "id": "kid0frd5ow5x5"
                  }
                }
              },
              "x-stoplight": {
                "id": "3zhwaon6m8vv6"
              }
            },
            "header-text": {
              "type": "object",
              "properties": {
                "en": {
                  "type": "string",
                  "description": "Decline header text in English.",
                  "x-stoplight": {
                    "id": "c3r8ofcv8c7dv"
                  }
                },
                "es": {
                  "type": "string",
                  "description": "Decline header text in Spanish.",
                  "x-stoplight": {
                    "id": "5sm25yrhub8gt"
                  }
                },
                "fr": {
                  "type": "string",
                  "description": "Decline header text in French.",
                  "x-stoplight": {
                    "id": "b90rp3w5uspt4"
                  }
                }
              },
              "x-stoplight": {
                "id": "68zw7e312q8z6"
              }
            }
          },
          "description": "Custom text that appears on the page after a signer confirms declining a document.",
          "x-stoplight": {
            "id": "8xg1en26ebiyk"
          }
        },
        "success": {
          "type": "object",
          "properties": {
            "body-text": {
              "type": "object",
              "properties": {
                "en": {
                  "type": "string",
                  "description": "Success main text in English.",
                  "x-stoplight": {
                    "id": "dcj7r7duf646i"
                  }
                },
                "es": {
                  "type": "string",
                  "description": "Success main text in Spanish.",
                  "x-stoplight": {
                    "id": "gzn09j5oj9ekd"
                  }
                },
                "fr": {
                  "type": "string",
                  "description": "Success main text in French.",
                  "x-stoplight": {
                    "id": "tp83obzw5s19t"
                  }
                }
              },
              "x-stoplight": {
                "id": "3sfb2cjh51h6w"
              }
            },
            "header-text": {
              "type": "object",
              "properties": {
                "en": {
                  "type": "string",
                  "description": "Success header text in English.",
                  "x-stoplight": {
                    "id": "kr41kownxnnon"
                  }
                },
                "es": {
                  "type": "string",
                  "description": "Success header text in Spanish.",
                  "x-stoplight": {
                    "id": "r3u8ak9xo3iwd"
                  }
                },
                "fr": {
                  "type": "string",
                  "description": "Success header text in French.",
                  "x-stoplight": {
                    "id": "tb36sg27503ze"
                  }
                }
              },
              "x-stoplight": {
                "id": "ellulde3wxnhs"
              }
            }
          },
          "description": "Custom text that appears on the page after a signer completes a document.",
          "x-stoplight": {
            "id": "6w4mjfm4tmjeq"
          }
        },
        "registration": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "description": "Whether the registration button on the completion page should be visible or not for new users.",
              "x-stoplight": {
                "id": "y2t92udtryqer"
              }
            }
          },
          "x-stoplight": {
            "id": "hk7wyo37486wz"
          }
        },
        "button-download": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "description": "Whether the button to download a document on the completion page should be visible or not.",
              "x-stoplight": {
                "id": "oa7gpv36dxorx"
              }
            }
          },
          "x-stoplight": {
            "id": "9ut00exqazhbh"
          }
        },
        "button-to-signnow": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "description": "Whether the button with a link to signNow on the completion page should be visible or not.",
              "x-stoplight": {
                "id": "6dwo5wh7o9t2d"
              }
            }
          },
          "x-stoplight": {
            "id": "rl3gakid230k7"
          }
        }
      },
      "description": "Customization of the page that opens after a document is signed or declined.",
      "x-stoplight": {
        "id": "43nr26s9hjq93"
      }
    },
    "document-name": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Whether to show the document name in the header."
        }
      },
      "description": "Configuration of the document name. Available for embedded signing, embedded sending (in the editor), embedded editor, FreeForm invite, and embedded view."
    },
    "editing-tools": {
      "type": "object",
      "properties": {
        "background": {
          "type": "string",
          "example": "#ffffff",
          "description": "Background color of the editing tools panel in HEX color code."
        }
      },
      "description": "Configuration of the left-side editing tools panel. Available for embedded sending, embedded editor, and FreeForm invite."
    },
    "decline-button": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether the **Decline** option should be visible in the **More Actions** menu.",
          "x-stoplight": {
            "id": "3kt4nqwxrzdvz"
          }
        }
      },
      "description": "An object that determines the availability of the decline option to the recipient.",
      "x-stoplight": {
        "id": "x0mrascm441s4"
      }
    },
    "default-fields": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "example": true,
          "description": "Whether to show the Default fields tab in the left sidebar. When set to `false`, the Custom fields tab becomes the only tab and the Default / Custom fields tab switcher disappears. The default value is `true`."
        }
      },
      "description": "Configuration of the Default fields tab. Available for embedded sending and embedded editor."
    },
    "field-settings": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "example": true,
          "description": "Whether to show the Element settings button on the right side of the header. The default value is `true`."
        }
      },
      "description": "Configuration of the Element settings in the right sidebar. The Element settings allows users to customize field settings. Available for embedded sending and embedded editor."
    },
    "page-dimension": {
      "type": "object",
      "properties": {
        "percent": {
          "type": "integer",
          "maximum": 300,
          "minimum": 10,
          "multipleOf": 10,
          "description": "The dimension of the signing session page when it is opened in percents.",
          "x-stoplight": {
            "id": "nka7pgnfcsysp"
          }
        }
      },
      "x-stoplight": {
        "id": "7ejue4iirylw5"
      }
    },
    "preview-button": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Whether to show the Open Preview button in the toolbar."
        }
      },
      "description": "Configuration of the Open Preview button in the toolbar. Available for embedded sending and embedded editor."
    },
    "complete-footer": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether the footer about completion of all the required fields should be visible or not.",
          "x-stoplight": {
            "id": "m4omjtp18wh9o"
          }
        },
        "custom-text": {
          "type": "object",
          "properties": {
            "en": {
              "type": "string",
              "description": "Footer text in English.",
              "x-stoplight": {
                "id": "btazkcpp69eqj"
              }
            },
            "es": {
              "type": "string",
              "description": "Footer text in Spanish.",
              "x-stoplight": {
                "id": "00c1qphlr2r8c"
              }
            },
            "fr": {
              "type": "string",
              "description": "Footer text in French.",
              "x-stoplight": {
                "id": "jx1s8775e5xnw"
              }
            }
          },
          "x-stoplight": {
            "id": "kgpixg1yf4l0r"
          }
        }
      },
      "x-stoplight": {
        "id": "dg63v2m14zk2l"
      }
    },
    "continue-button": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Whether to show the Continue button in the header."
        }
      },
      "description": "Configuration of the Continue button. Available for embedded sending."
    },
    "download-button": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Defines the visibility of the **Download** and **History** buttons during the signing session and **Download**, **Download With History** and **Document History** buttons in view mode.",
          "x-stoplight": {
            "id": "n8trpe9qruu9e"
          }
        }
      },
      "description": "An object that defines the download options for the recipient.",
      "x-stoplight": {
        "id": "uo0kft5jyb4xz"
      }
    },
    "request-payment": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Whether to show the Payment Request option in the settings dropdown."
        }
      },
      "description": "Configuration of the request payment option in the editor. Available for embedded sending and embedded editor."
    },
    "signing-settings": {
      "type": "object",
      "properties": {
        "guide-signers-only-through-required-fields": {
          "type": "boolean",
          "default": true,
          "description": "Whether to guide signers through required fields only. `true` - the **Go Through Required Fields** checkbox is checked in **More Actions**; the signer will be guided only through required fields; `false` \u2013 the **Go Through Required Fields** checkbox is not checked in **More Actions**; the signer will be guided through all fields."
        },
        "auto-apply-signatures-and-initials-to-document-fields": {
          "type": "boolean",
          "default": true,
          "description": "Whether to offer a signer to automatically apply signature and initials to all corresponding empty fields in a document after filling out the first field. `true` \u2013 the signer will be prompted to automatically fill all empty signature and initials fields after completing the first one; `false` \u2013 the signer will need to fill each signature and initials field individually; no prompt will be shown. "
        }
      },
      "description": "Settings configured for the signing experience."
    },
    "manage-recipients": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Whether to show the Manage Recipients link."
        }
      },
      "description": "Configuration of the Manage Recipients link. Available for embedded sending and embedded editor."
    },
    "step-progress-bar": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Whether to show the steps progress bar in the header."
        }
      },
      "description": "Configuration of the steps progress bar. Available for embedded sending and embedded editor."
    },
    "thumbnails-button": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Whether to show the Thumbnails button in the toolbar."
        }
      },
      "description": "Configuration of the Thumbnails button in the toolbar. Available for embedded sending and embedded editor."
    },
    "decline-invite-text": {
      "type": "object",
      "properties": {
        "en": {
          "type": "string",
          "description": "Custom welcome message in English that can be updated. Placeholders {invite_owner_email} and {document_name} are available.",
          "x-stoplight": {
            "id": "m4hvlgiy6u7h2"
          }
        },
        "es": {
          "type": "string",
          "description": "Custom welcome message in Spanish that can be updated. Placeholders {invite_owner_email} and {document_name} are available.",
          "x-stoplight": {
            "id": "0508s3hxiq654"
          }
        },
        "fr": {
          "type": "string",
          "description": "Custom welcome message in French that can be updated. Placeholders {invite_owner_email} and {document_name} are available.",
          "x-stoplight": {
            "id": "hqzluyldpyp7d"
          }
        }
      },
      "description": "Custom message in the pop-up that appears when a signer clicks the **Decline** button. The signer needs to confirm declining the document.",
      "x-stoplight": {
        "id": "0hj26a19u3z55"
      }
    }
  },
  "x-examples": {
    "Example 1": {
      "settings": {
        "visibility": "true|false"
      },
      "navigation": {
        "visibility": "true|false"
      },
      "progress-bar": {
        "default-color": "#232323",
        "completed-color": "#232323"
      },
      "accessibility": {
        "color": "#232323",
        "border": "#232323",
        "background": "#232323",
        "visibility": "true|false",
        "hover-color": "#232323",
        "active-color": "#232323",
        "hover-border": "#232323",
        "active-border": "#232323",
        "hover-background": "#232323",
        "active-background": "#232323"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "fields": {
    "date": {
      "visibility": true
    },
    "text": {
      "visibility": true
    },
    "email": {
      "visibility": true
    },
    "stamp": {
      "visibility": true
    },
    "formula": {
      "visibility": true
    },
    "checkbox": {
      "visibility": true
    },
    "dropdown": {
      "visibility": true
    },
    "fullname": {
      "visibility": true
    },
    "initials": {
      "visibility": true
    },
    "hyperlink": {
      "visibility": true
    },
    "signature": {
      "visibility": true
    },
    "attachment": {
      "visibility": true
    },
    "radiobutton": {
      "visibility": true
    }
  },
  "sidebar": {
    "background": "#ffffff",
    "visibility": true
  },
  "toolbar": {
    "background": "#ffffff",
    "visibility": true
  },
  "settings": {
    "visibility": true
  },
  "auth-page": {
    "check-pin": {
      "phone": {
        "body-text": {
          "en": "Enter the document password sent you by voice call or sms.",
          "es": "Introduce la contrase\u00f1a del documento que te ha enviado por llamada de voz o sms.",
          "fr": "Entrez le mot de passe du document que vous avez re\u00e7u par appel vocal ou sms."
        }
      },
      "password": {
        "body-text": {
          "en": "Enter the document password below to unlock the document.",
          "es": "Introduce la contrase\u00f1a del documento a continuaci\u00f3n para desbloquear el documento.",
          "fr": "Entrez le mot de passe du document ci-dessous pour d\u00e9verrouiller le document."
        }
      }
    },
    "header-text": {
      "en": "{sender_email} invited you to sign {document_name}",
      "es": "{sender_email} te ha invitado a firmar {document_name}",
      "fr": "{sender_email} vous a invit\u00e9 \u00e0 signer {document_name}"
    },
    "request-pin": {
      "body-text": {
        "en": "Press the button bellow to have the password sent to you by voice call or sms message.",
        "es": "Pulsa el bot\u00f3n de abajo para que te env\u00eden la contrase\u00f1a por llamada de voz o mensaje sms.",
        "fr": "Appuyez sur le bouton ci-dessous pour que le mot de passe vous soit envoy\u00e9 par appel vocal ou sms."
      }
    }
  },
  "navigation": {
    "visibility": true
  },
  "sender-info": {
    "visibility": true,
    "contact-name": "Contact Name",
    "contact-email": "contact@email.com"
  },
  "close-button": {
    "title": {
      "editor": {
        "en": "Save and Close",
        "es": "Guardar y cerrar",
        "fr": "Enregistrer et fermer"
      },
      "signing": {
        "en": "Save Progress and Finish Later",
        "es": "Guardar progresos y terminar m\u00e1s tarde",
        "fr": "Enregistrer la progression et terminer plus tard"
      }
    },
    "visibility": true
  },
  "progress-bar": {
    "default-color": "#e3e6e9",
    "completed-color": "#0777cf"
  },
  "support-chat": {
    "visibility": true
  },
  "accessibility": {
    "color": "#546470",
    "border": "#ffffff",
    "enabled": false,
    "background": "#ffffff",
    "visibility": true,
    "hover-color": "#546470",
    "active-color": "#546470",
    "hover-border": "#f1f2f4",
    "active-border": "#dadee2",
    "hover-background": "#f1f2f4",
    "active-background": "#dadee2"
  },
  "complete-page": {
    "decline": {
      "body-text": {
        "en": "You did not consent to do business electronically with the sender. The Electronic Signature Disclosure can still be accepted before the sender cancels the invite. The invite can be found in your inbox and signNow account. You can still download the document if you\u2019d like to. Contact the sender to find out what to do next.",
        "es": "No has dado tu consentimiento para hacer negocios electr\u00f3nicamente con el remitente. La Divulgaci\u00f3n de Firma Electr\u00f3nica a\u00fan se puede aceptar antes de que el remitente cancele la invitaci\u00f3n. Puedes encontrar la invitaci\u00f3n en tu bandeja de entrada y en la cuenta de signNow. A\u00fan puedes descargar el documento si lo deseas. Ponte en contacto con el remitente para saber qu\u00e9 hacer a continuaci\u00f3n.",
        "fr": "Vous n\u2019avez pas consenti \u00e0 traiter par voie \u00e9lectronique avec l\u2019exp\u00e9diteur. La Divulgation par signature \u00e9lectronique peut toujours \u00eatre accept\u00e9e avant que l\u2019exp\u00e9diteur n\u2019annule l\u2019invitation. L\u2019invitation se trouve dans votre bo\u00eete de r\u00e9ception et dans votre compte signNow. Vous pouvez n\u00e9anmoins t\u00e9l\u00e9charger le document si vous le souhaitez. Contactez l\u2019exp\u00e9diteur pour conna\u00eetre les prochaines \u00e9tapes."
      },
      "header-text": {
        "en": "You've declined the Electronic Signature Disclosure agreement",
        "es": "Has rechazado el acuerdo de Divulgaci\u00f3n de firmas electr\u00f3nicas",
        "fr": "Vous avez refus\u00e9 l\u2019accord de Divulgation par signature \u00e9lectronique"
      }
    },
    "success": {
      "body-text": {
        "en": "The sender will be notified and receive the signed document.",
        "es": "El remitente recibir\u00e1 una notificaci\u00f3n y el documento firmado. Tambi\u00e9n se ha enviado una copia a tu bandeja de entrada y se ha guardado en tu cuenta de signNow.",
        "fr": "L'exp\u00e9diteur sera inform\u00e9 et recevra le document sign\u00e9. Une copie a \u00e9galement \u00e9t\u00e9 envoy\u00e9e dans votre bo\u00eete de r\u00e9ception et enregistr\u00e9e dans votre compte signNow."
      },
      "header-text": {
        "en": "You've filled out and signed the document",
        "es": "Has completado y firmado el documento",
        "fr": "Vous avez rempli et sign\u00e9 le document"
      }
    },
    "registration": {
      "visibility": true
    },
    "button-download": {
      "visibility": true
    },
    "button-to-signnow": {
      "visibility": false
    }
  },
  "document-name": {
    "visibility": true
  },
  "editing-tools": {
    "background": "#ffffff"
  },
  "decline-button": {
    "visibility": true
  },
  "default-fields": {
    "visibility": true
  },
  "field-settings": {
    "visibility": true
  },
  "page-dimension": {
    "percent": 150
  },
  "preview-button": {
    "visibility": true
  },
  "complete-footer": {
    "visibility": true,
    "custom-text": {
      "en": "You've completed all required fields. Review your document and click Finish.",
      "es": "Has completado todos los campos obligatorios. Revisa tu documento y haz clic en Finalizar.",
      "fr": "Vous avez rempli tous les champs obligatoires. Relisez votre document et cliquez sur Terminer."
    }
  },
  "continue-button": {
    "visibility": true
  },
  "download-button": {
    "visibility": true
  },
  "request-payment": {
    "visibility": true
  },
  "signing-settings": {
    "guide-signers-only-through-required-fields": true,
    "auto-apply-signatures-and-initials-to-document-fields": true
  },
  "manage-recipients": {
    "visibility": true
  },
  "step-progress-bar": {
    "visibility": true
  },
  "thumbnails-button": {
    "visibility": true
  },
  "decline-invite-text": {
    "en": "You're about to decline to sign {document_name} from {invite_owner_email}. Note that all the changes you've made to this document will be lost.",
    "es": "Est\u00e1s a punto de rechazar para firmar {document_name} de {invite_owner_email}. Ten en cuenta en cuenta que todos los cambios que hayas realizado en este documento se perder\u00e1n.",
    "fr": "Vous \u00eates sur le point de refuser de signer {document_name} de {invite_owner_email}. Notez que toutes les modifications que vous avez apport\u00e9es \u00e0 ce document seront perdues."
  }
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* Request body is incorrect or missing.
* `settings` is not an array.
* `settings.visibility` is not a boolean.
* `decline-invite-text` is not an array.
* `decline-invite-text.en` is not a string.
* `accessibility` is not an array.
* `accessibility.visibility` is not a boolean.
* `color` value is not a string.
* `background` is not a string.
* `border` is not a string.
* `active-color` is not a string.
* `active-background` is not a string.
* `active-border` is not a string.
* `hover-color` is not a string.
* `hover-background` is not a string.
* `hover-border` is not a string.
* `enabled` is not a boolean.
* `navigation` is not an array.
* `navigation.visibility` is not a boolean.
* `progress-bar` is not an array.
* `default-color` is not a string.
* `completed-color` is not a string.
* `sidebar` is not an array.
* `sidebar.background` is not a string.
* `sidebar.visibility` is not a boolean.
* `complete-footer` field is not an array.
* `complete-footer.visibility` is not a boolean.
* `complete-footer.custom-text` is not an array.
* `complete-footer.custom-text.en` is not a string.
* `support-chat` is not an array.
* `support-chat.visibility` is not a boolean.
* `complete-page.success` is not an array.
* `complete-page.success.header-text.en` not a string.
* `complete-page.success.body-text.en` not a string.
* `complete-page.decline` is not an array.
* `complete-page.decline.header-text.en` is not a string.
* `complete-page.decline.body-text.en` is not a string.
* `registration` is not an array.
* `registration.visibility` is not a boolean.
* `button-to-signnow` is not an array.
* `button-to-signnow.visibility` is not a boolean.
* `button-download` is not an array.
* `button-download.visibility` is not a boolean.
* `sender-info` is not an array.
* `sender-info.visibility` is not a boolean.
* `page-dimension` is not an array.
* `percent` is not an integer.
* `contact-name` is not a string.
* `contact-email` is not a string.
* `close-button` is not an array.
* `close-button.visibility` is not a boolean.
* `close-button.title` not array.
* `close-button.title.signing` is not an array.
* `close-button.title.editor` is not an array.
* `close-button.title.signing.en` is not a string.
* `close-button.title.signing.fr` is not a string.
* `close-button.title.signing.es` is not a string.
* `close-button.title.editor.en` is not a string.
* `close-button.title.editor.fr` is not a string.
* `close-button.title.editor.es` is not a string.
* `close-button.title.signing.en` is too long.
* `close-button.title.signing.fr` is too long.
* `close-button.title.signing.es` is too long.
* `close-button.title.editor.en` is too long.
* `close-button.title.editor.fr` is too long.
* `close-button.title.editor.es` is too long.
* `close-button.title.signing.en` contains UTF 4-byte characters.
* `close-button.title.signing.fr` contains UTF 4-byte characters.
* `close-button.title.signing.es` contains UTF 4-byte characters.
* `close-button.title.editor.en` contains UTF 4-byte characters.
* `close-button.title.editor.fr` contains UTF 4-byte characters.
* `close-button.title.editor.es` contains UTF 4-byte characters.
* `decline-button` is not an array.
* `decline-button.visibility` is not a boolean. 
* `document-name` is not an array. 
* `document-name.visibility` is not a boolean.  
* `toolbar` is not an array.
* `toolbar.visibility` is not a boolean. 
* `toolbar.background` not a string.
* `toolbar.background` has incorrect format.
* `editing-tools` is not an array.
* `editing-tools.background` is not a string.
* `editing-tools.background` has incorrect format.
* `manage-recipients` is not an array.
* `manage-recipients.visibility` is not a boolean.
* `preview-button` is not an array.
* `preview-button.visibility` is not a boolean.
* `thumbnails-button` is not an array. 
* `thumbnails-button.visibility` is not a boolean.
* `request-payment` is not an array. 
* `request-payment.visibility` is not a boolean.
* `continue-button` is not an array.
* `continue-button.visibility` is not a boolean.
* `step-progress-bar` is not an array.
* `step-progress-bar.visibility` is not a boolean.
* `signing-settings` type is incorrect.
* `signing-settings.guide-signers-only-through-required-fields` type is incorrect.
* 'signing-settings.auto-apply-signatures-and-initials-to-document-fields` type is incorrect.
* `fields` is not an array.
* `fields.signature` is not an array.
* `fields.signature.visibility` is not a boolean.
* `fields.text` is not an array.
* `fields.text.visibility` is not a boolean.
* `fields.date` is not an array.
* `fields.date.visibility` is not a boolean. 
* `fields.initials` is not an array.
* `fields.initials.visibility` is not a boolean.
* `fields.fullname` is not an array.
* `fields.fullname.visibility` is not a boolean.
* `fields.email` is not an array. 
* `fields.email.visibility` is not a boolean. 
* `fields.checkbox` is not an array. 
* `fields.checkbox.visibility` is not a boolean. 
* `fields.radiobutton` is not an array. 
* `fields.radiobutton.visibility` is not a boolean. 
* `fields.attachment` is not an array. 
* `fields.attachment.visibility` is not a boolean. 
* `fields.dropdown` is not an array. 
* `fields.dropdown.visibility` is not a boolean. 
* `fields.stamp` is not an array.
* `fields.stamp.visibility` is not a boolean. 
* `fields.formula` is not an array. 
* `fields.formula.visibility` is not a boolean. 
* `fields.hyperlink` is not an array. 
* `fields.hyperlink.visibility` is not a boolean.
* `field-settings` is not an array.
* `field-settings.visibility` is not a boolean.
* `default-fields` is not an array.
* `default-fields.visibility` is not a boolean.

**Example** (`color not string`)

```json
{
  "errors": [
    {
      "code": 25002006,
      "message": "The 'color' attribute must be a string"
    }
  ]
}
```

**Example** (`border not string`)

```json
{
  "errors": [
    {
      "code": 25002008,
      "message": "The 'background' attribute must be a string"
    }
  ]
}
```

**Example** (`sidebar not array`)

```json
{
  "errors": [
    {
      "code": 25002145,
      "message": "The 'sidebar' field must be an array."
    }
  ]
}
```

**Example** (`settings not array`)

```json
{
  "errors": [
    {
      "code": 25002086,
      "message": "The \u2018settings\u2019 attribute must be an array."
    }
  ]
}
```

**Example** (`sidebar.visibility`)

```json
{
  "errors": [
    {
      "code": 25002148,
      "message": "The 'sidebar.visibility' must be a boolean."
    }
  ]
}
```

**Example** (`enabled not boolean`)

```json
{
  "errors": [
    {
      "code": 25002190,
      "message": "The 'accessibility.enabled' field must be a boolean."
    }
  ]
}
```

**Example** (`percent not integer`)

```json
{
  "errors": [
    {
      "code": 25002215,
      "message": "The `page-dimension.percent` field must be an integer."
    }
  ]
}
```

**Example** (`navigation not array`)

```json
{
  "errors": [
    {
      "code": 25002088,
      "message": "The 'navigation' attribute must be an array."
    }
  ]
}
```

**Example** (`background not string`)

```json
{
  "errors": [
    {
      "code": 25002004,
      "message": "The 'background' attribute must be a string"
    }
  ]
}
```

**Example** (`custom-text not array`)

```json
{
  "errors": [
    {
      "code": 25002151,
      "message": "The 'complete-footer.custom-text' must be an array."
    }
  ]
}
```

**Example** (`sender-info not array`)

```json
{
  "errors": [
    {
      "code": 25002207,
      "message": "The `sender-info` field must be an array."
    }
  ]
}
```

**Example** (`close-button not array`)

```json
{
  "errors": [
    {
      "code": 25002218,
      "message": "The close-button field must be an array."
    }
  ]
}
```

**Example** (`fields is not an array`)

```json
{
  "errors": [
    {
      "code": 25002295,
      "message": "The `fields` field must be an array."
    }
  ]
}
```

**Example** (`hover-color not string`)

```json
{
  "errors": [
    {
      "code": 25002012,
      "message": "The 'hover-color' attribute must be a string"
    }
  ]
}
```

**Example** (`progress-bar not array`)

```json
{
  "errors": [
    {
      "code": 25002089,
      "message": "The 'progress-bar' attribute must be an array."
    }
  ]
}
```

**Example** (`registration not array`)

```json
{
  "errors": [
    {
      "code": 25002139,
      "message": "This value should be of type array."
    }
  ]
}
```

**Example** (`support-chat not array`)

```json
{
  "errors": [
    {
      "code": 25002158,
      "message": "The 'support-chat' field must be an array."
    }
  ]
}
```

**Example** (`visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002003,
      "message": "The visibility should be a boolean."
    }
  ]
}
```

**Example** (`accessibility not array`)

```json
{
  "errors": [
    {
      "code": 25002087,
      "message": "The \u2018accessibility\u2019 attribute must be an array."
    }
  ]
}
```

**Example** (`active-color not string`)

```json
{
  "errors": [
    {
      "code": 25002039,
      "message": "The 'active-color' attribute must be a string"
    }
  ]
}
```

**Example** (`contact-name not string`)

```json
{
  "errors": [
    {
      "code": 25002212,
      "message": "The `sender-info.contact-name` must be a string."
    }
  ]
}
```

**Example** (`hover-border not string`)

```json
{
  "errors": [
    {
      "code": 25002014,
      "message": "The 'hover-border' attribute must be a string"
    }
  ]
}
```

**Example** (`toolbar is not an array`)

```json
{
  "errors": [
    {
      "code": 25002276,
      "message": "The `toolbar` field must be an array."
    }
  ]
}
```

**Example** (`active-border not string`)

```json
{
  "errors": [
    {
      "code": 25002039,
      "message": "The 'active-border' attribute must be a string"
    }
  ]
}
```

**Example** (`contact-email not string`)

```json
{
  "errors": [
    {
      "code": 25002209,
      "message": "The `sender-info.contact-email` must be a string."
    }
  ]
}
```

**Example** (`decline-button not array`)

```json
{
  "errors": [
    {
      "code": 25002220,
      "message": "The decline-button field must be an array."
    }
  ]
}
```

**Example** (`default-color not string`)

```json
{
  "errors": [
    {
      "code": 25002043,
      "message": "The 'default-color' attribute must be a string."
    }
  ]
}
```

**Example** (`page-dimension not array`)

```json
{
  "errors": [
    {
      "code": 25002214,
      "message": "The `page-dimension` field must be an array."
    }
  ]
}
```

**Example** (`complete-footer not array`)

```json
{
  "errors": [
    {
      "code": 25002149,
      "message": "The 'complete-footer' field must be an array."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`completed-color not string`)

```json
{
  "errors": [
    {
      "code": 25002045,
      "message": "The 'completed-color' attribute must be a string."
    }
  ]
}
```

**Example** (`fields.date is not an array`)

```json
{
  "errors": [
    {
      "code": 25002300,
      "message": "The `fields.date` must be an array."
    }
  ]
}
```

**Example** (`fields.text is not an array`)

```json
{
  "errors": [
    {
      "code": 25002298,
      "message": "The `fields.text` must be an array."
    }
  ]
}
```

**Example** (`hover-background not string`)

```json
{
  "errors": [
    {
      "code": 25002010,
      "message": "The 'hover-background' attribute must be a string"
    }
  ]
}
```

**Example** (`active-background not string`)

```json
{
  "errors": [
    {
      "code": 25002037,
      "message": "The 'active-background' attribute must be a string."
    }
  ]
}
```

**Example** (`close-button.title not array`)

```json
{
  "errors": [
    {
      "code": 25002355,
      "message": "The `close-button.title` must be an array."
    }
  ]
}
```

**Example** (`custom-text value not string`)

```json
{
  "errors": [
    {
      "code": 25002152,
      "message": "The 'complete-footer.custom-text.en' must be a string."
    }
  ]
}
```

**Example** (`fields.email is not an array`)

```json
{
  "errors": [
    {
      "code": 25002306,
      "message": "The `fields.email` must be an array."
    }
  ]
}
```

**Example** (`fields.stamp is not an array`)

```json
{
  "errors": [
    {
      "code": 25002316,
      "message": "The `fields.stamp` must be an array."
    }
  ]
}
```

**Example** (`decline-invite text not array`)

```json
{
  "errors": [
    {
      "code": 25002134,
      "message": "The `decline-invite-text` attribute must be an array."
    }
  ]
}
```

**Example** (`document-name is not an array`)

```json
{
  "errors": [
    {
      "code": 25002274,
      "message": "The `document-name` field must be an array."
    }
  ]
}
```

**Example** (`editing-tools is not an array`)

```json
{
  "errors": [
    {
      "code": 25002280,
      "message": "The `editing-tools` field must be an array."
    }
  ]
}
```

**Example** (`sidebar.background not string`)

```json
{
  "errors": [
    {
      "code": 25002146,
      "message": "The 'sidebar.background' must be a string."
    }
  ]
}
```

**Example** (`toolbar.background not string`)

```json
{
  "errors": [
    {
      "code": 25002278,
      "message": "The `toolbar.background` must be a string."
    }
  ]
}
```

**Example** (`fields.formula is not an array`)

```json
{
  "errors": [
    {
      "code": 25002318,
      "message": "The `fields.formula` must be an array."
    }
  ]
}
```

**Example** (`preview-button is not an array`)

```json
{
  "errors": [
    {
      "code": 25002285,
      "message": "The `preview-button` field must be an array."
    }
  ]
}
```

**Example** (`toolbar.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002277,
      "message": "The `toolbar.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`complete-page.decline not array`)

```json
{
  "errors": [
    {
      "code": 25002173,
      "message": "The 'complete-page.decline' attribute must be an array."
    }
  ]
}
```

**Example** (`continue-button is not an array`)

```json
{
  "errors": [
    {
      "code": 25002291,
      "message": "The `continue-button` field must be an array."
    }
  ]
}
```

**Example** (`decline.body-text.en not string`)

```json
{
  "errors": [
    {
      "code": 25002180,
      "message": "The 'complete-page.decline.body-text.en' must be a string."
    }
  ]
}
```

**Example** (`fields.checkbox is not an array`)

```json
{
  "errors": [
    {
      "code": 25002308,
      "message": "The `fields.checkbox` must be an array."
    }
  ]
}
```

**Example** (`fields.dropdown is not an array`)

```json
{
  "errors": [
    {
      "code": 25002314,
      "message": "The `fields.dropdown` must be an array."
    }
  ]
}
```

**Example** (`fields.fullname is not an array`)

```json
{
  "errors": [
    {
      "code": 25002304,
      "message": "The `fields.fullname` must be an array."
    }
  ]
}
```

**Example** (`fields.initials is not an array`)

```json
{
  "errors": [
    {
      "code": 25002302,
      "message": "The `fields.initials` must be an array."
    }
  ]
}
```

**Example** (`request-payment is not an array`)

```json
{
  "errors": [
    {
      "code": 25002289,
      "message": "The `request-payment` field must be an array."
    }
  ]
}
```

**Example** (`signing-settings type incorrect`)

```json
{
  "errors": [
    {
      "code": 25002376,
      "message": "The 'signing-settings' field must be an array."
    }
  ]
}
```

**Example** (`success.body-text.en not string`)

```json
{
  "errors": [
    {
      "code": 25002167,
      "message": "The 'complete-page.success.body-text.en' must be a string."
    }
  ]
}
```

**Example** (`complete-page.success not array `)

```json
{
  "errors": [
    {
      "code": 25002160,
      "message": "The 'complete-page.success' attribute must be an array."
    }
  ]
}
```

**Example** (`fields.hyperlink is not an array`)

```json
{
  "errors": [
    {
      "code": 25002320,
      "message": "The `fields.hyperlink` must be an array."
    }
  ]
}
```

**Example** (`fields.signature is not an array`)

```json
{
  "errors": [
    {
      "code": 25002296,
      "message": "The `fields.signature` must be an array."
    }
  ]
}
```

**Example** (`Request body incorrect or missing`)

```json
{
  "code": 25002002,
  "message": "Invalid payload given."
}
```

**Example** (`decline.header-text.en not string`)

```json
{
  "errors": [
    {
      "code": 25002174,
      "message": "The 'complete-page.decline.header-text.en' must be a string."
    }
  ]
}
```

**Example** (`default-fields field not an array`)

```json
{
  "errors": [
    {
      "code": 25002381,
      "message": "The `default-fields` field must be an array."
    }
  ]
}
```

**Example** (`field-settings field not an array`)

```json
{
  "errors": [
    {
      "code": 25002379,
      "message": "The `field-settings` field must be an array."
    }
  ]
}
```

**Example** (`fields.attachment is not an array`)

```json
{
  "errors": [
    {
      "code": 25002312,
      "message": "The `fields.attachment` must be an array."
    }
  ]
}
```

**Example** (`manage-recipients is not an array`)

```json
{
  "errors": [
    {
      "code": 25002283,
      "message": "The `manage-recipients` field must be an array."
    }
  ]
}
```

**Example** (`step-progress-bar is not an array`)

```json
{
  "errors": [
    {
      "code": 25002293,
      "message": "The `step-progress-bar` field must be an array."
    }
  ]
}
```

**Example** (`success.header-text.en not string`)

```json
{
  "errors": [
    {
      "code": 25002161,
      "message": "The 'complete-page.success.header-text.en' must be a string."
    }
  ]
}
```

**Example** (`thumbnails-button is not an array`)

```json
{
  "errors": [
    {
      "code": 25002287,
      "message": "The `thumbnails-button` field must be an array."
    }
  ]
}
```

**Example** (`toolbar.background invalid format`)

```json
{
  "errors": [
    {
      "code": 25002279,
      "message": "The `toolbar.background` must contain a valid HTML color format."
    }
  ]
}
```

**Example** (`fields.date.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002301,
      "message": "The `fields.date.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`fields.radiobutton is not an array`)

```json
{
  "errors": [
    {
      "code": 25002310,
      "message": "The `fields.radiobutton` must be an array."
    }
  ]
}
```

**Example** (`fields.text.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002299,
      "message": "The `fields.text.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`sender-info.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002208,
      "message": "The `sender-info.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`close-button.title.editor not array`)

```json
{
  "errors": [
    {
      "code": 25002357,
      "message": "The `close-button.title.editor` must be an array."
    }
  ]
}
```

**Example** (`close-button.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002219,
      "message": "The `close-button.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`editing-tools.background not string`)

```json
{
  "errors": [
    {
      "code": 25002281,
      "message": "The `editing-tools.background` must be a string."
    }
  ]
}
```

**Example** (`fields.email.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002307,
      "message": "The `fields.email.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`fields.stamp.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002317,
      "message": "The `fields.stamp.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`registration.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002186,
      "message": "The 'complete-page.registration.visibility' must be boolean."
    }
  ]
}
```

**Example** (`support-chat.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002159,
      "message": "The 'support-chat.visibility' must be a boolean."
    }
  ]
}
```

**Example** (`close-button.title.signing not array`)

```json
{
  "errors": [
    {
      "code": 25002356,
      "message": "The `close-button.title.signing` must be an array."
    }
  ]
}
```

**Example** (`document-name.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002275,
      "message": "The `document-name.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`close-button.title.editor.en too long`)

```json
{
  "errors": [
    {
      "code": 25002367,
      "message": "The `close-button.title.editor.en` must contain no more than 50 characters."
    }
  ]
}
```

**Example** (`close-button.title.editor.es too long`)

```json
{
  "errors": [
    {
      "code": 25002369,
      "message": "The `close-button.title.editor.es` must contain no more than 50 characters."
    }
  ]
}
```

**Example** (`close-button.title.editor.fr too long`)

```json
{
  "errors": [
    {
      "code": 25002368,
      "message": "The `close-button.title.editor.fr` must contain no more than 50 characters."
    }
  ]
}
```

**Example** (`decline-button.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002221,
      "message": "The `decline-button.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`decline-invite-text value not string `)

```json
{
  "errors": [
    {
      "code": 25002135,
      "message": "The `decline-invite-text.en` attribute must be a string."
    }
  ]
}
```

**Example** (`default-fields.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002382,
      "message": "The `default-fields.visibility` field must be a boolean."
    }
  ]
}
```

**Example** (`field-settings.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002380,
      "message": "The `field-settings.visibility` field must be a boolean."
    }
  ]
}
```

**Example** (`fields.formula.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002319,
      "message": "The `fields.formula.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`preview-button.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002286,
      "message": "The `preview-button.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`button_download.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002188,
      "message": "The 'complete-page.button_download.visibility' must be boolean."
    }
  ]
}
```

**Example** (`close-button.title.signing.en too long`)

```json
{
  "errors": [
    {
      "code": 25002364,
      "message": "The `close-button.title.signing.en` must contain no more than 50 characters."
    }
  ]
}
```

**Example** (`close-button.title.signing.es too long`)

```json
{
  "errors": [
    {
      "code": 25002366,
      "message": "The `close-button.title.signing.es` must contain no more than 50 characters."
    }
  ]
}
```

**Example** (`close-button.title.signing.fr too long`)

```json
{
  "errors": [
    {
      "code": 25002365,
      "message": "The `close-button.title.signing.fr` must contain no more than 50 characters."
    }
  ]
}
```

**Example** (`complete-footer.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002150,
      "message": "The 'complete-footer.visibility' must be a boolean."
    }
  ]
}
```

**Example** (`continue-button.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002292,
      "message": "The `continue-button.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`fields.checkbox.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002309,
      "message": "The `fields.checkbox.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`fields.dropdown.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002315,
      "message": "The `fields.dropdown.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`fields.fullname.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002305,
      "message": "The `fields.fullname.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`fields.initials.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002303,
      "message": "The `fields.initials.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`request-payment.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002290,
      "message": "The `request-payment.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`close-button.title.editor.en not string`)

```json
{
  "errors": [
    {
      "code": 25002361,
      "message": "The `close-button.title.editor.en` must be a string."
    }
  ]
}
```

**Example** (`close-button.title.editor.es not string`)

```json
{
  "errors": [
    {
      "code": 25002363,
      "message": "The `close-button.title.editor.es` must be a string."
    }
  ]
}
```

**Example** (`close-button.title.editor.fr not string`)

```json
{
  "errors": [
    {
      "code": 25002362,
      "message": "The `close-button.title.editor.fr` must be a string."
    }
  ]
}
```

**Example** (`fields.hyperlink.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002321,
      "message": "The `fields.hyperlink.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`fields.signature.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002297,
      "message": "The `fields.signature.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`button_to_signnow.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002187,
      "message": "The 'complete-page.button_to_signnow.visibility' must be boolean."
    }
  ]
}
```

**Example** (`close-button.title.signing.en not string`)

```json
{
  "errors": [
    {
      "code": 25002358,
      "message": "The `close-button.title.signing.en` must be a string."
    }
  ]
}
```

**Example** (`close-button.title.signing.es not string`)

```json
{
  "errors": [
    {
      "code": 25002360,
      "message": "The `close-button.title.signing.es` must be a string."
    }
  ]
}
```

**Example** (`close-button.title.signing.fr not string`)

```json
{
  "errors": [
    {
      "code": 25002359,
      "message": "The `close-button.title.signing.fr` must be a string."
    }
  ]
}
```

**Example** (`fields.attachment.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002313,
      "message": "The `fields.attachment.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`manage-recipients.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002284,
      "message": "The `manage-recipients.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`step-progress-bar.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002294,
      "message": "The `step-progress-bar.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`thumbnails-button.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002288,
      "message": "The `thumbnails-button.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`editing-tools.background incorrect format`)

```json
{
  "errors": [
    {
      "code": 25002282,
      "message": "The `editing-tools.background` must contain a valid HTML color format."
    }
  ]
}
```

**Example** (`fields.radiobutton.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002311,
      "message": "The `fields.radiobutton.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`close-button.title.editor.en utf 4-byte not supported`)

```json
{
  "errors": [
    {
      "code": 25002373,
      "message": "UTF 4-byte characters in `close-button.title.editor.en` are not supported."
    }
  ]
}
```

**Example** (`close-button.title.editor.es utf 4-byte not supported`)

```json
{
  "errors": [
    {
      "code": 25002375,
      "message": "UTF 4-byte characters in `close-button.title.editor.es` are not supported."
    }
  ]
}
```

**Example** (`close-button.title.editor.fr utf 4-byte not supported`)

```json
{
  "errors": [
    {
      "code": 25002374,
      "message": "UTF 4-byte characters in `close-button.title.editor.fr` are not supported."
    }
  ]
}
```

**Example** (`close-button.title.signing.en utf 4-byte not supported`)

```json
{
  "errors": [
    {
      "code": 25002370,
      "message": "UTF 4-byte characters in `close-button.title.signing.en` are not supported."
    }
  ]
}
```

**Example** (`close-button.title.signing.es utf 4-byte not supported`)

```json
{
  "errors": [
    {
      "code": 25002372,
      "message": "UTF 4-byte characters in `close-button.title.signing.es` are not supported."
    }
  ]
}
```

**Example** (`close-button.title.signing.fr utf 4-byte not supported`)

```json
{
  "errors": [
    {
      "code": 25002371,
      "message": "UTF 4-byte characters in `close-button.title.signing.fr` are not supported."
    }
  ]
}
```

**Example** (`guide-signers-only-through-required-fields type incorrect`)

```json
{
  "errors": [
    {
      "code": 25002377,
      "message": "The 'signing-settings.guide-signers-only-through-required-fields' attribute must be a boolean."
    }
  ]
}
```

**Example** (`auto-apply-signatures-and-initials-to-document-fields type incorrect`)

```json
{
  "errors": [
    {
      "code": 25002378,
      "message": "The 'signing-settings.auto-apply-signatures-and-initials-to-document-fields' attribute must be a boolean."
    }
  ]
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Missing or incorrect `brand_id`.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Missing or incorrect brand_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/brand/null/editor"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/editor" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"fields": {"date": {"visibility": true}, "text": {"visibility": true}, "email": {"visibility": true}, "stamp": {"visibility": true}, "formula": {"visibility": true}, "checkbox": {"visibility": true}, "dropdown": {"visibility": true}, "fullname": {"visibility": true}, "initials": {"visibility": true}, "hyperlink": {"visibility": true}, "signature": {"visibility": true}, "attachment": {"visibility": true}, "radiobutton": {"visibility": true}}, "sidebar": {"background": "#ffffff", "visibility": true}, "toolbar": {"background": "#ffffff", "visibility": true}, "settings": {"visibility": true}, "auth-page": {"check-pin": {"phone": {"body-text": {"en": "Enter the document password sent you by voice call or sms.", "es": "Introduce la contrase\u00f1a del documento que te ha enviado por llamada de voz o sms.", "fr": "Entrez le mot de passe du document que vous avez re\u00e7u par appel vocal ou sms."}}, "password": {"body-text": {"en": "Enter the document password below to unlock the document.", "es": "Introduce la contrase\u00f1a del documento a continuaci\u00f3n para desbloquear el documento.", "fr": "Entrez le mot de passe du document ci-dessous pour d\u00e9verrouiller le document."}}}, "header-text": {"en": "{sender_email} invited you to sign {document_name}", "es": "{sender_email} te ha invitado a firmar {document_name}", "fr": "{sender_email} vous a invit\u00e9 \u00e0 signer {document_name}"}, "request-pin": {"body-text": {"en": "Press the button bellow to have the password sent to you by voice call or sms message.", "es": "Pulsa el bot\u00f3n de abajo para que te env\u00eden la contrase\u00f1a por llamada de voz o mensaje sms.", "fr": "Appuyez sur le bouton ci-dessous pour que le mot de passe vous soit envoy\u00e9 par appel vocal ou sms."}}}, "navigation": {"visibility": true}, "sender-info": {"visibility": true, "contact-name": "Contact Name", "contact-email": "contact@email.com"}, "close-button": {"title": {"editor": {"en": "Save and Close", "es": "Guardar y cerrar", "fr": "Enregistrer et fermer"}, "signing": {"en": "Save Progress and Finish Later", "es": "Guardar progresos y terminar m\u00e1s tarde", "fr": "Enregistrer la progression et terminer plus tard"}}, "visibility": true}, "progress-bar": {"default-color": "#e3e6e9", "completed-color": "#0777cf"}, "support-chat": {"visibility": true}, "accessibility": {"color": "#546470", "border": "#ffffff", "enabled": false, "background": "#ffffff", "visibility": true, "hover-color": "#546470", "active-color": "#546470", "hover-border": "#f1f2f4", "active-border": "#dadee2", "hover-background": "#f1f2f4", "active-background": "#dadee2"}, "complete-page": {"decline": {"body-text": {"en": "You did not consent to do business electronically with the sender. The Electronic Signature Disclosure can still be accepted before the sender cancels the invite. The invite can be found in your inbox and signNow account. You can still download the document if you\u2019d like to. Contact the sender to find out what to do next.", "es": "No has dado tu consentimiento para hacer negocios electr\u00f3nicamente con el remitente. La Divulgaci\u00f3n de Firma Electr\u00f3nica a\u00fan se puede aceptar antes de que el remitente cancele la invitaci\u00f3n. Puedes encontrar la invitaci\u00f3n en tu bandeja de entrada y en la cuenta de signNow. A\u00fan puedes descargar el documento si lo deseas. Ponte en contacto con el remitente para saber qu\u00e9 hacer a continuaci\u00f3n.", "fr": "Vous n\u2019avez pas consenti \u00e0 traiter par voie \u00e9lectronique avec l\u2019exp\u00e9diteur. La Divulgation par signature \u00e9lectronique peut toujours \u00eatre accept\u00e9e avant que l\u2019exp\u00e9diteur n\u2019annule l\u2019invitation. L\u2019invitation se trouve dans votre bo\u00eete de r\u00e9ception et dans votre compte signNow. Vous pouvez n\u00e9anmoins t\u00e9l\u00e9charger le document si vous le souhaitez. Contactez l\u2019exp\u00e9diteur pour conna\u00eetre les prochaines \u00e9tapes."}, "header-text": {"en": "You'\''ve declined the Electronic Signature Disclosure agreement", "es": "Has rechazado el acuerdo de Divulgaci\u00f3n de firmas electr\u00f3nicas", "fr": "Vous avez refus\u00e9 l\u2019accord de Divulgation par signature \u00e9lectronique"}}, "success": {"body-text": {"en": "The sender will be notified and receive the signed document.", "es": "El remitente recibir\u00e1 una notificaci\u00f3n y el documento firmado. Tambi\u00e9n se ha enviado una copia a tu bandeja de entrada y se ha guardado en tu cuenta de signNow.", "fr": "L'\''exp\u00e9diteur sera inform\u00e9 et recevra le document sign\u00e9. Une copie a \u00e9galement \u00e9t\u00e9 envoy\u00e9e dans votre bo\u00eete de r\u00e9ception et enregistr\u00e9e dans votre compte signNow."}, "header-text": {"en": "You'\''ve filled out and signed the document", "es": "Has completado y firmado el documento", "fr": "Vous avez rempli et sign\u00e9 le document"}}, "registration": {"visibility": true}, "button-download": {"visibility": true}, "button-to-signnow": {"visibility": false}}, "document-name": {"visibility": true}, "editing-tools": {"background": "#ffffff"}, "decline-button": {"visibility": true}, "default-fields": {"visibility": true}, "field-settings": {"visibility": true}, "page-dimension": {"percent": 150}, "preview-button": {"visibility": true}, "complete-footer": {"visibility": true, "custom-text": {"en": "You'\''ve completed all required fields. Review your document and click Finish.", "es": "Has completado todos los campos obligatorios. Revisa tu documento y haz clic en Finalizar.", "fr": "Vous avez rempli tous les champs obligatoires. Relisez votre document et cliquez sur Terminer."}}, "continue-button": {"visibility": true}, "download-button": {"visibility": true}, "request-payment": {"visibility": true}, "signing-settings": {"guide-signers-only-through-required-fields": true, "auto-apply-signatures-and-initials-to-document-fields": true}, "manage-recipients": {"visibility": true}, "step-progress-bar": {"visibility": true}, "thumbnails-button": {"visibility": true}, "decline-invite-text": {"en": "You'\''re about to decline to sign {document_name} from {invite_owner_email}. Note that all the changes you'\''ve made to this document will be lost.", "es": "Est\u00e1s a punto de rechazar para firmar {document_name} de {invite_owner_email}. Ten en cuenta en cuenta que todos los cambios que hayas realizado en este documento se perder\u00e1n.", "fr": "Vous \u00eates sur le point de refuser de signer {document_name} de {invite_owner_email}. Notez que toutes les modifications que vous avez apport\u00e9es \u00e0 ce document seront perdues."}}'
```

---

## GET /v2/brands/{brand_id}/resources/editor — Get editor brand resource

This endpoint allows API users to retrieve the editor resource of a brand.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "data": {
    "fields": {
      "date": {
        "visibility": true
      },
      "text": {
        "visibility": true
      },
      "email": {
        "visibility": true
      },
      "stamp": {
        "visibility": true
      },
      "formula": {
        "visibility": true
      },
      "checkbox": {
        "visibility": true
      },
      "dropdown": {
        "visibility": true
      },
      "fullname": {
        "visibility": true
      },
      "initials": {
        "visibility": true
      },
      "hyperlink": {
        "visibility": true
      },
      "signature": {
        "visibility": true
      },
      "attachment": {
        "visibility": true
      },
      "radiobutton": {
        "visibility": true
      }
    },
    "sidebar": {
      "background": "#ffffff",
      "visibility": true
    },
    "toolbar": {
      "background": "#ffffff",
      "visibility": true
    },
    "settings": {
      "visibility": true
    },
    "navigation": {
      "visibility": true
    },
    "sender-info": {
      "visibility": true,
      "contact-name": "Contact Name",
      "contact-email": "contact@email.com"
    },
    "close-button": {
      "title": {
        "editor": {
          "en": "Save and Close",
          "es": "Guardar y cerrar",
          "fr": "Enregistrer et fermer"
        },
        "signing": {
          "en": "Save Progress and Finish Later",
          "es": "Guardar progresos y terminar m\u00e1s tarde",
          "fr": "Enregistrer la progression et terminer plus tard"
        }
      },
      "visibility": true
    },
    "progress-bar": {
      "default-color": "#e3e6e9",
      "completed-color": "#0777cf"
    },
    "support-chat": {
      "visibility": true
    },
    "accessibility": {
      "color": "#546470",
      "border": "#ffffff",
      "enabled": true,
      "background": "#ffffff",
      "visibility": true,
      "hover-color": "#546470",
      "active-color": "#546470",
      "hover-border": "#f1f2f4",
      "active-border": "#dadee2",
      "hover-background": "#f1f2f4",
      "active-background": "#dadee2"
    },
    "complete-page": {
      "decline": {
        "body-text": {
          "en": "You did not consent to do business electronically with the sender. The Electronic Signature Disclosure can still be accepted before the sender cancels the invite. The invite can be found in your inbox and signNow account. You can still download the document if you\u2019d like to. Contact the sender to find out what to do next.",
          "es": "No has dado tu consentimiento para hacer negocios electr\u00f3nicamente con el remitente. La Divulgaci\u00f3n de Firma Electr\u00f3nica a\u00fan se puede aceptar antes de que el remitente cancele la invitaci\u00f3n. Puedes encontrar la invitaci\u00f3n en tu bandeja de entrada y en la cuenta de signNow. A\u00fan puedes descargar el documento si lo deseas. Ponte en contacto con el remitente para saber qu\u00e9 hacer a continuaci\u00f3n.",
          "fr": "Vous n\u2019avez pas consenti \u00e0 traiter par voie \u00e9lectronique avec l\u2019exp\u00e9diteur. La Divulgation par signature \u00e9lectronique peut toujours \u00eatre accept\u00e9e avant que l\u2019exp\u00e9diteur n\u2019annule l\u2019invitation. L\u2019invitation se trouve dans votre bo\u00eete de r\u00e9ception et dans votre compte signNow. Vous pouvez n\u00e9anmoins t\u00e9l\u00e9charger le document si vous le souhaitez. Contactez l\u2019exp\u00e9diteur pour conna\u00eetre les prochaines \u00e9tapes."
        },
        "header-text": {
          "en": "You've declined the Electronic Signature Disclosure agreement",
          "es": "Has rechazado el acuerdo de Divulgaci\u00f3n de firmas electr\u00f3nicas",
          "fr": "Vous avez refus\u00e9 l\u2019accord de Divulgation par signature \u00e9lectronique"
        }
      },
      "success": {
        "body-text": {
          "en": "The sender will be notified and receive the signed document.",
          "es": "El remitente recibir\u00e1 una notificaci\u00f3n y el documento firmado. Tambi\u00e9n se ha enviado una copia a tu bandeja de entrada y se ha guardado en tu cuenta de signNow.",
          "fr": "L'exp\u00e9diteur sera inform\u00e9 et recevra le document sign\u00e9. Une copie a \u00e9galement \u00e9t\u00e9 envoy\u00e9e dans votre bo\u00eete de r\u00e9ception et enregistr\u00e9e dans votre compte signNow."
        },
        "header-text": {
          "en": "You've filled out and signed the document",
          "es": "Has completado y firmado el documento",
          "fr": "Vous avez rempli et sign\u00e9 le document"
        }
      },
      "registration": {
        "visibility": true
      },
      "button-download": {
        "visibility": true
      },
      "button-to-signnow": {
        "visibility": false
      }
    },
    "document-name": {
      "visibility": true
    },
    "editing-tools": {
      "background": "#ffffff"
    },
    "decline-button": {
      "visibility": true
    },
    "default-fields": {
      "visibility": true
    },
    "field-settings": {
      "visibility": true
    },
    "page-dimension": {
      "percent": 150
    },
    "preview-button": {
      "visibility": true
    },
    "complete-footer": {
      "visibility": true,
      "custom-text": {
        "en": "You've completed all required fields. Review your document and click Finish.",
        "es": "Has completado todos los campos obligatorios. Revisa tu documento y haz clic en Finalizar.",
        "fr": "Vous avez rempli tous les champs obligatoires. Relisez votre document et cliquez sur Terminer."
      }
    },
    "request-payment": {
      "visibility": true
    },
    "signing-settings": {
      "guide-signers-only-through-required-fields": true,
      "auto-apply-signatures-and-initials-to-document-fields": true
    },
    "step-progress-bar": {
      "visibility": true
    },
    "decline-invite-text": {
      "en": "You're about to decline to sign {document_name} from {invite_owner_email}. Note that all the changes you've made to this document will be lost.",
      "es": "Est\u00e1s a punto de rechazar para firmar {document_name} de {invite_owner_email}. Ten en cuenta en cuenta que todos los cambios que hayas realizado en este documento se perder\u00e1n.",
      "fr": "Vous \u00eates sur le point de refuser de signer {document_name} de {invite_owner_email}. Notez que toutes les modifications que vous avez apport\u00e9es \u00e0 ce document seront perdues."
    }
  }
}
```

### 400

* Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed."
    }
  ]
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: editor."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/editor" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/brands/{brand_id}/resources/editor — Delete editor brand resource

This endpoint allows users to delete editor brand resource.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: general."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/editor" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/brands/{brand_id}/resources/general — Create and edit general brand resource

This endpoint allows users to create and update a general brand resource. 

Learn more about the [general brand resource](/docs/branding-general-resource).

Note: to create a general resource for a brand, you need to own the brand.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "icons": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Text color in HEX color code."
        },
        "border": {
          "type": "string",
          "description": "Border color in HEX color code."
        },
        "background": {
          "type": "string",
          "description": "Background color in HEX color code."
        },
        "hover-color": {
          "type": "string",
          "description": "Text color in HEX color code when the button is hovered over."
        },
        "hover-border": {
          "type": "string",
          "description": "Border color in HEX color code when the button is hovered over."
        },
        "hover-background": {
          "type": "string",
          "description": "Background color in HEX color code when the button is hovered over."
        }
      },
      "description": "Icons object that contains attributes for all icons in the resource."
    },
    "texts": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Text color in the HEX color code."
        }
      },
      "description": "Text object that contains attributes for texts in the resource."
    },
    "header": {
      "type": "object",
      "properties": {
        "background": {
          "type": "string",
          "description": "Background color in HEX color code."
        }
      },
      "description": "Header object. Contains attributes for headers."
    },
    "buttons": {
      "type": "object",
      "properties": {
        "default": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "description": "Text color in HEX color code."
            },
            "border": {
              "type": "string",
              "description": "Border color in HEX color code."
            },
            "background": {
              "type": "string",
              "description": "Background color in HEX color code."
            },
            "hover-color": {
              "type": "string",
              "description": "Text color in HEX color code when the button is hovered over."
            },
            "active-color": {
              "type": "string",
              "description": "Text color in HEX color code when the button is active."
            },
            "hover-border": {
              "type": "string",
              "description": "Border color in HEX color code when the button is hovered over."
            },
            "active-border": {
              "type": "string",
              "description": "Border color in HEX color code when the button is active."
            },
            "hover-background": {
              "type": "string",
              "description": "Background color in HEX color code when the button is hovered over."
            },
            "active-background": {
              "type": "string",
              "description": "Background color in HEX color code when the button is active."
            }
          },
          "description": "Default button object."
        },
        "primary": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "description": "Text color in HEX color code."
            },
            "border": {
              "type": "string",
              "description": "Border color in HEX color code."
            },
            "background": {
              "type": "string",
              "description": "Background color in HEX color code."
            },
            "hover-color": {
              "type": "string",
              "description": "Text color in HEX color code when the button is hovered over."
            },
            "active-color": {
              "type": "string",
              "description": "Text color in HEX color code when the button is active."
            },
            "hover-border": {
              "type": "string",
              "description": "Border color in HEX color code when the button is hovered over."
            },
            "active-border": {
              "type": "string",
              "description": "Border color in HEX color code when the button is active."
            },
            "hover-background": {
              "type": "string",
              "description": "Background color in HEX color code when the button is hovered over."
            },
            "active-background": {
              "type": "string",
              "description": "Background color in HEX color code when the button is active."
            }
          },
          "description": "Primary button object."
        },
        "dropdown": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "description": "Text color in HEX color code."
            },
            "border": {
              "type": "string",
              "description": "Border color in HEX color code."
            },
            "background": {
              "type": "string",
              "description": "Background color in HEX color code."
            },
            "hover-color": {
              "type": "string",
              "description": "Text color in HEX color code when the button is hovered over."
            },
            "active-color": {
              "type": "string",
              "description": "Text color in HEX color code when the button is active."
            },
            "hover-border": {
              "type": "string",
              "description": "Border color in HEX color code when the button is hovered over."
            },
            "active-border": {
              "type": "string",
              "description": "Border color in HEX color code when the button is active."
            },
            "hover-background": {
              "type": "string",
              "description": "Background color in HEX color code when the button is hovered over."
            },
            "active-background": {
              "type": "string",
              "description": "Background color in HEX color code when the button is active."
            }
          },
          "description": "Dropdown button object."
        },
        "secondary": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "description": "Text color in HEX color code."
            },
            "border": {
              "type": "string",
              "description": "Border color in HEX color code."
            },
            "background": {
              "type": "string",
              "description": "Background color in HEX color code."
            },
            "hover-color": {
              "type": "string",
              "description": "Text color in HEX color code when the button is hovered over."
            },
            "active-color": {
              "type": "string",
              "description": "Text color in HEX color code when the button is active."
            },
            "hover-border": {
              "type": "string",
              "description": "Border color in HEX color code when the button is hovered over."
            },
            "active-border": {
              "type": "string",
              "description": "Border color in HEX color code when the button is active."
            },
            "hover-background": {
              "type": "string",
              "description": "Background color in HEX color code when the button is hovered over."
            },
            "active-background": {
              "type": "string",
              "description": "Background color in HEX color code when the button is active."
            }
          },
          "description": "Secondary button object."
        }
      },
      "description": "Button object that contains `primary`, `secondary`, `default`, and `dropdown` button attributes."
    },
    "hyperlink": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "example": "#546470",
          "description": "Default color of the hyperlink text in HEX color code."
        },
        "hover-color": {
          "type": "string",
          "example": "#667988",
          "description": "Color of the hyperlink text when hovered in HEX color code."
        },
        "active-color": {
          "type": "string",
          "example": "#4b5963",
          "description": "Color of the hyperlink text when clicked in HEX color code."
        }
      },
      "description": "Defines hyperlink colors for default, hover, and active (clicked) states. Available for embedded sending and embedded editor."
    },
    "help-center": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether the button with a link to signNow help center should be visible or not.",
          "x-stoplight": {
            "id": "wisfcj6on1d6c"
          }
        }
      },
      "x-stoplight": {
        "id": "32ejjcue1dkg6"
      }
    },
    "consent-text": {
      "type": "object",
      "properties": {
        "en": {
          "type": "string",
          "maxLength": 900,
          "description": "Custom consent text in English that can be updated. Placeholder {sender_email} is available.",
          "x-stoplight": {
            "id": "vdwkwmhubj2zd"
          }
        },
        "es": {
          "type": "string",
          "maxLength": 900,
          "description": "Custom consent text in Spanish that can be updated. Placeholder {sender_email} is available.",
          "x-stoplight": {
            "id": "e4jjy0wucs7y5"
          }
        },
        "fr": {
          "type": "string",
          "maxLength": 900,
          "description": "Custom consent text in French that can be updated. Placeholder {sender_email} is available.",
          "x-stoplight": {
            "id": "rxeyit6fer3kg"
          }
        }
      },
      "description": "Consent text object that contains attributes for consent text that appears when a signer opens the document. Consent text appears if sender is in organization and consent text is enabled for the organization.",
      "x-stoplight": {
        "id": "kgxlmxn4adgnh"
      }
    },
    "main-background": {
      "type": "string",
      "description": "Main background color in HEX color code.",
      "x-stoplight": {
        "id": "59fih3f5su2jq"
      }
    },
    "welcome-message": {
      "type": "object",
      "properties": {
        "body-text": {
          "type": "object",
          "properties": {
            "en": {
              "type": "string",
              "maxLength": 300,
              "description": "Custom welcome message in English that can be updated. Placeholder {sender_email} is available.",
              "x-stoplight": {
                "id": "k7ypjojqr8m6v"
              }
            },
            "es": {
              "type": "string",
              "maxLength": 300,
              "description": "Custom welcome message in Spanish that can be updated. Placeholder {sender_email} is available.",
              "x-stoplight": {
                "id": "kvj2jf91l201m"
              }
            },
            "fr": {
              "type": "string",
              "maxLength": 300,
              "description": "Custom welcome message in French that can be updated. Placeholder {sender_email} is available.",
              "x-stoplight": {
                "id": "0wrtt63g1g4hl"
              }
            }
          },
          "description": "Custom welcome message.",
          "x-stoplight": {
            "id": "35rc9yggnfhg2"
          }
        },
        "visibility": {
          "type": "boolean",
          "description": "Whether a welcome message should appear or not.",
          "x-stoplight": {
            "id": "bzmrw3nv8fw51"
          }
        },
        "header-text": {
          "type": "object",
          "properties": {
            "en": {
              "type": "string",
              "example": "Hi, {signer_email}",
              "maxLength": 300,
              "description": "Custom header text in English. The placeholder `{signer_email}` is replaced with the recipient's name or email/phone number (for regular documents); name or email (for embedded invites); name or \u201cGuest Signer\u201d (for signing links); and \u201cGuest Signer\u201d (for document group signing links).",
              "x-stoplight": {
                "id": "3ux7elkodldxy"
              }
            },
            "es": {
              "type": "string",
              "example": "Hola, {signer_email}",
              "maxLength": 300,
              "description": "Custom header text in Spanish. The placeholder `{signer_email}` is replaced with the recipient's name or email/phone number (for regular documents); name or email (for embedded invites); name or \u201cGuest Signer\u201d (for signing links); and \u201cGuest Signer\u201d (for document group signing links).",
              "x-stoplight": {
                "id": "tp2u0fli2rrm8"
              }
            },
            "fr": {
              "type": "string",
              "example": "Bonjour, {signer_email}",
              "maxLength": 300,
              "description": "Custom header text in French. The placeholder `{signer_email}` is replaced with the recipient's name or email/phone number (for regular documents); name or email (for embedded invites); name or \u201cGuest Signer\u201d (for signing links); and \u201cGuest Signer\u201d (for document group signing links).",
              "x-stoplight": {
                "id": "tcxtp87ekio7o"
              }
            }
          },
          "description": "Custom text displayed in the welcome message header.",
          "x-stoplight": {
            "id": "1a8pktk3i9b9w"
          }
        }
      },
      "description": "Welcome message object that contains attributes for a welcome message that appears when a signer opens the document or clicks the notification icon on the header.",
      "x-stoplight": {
        "id": "a8e80yyodl8ot"
      }
    }
  },
  "x-examples": {
    "Example 1": {
      "icons": {
        "color": "#546470",
        "border": "#ffffff",
        "background": "#ffffff",
        "hover-color": "#546470",
        "hover-border": "#f1f2f4",
        "hover-background": "#f1f2f4"
      },
      "texts": {
        "color": "#2f373e"
      },
      "header": {
        "background": "#ffffff"
      },
      "buttons": {
        "default": {
          "color": "#546470",
          "border": "#ffffff",
          "background": "#ffffff",
          "hover-color": "#546470",
          "active-color": "#546470",
          "hover-border": "#f1f2f4",
          "active-border": "#ffffff",
          "hover-background": "#f1f2f4",
          "active-background": "#ffffff"
        },
        "primary": {
          "color": "#ffffff",
          "border": "#0777cf",
          "background": "#0777cf",
          "hover-color": "#ffffff",
          "active-color": "#ffffff",
          "hover-border": "#348fd7",
          "active-border": "#003458",
          "hover-background": "#348fd7",
          "active-background": "#076dbd"
        },
        "dropdown": {
          "color": "#546470",
          "border": "#ffffff",
          "background": "#ffffff",
          "hover-color": "#546470",
          "active-color": "#546470",
          "hover-border": "#f1f2f4",
          "active-border": "#ffffff",
          "hover-background": "#f1f2f4",
          "active-background": "#ffffff"
        },
        "secondary": {
          "color": "#38424b",
          "border": "#e3e6e9",
          "background": "#e3e6e9",
          "hover-color": "#38424b",
          "active-color": "#38424b",
          "hover-border": "#f1f2f4",
          "active-border": "#d5dade",
          "hover-background": "#f1f2f4",
          "active-background": "#d5dade"
        }
      },
      "hyperlink": {
        "color": "#546470",
        "hover-color": "#667988",
        "active-color": "#4b5963"
      },
      "help-center": {
        "visibility": true
      },
      "consent-text": {
        "en": "{sender_email} has invited you to fill out and sign this in one place.",
        "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
        "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
      },
      "main-background": "#efefef",
      "welcome-message": {
        "body-text": {
          "en": "{sender_email} has invited you to fill out and sign this in one place.",
          "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
          "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
        },
        "visibility": true,
        "header-text": {
          "en": "Hi, {signer_email}",
          "es": "Hola, {signer_email}",
          "fr": "Bonjour, {signer_email}"
        }
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "icons": {
    "color": "#546470",
    "border": "#ffffff",
    "background": "#ffffff",
    "hover-color": "#546470",
    "hover-border": "#f1f2f4",
    "hover-background": "#f1f2f4"
  },
  "texts": {
    "color": "#2f373e"
  },
  "header": {
    "background": "#ffffff"
  },
  "buttons": {
    "default": {
      "color": "#546470",
      "border": "#ffffff",
      "background": "#ffffff",
      "hover-color": "#546470",
      "active-color": "#546470",
      "hover-border": "#f1f2f4",
      "active-border": "#ffffff",
      "hover-background": "#f1f2f4",
      "active-background": "#ffffff"
    },
    "primary": {
      "color": "#ffffff",
      "border": "#0777cf",
      "background": "#0777cf",
      "hover-color": "#ffffff",
      "active-color": "#ffffff",
      "hover-border": "#348fd7",
      "active-border": "#003458",
      "hover-background": "#348fd7",
      "active-background": "#076dbd"
    },
    "dropdown": {
      "color": "#546470",
      "border": "#ffffff",
      "background": "#ffffff",
      "hover-color": "#546470",
      "active-color": "#546470",
      "hover-border": "#f1f2f4",
      "active-border": "#ffffff",
      "hover-background": "#f1f2f4",
      "active-background": "#ffffff"
    },
    "secondary": {
      "color": "#38424b",
      "border": "#e3e6e9",
      "background": "#e3e6e9",
      "hover-color": "#38424b",
      "active-color": "#38424b",
      "hover-border": "#f1f2f4",
      "active-border": "#d5dade",
      "hover-background": "#f1f2f4",
      "active-background": "#d5dade"
    }
  },
  "hyperlink": {
    "color": "#546470",
    "hover-color": "#667988",
    "active-color": "#4b5963"
  },
  "help-center": {
    "visibility": true
  },
  "consent-text": {
    "en": "{sender_email} has invited you to fill out and sign this in one place.",
    "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
    "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
  },
  "main-background": "#efefef",
  "welcome-message": {
    "body-text": {
      "en": "{sender_email} has invited you to fill out and sign this in one place.",
      "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
      "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
    },
    "visibility": true,
    "header-text": {
      "en": "Hi, {signer_email}",
      "es": "Hola, {signer_email}",
      "fr": "Bonjour, {signer_email}"
    }
  }
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* Request body is incorrect or missing.
* `header` is not an array.
* `color` is not a string.
* `background` is not a string.
* `border` is not a string.
* `hover-color` is not a string.
* `hover-background` is not a string.
* `hover-border` is not a string.
* `active-color` is not a string.
* `active-background` is not a string.
* `active-border` is not a string.
* `main-background` is not a string.
* `consent-text` is not an array.
* `consent-text` value is not a string.
* `welcome-message` is not an array.
* `welcome-message.visibility` value is not a boolean.
* `welcome-message.body-text` is not an array.
* `body-text` value is not a string.
* `help-center` is not an array.
* `help-center.visibility` is not a boolean.
* The `hyperlink` is not an array.
* The `hyperlink.color` is not a string.
* The `hyperlink.color` is not a valid HTML color format.
* The `hyperlink.hover-color` is not a string.
* The `hyperlink.hover-color` is not a valid HTML color format.
* The `hyperlink.active-color` is not a string.
* The `hyperlink.active-color` is not a valid HTML color format.

**Example** (`color not string`)

```json
{
  "errors": [
    {
      "code": 25002006,
      "message": "The 'color' attribute must be a string"
    }
  ]
}
```

**Example** (`header not array`)

```json
{
  "errors": [
    {
      "code": 25002189,
      "message": "The `resources.general.header` attribute must be an array."
    }
  ]
}
```

**Example** (`border not string`)

```json
{
  "errors": [
    {
      "code": 25002008,
      "message": "The 'border' attribute must be a string"
    }
  ]
}
```

**Example** (`hyperlink not array`)

```json
{
  "errors": [
    {
      "code": 25002322,
      "message": "The 'hyperlink' attribute must be an array."
    }
  ]
}
```

**Example** (`background not string`)

```json
{
  "errors": [
    {
      "code": 25002004,
      "message": "The 'background' attribute must be a string"
    }
  ]
}
```

**Example** (`help-center not array`)

```json
{
  "errors": [
    {
      "code": 25002205,
      "message": "The `help-center` field must be an array."
    }
  ]
}
```

**Example** (`consent-text not array`)

```json
{
  "errors": [
    {
      "code": 25002191,
      "message": "The `consent-text` attribute must be an array."
    }
  ]
}
```

**Example** (`hover-color not string`)

```json
{
  "errors": [
    {
      "code": 25002012,
      "message": "The 'hover-color' attribute must be a string"
    }
  ]
}
```

**Example** (`active-color not string`)

```json
{
  "errors": [
    {
      "code": 25002039,
      "message": "The 'active-color' attribute must be a string."
    }
  ]
}
```

**Example** (`hover-border not string`)

```json
{
  "errors": [
    {
      "code": 25002014,
      "message": "The 'hover-border' attribute must be a string."
    }
  ]
}
```

**Example** (`active-border not string`)

```json
{
  "errors": [
    {
      "code": 25002041,
      "message": "The 'active-border' attribute must be a string."
    }
  ]
}
```

**Example** (`welcome-message not array`)

```json
{
  "errors": [
    {
      "code": 25002196,
      "message": "The `welcome-message` field must be an array."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`body-text value not string`)

```json
{
  "errors": [
    {
      "code": 25002199,
      "message": "The `welcome-message.body-text.en` must be a string."
    }
  ]
}
```

**Example** (`hyperlink.color not string`)

```json
{
  "errors": [
    {
      "code": 25002323,
      "message": "The 'color' attribute must be a string."
    }
  ]
}
```

**Example** (`main-background not string`)

```json
{
  "errors": [
    {
      "code": 25002143,
      "message": "The 'main-background' field must be a string."
    }
  ]
}
```

**Example** (`hover-background not string`)

```json
{
  "errors": [
    {
      "code": 25002010,
      "message": "The 'hover-background' attribute must be a string"
    }
  ]
}
```

**Example** (`active-background not string`)

```json
{
  "errors": [
    {
      "code": 25002038,
      "message": "The 'active-background' attribute must be a string."
    }
  ]
}
```

**Example** (`consent-text value not string`)

```json
{
  "errors": [
    {
      "code": 25002192,
      "message": "The `consent-text.en` attribute must be a string."
    }
  ]
}
```

**Example** (`hyperlink.active-color not valid`)

```json
{
  "errors": [
    {
      "code": 25002328,
      "message": "The 'active-color' attribute must contain a valid HTML color format."
    }
  ]
}
```

**Example** (`hyperlink.color format incorrect`)

```json
{
  "errors": [
    {
      "code": 25002324,
      "message": "The 'color' attribute must contain a valid HTML color format."
    }
  ]
}
```

**Example** (`hyperlink.hover-color not string`)

```json
{
  "errors": [
    {
      "code": 25002325,
      "message": "The 'hover-color' attribute must be a string."
    }
  ]
}
```

**Example** (`Request body incorrect or missing`)

```json
{
  "code": 25002002,
  "message": "Invalid payload given."
}
```

**Example** (`hyperlink.active-color not string`)

```json
{
  "errors": [
    {
      "code": 25002327,
      "message": "The 'active-color' attribute must be a string."
    }
  ]
}
```

**Example** (`help-center.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002206,
      "message": "The `help-center.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`welcome-message.body-text not array`)

```json
{
  "errors": [
    {
      "code": 25002198,
      "message": "The welcome-message.body-text must be an array."
    }
  ]
}
```

**Example** (`welcome-message.visibility not bool`)

```json
{
  "errors": [
    {
      "code": 25002197,
      "message": "The `welcome-message.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`hyperlink.hover-color format incorrect`)

```json
{
  "errors": [
    {
      "code": 25002326,
      "message": "The 'hover-color' attribute must contain a valid HTML color format."
    }
  ]
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Missing or incorrect `brand_id`.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Missing or incorrect brand_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/brand/null/general"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/general" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"icons": {"color": "#546470", "border": "#ffffff", "background": "#ffffff", "hover-color": "#546470", "hover-border": "#f1f2f4", "hover-background": "#f1f2f4"}, "texts": {"color": "#2f373e"}, "header": {"background": "#ffffff"}, "buttons": {"default": {"color": "#546470", "border": "#ffffff", "background": "#ffffff", "hover-color": "#546470", "active-color": "#546470", "hover-border": "#f1f2f4", "active-border": "#ffffff", "hover-background": "#f1f2f4", "active-background": "#ffffff"}, "primary": {"color": "#ffffff", "border": "#0777cf", "background": "#0777cf", "hover-color": "#ffffff", "active-color": "#ffffff", "hover-border": "#348fd7", "active-border": "#003458", "hover-background": "#348fd7", "active-background": "#076dbd"}, "dropdown": {"color": "#546470", "border": "#ffffff", "background": "#ffffff", "hover-color": "#546470", "active-color": "#546470", "hover-border": "#f1f2f4", "active-border": "#ffffff", "hover-background": "#f1f2f4", "active-background": "#ffffff"}, "secondary": {"color": "#38424b", "border": "#e3e6e9", "background": "#e3e6e9", "hover-color": "#38424b", "active-color": "#38424b", "hover-border": "#f1f2f4", "active-border": "#d5dade", "hover-background": "#f1f2f4", "active-background": "#d5dade"}}, "hyperlink": {"color": "#546470", "hover-color": "#667988", "active-color": "#4b5963"}, "help-center": {"visibility": true}, "consent-text": {"en": "{sender_email} has invited you to fill out and sign this in one place.", "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.", "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."}, "main-background": "#efefef", "welcome-message": {"body-text": {"en": "{sender_email} has invited you to fill out and sign this in one place.", "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.", "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."}, "visibility": true, "header-text": {"en": "Hi, {signer_email}", "es": "Hola, {signer_email}", "fr": "Bonjour, {signer_email}"}}}'
```

---

## GET /v2/brands/{brand_id}/resources/general — Get general brand resource

This endpoint allows API users to retrieve the general resource of a brand.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "data": {
    "icons": {
      "color": "#546470",
      "border": "#ffffff",
      "background": "#ffffff",
      "hover-color": "#546470",
      "hover-border": "#f1f2f4",
      "hover-background": "#f1f2f4"
    },
    "texts": {
      "color": "#2f373e"
    },
    "header": {
      "background": "#ffffff"
    },
    "buttons": {
      "default": {
        "color": "#546470",
        "border": "#ffffff",
        "background": "#ffffff",
        "hover-color": "#546470",
        "active-color": "#546470",
        "hover-border": "#f1f2f4",
        "active-border": "#ffffff",
        "hover-background": "#f1f2f4",
        "active-background": "#ffffff"
      },
      "primary": {
        "color": "#ffffff",
        "border": "#0777cf",
        "background": "#0777cf",
        "hover-color": "#ffffff",
        "active-color": "#ffffff",
        "hover-border": "#348fd7",
        "active-border": "#003458",
        "hover-background": "#348fd7",
        "active-background": "#076dbd"
      },
      "dropdown": {
        "color": "#546470",
        "border": "#ffffff",
        "background": "#ffffff",
        "hover-color": "#546470",
        "active-color": "#546470",
        "hover-border": "#f1f2f4",
        "active-border": "#ffffff",
        "hover-background": "#f1f2f4",
        "active-background": "#ffffff"
      },
      "secondary": {
        "color": "#38424b",
        "border": "#e3e6e9",
        "background": "#e3e6e9",
        "hover-color": "#38424b",
        "active-color": "#38424b",
        "hover-border": "#f1f2f4",
        "active-border": "#d5dade",
        "hover-background": "#f1f2f4",
        "active-background": "#d5dade"
      }
    },
    "hyperlink": {
      "color": "#546470",
      "hover-color": "#667988",
      "active-color": "#4b5963"
    },
    "help-center": {
      "visibility": true
    },
    "consent-text": {
      "en": "{sender_email} has invited you to fill out and sign this in one place.",
      "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
      "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
    },
    "main-background": "#efefef",
    "welcome-message": {
      "body-text": {
        "en": "{sender_email} has invited you to fill out and sign this in one place.",
        "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
        "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
      },
      "visibility": true,
      "header-text": {
        "en": "Hi, {signer_email}",
        "es": "Hola, {signer_email}",
        "fr": "Bonjour, {signer_email}"
      }
    }
  }
}
```

### 400

* Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed."
    }
  ]
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: general."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/general" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/brands/{brand_id}/resources/general — Delete general brand resource

This endpoint allows users to delete general brand resource.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: general."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/general" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/brands/{brand_id}/resources/logo — Create logo brand resource

This endpoint allows users to create and update a logo brand resource.

Learn more about the [logo brand resource](/docs/branding-logo-resource).

Note: to create a logo brand resource, you need to own the brand.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | multipart/form-data |

## Form Data Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `logo` | file | Yes | Logo image file. |

## Responses

### 204

Logo added

### 400

* Incorrect or missing token.
* Missing logo or incorrect payload.
* Incorrect file format.
* File is bigger than 2 MB.

**Example** (`File is too big`)

```json
{
  "code": 25002051,
  "message": "The file is too large. Allowed maximum size is 2 MB."
}
```

**Example** (`Incorrect payload`)

```json
{
  "code": 25002047,
  "message": "Brand logo is required."
}
```

**Example** (`Incorrect file format`)

```json
{
  "code": 25002048,
  "message": "The mime type of the file is invalid (\"text/plain\"). Allowed mime types are \"image/x-ms-bmp\", \"image/gif\", \"image/jpeg\", \"image/png\", \"image/bmp\"."
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Missing or incorrect `brand_id`.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Missing or incorrect brand_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/brand/null/logo"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/logo" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## PUT /v2/brands/{brand_id}/resources/logo — Add and change logo from URL

This endpoint allows users to add and change a logo for a brand from a specified link.

Learn more about the [logo brand resource](/docs/branding-logo-resource).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "url"
  ],
  "properties": {
    "url": {
      "type": "string",
      "description": "Link address to the logo file.",
      "x-stoplight": {
        "id": "l9sdtgfqzqhn3"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "url": "https://logo-file.com"
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* Missing `url`.
* Empty `url`.
* Incorrect `url`.
* `url` is not a string.
* `url` does not contain an image of the proper format.
* The image cannot be downloaded.
* The image is too big. 

**Example** (`Empty url`)

```json
{
  "code": 25002128,
  "message": "The `url` is required."
}
```

**Example** (`Missing url`)

```json
{
  "code": 25002128,
  "message": "The `url` is required."
}
```

**Example** (`Incorrect url`)

```json
{
  "code": 25002129,
  "message": "The `url` should be a valid URL."
}
```

**Example** (`url not string`)

```json
{
  "code": 25002132,
  "message": "The `url` should be a string."
}
```

**Example** (`Image is too big`)

```json
{
  "code": 25002051,
  "message": "The file is too large (2.56 MB). Allowed maximum size is 2 MB."
}
```

**Example** (`Image cannot be downloaded`)

```json
{
  "code": 25002131,
  "message": "Something went wrong during image download."
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Missing image or incorrect format`)

```json
{
  "code": 25002130,
  "message": "Provided URL does not contains an image or wrong image format."
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Missing or incorrect `brand_id`.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Missing or incorrect brand_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/brand/null/logo"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/logo" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://logo-file.com"}'
```

---

## GET /v2/brands/{brand_id}/resources/logo — Get logo brand resource

This endpoint allows API users to retrieve the image file of the `logo` brand resource.

**Notes**

* The image is returned in the response body without a `Content-Disposition` header, so a browser displays it instead of downloading it.
* The endpoint also accepts requests without an access token.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

The logo image file, returned as uploaded. The content type matches the image, for example `image/png` or `image/jpeg`. SVG files are returned as `image/svg+xml`.

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: logo."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/logo" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/brands/{brand_id}/resources/logo — Delete logo brand resource

This endpoint allows users to delete logo brand resource.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: logo."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/logo" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/brands — Get all brands

This endpoint allows API users to retrieve all brands associated with their account.

**Notes**

Each brand has an `owner_type` field that defines who owns it and what access is allowed. There are three ownership types:

* **`common`** — system default SignNow brand. Read-only; cannot be edited or customized. Appears in the brand list, but any modification attempt returns a "No access to brand" error.
* **`organization`** — custom brand owned by the organization. Full access for organization admins. This is the brand type customers should create and use.
* **`user`** — custom brand owned by an individual user.

## Authorization

bearer

## Responses

### 200

Successful response. Returns the brands available to the user. The SignNow default brand (`owner_type`: `common`) is always included.

**Example** (`Brands exist`)

```json
{
  "data": [
    {
      "link": "https://api.signnow.com/v2/brands/0f7848d0cfadeb2cdd230e4ad433efbca2423d8f",
      "title": "SignNow",
      "resources": [],
      "unique_id": "0f7848d0cfadeb2cdd230e4ad433efbca2423d8f",
      "owner_type": "common"
    },
    {
      "link": "https://api.signnow.com/v2/organizations/1b63e416095d4734a0e0d8bce4bd33f7b44b7585/brands/d14d3a3df33144009ee8dc51b1f4b0dacf9a9763",
      "title": "Brand_1",
      "resources": {
        "email": {
          "data": null,
          "link": "https://api.signnow.com/v2/organizations/1b63e416095d4734a0e0d8bce4bd33f7b44b7585/brands/d14d3a3df33144009ee8dc51b1f4b0dacf9a9763/resources/email"
        },
        "editor": {
          "data": null,
          "link": "https://api.signnow.com/v2/organizations/1b63e416095d4734a0e0d8bce4bd33f7b44b7585/brands/d14d3a3df33144009ee8dc51b1f4b0dacf9a9763/resources/editor"
        }
      },
      "unique_id": "d14d3a3df33144009ee8dc51b1f4b0dacf9a9763",
      "owner_type": "organization"
    },
    {
      "link": "https://api.signnow.com/v2/brands/3b3c0af5da8e4c098d5eefbca101e92feca01dc5",
      "title": "Brand_2",
      "resources": [],
      "unique_id": "3b3c0af5da8e4c098d5eefbca101e92feca01dc5",
      "owner_type": "user"
    }
  ],
  "meta": {
    "pagination": {
      "count": 3,
      "links": [],
      "total": 3,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

**Example** (`No brands created`)

```json
{
  "data": [
    {
      "link": "https://api.signnow.com/v2/brands/0f7848d0cfadeb2cdd230e4ad433efbca2423d8f",
      "title": "signNow",
      "resources": [],
      "unique_id": "0f7848d0cfadeb2cdd230e4ad433efbca2423d8f",
      "owner_type": "common"
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* Wrong, expired, or missing token.
* Deactivated or deleted application.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

The user is authorized with a token from an app they don’t own.

**Example** (`The user is authorized with a token from an app they don’t own`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/brands — Create brand

This endpoint allows users to create a `brand` object for [branding](/docs/guides-branding) (white-labeling).

> [!NOTE]
> To create brands from an application in development mode, the account needs a paid API plan, an API free trial, or a Site License.

## Authorization

bearer

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "title"
  ],
  "properties": {
    "title": {
      "type": "string",
      "description": "Name of the brand."
    }
  },
  "x-examples": {
    "Example 1": {
      "title": "some_title"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "title": "some_title"
}
```

## Responses

### 201

Successful response.

**Example** (`Successful response`)

```json
{
  "id": "{brand_unique_id}"
}
```

### 400

* Incorrect or missing token.
* Request body is incorrect or missing.
* Incorrect payload.
* `title` is not a string.
* `title` is empty.
* `title` is longer than `100` characters.

**Example** (`Empty title`)

```json
{
  "code": 25002034,
  "message": "Brand title must not be an empty string."
}
```

**Example** (`title too long`)

```json
{
  "code": 25002032,
  "message": "Brand title length must less, than 100 characters."
}
```

**Example** (`title not string`)

```json
{
  "code": 25002031,
  "message": "Brand title must be a string."
}
```

**Example** (`Incorrect payload`)

```json
{
  "code": 25002002,
  "message": "Invalid payload given."
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Request body incorrect or missing`)

```json
{
  "code": 25002033,
  "message": "Brand title is required."
}
```

### 403

* The user is authorized with a token from an app they don’t own.
* The application is in development mode, and the account has no paid API plan, API free trial, or Site License.

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

**Example** (`Custom branding not available`)

```json
{
  "errors": [
    {
      "code": 25002354,
      "message": "Upgrade your subscription plan to enable custom branding."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/brands" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"title": "some_title"}'
```

---

## PUT /v2/brands/{brand_id} — Change brand

This endpoint allows users to edit a brand.

Note: to change a brand, you need to own it.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "title"
  ],
  "properties": {
    "title": {
      "type": "string",
      "description": "The name of the brand."
    }
  },
  "x-examples": {
    "Example 1": {
      "title": "some_title"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "title": "some_title"
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* Request body is incorrect or missing.
* Incorrect payload.
* `title` is not a string.
* `title` is empty.
* `title` is longer than 100 characters.

**Example** (`Empty title`)

```json
{
  "code": 25002034,
  "message": "Brand title must not be an empty string."
}
```

**Example** (`title too long`)

```json
{
  "code": 25002032,
  "message": "Brand title length must less, than 100 characters."
}
```

**Example** (`title not string`)

```json
{
  "code": 25002031,
  "message": "Brand title must be a string."
}
```

**Example** (`Incorrect payload`)

```json
{
  "code": 25002002,
  "message": "Invalid payload given."
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Request body incorrect or missing`)

```json
{
  "code": 25002033,
  "message": "Brand title is required."
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Missing or incorrect `brand_id`.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Missing or incorrect brand_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/brand/null"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/brands/{brand_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"title": "some_title"}'
```

---

## GET /v2/brands/{brand_id} — Get brand

This endpoint allows API users to get information about a brand.

Note: to view a brand, you need to own it.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Brand details.

**Example** (`Successful response`)

```json
{
  "data": {
    "link": "https://api.signnow.com/v2/brands/2b715ceecdcf9ec54089500692b1a38549ff8f02",
    "title": "My brand",
    "resources": {
      "logo": {
        "data": {
          "original": "https://api.signnow.com/v2/brands/2b715ceecdcf9ec54089500692b1a38549ff8f02/resources/logo"
        },
        "link": "https://api.signnow.com/v2/brands/2b715ceecdcf9ec54089500692b1a38549ff8f02/resources/logo?hash=735929a6da50356b4827b037b992dc7e5e631d0a"
      },
      "general": {
        "data": {
          "icons": {
            "color": "#546470",
            "border": "#ffffff",
            "background": "#ffffff",
            "hover-color": "#546470",
            "hover-border": "#f1f2f4",
            "hover-background": "#f1f2f4"
          },
          "texts": {
            "color": "#2f373e"
          },
          "header": {
            "background": "#ffffff"
          },
          "buttons": {
            "default": {
              "color": "#546470",
              "border": "#ffffff",
              "background": "#ffffff",
              "hover-color": "#546470",
              "active-color": "#546470",
              "hover-border": "#f1f2f4",
              "active-border": "#ffffff",
              "hover-background": "#f1f2f4",
              "active-background": "#ffffff"
            },
            "primary": {
              "color": "#ffffff",
              "border": "#0777cf",
              "background": "#0777cf",
              "hover-color": "#ffffff",
              "active-color": "#ffffff",
              "hover-border": "#348fd7",
              "active-border": "#003458",
              "hover-background": "#348fd7",
              "active-background": "#076dbd"
            },
            "dropdown": {
              "color": "#546470",
              "border": "#ffffff",
              "background": "#ffffff",
              "hover-color": "#546470",
              "active-color": "#546470",
              "hover-border": "#f1f2f4",
              "active-border": "#ffffff",
              "hover-background": "#f1f2f4",
              "active-background": "#ffffff"
            },
            "secondary": {
              "color": "#38424b",
              "border": "#e3e6e9",
              "background": "#e3e6e9",
              "hover-color": "#38424b",
              "active-color": "#38424b",
              "hover-border": "#f1f2f4",
              "active-border": "#d5dade",
              "hover-background": "#f1f2f4",
              "active-background": "#d5dade"
            }
          },
          "hyperlink": {
            "color": "#546470",
            "hover-color": "#667988",
            "active-color": "#4b5963"
          },
          "help-center": {
            "visibility": true
          },
          "consent-text": {
            "en": "{sender_email} has invited you to fill out and sign this in one place.",
            "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
            "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
          },
          "main-background": "#efefef",
          "welcome-message": {
            "body-text": {
              "en": "{sender_email} has invited you to fill out and sign this in one place.",
              "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
              "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
            },
            "visibility": true,
            "header-text": {
              "en": "Hi, {signer_email}",
              "es": "Hola, {signer_email}",
              "fr": "Bonjour, {signer_email}"
            }
          }
        },
        "link": "https://api.signnow.com/v2/brands/2b715ceecdcf9ec54089500692b1a38549ff8f02/resources/general"
      }
    },
    "unique_id": "2b715ceecdcf9ec54089500692b1a38549ff8f02",
    "owner_type": "user"
  }
}
```

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The bearer token is valid but it belongs to another user.
* The user is authorized with a token from an app they don’t own.


**Example** (`Another user's token`)

```json
{
  "code": 25002075,
  "message": "Brand assign to provided application is not allowed."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Missing or incorrect `brand_id`.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Missing or incorrect brand_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/brand/null"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/brands/{brand_id} — Delete brand

This endpoint allows users to delete a brand.

Note: to delete a brand, you need to own it.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

### 404

Brand with this `brand_id` doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/brands/{brand_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/brands/template-file — Get brand template file

This endpoint allows API users to download a brand template JSON file with all customizable objects set to SignNow default settings. The file is convenient for saving all the branding settings with one request and for integration purposes. 

The template file is always up-to-date with the latest SignNow branding options.

For a list of available objects, see [About branding](/docs/guides-branding).

Note: data in the brand template file holds SignNow default settings, so you don’t need to create everything from scratch to [create a brand](/docs/general-branding/operations/post-v2-brands-upload-file).

## Authorization

bearer

## Responses

### 200

Correct request: JSON file with the template structure

**Example** (`Successful response`)

```json
{
  "title": "Brand title",
  "resources": {
    "logo": {
      "url": "https://marketing-static.signnow.com/1382/images/global/svg/new-logo.svg"
    },
    "editor": {
      "fields": {
        "date": {
          "visibility": true
        },
        "text": {
          "visibility": true
        },
        "email": {
          "visibility": true
        },
        "stamp": {
          "visibility": true
        },
        "formula": {
          "visibility": true
        },
        "checkbox": {
          "visibility": true
        },
        "dropdown": {
          "visibility": true
        },
        "fullname": {
          "visibility": true
        },
        "initials": {
          "visibility": true
        },
        "hyperlink": {
          "visibility": true
        },
        "signature": {
          "visibility": true
        },
        "attachment": {
          "visibility": true
        },
        "radiobutton": {
          "visibility": true
        }
      },
      "sidebar": {
        "background": "#ffffff",
        "visibility": true
      },
      "toolbar": {
        "background": "#ffffff",
        "visibility": true
      },
      "settings": {
        "visibility": true
      },
      "auth-page": {
        "check-pin": {
          "phone": {
            "body-text": {
              "en": "Enter the document password sent you by voice call or sms.",
              "es": "Introduce la contrase\u00f1a del documento que te ha enviado por llamada de voz o sms.",
              "fr": "Entrez le mot de passe du document que vous avez re\u00e7u par appel vocal ou sms."
            }
          },
          "password": {
            "body-text": {
              "en": "Enter the document password below to unlock the document.",
              "es": "Introduce la contrase\u00f1a del documento a continuaci\u00f3n para desbloquear el documento.",
              "fr": "Entrez le mot de passe du document ci-dessous pour d\u00e9verrouiller le document."
            }
          }
        },
        "header-text": {
          "en": "{sender_email} invited you to sign {document_name}",
          "es": "{sender_email} te ha invitado a firmar {document_name}",
          "fr": "{sender_email} vous a invit\u00e9 \u00e0 signer {document_name}"
        },
        "request-pin": {
          "body-text": {
            "en": "Press the button bellow to have the password sent to you by voice call or sms message.",
            "es": "Pulsa el bot\u00f3n de abajo para que te env\u00eden la contrase\u00f1a por llamada de voz o mensaje sms.",
            "fr": "Appuyez sur le bouton ci-dessous pour que le mot de passe vous soit envoy\u00e9 par appel vocal ou sms."
          }
        }
      },
      "navigation": {
        "visibility": true
      },
      "sender-info": {
        "visibility": true,
        "contact-name": "Contact Name",
        "contact-email": "contact@email.com"
      },
      "close-button": {
        "title": {
          "editor": {
            "en": "Save and Close",
            "es": "Guardar y cerrar",
            "fr": "Enregistrer et fermer"
          },
          "signing": {
            "en": "Save Progress and Finish Later",
            "es": "Guardar progresos y terminar m\u00e1s tarde",
            "fr": "Enregistrer la progression et terminer plus tard"
          }
        },
        "visibility": false
      },
      "progress-bar": {
        "default-color": "#e3e6e9",
        "completed-color": "#0777cf"
      },
      "support-chat": {
        "visibility": true
      },
      "accessibility": {
        "color": "#546470",
        "border": "#ffffff",
        "enabled": false,
        "background": "#ffffff",
        "visibility": true,
        "hover-color": "#546470",
        "active-color": "#546470",
        "hover-border": "#f1f2f4",
        "active-border": "#dadee2",
        "hover-background": "#f1f2f4",
        "active-background": "#dadee2"
      },
      "complete-page": {
        "decline": {
          "body-text": {
            "en": "You did not consent to do business electronically with the sender. The Electronic Signature Disclosure can still be accepted before the sender cancels the invite. The invite can be found in your inbox and signNow account. You can still download the document if you\u2019d like to. Contact the sender to find out what to do next.",
            "es": "No has dado tu consentimiento para hacer negocios electr\u00f3nicamente con el remitente. La Divulgaci\u00f3n de Firma Electr\u00f3nica a\u00fan se puede aceptar antes de que el remitente cancele la invitaci\u00f3n. Puedes encontrar la invitaci\u00f3n en tu bandeja de entrada y en la cuenta de signNow. A\u00fan puedes descargar el documento si lo deseas. Ponte en contacto con el remitente para saber qu\u00e9 hacer a continuaci\u00f3n.",
            "fr": "Vous n\u2019avez pas consenti \u00e0 traiter par voie \u00e9lectronique avec l\u2019exp\u00e9diteur. La Divulgation par signature \u00e9lectronique peut toujours \u00eatre accept\u00e9e avant que l\u2019exp\u00e9diteur n\u2019annule l\u2019invitation. L\u2019invitation se trouve dans votre bo\u00eete de r\u00e9ception et dans votre compte signNow. Vous pouvez n\u00e9anmoins t\u00e9l\u00e9charger le document si vous le souhaitez. Contactez l\u2019exp\u00e9diteur pour conna\u00eetre les prochaines \u00e9tapes."
          },
          "header-text": {
            "en": "You've declined the Electronic Signature Disclosure agreement",
            "es": "Has rechazado el acuerdo de Divulgaci\u00f3n de firmas electr\u00f3nicas",
            "fr": "Vous avez refus\u00e9 l\u2019accord de Divulgation par signature \u00e9lectronique"
          }
        },
        "success": {
          "body-text": {
            "en": "The sender will be notified and receive the signed document.",
            "es": "El remitente recibir\u00e1 una notificaci\u00f3n y el documento firmado. Tambi\u00e9n se ha enviado una copia a tu bandeja de entrada y se ha guardado en tu cuenta de signNow.",
            "fr": "L'exp\u00e9diteur sera inform\u00e9 et recevra le document sign\u00e9. Une copie a \u00e9galement \u00e9t\u00e9 envoy\u00e9e dans votre bo\u00eete de r\u00e9ception et enregistr\u00e9e dans votre compte signNow."
          },
          "header-text": {
            "en": "You've filled out and signed the document",
            "es": "Has completado y firmado el documento",
            "fr": "Vous avez rempli et sign\u00e9 le document"
          }
        },
        "registration": {
          "visibility": true
        },
        "button-download": {
          "visibility": true
        },
        "button-to-signnow": {
          "visibility": false
        }
      },
      "document-name": {
        "visibility": true
      },
      "editing-tools": {
        "background": "#ffffff"
      },
      "decline-button": {
        "visibility": true
      },
      "default-fields": {
        "visibility": true
      },
      "field-settings": {
        "visibility": true
      },
      "page-dimension": {
        "percent": 150
      },
      "preview-button": {
        "visibility": true
      },
      "complete-footer": {
        "visibility": true,
        "custom-text": {
          "en": "You've completed all required fields. Review your document and click Finish.",
          "es": "Has completado todos los campos obligatorios. Revisa tu documento y haz clic en Finalizar.",
          "fr": "Vous avez rempli tous les champs obligatoires. Relisez votre document et cliquez sur Terminer."
        }
      },
      "continue-button": {
        "visibility": true
      },
      "download-button": {
        "visibility": true
      },
      "request-payment": {
        "visibility": true
      },
      "signing-settings": {
        "guide-signers-only-through-required-fields": true,
        "auto-apply-signatures-and-initials-to-document-fields": true
      },
      "manage-recipients": {
        "visibility": true
      },
      "step-progress-bar": {
        "visibility": true
      },
      "thumbnails-button": {
        "visibility": true
      },
      "decline-invite-text": {
        "en": "You're about to decline to sign {document_name} from {invite_owner_email}. Note that all the changes you've made to this document will be lost.",
        "es": "Est\u00e1s a punto de rechazar para firmar {document_name} de {invite_owner_email}. Ten en cuenta en cuenta que todos los cambios que hayas realizado en este documento se perder\u00e1n.",
        "fr": "Vous \u00eates sur le point de refuser de signer {document_name} de {invite_owner_email}. Notez que toutes les modifications que vous avez apport\u00e9es \u00e0 ce document seront perdues."
      }
    },
    "general": {
      "icons": {
        "color": "#546470",
        "border": "#ffffff",
        "background": "#ffffff",
        "hover-color": "#546470",
        "hover-border": "#f1f2f4",
        "hover-background": "#f1f2f4"
      },
      "texts": {
        "color": "#2f373e"
      },
      "header": {
        "background": "#ffffff"
      },
      "buttons": {
        "default": {
          "color": "#546470",
          "border": "#ffffff",
          "background": "#ffffff",
          "hover-color": "#546470",
          "active-color": "#546470",
          "hover-border": "#f1f2f4",
          "active-border": "#ffffff",
          "hover-background": "#f1f2f4",
          "active-background": "#ffffff"
        },
        "primary": {
          "color": "#ffffff",
          "border": "#0777cf",
          "background": "#0777cf",
          "hover-color": "#ffffff",
          "active-color": "#ffffff",
          "hover-border": "#348fd7",
          "active-border": "#003458",
          "hover-background": "#348fd7",
          "active-background": "#076dbd"
        },
        "dropdown": {
          "color": "#546470",
          "border": "#ffffff",
          "background": "#ffffff",
          "hover-color": "#546470",
          "active-color": "#546470",
          "hover-border": "#f1f2f4",
          "active-border": "#ffffff",
          "hover-background": "#f1f2f4",
          "active-background": "#ffffff"
        },
        "secondary": {
          "color": "#38424b",
          "border": "#e3e6e9",
          "background": "#e3e6e9",
          "hover-color": "#38424b",
          "active-color": "#38424b",
          "hover-border": "#f1f2f4",
          "active-border": "#d5dade",
          "hover-background": "#f1f2f4",
          "active-background": "#d5dade"
        }
      },
      "hyperlink": {
        "color": "#546470",
        "hover-color": "#667988",
        "active-color": "#4b5963"
      },
      "help-center": {
        "visibility": true
      },
      "consent-text": {
        "en": "{sender_email} has invited you to fill out and sign this in one place.",
        "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
        "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
      },
      "main-background": "#efefef",
      "welcome-message": {
        "body-text": {
          "en": "{sender_email} has invited you to fill out and sign this in one place.",
          "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
          "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
        },
        "visibility": true,
        "header-text": {
          "en": "Hi, {signer_email}",
          "es": "Hola, {signer_email}",
          "fr": "Bonjour, {signer_email}"
        }
      }
    },
    "email-logo": {
      "url": "https://marketing-static.signnow.com/36/images/global/png/sign-now-logo-blue@2x.png"
    },
    "send-invite": {
      "from": {
        "visibility": true
      },
      "header": {
        "visibility": true
      },
      "settings": {
        "visibility": true
      },
      "cc-recipients": {
        "visibility": true
      },
      "preview-panel": {
        "background": "#f6f8fb",
        "visibility": true
      },
      "settings-panel": {
        "background": "#ffffff"
      },
      "request-payment": {
        "visibility": true
      },
      "customize-message": {
        "visibility": true
      },
      "actions-on-completion": {
        "visibility": true
      }
    },
    "email-invite": {
      "en": {
        "from": "Sender Name",
        "subject": "Needs Your Signature",
        "expiration": "This invite will expire in {days} days",
        "body_header": "You were invited to review and sign a document",
        "body_message": "You\u2019ve been invited to fill out and sign the {document_name} document.",
        "footer_message": ""
      },
      "es": {
        "from": "Nombre del remitente",
        "subject": "Necesita tu firma",
        "expiration": "Esta invitaci\u00f3n dejar\u00e1 de ser v\u00e1lida en {days} d\u00edas",
        "body_header": "Te han invitado a revisar y firmar un documento",
        "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
        "footer_message": ""
      },
      "fr": {
        "from": "Nom de l'exp\u00e9diteur",
        "subject": "A besoin de votre signature",
        "expiration": "Cette invitation expirera dans {days} jours",
        "body_header": "Vous avez \u00e9t\u00e9 invit\u00e9 \u00e0 v\u00e9rifier et signer un document",
        "body_message": "Vous invite \u00e0 compl\u00e9ter et signer le document {document_name}.",
        "footer_message": ""
      }
    },
    "email-general": {
      "ccd": {
        "visibility": true
      },
      "logo": {
        "position": "left"
      },
      "buttons": {
        "color": "#ffffff",
        "background": "#0777cf"
      },
      "sender_email": "mail@signnow.com",
      "contact_sender": {
        "visibility": true
      },
      "secondary_buttons": {
        "color": "#38424b",
        "background": "#e3e6e9"
      },
      "signnow_references": true,
      "hide_download_image": false
    },
    "email-cc-invite": {
      "en": {
        "from": "Sender Name",
        "subject": "{sender_email} has CC'd you on an invitation",
        "body_header": "{sender_email} has CC'd you on an invitation",
        "ccd_message": "You have been CC\u2019d on this invitation along with {cc_emails}.",
        "body_message": "{sender_email} has invited {signer_email} to review and sign: {document_name}.",
        "footer_message": ""
      },
      "es": {
        "from": "Nombre del remitente",
        "subject": "{sender_email} te ha puesto en copia en una invitaci\u00f3n",
        "body_header": "{sender_email} te ha puesto en copia en una invitaci\u00f3n",
        "ccd_message": "Se te ha copiado en esta invitaci\u00f3n junto con {cc_emails}.",
        "body_message": "{sender_email} ha invitado a {signer_email} a revisar y firmar: {document_name}.",
        "footer_message": ""
      },
      "fr": {
        "from": "Nom de l'exp\u00e9diteur",
        "subject": "{sender_email} vous a mis en copie d'une invitation",
        "body_header": "{sender_email} vous a mis en copie d'une invitation",
        "ccd_message": "Vous avez \u00e9t\u00e9 mis en copie de cette invitation avec {cc_emails}.",
        "body_message": "{sender_email} a invit\u00e9 {signer_email} \u00e0 examiner et signer: {document_name}.",
        "footer_message": ""
      }
    },
    "email-invite-canceled": {
      "en": {
        "from": "Sender Name",
        "subject": "Has canceled the document invite",
        "body_header": "Document Invite Canceled",
        "body_message": "The invitation for {document_name} document was canceled",
        "footer_message": ""
      },
      "es": {
        "from": "Nombre del remitente",
        "subject": "Cancel\u00f3 la invitaci\u00f3n al documento",
        "body_header": "Invitaci\u00f3n a documento cancelada",
        "body_message": "La invitaci\u00f3n al documento {document_name} fue cancelada",
        "footer_message": ""
      },
      "fr": {
        "from": "Nom de l'exp\u00e9diteur",
        "subject": "A annul\u00e9 l'invitation au document",
        "body_header": "Invitation de document annul\u00e9e",
        "body_message": "L\u2019invitation pour le document {document_name} a \u00e9t\u00e9 annul\u00e9e",
        "footer_message": ""
      }
    },
    "email-invite-reassign": {
      "en": {
        "from": "Sender Name",
        "subject": "Needs Your Signature",
        "expiration": "This invite will expire in {days} days",
        "body_header": "You were invited to review and sign a document",
        "body_message": "You\u2019ve been invited to fill out and sign the {document_name} document.",
        "footer_message": "",
        "forward_message": "This message is forwarded by {email_from}"
      },
      "es": {
        "from": "Nombre del remitente",
        "subject": "Necesita tu firma",
        "expiration": "Esta invitaci\u00f3n dejar\u00e1 de ser v\u00e1lida en {days} d\u00edas",
        "body_header": "Te han invitado a revisar y firmar un documento",
        "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
        "footer_message": "",
        "forward_message": "Este mensaje ha sido enviado por {email_from}"
      },
      "fr": {
        "from": "Nom de l'exp\u00e9diteur",
        "subject": "A besoin de votre signature",
        "expiration": "Cette invitation expirera dans {days} jours",
        "body_header": "Vous avez \u00e9t\u00e9 invit\u00e9 \u00e0 v\u00e9rifier et signer un document",
        "body_message": "Vous invite \u00e0 compl\u00e9ter et signer le document {document_name}.",
        "footer_message": "",
        "forward_message": "Ce message est transf\u00e9r\u00e9 par {email_from}"
      }
    },
    "email-invite-reminder": {
      "en": {
        "from": "Sender Name",
        "subject": "Reminder: {document_name}: Signature Request",
        "expiration": "This invite will expire in {days} days",
        "body_header": "You were invited to review and sign a document",
        "body_message": "You\u2019ve been invited to fill out and sign the {document_name} document.",
        "footer_message": ""
      },
      "es": {
        "from": "Nombre del remitente",
        "subject": "Recordatorio: {document_name}: Solicitud de firma",
        "expiration": "Esta invitaci\u00f3n dejar\u00e1 de ser v\u00e1lida en {days} d\u00edas",
        "body_header": "Te han invitado a revisar y firmar un documento",
        "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
        "footer_message": ""
      },
      "fr": {
        "from": "Nom de l'exp\u00e9diteur",
        "subject": "Rappel: {document_name}: demande de signature",
        "expiration": "Cette invitation expirera dans {days} jours",
        "body_header": "Vous avez \u00e9t\u00e9 invit\u00e9 \u00e0 v\u00e9rifier et signer un document",
        "body_message": "Vous invite \u00e0 compl\u00e9ter et signer le document {document_name}.",
        "footer_message": ""
      }
    },
    "email-cc-invite-signed": {
      "en": {
        "from": "Sender Name",
        "subject": "{signer_email} Has Signed Document",
        "body_header": "{signer_email} has completed an invitation you were CC\u2019d on",
        "ccd_message": "You have been CC\u2019d on this invitation along with {cc_emails}.",
        "body_message": "{signer_email} has completed and signed {document_name} sent by {sender_email}.",
        "footer_message": ""
      },
      "es": {
        "from": "Nombre del remitente",
        "subject": "{signer_email} ha firmado el documento",
        "body_header": "{signer_email} ha completado una invitaci\u00f3n en la que estabas en CC",
        "ccd_message": "Se te ha copiado en esta invitaci\u00f3n junto con {cc_emails}.",
        "body_message": "{signer_email} ha completado y firmado {document_name} enviado por {sender_email}.",
        "footer_message": ""
      },
      "fr": {
        "from": "Nom de l'exp\u00e9diteur",
        "subject": "{signer_email} a sign\u00e9 le document",
        "body_header": "{signer_email} a compl\u00e9t\u00e9 une invitation dans laquelle vous \u00e9tiez en CC",
        "ccd_message": "Vous avez \u00e9t\u00e9 mis en copie de cette invitation avec {cc_emails}.",
        "body_message": "{signer_email} a rempli et sign\u00e9 {document_name} envoy\u00e9 par {sender_email}.",
        "footer_message": ""
      }
    },
    "email-invite-completed": {
      "en": {
        "from": "Sender Name",
        "subject": "{document_name} Has Been Completed",
        "body_header": "You filled out and signed a document",
        "body_message": "You\u2019ve filled out and signed the {document_name} document. Follow the link below to view and download the document.",
        "footer_message": ""
      },
      "es": {
        "from": "Nombre del remitente",
        "subject": "{document_name} Se ha completado",
        "body_header": "Has rellenado y firmado un documento",
        "body_message": "Has rellenado y firmado el documento {document_name}. Haz clic en el siguiente enlace para ver y descargar el documento.",
        "footer_message": ""
      },
      "fr": {
        "from": "Nom de l'exp\u00e9diteur",
        "subject": "{document_name} A \u00e9t\u00e9 finalis\u00e9",
        "body_header": "Vous avez rempli et sign\u00e9 un document",
        "body_message": "Vous avez rempli et sign\u00e9 le document {document_name}. Suivez le lien ci-dessous pour consulter et t\u00e9l\u00e9charger le document.",
        "footer_message": ""
      }
    },
    "email-cc-invite-reassign": {
      "en": {
        "from": "Sender Name",
        "subject": "{sender_email} has CC'd you on an invitation",
        "body_header": "An invitation you were CC'd on was forwarded to another recipient",
        "ccd_message": "You have been CC\u2019d on this invitation along with {cc_emails}.",
        "body_message": "An invitation you were CC\u2019d on has been forwarded. {old_signer_email} has shared their invitation with {new_signer_email} to complete and sign {document_name} from {sender_email}.",
        "footer_message": ""
      },
      "es": {
        "from": "Nombre del remitente",
        "subject": "{sender_email} te ha puesto en CC en una invitaci\u00f3n",
        "body_header": "Una invitaci\u00f3n en la que estabas en CC fue reenviada a otro destinatario",
        "ccd_message": "Se te ha copiado en esta invitaci\u00f3n junto con {cc_emails}.",
        "body_message": "Una invitaci\u00f3n en la que estabas en CC fue reenviada. {old_signer_email} comparti\u00f3 su invitaci\u00f3n con {new_signer_email} para completar y firmar {document_name} de parte de {sender_email}.",
        "footer_message": ""
      },
      "fr": {
        "from": "Nom de l'exp\u00e9diteur",
        "subject": "{sender_email} vous a mis en CC dans une invitation",
        "body_header": "Une invitation dans laquelle vous \u00e9tiez en CC a \u00e9t\u00e9 transf\u00e9r\u00e9e \u00e0 un autre destinataire",
        "ccd_message": "Vous avez \u00e9t\u00e9 mis en copie de cette invitation avec {cc_emails}.",
        "body_message": "Une invitation dans laquelle vous \u00e9tiez en CC a \u00e9t\u00e9 transf\u00e9r\u00e9e. {old_signer_email} a partag\u00e9 son invitation avec {new_signer_email} pour la remplir et la signer {document_name} de la part de {sender_email}.",
        "footer_message": ""
      }
    },
    "email-cc-invite-completed": {
      "en": {
        "from": "Sender Name",
        "subject": "{document_name} Has Been Completed",
        "body_header": "All recipients have completed an invitation you were CC\u2019d on",
        "ccd_message": "You have been CC\u2019d on this invitation along with {cc_emails}.",
        "body_message": "All recipients have completed and signed {document_name} sent by {sender_email}.",
        "footer_message": ""
      },
      "es": {
        "from": "Nombre del remitente",
        "subject": "{document_name} se ha completado",
        "body_header": "Todos los destinatarios han completado una invitaci\u00f3n en la que estabas en copia",
        "ccd_message": "Se te ha copiado en esta invitaci\u00f3n junto con {cc_emails}.",
        "body_message": "Todos los destinatarios han completado y firmado {document_name} enviado por {sender_email}.",
        "footer_message": ""
      },
      "fr": {
        "from": "Nom de l'exp\u00e9diteur",
        "subject": "{document_name} a \u00e9t\u00e9 finalis\u00e9",
        "body_header": "Tous les destinataires ont compl\u00e9t\u00e9 une invitation \u00e0 laquelle vous avez \u00e9t\u00e9 en copie",
        "ccd_message": "Vous avez \u00e9t\u00e9 mis en copie de cette invitation avec {cc_emails}.",
        "body_message": "Tous les destinataires ont rempli et sign\u00e9 {document_name} envoy\u00e9 par {sender_email}.",
        "footer_message": ""
      }
    },
    "email-cc-invite-step-completed": {
      "en": {
        "from": "Sender Name",
        "subject": "Step completion email for document: {document_name}",
        "body_header": "All recipients have completed step {step_number} of an invitation you were CC\u2019d on",
        "ccd_message": "You have been CC\u2019d on this invitation along with {cc_emails}.",
        "body_message": "All recipients have successfully completed step {step_number} of the document process via signNow.",
        "footer_message": ""
      },
      "es": {
        "from": "Nombre del remitente",
        "subject": "Correo electr\u00f3nico de finalizaci\u00f3n del paso para el documento: {document_name}",
        "body_header": "Todos los destinatarios han completado el paso {step_number} de una invitaci\u00f3n en la que fuiste incluido en CC",
        "ccd_message": "Se te ha copiado en esta invitaci\u00f3n junto con {cc_emails}.",
        "body_message": "Todos los destinatarios han completado con \u00e9xito el paso {step_number} del proceso del documento a trav\u00e9s de signNow.",
        "footer_message": ""
      },
      "fr": {
        "from": "Nom de l'exp\u00e9diteur",
        "subject": "E-mail de fin d`\u00e9tape pour le document: {document_name}",
        "body_header": "Tous les destinataires ont compl\u00e9t\u00e9 l'\u00e9tape {step_number} d'une invitation dans laquelle vous avez \u00e9t\u00e9 mis en copie",
        "ccd_message": "Vous avez \u00e9t\u00e9 mis en copie de cette invitation avec {cc_emails}.",
        "body_message": "Tous les destinataires ont compl\u00e9t\u00e9 avec succ\u00e8s l'\u00e9tape {step_number} du processus du document via signNow.",
        "footer_message": ""
      }
    }
  }
}
```

### 400

* Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/template-file" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/brands/upload-file — Create brand from template file

This endpoint allows API users to upload a template in JSON/XML file with brand settings and current resources.

Get the up-to-date template file [here](/docs/general-branding/operations/get-v2-brands-template-file). 

Assign the created brand ID to any of these levels: 

* [Brand your documents](/docs/general-branding/operations/put-v2-documents-document-id-brand). 
* [Brand your document groups](/docs/general-branding/operations/put-v2-document-groups-document-group-id-brand). 
* [Brand your applications](/docs/general-branding/operations/put-v2-applications-application-id-brand). 
 
The template structure consists of two required objects: 

* `title`: a string parameter with a brand title. 
* `resources`: an array of objects with the list of resources and their properties. 

Example schema:

```
{
    "title": "some brand title",
    "resources": [
        "general": {...},
        "editor": {...},
        "send-invite": {...},
        "logo": {...},
        "email-general": {...},
        "email-invite": {...},
        ...
    ]
}

```

**Notes**

* The `body_message` and `footer_message` of email and CC email resources accept basic HTML. If a value has a tag outside the allowed list, a tag with an attribute, an unclosed or misnested tag, or an HTML comment, the request returns `400` and the brand isn't created. For the rules, see [Format text with HTML](/docs/branding-email-resources#format-text-with-html).

## Authorization

bearer

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | multipart/form-data |

## Form Data Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `file` | file | Yes | @/path/to/your/file.json |

## Responses

### 201

The brand was created from the file.

**Example** (`Successful response`)

```json
{
  "data": {
    "id": "47fb8d89da79f689ee64dcafa4606a1cdbd96233"
  }
}
```

### 400

* Incorrect or missing token.
* Template file missing.
* Template file is empty.
* JSON is empty.
* Resources parameter is missing.
* Incorrect file format.
* Incorrect JSON format.
* `resources` is not an array.
* `resources` array is empty.
* `general` is not an array.
* `general` array is empty.
* `editor` is not an array.
* `editor` array is empty.
* `logo` is not an array.
* `logo` array is empty.
* `email-logo` is not an array.
* `email-logo` is empty.
* Missing `email-logo.url`.
* Incorrect `email-logo.url`.
* `email-logo.url` is not a string.
* `email-logo.url` does not contain an image.
* `email-logo.url` contains an image that cannot be downloaded.
* `email-logo.url` contains an image that is too big.
* Missing `logo.url`.
* Incorrect `logo.url`.
* `logo.url` is not a string.
* `logo.url` does not contain an image.
* `logo.url` contains an image that cannot be downloaded.
* `logo.url` contains an image that is too big.
* `email-invite` is not an array.
* `email-invite` array is empty.
* `email-invite-reassign` is not an array.
* `email-invite-reassign` array is empty.
* `email-invite-completed` is not an array.
* `email-invite-completed` array is empty.
* `email-invite-canceled` is not an array.
* `email-invite-canceled` array is empty.
* `email-invite-reminder` is not an array.
* `email-invite-reminder` array is empty.
* `email-general` is not an array.
* `email-general` array is empty.
* `title` is missing.
* `title` is empty.
* `title` not string.
* `title` is longer than 100 characters.
* Unexpected resources.
* Send invite resource parameter validation errors.
* Editor resource parameter validation errors.
* General resource parameter validation errors.
* Email resource parameter validation errors, including HTML that is not allowed in `body_message` or `footer_message`.

**Example** (`Empty JSON`)

```json
{
  "code": 25002122,
  "message": "Empty JSON provided."
}
```

**Example** (`Missing title`)

```json
{
  "code": 25002113,
  "message": "The `title` is required."
}
```

**Example** (`logo not array`)

```json
{
  "code": 25002101,
  "message": "The `resources.logo` must be an array."
}
```

**Example** (`editor not array`)

```json
{
  "code": 25002099,
  "message": "The `resources.editor` must be an array."
}
```

**Example** (`title not string`)

```json
{
  "code": 25002115,
  "message": "The `title` must be a string."
}
```

**Example** (`Missing resources`)

```json
{
  "code": 25002123,
  "message": "The `resources` is required."
}
```

**Example** (`general not array`)

```json
{
  "code": 25002097,
  "message": "The `resources.general` must be an array."
}
```

**Example** (`Missing `logo.url``)

```json
{
  "code": 25002128,
  "message": "The `url` is required."
}
```

**Example** (`Empty template file`)

```json
{
  "code": 25002133,
  "message": "An empty file is not allowed."
}
```

**Example** (`logo.url not string`)

```json
{
  "code": 25002132,
  "message": "The `url` should be a string."
}
```

**Example** (`resources not array`)

```json
{
  "code": 25002095,
  "message": "The `resources` must be an array."
}
```

**Example** (`Unexpected resources`)

```json
{
  "code": 25002117,
  "message": "The \"test\" was not expected in `resources` field."
}
```

**Example** (`email-logo not array`)

```json
{
  "code": 25002125,
  "message": "The `resources.email-logo` must not be an empty array."
}
```

**Example** (`Incorrect JSON format`)

```json
{
  "code": 25002002,
  "message": "Invalid payload given."
}
```

**Example** (`Incorrect file format`)

```json
{
  "code": 25002120,
  "message": "The mime type of the file is invalid"
}
```

**Example** (`Missing template file`)

```json
{
  "code": 25002118,
  "message": "Brand file is required."
}
```

**Example** (`Missing email-logo.url`)

```json
{
  "code": 25002128,
  "message": "The `url` is required."
}
```

**Example** (`email-invite not array`)

```json
{
  "code": 25002103,
  "message": "The `resources.email-invite` must be an array."
}
```

**Example** (`email-general not array`)

```json
{
  "code": 25002126,
  "message": "The `resources.email-general` must be an array."
}
```

**Example** (`email-logo.url not string`)

```json
{
  "code": 25002132,
  "message": "The `url` should be a string."
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`resources.send-invite is empty`)

```json
{
  "code": 25002353,
  "message": "The `resources.send-invite` must not be an empty array."
}
```

**Example** (`body_message has disallowed tag`)

```json
{
  "errors": [
    [
      {
        "code": 25002384,
        "message": "The 'body_message' attribute contains HTML that is not allowed: <div>."
      }
    ]
  ]
}
```

**Example** (`email-invite-canceled not array`)

```json
{
  "code": 25002109,
  "message": "The `resources.email-invite-canceled` must be an array."
}
```

**Example** (`email-invite-reassign not array`)

```json
{
  "code": 25002105,
  "message": "The `resources.email-invite-reassign` must be an array."
}
```

**Example** (`email-invite-reminder not array`)

```json
{
  "code": 25002111,
  "message": "The `resources.email-invite-reminder` must be an array."
}
```

**Example** (`email-invite-completed not array`)

```json
{
  "code": 25002107,
  "message": "The `resources.email-invite-completed` must be an array."
}
```

**Example** (`Request body incorrect or missing`)

```json
{
  "code": 25002002,
  "message": "Invalid payload given."
}
```

**Example** (`footer_message has disallowed tag`)

```json
{
  "errors": [
    [
      {
        "code": 25002383,
        "message": "The 'footer_message' attribute contains HTML that is not allowed: <div>."
      }
    ]
  ]
}
```

**Example** (`resources.send-invite not an array`)

```json
{
  "code": 25002352,
  "message": "The `resources.send-invite` must be an array."
}
```

**Example** (`continue-button.visibility not boolean`)

```json
{
  "errors": [
    [
      {
        "code": 25002292,
        "message": "The `continue-button.visibility` must be a boolean."
      }
    ]
  ]
}
```

### 403

The user is authorized with a token from an app they don’t own.

**Example** (`Brand action not allowed`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/brands/upload-file" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## PUT /v2/brands/{brand_id}/resources/send-invite — Create and edit send invite brand resource

This endpoint allows users to create and update a brand resource for the Send Invite page.

Learn more about the [send invite brand resource](/docs/branding-send-invite-resource).

Note: to create a send invite resource for a brand, you need to own the brand.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "from": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether to show the From field."
        }
      },
      "description": "Configuration of the From field."
    },
    "header": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether to show the header."
        }
      },
      "description": "Configuration of the header."
    },
    "settings": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether to show the settings (gear icon)."
        }
      },
      "description": "Configuration of the settings button (gear icon)."
    },
    "cc-recipients": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether to show the CC recipients field."
        }
      },
      "description": "Configuration of the CC recipients field."
    },
    "preview-panel": {
      "type": "object",
      "properties": {
        "background": {
          "type": "string",
          "description": "Background color of the preview panel in HEX color code. "
        },
        "visibility": {
          "type": "boolean",
          "description": "Whether to show the preview panel."
        }
      },
      "description": "Configuration of the preview panel."
    },
    "settings-panel": {
      "type": "object",
      "properties": {
        "background": {
          "type": "string",
          "description": "Background color of the settings panel in HEX color code."
        }
      },
      "description": "Configuration of the settings panel."
    },
    "request-payment": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether to show the Add Payment Request link on the Send Invite page and the Request a Payment toggle in Advanced Options (More > Advanced Options)."
        }
      },
      "description": "Configuration of the Add Payment Request link and Request a Payment option."
    },
    "customize-message": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether to show the Customize Message button."
        }
      },
      "description": "Configuration of the Customize Message button."
    }
  },
  "x-examples": {
    "Example 1": {
      "from": {
        "visibility": true
      },
      "header": {
        "visibility": true
      },
      "settings": {
        "visibility": true
      },
      "cc-recipients": {
        "visibility": true
      },
      "preview-panel": {
        "background": "#f6f8fb",
        "visibility": true
      },
      "settings-panel": {
        "background": "#ffffff"
      },
      "request-payment": {
        "visibility": true
      },
      "customize-message": {
        "visibility": true
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "from": {
    "visibility": true
  },
  "header": {
    "visibility": true
  },
  "settings": {
    "visibility": true
  },
  "cc-recipients": {
    "visibility": true
  },
  "preview-panel": {
    "background": "#f6f8fb",
    "visibility": true
  },
  "settings-panel": {
    "background": "#ffffff"
  },
  "request-payment": {
    "visibility": true
  },
  "customize-message": {
    "visibility": true
  }
}
```

## Responses

### 204

Success, no content

### 400

- Incorrect or missing token.
- Request body is incorrect or missing.
- The `header` is not an array.
- The `header.visibility` is not a boolean.
- The `from` is not an array.
- The `from.visibility` is not a boolean.
- The `settings` is not an array.
- The `settings.visibility` is not a boolean.
- The `customize-message` is not an array.
- The `customize-message`.visibility is not a boolean.
- The `request-payment` is not an array.
- The `request-payment.visibility` is not a boolean.
- The `cc-recipients` is not an array.
- The `cc-recipients.visibility` is not a boolean.
- The `settings-panel` is not an array.
- The `settings-panel.background` is not a string.
- The `settings-panel.background` is missing.
- The `settings-panel.background` format is incorrect.
- The `preview-panel` is not an array.
- The `preview-panel.visibility` is not a boolean.
- The `preview-panel.background` is not a string.
- The `preview-panel.background` is missing.
- The `preview-panel.background` format is incorrect.


**Example** (`header not an array`)

```json
{
  "code": 25002329,
  "message": "The 'header' field must be an array."
}
```

**Example** (`from is not an array`)

```json
{
  "code": 25002331,
  "message": "The 'from' field must be an array."
}
```

**Example** (`settings is not an array`)

```json
{
  "code": 25002333,
  "message": "The 'settings' field must be an array."
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`cc-recipients is not an array`)

```json
{
  "code": 25002339,
  "message": "The 'cc-recipients' field must be an array."
}
```

**Example** (`preview-panel is not an array`)

```json
{
  "code": 25002347,
  "message": "The 'preview-panel' field must be an array."
}
```

**Example** (`settings-panel is not an array`)

```json
{
  "code": 25002343,
  "message": "The 'settings-panel' field must be an array."
}
```

**Example** (`request-payment is not an array`)

```json
{
  "code": 25002337,
  "message": "The 'request-payment' field must be an array."
}
```

**Example** (`from.visibility is not a boolean`)

```json
{
  "code": 25002332,
  "message": "The 'from.visibility' field must be a boolean."
}
```

**Example** (`Request body incorrect or missing`)

```json
{
  "code": 25002002,
  "message": "Invalid payload given."
}
```

**Example** (`customize-message is not an array`)

```json
{
  "code": 25002335,
  "message": "The 'customize-message' field must be an array."
}
```

**Example** (`header.visibility is not a boolean`)

```json
{
  "code": 25002330,
  "message": "The 'header.visibility' field must be a boolean."
}
```

**Example** (`preview-panel.background is missing`)

```json
{
  "code": 25002350,
  "message": "The 'preview-panel.background' field is required."
}
```

**Example** (`settings-panel.background is missing`)

```json
{
  "code": 25002345,
  "message": "The 'settings-panel.background' field is required."
}
```

**Example** (`settings.visibility is not a boolean`)

```json
{
  "code": 25002334,
  "message": "The 'settings.visibility' field must be a boolean."
}
```

**Example** (`preview-panel.background is not a string`)

```json
{
  "code": 25002349,
  "message": "The 'preview-panel.background' field must be a string."
}
```

**Example** (`cc-recipients.visibility is not a boolean`)

```json
{
  "code": 25002340,
  "message": "The 'cc-recipients.visibility' field must be a boolean."
}
```

**Example** (`preview-panel.visibility is not a boolean`)

```json
{
  "code": 25002348,
  "message": "The 'preview-panel.visibility' field must be a boolean."
}
```

**Example** (`settings-panel.background is not a string`)

```json
{
  "code": 25002344,
  "message": "The 'settings-panel.background' field must be a string."
}
```

**Example** (`settings-panel.background format incorrect`)

```json
{
  "code": 25002346,
  "message": "The 'settings-panel.background' field format is invalid."
}
```

**Example** (`request-payment.visibility is not a boolean`)

```json
{
  "code": 25002338,
  "message": "The 'request-payment.visibility' field must be a boolean."
}
```

**Example** (`preview-panel.background format is incorrect`)

```json
{
  "code": 25002351,
  "message": "The 'preview-panel.background' field format is invalid."
}
```

**Example** (`customize-message.visibility is not a boolean`)

```json
{
  "code": 25002336,
  "message": "The 'customize-message.visibility' field must be a boolean."
}
```

### 403

- Request with a valid bearer token from another user logged in.
- The user is authorized with a token from an app they don’t own.

**Example** (`No access to brand`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own brand`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

### 404

- Brand with this `brand_id` doesn't exist.
- Missing or incorrect brand_id.

**Example** (`Brand not found`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Incorrect brand_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/brand/null/editor"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/send-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"from": {"visibility": true}, "header": {"visibility": true}, "settings": {"visibility": true}, "cc-recipients": {"visibility": true}, "preview-panel": {"background": "#f6f8fb", "visibility": true}, "settings-panel": {"background": "#ffffff"}, "request-payment": {"visibility": true}, "customize-message": {"visibility": true}}'
```

---

## GET /v2/brands/{brand_id}/resources/send-invite — Get send invite brand resource

This endpoint allows API users to retrieve the send invite resource of a brand.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "data": {
    "from": {
      "visibility": true
    },
    "header": {
      "visibility": true
    },
    "settings": {
      "visibility": true
    },
    "cc-recipients": {
      "visibility": true
    },
    "preview-panel": {
      "background": "#f6f8fb",
      "visibility": true
    },
    "settings-panel": {
      "background": "#ffffff"
    },
    "request-payment": {
      "visibility": true
    },
    "customize-message": {
      "visibility": true
    }
  }
}
```

### 400

* Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

- Request with a valid bearer token from another user logged in.
- The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the brand`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed."
    }
  ]
}
```

### 404

- Brand with this `brand_id` doesn't exist.
- Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: send-invite."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/send-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/brands/{brand_id}/resources/send-invite — Delete send invite brand resource

This endpoint allows users to delete the send invite brand resource.


## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

- Request with a valid bearer token from another user logged in.
- The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the brand`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

### 404

- Brand with this `brand_id` doesn't exist.
- Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: general."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/send-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/brands/{brand_id}/resources/email-invite-canceled — Add and edit branding for canceled invite emails

This endpoint allows users to add and edit branding for the emails that signer or signers receive when a sender cancels an invite.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "en": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom text indicating sender."
        },
        "subject": {
          "type": "string",
          "description": "Email subject text. Placeholder `{document_name}` is available."
        },
        "body_header": {
          "type": "string",
          "maxLength": 300,
          "description": "Email header text."
        },
        "body_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Email body text. Placeholder `{document_name}` is available. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `300` characters, including tags."
        },
        "footer_message": {
          "type": "string",
          "maxLength": 4096,
          "description": "Email footer text. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `4096` characters, including tags."
        }
      },
      "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/branding-email-resources#language-branding)."
    }
  },
  "x-examples": {
    "Example 1": {
      "en": {
        "from": "from_email@email.com",
        "subject": "My custom subject {document_name}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      },
      "es": {
        "from": "from_email@email.com",
        "subject": "My custom subject {document_name}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      },
      "fr": {
        "from": "from_email@email.com",
        "subject": "My custom subject {document_name}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "en": {
    "from": "Sender Name",
    "subject": "Has canceled the document invite",
    "body_header": "Document Invite Canceled",
    "body_message": "<p>The invitation for <b>{document_name}</b> document was canceled</p>",
    "footer_message": "<p><b>Unique Solutions Inc.</b></p>"
  },
  "es": {
    "from": "Nombre del remitente",
    "subject": "Cancel\u00f3 la invitaci\u00f3n al documento",
    "body_header": "Invitaci\u00f3n a documento cancelada",
    "body_message": "La invitaci\u00f3n al documento {document_name} fue cancelada",
    "footer_message": "Unique Solutions Inc."
  },
  "fr": {
    "from": "Nom de l'exp\u00e9diteur",
    "subject": "A annul\u00e9 l'invitation au document",
    "body_header": "Invitation de document annul\u00e9e",
    "body_message": "L\u2019invitation pour le document {document_name} a \u00e9t\u00e9 annul\u00e9e",
    "footer_message": "Unique Solutions Inc."
  }
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* `subject` is not a string.
* `subject` is longer than 300 characters.
* `body_header` is not a string.
* `body_header` is longer than 300 characters.
* `body_message` is not a string.
* `body_message` is longer than 300 characters.
* `body_message` contains HTML that is not allowed: a tag outside the allowed list, a tag with an attribute, an unclosed or misnested tag, or an HTML comment.
* `footer_message` is not a string.
* `footer_message` is longer than 4096 characters.
* `footer_message` contains HTML that is not allowed.
* `from` is not a string.
* `from` is longer than 300 characters.
* Incorrect placeholder found.

**Example** (`from too long`)

```json
{
  "errors": [
    {
      "code": 25002072,
      "message": "The 'from' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`from not string`)

```json
{
  "errors": [
    {
      "code": 25002050,
      "message": "The 'from' attribute must be a string."
    }
  ]
}
```

**Example** (`subject too long`)

```json
{
  "errors": [
    {
      "code": 25002058,
      "message": "The 'subject' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`subject not string`)

```json
{
  "errors": [
    {
      "code": 25002049,
      "message": "The 'subject' attribute must be a string."
    }
  ]
}
```

**Example** (`body_header too long`)

```json
{
  "errors": [
    {
      "code": 25002059,
      "message": "The 'body_header' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`Incorrect placeholder`)

```json
{
  "errors": [
    {
      "code": 25002081,
      "message": "Invalid placeholder found, expected {document_name}, {invite_email}."
    }
  ]
}
```

**Example** (`body_message too long`)

```json
{
  "errors": [
    {
      "code": 25002060,
      "message": "The 'body_message' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`body_header not string`)

```json
{
  "errors": [
    {
      "code": 25002052,
      "message": "The 'body_header' attribute must be a string."
    }
  ]
}
```

**Example** (`body_message not string`)

```json
{
  "errors": [
    {
      "code": 25002053,
      "message": "The 'body_message' attribute must be a string."
    }
  ]
}
```

**Example** (`footer_message too long`)

```json
{
  "errors": [
    {
      "code": 25002061,
      "message": "The 'footer_message' attribute must not exceed 4096 characters."
    }
  ]
}
```

**Example** (`footer_message not string`)

```json
{
  "errors": [
    {
      "code": 25002054,
      "message": "The 'footer_message' attribute must be a string."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`body_message has unclosed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: unclosed <b>."
    }
  ]
}
```

**Example** (`body_message has tag attribute`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <p style>."
    }
  ]
}
```

**Example** (`body_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

**Example** (`footer_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002383,
      "message": "The 'footer_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Missing or incorrect `brand_id`.

**Example** (`Brand doesn't exist`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Missing or incorrect brand_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/brand/null/email-invite-canceled"
}
```

### 422

Language is not an array.

**Example** (`Missing language settings`)

```json
{
  "errors": [
    {
      "code": 25002093,
      "message": "Invalid payload. Expected pair of languages with their settings."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-invite-canceled" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"en": {"from": "Sender Name", "subject": "Has canceled the document invite", "body_header": "Document Invite Canceled", "body_message": "<p>The invitation for <b>{document_name}</b> document was canceled</p>", "footer_message": "<p><b>Unique Solutions Inc.</b></p>"}, "es": {"from": "Nombre del remitente", "subject": "Cancel\u00f3 la invitaci\u00f3n al documento", "body_header": "Invitaci\u00f3n a documento cancelada", "body_message": "La invitaci\u00f3n al documento {document_name} fue cancelada", "footer_message": "Unique Solutions Inc."}, "fr": {"from": "Nom de l'\''exp\u00e9diteur", "subject": "A annul\u00e9 l'\''invitation au document", "body_header": "Invitation de document annul\u00e9e", "body_message": "L\u2019invitation pour le document {document_name} a \u00e9t\u00e9 annul\u00e9e", "footer_message": "Unique Solutions Inc."}}'
```

---

## GET /v2/brands/{brand_id}/resources/email-invite-canceled — Get email canceled resource

This endpoint allows API users to get the `email-invite-canceled` brand resource.

**Notes**

* The response contains only the languages and fields saved for the brand. Fields that were never set are omitted.
* If the brand has no `email-invite-canceled` resource, the endpoint returns `404` with code `25002036`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Email branding of the brand resource, grouped by language. Only the languages and fields saved for the brand are returned.

**Example** (`Successful response`)

```json
{
  "data": {
    "en": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    },
    "es": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    },
    "fr": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    }
  }
}
```

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: email-invite-canceled."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-invite-canceled" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/brands/{brand_id}/resources/email-invite-canceled — Delete email canceled resource

This endpoint allows users to delete brand resource email-invite-canceled.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: email-invite-canceled."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-invite-canceled" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/brands/{brand_id}/resources/email-invite-completed — Add and edit branding for completed emails

This endpoint allows users to add and edit branding for the emails that inform signer or signers about the invite having been completed.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "en": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom text indicating sender."
        },
        "subject": {
          "type": "string",
          "description": "Email subject text. Placeholder `{document_name}` is available."
        },
        "body_header": {
          "type": "string",
          "maxLength": 300,
          "description": "Email header text."
        },
        "body_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Email body text. Placeholder `{document_name}` is available. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `300` characters, including tags."
        },
        "footer_message": {
          "type": "string",
          "maxLength": 4096,
          "description": "Email footer text. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `4096` characters, including tags."
        }
      },
      "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/branding-email-resources#language-branding)."
    }
  },
  "x-examples": {
    "Example 1": {
      "en": {
        "from": "from_email@email.com",
        "subject": "My custom subject {document_name}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      },
      "es": {
        "from": "from_email@email.com",
        "subject": "My custom subject {document_name}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      },
      "fr": {
        "from": "from_email@email.com",
        "subject": "My custom subject {document_name}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "en": {
    "from": "Sender Name",
    "subject": "{document_name} Has Been Completed",
    "body_header": "You filled out and signed a document",
    "body_message": "<p>You\u2019ve filled out and signed the <b>{document_name}</b> document. Follow the link below to view and download the document.</p>",
    "footer_message": "<p><b>Unique Solutions Inc.</b></p>"
  },
  "es": {
    "from": "Nombre del remitente",
    "subject": "{document_name} Se ha completado",
    "body_header": "Has rellenado y firmado un documento",
    "body_message": "Has rellenado y firmado el documento {document_name}. Haz clic en el siguiente enlace para ver y descargar el documento.",
    "footer_message": "Unique Solutions Inc."
  },
  "fr": {
    "from": "Nom de l'exp\u00e9diteur",
    "subject": "{document_name} A \u00e9t\u00e9 finalis\u00e9",
    "body_header": "Vous avez rempli et sign\u00e9 un document",
    "body_message": "Vous avez rempli et sign\u00e9 le document {document_name}. Suivez le lien ci-dessous pour consulter et t\u00e9l\u00e9charger le document.",
    "footer_message": "Unique Solutions Inc."
  }
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* `subject` is not a string.
* `subject` is longer than 300 characters.
* `body_header` is not a string.
* `body_header` is longer than 300 characters.
* `body_message` is not a string.
* `body_message` is longer than 300 characters.
* `body_message` contains HTML that is not allowed: a tag outside the allowed list, a tag with an attribute, an unclosed or misnested tag, or an HTML comment.
* `footer_message` is not a string.
* `footer_message` is longer than 4096 characters.
* `footer_message` contains HTML that is not allowed.
* `from` is not a string.
* `from` is longer than 300 characters.
* Incorrect placeholder found.

**Example** (`from too long`)

```json
{
  "errors": [
    {
      "code": 25002072,
      "message": "The 'from' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`from not string`)

```json
{
  "errors": [
    {
      "code": 25002050,
      "message": "The 'from' attribute must be a string."
    }
  ]
}
```

**Example** (`subject too long`)

```json
{
  "errors": [
    {
      "code": 25002058,
      "message": "The 'subject' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`subject not string`)

```json
{
  "errors": [
    {
      "code": 25002049,
      "message": "The 'subject' attribute must be a string."
    }
  ]
}
```

**Example** (`body_header too long`)

```json
{
  "errors": [
    {
      "code": 25002059,
      "message": "The 'body_header' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`Incorrect placeholder`)

```json
{
  "errors": [
    {
      "code": 25002081,
      "message": "Invalid placeholder found, expected {document_name}, {invite_email}."
    }
  ]
}
```

**Example** (`body_message too long`)

```json
{
  "errors": [
    {
      "code": 25002060,
      "message": "The 'body_message' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`body_header not string`)

```json
{
  "errors": [
    {
      "code": 25002052,
      "message": "The 'body_header' attribute must be a string."
    }
  ]
}
```

**Example** (`body_message not string`)

```json
{
  "errors": [
    {
      "code": 25002053,
      "message": "The 'body_message' attribute must be a string."
    }
  ]
}
```

**Example** (`footer_message too long`)

```json
{
  "errors": [
    {
      "code": 25002061,
      "message": "The 'footer_message' attribute must not exceed 4096 characters."
    }
  ]
}
```

**Example** (`footer_message not string`)

```json
{
  "errors": [
    {
      "code": 25002054,
      "message": "The 'footer_message' attribute must be a string."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`body_message has unclosed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: unclosed <b>."
    }
  ]
}
```

**Example** (`body_message has tag attribute`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <p style>."
    }
  ]
}
```

**Example** (`body_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

**Example** (`footer_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002383,
      "message": "The 'footer_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Missing or incorrect `brand_id`.

**Example** (`Brand doesn't exist`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Missing or incorrect brand_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/brand/null/email-invite-completed"
}
```

### 422

Language is not an array.

**Example** (`Missing language settings`)

```json
{
  "errors": [
    {
      "code": 25002093,
      "message": "Invalid payload. Expected pair of languages with their settings."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-invite-completed" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"en": {"from": "Sender Name", "subject": "{document_name} Has Been Completed", "body_header": "You filled out and signed a document", "body_message": "<p>You\u2019ve filled out and signed the <b>{document_name}</b> document. Follow the link below to view and download the document.</p>", "footer_message": "<p><b>Unique Solutions Inc.</b></p>"}, "es": {"from": "Nombre del remitente", "subject": "{document_name} Se ha completado", "body_header": "Has rellenado y firmado un documento", "body_message": "Has rellenado y firmado el documento {document_name}. Haz clic en el siguiente enlace para ver y descargar el documento.", "footer_message": "Unique Solutions Inc."}, "fr": {"from": "Nom de l'\''exp\u00e9diteur", "subject": "{document_name} A \u00e9t\u00e9 finalis\u00e9", "body_header": "Vous avez rempli et sign\u00e9 un document", "body_message": "Vous avez rempli et sign\u00e9 le document {document_name}. Suivez le lien ci-dessous pour consulter et t\u00e9l\u00e9charger le document.", "footer_message": "Unique Solutions Inc."}}'
```

---

## GET /v2/brands/{brand_id}/resources/email-invite-completed — Get email completed resource

This endpoint allows API users to get the `email-invite-completed` brand resource.

**Notes**

* The response contains only the languages and fields saved for the brand. Fields that were never set are omitted.
* If the brand has no `email-invite-completed` resource, the endpoint returns `404` with code `25002036`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Email branding of the brand resource, grouped by language. Only the languages and fields saved for the brand are returned.

**Example** (`Successful response`)

```json
{
  "data": {
    "en": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    },
    "es": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    },
    "fr": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    }
  }
}
```

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: email-invite-completed."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-invite-completed" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/brands/{brand_id}/resources/email-invite-completed — Delete email completed resource

This endpoint allows users to delete brand resource email-invite-completed.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: email-invite-completed."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-invite-completed" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/brands/{brand_id}/resources/email-general — Add and edit email general branding

This endpoint allows users to add and update general branding for all types of emails.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "ccd": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether or not to show the list of CCD emails in the invite emails.\n",
          "x-stoplight": {
            "id": "86yh1r34on57u"
          }
        }
      },
      "description": "CCD section of the invite emails.",
      "x-stoplight": {
        "id": "8k9kk0geq4hlo"
      }
    },
    "logo": {
      "type": "object",
      "properties": {
        "position": {
          "type": "string",
          "description": "Logo position on the page. Possible values: left, middle, right."
        }
      },
      "description": "Logo object in the email."
    },
    "buttons": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "**View Document** button text color in HEX color code."
        },
        "background": {
          "type": "string",
          "description": "**View Document** button background color in HEX color code."
        }
      },
      "description": "**View Document** button object."
    },
    "sender_email": {
      "type": "string",
      "description": "Email address that will be prefilled in the to field when user clicks the **Contact Sender** button and an email service opens."
    },
    "contact_sender": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether or not to show the Contact Sender section in the emails.",
          "x-stoplight": {
            "id": "zhsy7nbyu2ldq"
          }
        }
      },
      "description": "Contact sender section of the emails.",
      "x-stoplight": {
        "id": "wh670iha54nw0"
      }
    },
    "secondary_buttons": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "**Contact Sender** button text color in HEX color code.",
          "x-stoplight": {
            "id": "p0qa0ixm7g30m"
          }
        },
        "background": {
          "type": "string",
          "description": "**Contact Sender** button background color in HEX color code.",
          "x-stoplight": {
            "id": "fqizk8vnxcw2l"
          }
        }
      },
      "description": "**Contact Sender** button object.",
      "x-stoplight": {
        "id": "82gon73lveei7"
      }
    },
    "signnow_references": {
      "type": "boolean",
      "description": "Whether or not to show links to SignNow mobile apps."
    },
    "hide_download_image": {
      "type": "boolean",
      "description": "When a signer completes a document, whether to show or hide an image instruction on how to download the completed document."
    }
  },
  "x-examples": {
    "Example 1": {
      "logo": {
        "position": "middle"
      },
      "buttons": {
        "color": "#E4F18B",
        "background": "#EB4C7E"
      },
      "sender_email": "sender_email@gmail.com",
      "signnow_references": true,
      "hide_download_image": false
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "logo": {
    "position": "middle"
  },
  "buttons": {
    "color": "#ffffff",
    "background": "#0777cf"
  },
  "sender_email": "mail@signnow.com",
  "secondary_buttons": {
    "color": "#38424b",
    "background": "#e3e6e9"
  },
  "signnow_references": true,
  "hide_download_image": false
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* Request body is incorrect or missing.
* Payload contains unexpected attributes.
* Language value is not an array.
* `logo` is not an array.
* `position` is not a string.
* `position` is incorrect.
* `buttons` is not an array.
* `buttons.color` parameter value is not a string.
* `buttons.color` is not a HEX color code.
* `buttons.background` parameter value is not a string.
* `buttons.background` is not a HEX color code.
* `secondary_buttons` is not an array.
* `secondary_buttons.color` parameter value is not a string.
* `secondary_buttons.color` is not a HEX color code.
* `secondary_buttons.background` parameter value is not a string.
* `secondary_buttons.background` is not a HEX color code.
* `sender_email` is not a string.
* `sender_email` is empty.
* `sender_email` is not a correct email address.
* `signnow_references` is not a boolean.
* `hide_download_image` is not a boolean.
* `contact_sender` is not an array.
* `contact_sender.visibility` is not a boolean.
* `ccd` is not an array.
* `ccd.visibility` is not a boolean.

**Example** (`Logo not array`)

```json
{
  "code": 25002092,
  "message": "The 'logo' attribute must be an array."
}
```

**Example** (`ccd is not array`)

```json
{
  "code": 25002228,
  "message": "The `ccd` field must be an array."
}
```

**Example** (`buttons not array`)

```json
{
  "code": 25002091,
  "message": "The 'buttons' attribute must be an array."
}
```

**Example** (`Empty sender_email`)

```json
{
  "code": 25002058,
  "message": "The 'sender_email' must not be an empty string."
}
```

**Example** (`Incorrect position`)

```json
{
  "code": 25002048,
  "message": "The 'position' attribute is invalid, allowed values: left, middle, right."
}
```

**Example** (`Language not array`)

```json
{
  "code": 25002093,
  "message": "Invalid payload. Expected pair of languages with their settings."
}
```

**Example** (`Unexpected attributes`)

```json
{
  "code": 25002139,
  "message": "The {{ field }} field was not expected."
}
```

**Example** (`position is not string`)

```json
{
  "code": 25002047,
  "message": "The 'position' attribute must be a string."
}
```

**Example** (`sender_email not string`)

```json
{
  "code": 25002056,
  "message": "The 'sender_email' attribute must be a string."
}
```

**Example** (`buttons.color not string`)

```json
{
  "code": 25002006,
  "message": "The 'color' attribute must be a string."
}
```

**Example** (`contact_sender not array`)

```json
{
  "code": 25002226,
  "message": "The `contact_sender` field must be an array."
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`ccd.visibility not boolean`)

```json
{
  "code": 25002229,
  "message": "The `ccd.visibility` field must be a boolean."
}
```

**Example** (`secondary_buttons not array`)

```json
{
  "code": 25002090,
  "message": "The 'secondary_buttons' attribute must be an array."
}
```

**Example** (`buttons.background not string`)

```json
{
  "code": 25002004,
  "message": "The 'background' attribute must be a string."
}
```

**Example** (`signnow_references not boolean`)

```json
{
  "code": 25002055,
  "message": "The 'signnow_references' attribute must be a boolean."
}
```

**Example** (`hide_download_image not boolean`)

```json
{
  "code": 25002084,
  "message": "The 'hide_download_image' attribute must be a boolean."
}
```

**Example** (`buttons.color not HEX color code`)

```json
{
  "code": 25002007,
  "message": "The 'color' attribute format is invalid."
}
```

**Example** (`Request body incorrect or missing`)

```json
{
  "code": 25002002,
  "message": "Invalid payload given."
}
```

**Example** (`sender_email not an email address`)

```json
{
  "code": 25002057,
  "message": "The 'sender_email' attribute must be a valid email address."
}
```

**Example** (`secondary_buttons.color not string`)

```json
{
  "code": 25002088,
  "message": "The 'secondary_buttons.color' attribute must be a string."
}
```

**Example** (`buttons.background not HEX color code`)

```json
{
  "code": 25002005,
  "message": "The 'background' attribute format is invalid."
}
```

**Example** (`contact_sender.visibility not boolean`)

```json
{
  "code": 25002227,
  "message": "The `contact_sender.visibility` field must be a boolean."
}
```

**Example** (`secondary_buttons.background not string`)

```json
{
  "code": 25002086,
  "message": "The 'secondary_buttons.background' attribute must be a string."
}
```

**Example** (`secondary_buttons.color not HEX color code`)

```json
{
  "code": 25002089,
  "message": "The 'secondary_buttons.color' attribute format is invalid."
}
```

**Example** (`secondary_buttons.background not HEX color code`)

```json
{
  "code": 25002087,
  "message": "The 'secondary_buttons.background' attribute format is invalid."
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Missing or incorrect `brand_id`.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Missing or incorrect brand_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/brand/null/email-general"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-general" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"logo": {"position": "middle"}, "buttons": {"color": "#ffffff", "background": "#0777cf"}, "sender_email": "mail@signnow.com", "secondary_buttons": {"color": "#38424b", "background": "#e3e6e9"}, "signnow_references": true, "hide_download_image": false}'
```

---

## GET /v2/brands/{brand_id}/resources/email-general — Get email general resource

This endpoint allows API users to retrieve the email general resource of a brand.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "data": {
    "ccd": {
      "visibility": true
    },
    "logo": {
      "position": "left"
    },
    "buttons": {
      "color": "#ffffff",
      "background": "#0777cf"
    },
    "sender_email": "user2@example.com",
    "contact_sender": {
      "visibility": true
    },
    "secondary_buttons": {
      "color": "#38424b",
      "background": "#e3e6e9"
    },
    "signnow_references": true,
    "hide_download_image": false
  }
}
```

### 400

* Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: email-general."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-general" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/brands/{brand_id}/resources/email-general — Delete email general resource

This endpoint allows users to delete brand resource email-general.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: email-general."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-general" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/brands/{brand_id}/resources/email-invite — Add and edit branding for email invite

This endpoint allows users to add and edit branding for the emails that inform signer or signers that they have a document or document group to sign.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "en": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom text indicating sender."
        },
        "subject": {
          "type": "string",
          "maxLength": 300,
          "description": "Email subject text. Placeholder `{document_name}` is available."
        },
        "expiration": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom message text for expiration email. Placeholder `{days}` is available: data from the invite `expiration_days` parameter is used."
        },
        "body_header": {
          "type": "string",
          "maxLength": 300,
          "description": "Email header text."
        },
        "body_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Email body text. Placeholder `{document_name}` is available. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `300` characters, including tags."
        },
        "footer_message": {
          "type": "string",
          "maxLength": 4096,
          "description": "Email footer text. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `4096` characters, including tags."
        }
      },
      "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/branding-email-resources#language-branding)."
    }
  },
  "x-examples": {
    "Example 1": {
      "en": {
        "from": "From user ",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message EN"
      },
      "es": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      },
      "fr": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "en": {
    "from": "Sender Name",
    "subject": "Needs Your Signature",
    "expiration": "This invite will expire in {days} days",
    "body_header": "You were invited to review and sign a document",
    "body_message": "<p>You\u2019ve been invited to fill out and sign the <b>{document_name}</b> document.</p>",
    "footer_message": "<p><b>Unique Solutions Inc.</b></p>"
  },
  "es": {
    "from": "Nombre del remitente",
    "subject": "Necesita tu firma",
    "expiration": "Esta invitaci\u00f3n dejar\u00e1 de ser v\u00e1lida en {days} d\u00edas",
    "body_header": "Te han invitado a revisar y firmar un documento",
    "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
    "footer_message": "Unique Solutions Inc."
  },
  "fr": {
    "from": "Nom de l'exp\u00e9diteur",
    "subject": "A besoin de votre signature",
    "expiration": "Cette invitation expirera dans {days} jours",
    "body_header": "Vous avez \u00e9t\u00e9 invit\u00e9 \u00e0 v\u00e9rifier et signer un document",
    "body_message": "Vous invite \u00e0 compl\u00e9ter et signer le document {document_name}.",
    "footer_message": "Unique Solutions Inc."
  }
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* `subject` is not a string.
* `subject` is longer than 300 characters.
* `body_header` is not a string.
* `body_header` is longer than 300 characters.
* `body_message` is not a string.
* `body_message` is longer than 300 characters.
* `body_message` contains HTML that is not allowed: a tag outside the allowed list, a tag with an attribute, an unclosed or misnested tag, or an HTML comment.
* `footer_message` is not a string.
* `footer_message` is longer than 4096 characters.
* `footer_message` contains HTML that is not allowed.
* `from` is not a string.
* `expiration` is not a string.
* `expiration` is longer than 300 characters.
* Incorrect placeholder found.

**Example** (`from too long`)

```json
{
  "errors": [
    {
      "code": 25002072,
      "message": "The 'from' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`from not string`)

```json
{
  "errors": [
    {
      "code": 25002050,
      "message": "The 'from' attribute must be a string."
    }
  ]
}
```

**Example** (`subject too long`)

```json
{
  "errors": [
    {
      "code": 25002058,
      "message": "The 'subject' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`subject not string`)

```json
{
  "errors": [
    {
      "code": 25002049,
      "message": "The 'subject' attribute must be a string."
    }
  ]
}
```

**Example** (`expiration too long`)

```json
{
  "errors": [
    {
      "code": 25002078,
      "message": "The 'expiration' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`body_header too long`)

```json
{
  "errors": [
    {
      "code": 25002059,
      "message": "The 'body_header' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`Incorrect placeholder`)

```json
{
  "errors": [
    {
      "code": 25002081,
      "message": "Invalid placeholder found, expected {document_name}, {invite_email}."
    }
  ]
}
```

**Example** (`body_message too long`)

```json
{
  "errors": [
    {
      "code": 25002060,
      "message": "The 'body_message' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`expiration not string`)

```json
{
  "errors": [
    {
      "code": 25002079,
      "message": "The 'expiration' attribute must be a string."
    }
  ]
}
```

**Example** (`body_header not string`)

```json
{
  "errors": [
    {
      "code": 25002052,
      "message": "The 'body_header' attribute must be a string."
    }
  ]
}
```

**Example** (`body_message not string`)

```json
{
  "errors": [
    {
      "code": 25002053,
      "message": "The 'body_message' attribute must be a string."
    }
  ]
}
```

**Example** (`footer_message too long`)

```json
{
  "errors": [
    {
      "code": 25002061,
      "message": "The 'footer_message' attribute must not exceed 4096 characters."
    }
  ]
}
```

**Example** (`footer_message not string`)

```json
{
  "errors": [
    {
      "code": 25002054,
      "message": "The 'footer_message' attribute must be a string."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`body_message has unclosed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: unclosed <b>."
    }
  ]
}
```

**Example** (`body_message has tag attribute`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <p style>."
    }
  ]
}
```

**Example** (`body_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

**Example** (`footer_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002383,
      "message": "The 'footer_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Missing or incorrect `brand_id`.

**Example** (`Brand doesn't exist`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Missing or incorrect brand_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/brand/null/email-invite"
}
```

### 422

Language is not an array.

**Example** (`Missing language settings`)

```json
{
  "errors": [
    {
      "code": 25002093,
      "message": "Invalid payload. Expected pair of languages with their settings."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"en": {"from": "Sender Name", "subject": "Needs Your Signature", "expiration": "This invite will expire in {days} days", "body_header": "You were invited to review and sign a document", "body_message": "<p>You\u2019ve been invited to fill out and sign the <b>{document_name}</b> document.</p>", "footer_message": "<p><b>Unique Solutions Inc.</b></p>"}, "es": {"from": "Nombre del remitente", "subject": "Necesita tu firma", "expiration": "Esta invitaci\u00f3n dejar\u00e1 de ser v\u00e1lida en {days} d\u00edas", "body_header": "Te han invitado a revisar y firmar un documento", "body_message": "Has invitado para rellenar y firmar el documento {document_name}.", "footer_message": "Unique Solutions Inc."}, "fr": {"from": "Nom de l'\''exp\u00e9diteur", "subject": "A besoin de votre signature", "expiration": "Cette invitation expirera dans {days} jours", "body_header": "Vous avez \u00e9t\u00e9 invit\u00e9 \u00e0 v\u00e9rifier et signer un document", "body_message": "Vous invite \u00e0 compl\u00e9ter et signer le document {document_name}.", "footer_message": "Unique Solutions Inc."}}'
```

---

## GET /v2/brands/{brand_id}/resources/email-invite — Get email invite resource

This endpoint allows API users to get the `email-invite` brand resource.

**Notes**

* The response contains only the languages and fields saved for the brand. Fields that were never set are omitted.
* If the brand has no `email-invite` resource, the endpoint returns `404` with code `25002036`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Email branding of the brand resource, grouped by language. Only the languages and fields saved for the brand are returned.

**Example** (`Successful response`)

```json
{
  "data": {
    "en": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "expiration": "Expiration message {days}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    },
    "es": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "expiration": "Expiration message {days}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    },
    "fr": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "expiration": "Expiration message {days}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    }
  }
}
```

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: email-invite."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/brands/{brand_id}/resources/email-invite — Delete email invite resource

This endpoint allows users to delete brand resource email-invite.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: email-invite."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/brands/{brand_id}/resources/email-logo — Create email logo brand resource

This endpoint allows users to create and update an email logo brand resource.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | multipart/form-data |

## Form Data Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `logo` | file | No | Logo image file for emails. |

## Responses

### 204

Email logo added

**Example** (`Email logo added`)

```json
{
  "status": "success"
}
```

### 400

* Incorrect or missing token.
* Missing logo or incorrect payload.
* Incorrect file format.
* File is bigger than 20 MB.

**Example** (`File is too big`)

```json
{
  "code": 25002051,
  "message": "The file is too large. Allowed maximum size is 2 MB."
}
```

**Example** (`Incorrect payload`)

```json
{
  "code": 25002047,
  "message": "Brand logo is required."
}
```

**Example** (`Incorrect file format`)

```json
{
  "code": 25002048,
  "message": "The mime type of the file is invalid (\"text/plain\"). Allowed mime types are \"image/x-ms-bmp\", \"image/svg+xml\", \"image/svg\", \"application/svg+xml\", \"image/gif\", \"image/jpeg\", \"image/png\", \"image/bmp\"."
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Missing or incorrect `brand_id`.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Missing or incorrect brand_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/brand/null/email-logo"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-logo" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## PUT /v2/brands/{brand_id}/resources/email-logo — Add and update email logo for brand from URL

This endpoint allows users to add and update an email logo for a brand from URL. SignNow downloads the image from the URL, so the URL must be publicly accessible.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "url"
  ],
  "properties": {
    "url": {
      "type": "string",
      "description": "Public URL of the email logo image. SignNow downloads the image from this URL.",
      "x-stoplight": {
        "id": "1r4ia1iys8gdu"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "url": "https://example.com/images/email-logo.png"
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* Missing `url`.
* Empty `url`.
* Incorrect `url`.
* `url` is not a string.
* `url` does not contain an image of the proper format.
* The image cannot be downloaded.
* The image is too big. 

**Example** (`Empty url`)

```json
{
  "code": 25002128,
  "message": "The `url` is required."
}
```

**Example** (`Missing url`)

```json
{
  "code": 25002128,
  "message": "The `url` is required."
}
```

**Example** (`Incorrect url`)

```json
{
  "code": 25002129,
  "message": "The `url` should be a valid URL."
}
```

**Example** (`url not string`)

```json
{
  "code": 25002132,
  "message": "The `url` should be a string."
}
```

**Example** (`Image is too big`)

```json
{
  "code": 25002051,
  "message": "The file is too large (2.56 MB). Allowed maximum size is 2 MB."
}
```

**Example** (`Image cannot be downloaded`)

```json
{
  "code": 25002131,
  "message": "Something went wrong during image download."
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Missing image or incorrect format`)

```json
{
  "code": 25002130,
  "message": "Provided URL does not contains an image or wrong image format."
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Missing or incorrect `brand_id`.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Missing or incorrect brand_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/brand/null/email-logo"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-logo" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/images/email-logo.png"}'
```

---

## GET /v2/brands/{brand_id}/resources/email-logo — Get email logo brand resource

This endpoint allows API users to retrieve the image file of the `email-logo` brand resource.

**Notes**

* The image is returned in the response body without a `Content-Disposition` header, so a browser displays it instead of downloading it.
* The endpoint also accepts requests without an access token.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

The logo image file, returned as uploaded. The content type matches the image, for example `image/png` or `image/jpeg`. SVG files are returned as `image/svg+xml`.

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "code": "25002036",
  "message": "Brand resource not found. Resource name: email-logo."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-logo" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/brands/{brand_id}/resources/email-logo — Delete email logo brand resource

This endpoint allows users to delete email logo brand resource.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: email-logo."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-logo" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/brands/{brand_id}/resources/email-invite-reassign — Add and edit branding for reassign emails

This endpoint allows users to add and edit branding for the emails that signer or signers receive when an invite is reassigned to them.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "en": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom text indicating sender."
        },
        "subject": {
          "type": "string",
          "maxLength": 300,
          "description": "Email subject text. Placeholder `{document_name}` is available."
        },
        "expiration": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom message text for expiration email. Placeholder `{days}` is available: data from the invite `expiration_days` parameter is used."
        },
        "body_header": {
          "type": "string",
          "maxLength": 300,
          "description": "Email header text."
        },
        "body_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Email body text. Placeholder `{document_name}` is available. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `300` characters, including tags."
        },
        "footer_message": {
          "type": "string",
          "maxLength": 4096,
          "description": "Email footer text. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `4096` characters, including tags."
        },
        "forward_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Email message from the signer who forwarded the email. Placeholder {email_from} is available."
        }
      },
      "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/branding-email-resources#language-branding)."
    }
  },
  "x-examples": {
    "Example 1": {
      "en": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message",
        "forward_message": "Forward message {email_from}"
      },
      "es": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message",
        "forward_message": "Forward message {email_from}"
      },
      "fr": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message",
        "forward_message": "Forward message {email_from}"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "en": {
    "from": "Sender Name",
    "subject": "Needs Your Signature",
    "expiration": "This invite will expire in {days} days",
    "body_header": "You were invited to review and sign a document",
    "body_message": "<p>You\u2019ve been invited to fill out and sign the <b>{document_name}</b> document.</p>",
    "footer_message": "<p><b>Unique Solutions Inc.</b></p>",
    "forward_message": "This message is forwarded by {email_from}"
  },
  "es": {
    "from": "Nombre del remitente",
    "subject": "Necesita tu firma",
    "expiration": "Esta invitaci\u00f3n dejar\u00e1 de ser v\u00e1lida en {days} d\u00edas",
    "body_header": "Te han invitado a revisar y firmar un documento",
    "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
    "footer_message": "Unique Solutions Inc.",
    "forward_message": "Este mensaje ha sido enviado por {email_from}"
  },
  "fr": {
    "from": "Nom de l'exp\u00e9diteur",
    "subject": "A besoin de votre signature",
    "expiration": "Cette invitation expirera dans {days} jours",
    "body_header": "Vous avez \u00e9t\u00e9 invit\u00e9 \u00e0 v\u00e9rifier et signer un document",
    "body_message": "Vous invite \u00e0 compl\u00e9ter et signer le document {document_name}.",
    "footer_message": "Unique Solutions Inc.",
    "forward_message": "Ce message est transf\u00e9r\u00e9 par {email_from}"
  }
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* `subject` is not a string.
* `subject` is longer than 300 characters.
* `body_header` is not a string.
* `body_header` is longer than 300 characters.
* `body_message` is not a string.
* `body_message` is longer than 300 characters.
* `body_message` contains HTML that is not allowed: a tag outside the allowed list, a tag with an attribute, an unclosed or misnested tag, or an HTML comment.
* `footer_message` is not a string.
* `footer_message` is longer than 4096 characters.
* `footer_message` contains HTML that is not allowed.
* `forward_message` is not a string.
* `forward_message` is longer than 300 characters.
* `from` is not a string.
* `from` is longer than 300 characters.
* `expiration` is not a string.
* `expiration` is longer than 300 characters.
* Incorrect placeholder found.

**Example** (`from too long`)

```json
{
  "errors": [
    {
      "code": 25002072,
      "message": "The 'from' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`from not string`)

```json
{
  "errors": [
    {
      "code": 25002050,
      "message": "The 'from' attribute must be a string."
    }
  ]
}
```

**Example** (`subject too long`)

```json
{
  "errors": [
    {
      "code": 25002058,
      "message": "The 'subject' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`subject not string`)

```json
{
  "errors": [
    {
      "code": 25002049,
      "message": "The 'subject' attribute must be a string."
    }
  ]
}
```

**Example** (`expiration too long`)

```json
{
  "errors": [
    {
      "code": 25002078,
      "message": "The 'expiration' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`body_header too long`)

```json
{
  "errors": [
    {
      "code": 25002059,
      "message": "The 'body_header' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`Incorrect placeholder`)

```json
{
  "errors": [
    {
      "code": 25002081,
      "message": "Invalid placeholder found, expected {document_name}, {invite_email}."
    }
  ]
}
```

**Example** (`body_message too long`)

```json
{
  "errors": [
    {
      "code": 25002060,
      "message": "The 'body_message' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`expiration not string`)

```json
{
  "errors": [
    {
      "code": 25002079,
      "message": "The 'expiration' attribute must be a string."
    }
  ]
}
```

**Example** (`body_header not string`)

```json
{
  "errors": [
    {
      "code": 25002052,
      "message": "The 'body_header' attribute must be a string."
    }
  ]
}
```

**Example** (`body_message not string`)

```json
{
  "errors": [
    {
      "code": 25002053,
      "message": "The 'body_message' attribute must be a string."
    }
  ]
}
```

**Example** (`footer_message too long`)

```json
{
  "errors": [
    {
      "code": 25002061,
      "message": "The 'footer_message' attribute must not exceed 4096 characters."
    }
  ]
}
```

**Example** (`forward_message too long`)

```json
{
  "errors": [
    {
      "code": 25002083,
      "message": "The 'forward_message' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`footer_message not string`)

```json
{
  "errors": [
    {
      "code": 25002054,
      "message": "The 'footer_message' attribute must be a string."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`forward_message not string`)

```json
{
  "errors": [
    {
      "code": 25002082,
      "message": "The 'forward_message' attribute must be a string."
    }
  ]
}
```

**Example** (`body_message has unclosed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: unclosed <b>."
    }
  ]
}
```

**Example** (`body_message has tag attribute`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <p style>."
    }
  ]
}
```

**Example** (`body_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

**Example** (`footer_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002383,
      "message": "The 'footer_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Missing or incorrect `brand_id`.

**Example** (`Brand doesn't exist`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Missing or incorrect brand_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/brand/null/email-invite-reassign"
}
```

### 422

Language is not an array.

**Example** (`Missing language settings`)

```json
{
  "errors": [
    {
      "code": 25002093,
      "message": "Invalid payload. Expected pair of languages with their settings."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-invite-reassign" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"en": {"from": "Sender Name", "subject": "Needs Your Signature", "expiration": "This invite will expire in {days} days", "body_header": "You were invited to review and sign a document", "body_message": "<p>You\u2019ve been invited to fill out and sign the <b>{document_name}</b> document.</p>", "footer_message": "<p><b>Unique Solutions Inc.</b></p>", "forward_message": "This message is forwarded by {email_from}"}, "es": {"from": "Nombre del remitente", "subject": "Necesita tu firma", "expiration": "Esta invitaci\u00f3n dejar\u00e1 de ser v\u00e1lida en {days} d\u00edas", "body_header": "Te han invitado a revisar y firmar un documento", "body_message": "Has invitado para rellenar y firmar el documento {document_name}.", "footer_message": "Unique Solutions Inc.", "forward_message": "Este mensaje ha sido enviado por {email_from}"}, "fr": {"from": "Nom de l'\''exp\u00e9diteur", "subject": "A besoin de votre signature", "expiration": "Cette invitation expirera dans {days} jours", "body_header": "Vous avez \u00e9t\u00e9 invit\u00e9 \u00e0 v\u00e9rifier et signer un document", "body_message": "Vous invite \u00e0 compl\u00e9ter et signer le document {document_name}.", "footer_message": "Unique Solutions Inc.", "forward_message": "Ce message est transf\u00e9r\u00e9 par {email_from}"}}'
```

---

## GET /v2/brands/{brand_id}/resources/email-invite-reassign — Get email reassign resource

This endpoint allows API users to get the `email-invite-reassign` brand resource.

**Notes**

* The response contains only the languages and fields saved for the brand. Fields that were never set are omitted.
* If the brand has no `email-invite-reassign` resource, the endpoint returns `404` with code `25002036`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Email branding of the brand resource, grouped by language. Only the languages and fields saved for the brand are returned.

**Example** (`Successful response`)

```json
{
  "data": {
    "en": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "expiration": "Expiration message {days}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message",
      "forward_message": "Forward message {email_from}"
    },
    "es": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "expiration": "Expiration message {days}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message",
      "forward_message": "Forward message {email_from}"
    },
    "fr": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "expiration": "Expiration message {days}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message",
      "forward_message": "Forward message {email_from}"
    }
  }
}
```

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: email-invite-reassign."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-invite-reassign" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/brands/{brand_id}/resources/email-invite-reassign — Delete email reassign resource

This endpoint allows users to delete brand resource email-invite-reassign.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: email-invite-reassign."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-invite-reassign" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/brands/{brand_id}/resources/email-invite-reminder — Add and edit branding for reminder emails

This endpoint allows users to add and edit branding for the emails that remind signer or signers about pending invites.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "en": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom text indicating sender."
        },
        "subject": {
          "type": "string",
          "maxLength": 300,
          "description": "Email subject text. Placeholder `{document_name}` is available."
        },
        "expiration": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom message text for expiration email. Placeholder `{days}` is available: data from the invite `expiration_days` parameter is used."
        },
        "body_header": {
          "type": "string",
          "maxLength": 300,
          "description": "Email header text."
        },
        "body_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Email body text. Placeholder `{document_name}` is available. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `300` characters, including tags."
        },
        "footer_message": {
          "type": "string",
          "maxLength": 4096,
          "description": "Email footer text. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `4096` characters, including tags."
        }
      },
      "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/branding-email-resources#language-branding)."
    }
  },
  "x-examples": {
    "Example 1": {
      "en": {
        "from": "From user ",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message EN"
      },
      "es": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      },
      "fr": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "en": {
    "from": "Sender Name",
    "subject": "Reminder: {document_name}: Signature Request",
    "expiration": "This invite will expire in {days} days",
    "body_header": "You were invited to review and sign a document",
    "body_message": "<p>You\u2019ve been invited to fill out and sign the <b>{document_name}</b> document.</p>",
    "footer_message": "<p><b>Unique Solutions Inc.</b></p>"
  },
  "es": {
    "from": "Nombre del remitente",
    "subject": "Recordatorio: {document_name}: Solicitud de firma",
    "expiration": "Esta invitaci\u00f3n dejar\u00e1 de ser v\u00e1lida en {days} d\u00edas",
    "body_header": "Te han invitado a revisar y firmar un documento",
    "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
    "footer_message": "Unique Solutions Inc."
  },
  "fr": {
    "from": "Nom de l'exp\u00e9diteur",
    "subject": "Rappel: {document_name}: demande de signature",
    "expiration": "Cette invitation expirera dans {days} jours",
    "body_header": "Vous avez \u00e9t\u00e9 invit\u00e9 \u00e0 v\u00e9rifier et signer un document",
    "body_message": "Vous invite \u00e0 compl\u00e9ter et signer le document {document_name}.",
    "footer_message": "Unique Solutions Inc."
  }
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* `subject` is not a string.
* `subject` is longer than 300 characters.
* `body_header` is not a string.
* `body_header` is longer than 300 characters.
* `body_message` is not a string.
* `body_message` is longer than 300 characters.
* `body_message` contains HTML that is not allowed: a tag outside the allowed list, a tag with an attribute, an unclosed or misnested tag, or an HTML comment.
* `footer_message` is not a string.
* `footer_message` is longer than 4096 characters.
* `footer_message` contains HTML that is not allowed.
* `from` is not a string.
* `expiration` is not a string.
* `expiration` is longer than 300 characters.
* Incorrect placeholder found.

**Example** (`from too long`)

```json
{
  "errors": [
    {
      "code": 25002072,
      "message": "The 'from' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`from not string`)

```json
{
  "errors": [
    {
      "code": 25002050,
      "message": "The 'from' attribute must be a string."
    }
  ]
}
```

**Example** (`subject too long`)

```json
{
  "errors": [
    {
      "code": 25002058,
      "message": "The 'subject' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`subject not string`)

```json
{
  "errors": [
    {
      "code": 25002049,
      "message": "The 'subject' attribute must be a string."
    }
  ]
}
```

**Example** (`expiration too long`)

```json
{
  "errors": [
    {
      "code": 25002078,
      "message": "The 'expiration' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`body_header too long`)

```json
{
  "errors": [
    {
      "code": 25002059,
      "message": "The 'body_header' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`Incorrect placeholder`)

```json
{
  "errors": [
    {
      "code": 25002081,
      "message": "Invalid placeholder found, expected {document_name}, {invite_email}."
    }
  ]
}
```

**Example** (`body_message too long`)

```json
{
  "errors": [
    {
      "code": 25002060,
      "message": "The 'body_message' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`expiration not string`)

```json
{
  "errors": [
    {
      "code": 25002079,
      "message": "The 'expiration' attribute must be a string."
    }
  ]
}
```

**Example** (`body_header not string`)

```json
{
  "errors": [
    {
      "code": 25002052,
      "message": "The 'body_header' attribute must be a string."
    }
  ]
}
```

**Example** (`body_message not string`)

```json
{
  "errors": [
    {
      "code": 25002053,
      "message": "The 'body_message' attribute must be a string."
    }
  ]
}
```

**Example** (`footer_message too long`)

```json
{
  "errors": [
    {
      "code": 25002061,
      "message": "The 'footer_message' attribute must not exceed 4096 characters."
    }
  ]
}
```

**Example** (`footer_message not string`)

```json
{
  "errors": [
    {
      "code": 25002054,
      "message": "The 'footer_message' attribute must be a string."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`body_message has unclosed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: unclosed <b>."
    }
  ]
}
```

**Example** (`body_message has tag attribute`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <p style>."
    }
  ]
}
```

**Example** (`body_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

**Example** (`footer_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002383,
      "message": "The 'footer_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Missing or incorrect `brand_id`.

**Example** (`Brand doesn't exist`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Missing or incorrect brand_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/brand/null/email-invite-reminder"
}
```

### 422

Language is not an array.

**Example** (`Missing language settings`)

```json
{
  "errors": [
    {
      "code": 25002093,
      "message": "Invalid payload. Expected pair of languages with their settings."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-invite-reminder" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"en": {"from": "Sender Name", "subject": "Reminder: {document_name}: Signature Request", "expiration": "This invite will expire in {days} days", "body_header": "You were invited to review and sign a document", "body_message": "<p>You\u2019ve been invited to fill out and sign the <b>{document_name}</b> document.</p>", "footer_message": "<p><b>Unique Solutions Inc.</b></p>"}, "es": {"from": "Nombre del remitente", "subject": "Recordatorio: {document_name}: Solicitud de firma", "expiration": "Esta invitaci\u00f3n dejar\u00e1 de ser v\u00e1lida en {days} d\u00edas", "body_header": "Te han invitado a revisar y firmar un documento", "body_message": "Has invitado para rellenar y firmar el documento {document_name}.", "footer_message": "Unique Solutions Inc."}, "fr": {"from": "Nom de l'\''exp\u00e9diteur", "subject": "Rappel: {document_name}: demande de signature", "expiration": "Cette invitation expirera dans {days} jours", "body_header": "Vous avez \u00e9t\u00e9 invit\u00e9 \u00e0 v\u00e9rifier et signer un document", "body_message": "Vous invite \u00e0 compl\u00e9ter et signer le document {document_name}.", "footer_message": "Unique Solutions Inc."}}'
```

---

## GET /v2/brands/{brand_id}/resources/email-invite-reminder — Get email reminder resource

This endpoint allows API users to get the `email-invite-reminder` brand resource.

**Notes**

* The response contains only the languages and fields saved for the brand. Fields that were never set are omitted.
* If the brand has no `email-invite-reminder` resource, the endpoint returns `404` with code `25002036`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Email branding of the brand resource, grouped by language. Only the languages and fields saved for the brand are returned.

**Example** (`Successful response`)

```json
{
  "data": {
    "en": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "expiration": "Expiration message {days}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    },
    "es": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "expiration": "Expiration message {days}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    },
    "fr": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "expiration": "Expiration message {days}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    }
  }
}
```

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: email-reminder."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-invite-reminder" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/brands/{brand_id}/resources/email-invite-reminder — Delete email reminder resource

This endpoint allows users to delete brand resource email-reminder.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.

**Example** (`Another user's token`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

### 404

* Brand with this `brand_id` doesn't exist.
* Resource doesn't exist.

**Example** (`Brand doesn't exist`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Resource doesn't exist`)

```json
{
  "code": 25002036,
  "message": "Brand resource not found. Resource name: email-reminder."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/brands/{brand_id}/resources/email-invite-reminder" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /team/{team_id}/admin — Grant admin permissions

This endpoint allows API users to grant admin permissions to a team member. The team primary admin can call this endpoint.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `team_id` | string | Yes | ID of the team. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "email"
  ],
  "properties": {
    "email": {
      "type": "string",
      "description": "Email address of the team member to grant admin permissions to."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "email": "user@example.com"
}
```

## Responses

### 200

Admin permissions were granted to the user.

**Example** (`Successful response`)

```json
{
  "result": "success"
}
```

### 400

* Either request body or email address is missing.
* User with this email address is not in the team.
* User is not a primary admin of the team.
* Team not found.
* User not found.


**Example** (`Team not found`)

```json
{
  "code": 66391,
  "message": "Team not found"
}
```

**Example** (`User not found`)

```json
{
  "code": 65582,
  "message": "User not found"
}
```

**Example** (`Email address missing`)

```json
{
  "code": 65582,
  "message": "Email is required."
}
```

**Example** (`User not primary admin`)

```json
{
  "code": 65615,
  "message": "Operation not allowed"
}
```

**Example** (`User is not in the team`)

```json
{
  "code": 65582,
  "message": "User is not a part of this team"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/team/{team_id}/admin" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email": "user@example.com"}'
```

---

## DELETE /team/{team_id}/admin/{user_id} — Cancel admin permissions

This endpoint allows API users to cancel admin permissions of a team admin. By default, the request also removes the user from the team, revokes access of the user to shared folders, and removes all documents that the user shared from shared folders to user's folders.

If the path parameter `downgrade_only=true` is used, the user loses admin permissions but remains a member of the team and keeps access to shared folders.

> [!NOTE]
> Only the team's primary admin or an admin can call this endpoint.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `team_id` | string | Yes | ID of the team. |
| `user_id` | string | Yes | ID of the user. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `downgrade_only` | boolean | No | If true, the user remains a member of the team and keeps access to shared folders.  |

## Responses

### 200

Admin permissions were cancelled.

**Example** (`Successful response`)

```json
{
  "result": "success"
}
```

### 400

* Trying to cancel rights for a user that is not a team admin.
* Admin is trying to cancel their own admin permissions.
* Team admin cannot cancel rights for a primary admin.
* User is not a team admin.
* Team not found.
* User not found.
* `downgrade_only` is not a boolean.


**Example** (`Team not found`)

```json
{
  "code": 66391,
  "message": "Team not found"
}
```

**Example** (`User not admin`)

```json
{
  "code": 65582,
  "message": "User is not admin/secondary admin on team"
}
```

**Example** (`User not found`)

```json
{
  "code": 65582,
  "message": "User not found"
}
```

**Example** (`Cancelling your own right`)

```json
{
  "code": 65582,
  "message": "Admin cannot delete himself"
}
```

**Example** (`downgrade_only not boolean`)

```json
{
  "code": 65582,
  "message": "The `downgrade_only` parameter value should be `true` or `false`"
}
```

**Example** (`Cancelling primary admin's rights`)

```json
{
  "code": 65582,
  "message": "Secondary admin cannot delete Admin of the team"
}
```

**Example** (`Cancelling rights for a non-admin`)

```json
{
  "code": 66350,
  "message": "Team admin not found"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/team/{team_id}/admin/{user_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /team/{team_id}/transferownership/{user_id} — Change team primary admin

This endpoint allows API users to transfer team ownership to another team member. The team primary admin can call this endpoint.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `team_id` | string | Yes | ID of the team. |
| `user_id` | string | Yes | ID of the user. |

## Responses

### 200

Team ownership was transferred to the user.

**Example** (`Successful response`)

```json
{
  "result": "success"
}
```

### 400

* User is not a primary admin of the team.
* User is not in the team.

**Example** (`User not in the team`)

```json
{
  "code": 65582,
  "message": "Operation not allowed - Provided User not a member of team"
}
```

**Example** (`User not primary admin`)

```json
{
  "code": 65582,
  "message": "Operation not allowed"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/team/{team_id}/transferownership/{user_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## GET /v2/teams/{team_id}/admins — Get team admins

This endpoint allows API users to get the list of team admins, including the primary admin.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `team_id` | string | Yes | ID of the team. |

## Responses

### 200

List of team admins, including the primary admin.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "type": 1,
      "email": "user@example.com",
      "created": 1792672347,
      "primary": false,
      "updated": 1792672347,
      "user_id": "6cfe15ef88f73f3d44baac3cbbfc4c4f1c52e14a"
    },
    {
      "type": 1,
      "email": "user@example.com",
      "created": 1792665938,
      "primary": true,
      "updated": 1792665938,
      "user_id": "c2fbe5919b42cc30f418c031665450d203c081a1"
    }
  ],
  "meta": {
    "pagination": {
      "count": 2,
      "links": [],
      "total": 2,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 403

User is not a member of the team.

**Example** (`Access denied`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "Access denied."
    }
  ]
}
```

### 404

Team is inactive.

**Example** (`Team not found`)

```json
{
  "errors": [
    {
      "message": "Team `f89ace7e23c6422091d4ed88447ee3d3842d757b` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/teams/{team_id}/admins" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/event-subscriptions — Get list of event subscriptions

This endpoint allows API users to retrieve the list of events the user account is subscribed to.

The results can be filtered and sorted. If the `sort` parameter is not indicated, the results are sorted by the `created` parameter in descending order. The `filters` and `sort` parameters need URL-encoding. 

## Authorization

bearer

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `page` | string | No | In how many pages to display the response. |
| `sort:created` | string | No | Sort results by the date. Possible values: asc, desc. Format: `?sort[created]=desc` |
| `sort:event` | string | No | Sort results by the event type (from A to Z). Possible values: asc, desc. Format: `?sort[event]=desc` |
| `sort:application` | string | No | Sort results by the application name (from A to Z). Possible values: asc, desc. Format: `?sort[application]=desc` |
| `filters:entity_id, callback_url` | string | No | Search for a string in entity IDs and callback URLs. Format: `?filters=[{"_OR":[{"entity_id":{"type":"like","value":"21a28b47"}},{"callback_url":{"type":"like","value":"21a28b47"}}]}]` |
| `filters:date` | string | No | Filter results by the timestamps. Format: `?filters=[{"date":{"type":"between","value":[1580719773,1580720509]}}]` |
| `filters:event` | string | No | Filter results by the specific type of event. Format: `?filters=[{"event":{"type": "in", "value":["document.create", "document.update"]}}]` |
| `filters:application` | string | No | Filter results by the application. Format: `?filters=[{"application":{"type": "in", "value":["applicationUniqueId1", "applicationUniqueId2"]}}]` |
| `include_event_count` | boolean | No | Include the number of events that triggered the webhook to the response. If set to `true`, the number is returned in the `event_count` field. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Responses

### 200

Correct request with the filter by application ID.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "a1b2c3d4e5f67890123456789abcdef012345678",
      "event": "document.open",
      "action": "callback",
      "active": true,
      "created": 1709210000,
      "version": 2,
      "entity_id": 100100200,
      "entity_type": "document",
      "event_count": null,
      "request_method": "post",
      "json_attributes": {
        "use_tls_12": true,
        "callback_url": "https://api.your-domain.com/callbacks/handle_event",
        "docid_queryparam": false,
        "include_metadata": true
      },
      "application_name": "My_Integration_App",
      "entity_unique_id": "d0c1d2d3d4d5d6d7d8d900000000000000000001",
      "event_subscription_owner_email": "admin@example.com"
    },
    {
      "id": "f9e8d7c6b5a432109876543210fedcba98765432",
      "event": "document.complete",
      "action": "callback",
      "active": true,
      "created": 1709215000,
      "version": 2,
      "entity_id": 100100200,
      "entity_type": "document",
      "event_count": null,
      "request_method": "post",
      "json_attributes": {
        "use_tls_12": true,
        "callback_url": "https://api.your-domain.com/callbacks/handle_event",
        "docid_queryparam": false,
        "include_metadata": true
      },
      "application_name": "My_Integration_App",
      "entity_unique_id": "d0c1d2d3d4d5d6d7d8d900000000000000000001",
      "event_subscription_owner_email": "admin@example.com"
    }
  ],
  "meta": {
    "pagination": {
      "count": 2,
      "links": [],
      "total": 2,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* Incorrect filter format (each filter must contain `type` and `value` fields).
* Incorrect filter expression (must be a string).
* Incorrect `application` filter expression (must be `"type": "in"`).
* Incorrect `event` filter expression (must be `"type": "="` or `"type": "in"`).
* Incorrect `entity_id` or `callback_url` filter expression (must be `"type": "like"`).
* Incorrect `application` or `event` filter value (must be an array of strings).
* Incorrect `entity_id` or `callback_url` filter value (must be a string).
* Incorrect `date` filter value (must be an array).



**Example** (`Incorrect filter format`)

```json
{
  "errors": [
    {
      "code": 15006011,
      "message": "Incorrect filter format, filter must have `type` and `value` fields."
    }
  ]
}
```

**Example** (`Incorrect date filter value`)

```json
{
  "errors": [
    {
      "code": 15006017,
      "message": "The `date` filter value must be an array."
    }
  ]
}
```

**Example** (`Incorrect filter expression`)

```json
{
  "errors": [
    {
      "code": 15006012,
      "message": "Incorrect filter format, filter `type` must be a string."
    }
  ]
}
```

**Example** (`Incorrect event filter value`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "The `event` filter value should be array of strings."
    }
  ]
}
```

**Example** (`Incorrect entity_id filter value`)

```json
{
  "errors": [
    {
      "code": 15006020,
      "message": "The `entity_id` filter value must be a string."
    }
  ]
}
```

**Example** (`Incorrect event filter expression`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "The `event` filter expression should be equal to `=` or `in`"
    }
  ]
}
```

**Example** (`Incorrect application filter value`)

```json
{
  "errors": [
    {
      "code": 15006023,
      "message": "The `application` filter value should be an array of strings."
    }
  ]
}
```

**Example** (`Incorrect entity_id filter expression`)

```json
{
  "errors": [
    {
      "code": 15006019,
      "message": "The `entity_id` filter expression must be equal to `like`."
    }
  ]
}
```

**Example** (`Incorrect application filter expression`)

```json
{
  "errors": [
    {
      "code": 15006021,
      "message": "The `application` filter expression must be equal to `in`."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/event-subscriptions" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/event-subscriptions — Create event subscription

This endpoint allows API users to subscribe an external service (`callback_url`) to a specific event related to a user, document, or document group. When the subscribed event occurs, your service receives a notification.

See the full list of available events in the [Webhooks user guide](/docs/guides-webhooks#entity-events).
Use [HMAC verification](/docs/guides-webhooks#hmac-security) for an additional layer of security.

> [!NOTE]
> For the payload your service receives for each event, see the response examples in [Get callback info by ID](/docs/callbacks-info/operations/get-v2-dashboard-event-subscriptions-subscription-id-callbacks).

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "event",
    "entity_id"
  ],
  "properties": {
    "event": {
      "type": "string",
      "example": "document.open",
      "description": "Event that triggers the subscription, for example `document.complete`. See the [list of events](/docs/guides-webhooks#entity-events)."
    },
    "entity_id": {
      "type": "string",
      "example": "a1b2c3d4e5f67890123456789abcdef012345678",
      "description": "Unique string ID of the entity (e.g., `document_id`, `user_id`, `document_group_id`)."
    },
    "attributes": {
      "type": "object",
      "required": [
        "callback"
      ],
      "properties": {
        "delay": {
          "type": "integer",
          "default": 0,
          "maximum": 100,
          "minimum": 0,
          "description": "Delay in seconds before the webhook is sent after the event triggers."
        },
        "headers": {
          "type": "object",
          "properties": {
            "int_head": {
              "type": "integer",
              "description": "Example integer header."
            },
            "bool_head": {
              "type": "boolean",
              "description": "Example boolean header."
            },
            "float_head": {
              "type": "number",
              "description": "Example float header."
            },
            "string_head": {
              "type": "string",
              "description": "Example string header."
            }
          },
          "description": "Custom HTTP headers to be sent with the callback request (e.g., Authorization tokens)."
        },
        "callback": {
          "type": "string",
          "example": "https://webhook.site/a0093533-766c-456e-b625-97592745216a",
          "description": "URL that receives the event callback."
        },
        "secret_key": {
          "type": "string",
          "example": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
          "maxLength": 300,
          "description": "Secret key used to generate the HMAC signature for verifying request authenticity."
        },
        "use_tls_12": {
          "type": "boolean",
          "description": "Whether TLS 1.2 should be used for the callback request."
        },
        "retry_count": {
          "type": "integer",
          "maximum": 10,
          "minimum": 1,
          "multipleOf": 10,
          "description": "Maximum number of retries if the webhook fails with a 5xx error."
        },
        "integration_id": {
          "type": "string",
          "description": "Optional unique ID to identify the external system integration."
        },
        "docid_queryparam": {
          "type": "boolean",
          "description": "Whether the document ID is included as a query parameter in the callback URL."
        },
        "include_metadata": {
          "type": "boolean",
          "description": "Whether document metadata is included in the callback payload."
        },
        "delete_access_token": {
          "type": "boolean",
          "default": true,
          "description": "If `true`, the access token is removed from the webhook payload for security. Default is `true`."
        }
      },
      "description": "Configuration for the webhook callback."
    }
  },
  "x-examples": {
    "Example 1": {
      "event": "document.complete",
      "entity_id": "document_id",
      "attributes": {
        "headers": {
          "int_head": 12,
          "bool_head": false,
          "float_head": 12.24,
          "string_head": "sample_text"
        },
        "callback": "https://webhook.site/a0093533-766c-456e-b625-97592745216a",
        "use_tls_12": true,
        "integration_id": "Unique ID Integration System",
        "docid_queryparam": true
      },
      "secret_key": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "event": "document.complete",
  "entity_id": "document_id",
  "attributes": {
    "delay": 50,
    "headers": {
      "int_head": 12,
      "bool_head": false,
      "float_head": 12.24,
      "string_head": "sample_text"
    },
    "callback": "https://webhook.site/a0093533-766c-456e-b625-97592745216a",
    "secret_key": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "use_tls_12": true,
    "retry_count": 3,
    "integration_id": "Unique ID Integration System",
    "docid_queryparam": true
  }
}
```

## Responses

### 201

Event subscription created.

**Example** (`Successful response`)

```json
{
  "data": {
    "id": "2770b659aa59418f996b81deb701697aa403fa72"
  }
}
```

### 400

* `event` format type is incorrect.
* `event` is empty.
* `event` does not exist.
* `entity_id` format type is incorrect.
* `entity_id` is empty.
* `entity_id` length is incorrect.
* `attributes` format type is incorrect.
* `attributes` is empty.
* `callback` is missing.
* `callback` format type is incorrect.
* `callback` is empty.
* `callback` format is wrong URL.
* `callback` host is not allowed.
* `callback` host unreachable.
* `use_tls_12` format type is incorrect.
* `integration_id` format type is incorrect.
* `integration_id` length is incorrect.
* `integration_id` is wrong.
* `docid_queryparam` format type is incorrect.
* `headers` format type is incorrect.
* `secret_key` format type is incorrect.
* `secret_key` is empty.
* `secret_key` length is incorrect.
* `delete_access_token` format type is incorrect.
* `include_metadata` format type is incorrect.
* Payload is wrong.
* `delay` not integer.
* `delay` out of range.
* `retry_count` not integer.
* `retry_count` out of range.
* Subscription limit reached.
* This combination of `entity_id`, `event`, and `callback_url` has already been used.
* API subscription not found.

**Example** (`Limit reached`)

```json
{
  "errors": [
    {
      "code": 15006044,
      "message": "Active subscriptions are limited to 20 subscriptions with this combination of entityId and eventName."
    }
  ]
}
```

**Example** (`Event is empty`)

```json
{
  "errors": [
    {
      "code": 15007010,
      "message": "The `event` field must not be empty."
    }
  ]
}
```

**Example** (`Callback is empty`)

```json
{
  "errors": [
    {
      "code": 15007018,
      "message": "The `attributes.callback` field must not be empty."
    }
  ]
}
```

**Example** (`delay not integer`)

```json
{
  "errors": [
    {
      "code": 15007034,
      "message": "The `attributes.delay` field must be an integer."
    }
  ]
}
```

**Example** (`Entity_id is empty`)

```json
{
  "errors": [
    {
      "code": 15007013,
      "message": "The `entity_id` field must not be empty."
    }
  ]
}
```

**Example** (`delay out of range`)

```json
{
  "errors": [
    {
      "code": 15007035,
      "message": "The `attributes.delay` field must be between 0 and 100."
    }
  ]
}
```

**Example** (`Attributes is empty`)

```json
{
  "errors": [
    {
      "code": 15007016,
      "message": "The `attributes` field must not be empty."
    }
  ]
}
```

**Example** (`Callback is missing`)

```json
{
  "errors": [
    {
      "code": 15007028,
      "message": "The \"callback\" field is missing."
    }
  ]
}
```

**Example** (`Secret_key is empty`)

```json
{
  "errors": [
    {
      "code": 15007025,
      "message": "The `attributes.secret_key` must not be empty."
    }
  ]
}
```

**Example** (`Event does not exist`)

```json
{
  "errors": [
    {
      "code": 15007011,
      "message": "Provided event does not exist."
    }
  ]
}
```

**Example** (`Payload is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid payload"
    }
  ]
}
```

**Example** (`Callback is not a URL`)

```json
{
  "errors": [
    {
      "code": 15007019,
      "message": "The `attributes.callback` field must be url."
    }
  ]
}
```

**Example** (`retry_count not integer`)

```json
{
  "errors": [
    {
      "code": 15007031,
      "message": "The `attributes.retry_count` field must be an integer."
    }
  ]
}
```

**Example** (`API subscription expired`)

```json
{
  "errors": [
    {
      "code": 80001002,
      "message": "Your API subscription could not be found."
    }
  ]
}
```

**Example** (`retry_count out of range`)

```json
{
  "errors": [
    {
      "code": 15007032,
      "message": "The `attributes.retry_count` field must be between 1 and 10."
    }
  ]
}
```

**Example** (`Callback host unreachable`)

```json
{
  "errors": [
    {
      "code": 15007029,
      "message": "Unknown callback host or callback host unreachable."
    }
  ]
}
```

**Example** (`Integration_id is incorrect`)

```json
{
  "errors": [
    {
      "code": 15007032,
      "message": "Invalid integration id - {integration_id}"
    }
  ]
}
```

**Example** (`Callback host is not allowed`)

```json
{
  "errors": [
    {
      "code": 15006001,
      "message": "Host is not allowed."
    }
  ]
}
```

**Example** (`Entity_id length is incorrect`)

```json
{
  "errors": [
    {
      "code": 15007014,
      "message": "The `entity_id` field must have 40 characters."
    }
  ]
}
```

**Example** (`Event format type is incorrect`)

```json
{
  "errors": [
    {
      "code": 15007009,
      "message": "The `event` field must be string."
    }
  ]
}
```

**Example** (`Secret_key length is incorrect`)

```json
{
  "errors": [
    {
      "code": 15007026,
      "message": "The `secret_key` value is too long. It should have 300 character or less."
    }
  ]
}
```

**Example** (`Headers format type is incorrect`)

```json
{
  "errors": [
    {
      "code": 15007023,
      "message": "The `attributes.headers` field must be array."
    }
  ]
}
```

**Example** (`Callback format type is incorrect`)

```json
{
  "errors": [
    {
      "code": 15007017,
      "message": "The `attributes.callback` field must be string."
    }
  ]
}
```

**Example** (`Duplicate subscription combination`)

```json
{
  "errors": [
    {
      "code": 15006045,
      "message": "Active subscriptions must have different combinations of entityId, eventName, and callbackUrl."
    }
  ]
}
```

**Example** (`Entity_id format type is incorrect`)

```json
{
  "errors": [
    {
      "code": 15007012,
      "message": "The `entity_id` field must be string."
    }
  ]
}
```

**Example** (`Integration_id length is incorrect`)

```json
{
  "errors": [
    {
      "code": 15007031,
      "message": "The `integration_id` field must have 40 characters."
    }
  ]
}
```

**Example** (`Attributes format type is incorrect`)

```json
{
  "errors": [
    {
      "code": 15007015,
      "message": "The `attributes` field must be array."
    }
  ]
}
```

**Example** (`Secret_key format type is incorrect`)

```json
{
  "errors": [
    {
      "code": 15007024,
      "message": "The `attributes.secret_key` must be string."
    }
  ]
}
```

**Example** (`Use_tls_12 format type is incorrect`)

```json
{
  "errors": [
    {
      "code": 15007020,
      "message": "The `attributes.use_tls_12` field must be bool."
    }
  ]
}
```

**Example** (`Integration_id format type is incorrect`)

```json
{
  "errors": [
    {
      "code": 15007021,
      "message": "The `attributes.integration_id` field must be string."
    }
  ]
}
```

**Example** (`Docid_queryparam format type is incorrect`)

```json
{
  "errors": [
    {
      "code": 15007022,
      "message": "The `attributes.docid_queryparam` field must be bool."
    }
  ]
}
```

**Example** (`Include_metadata format type is incorrect`)

```json
{
  "errors": [
    {
      "code": 15007030,
      "message": "The `attributes.include_metadata` field must be bool."
    }
  ]
}
```

**Example** (`Delete_access_token format type is incorrect`)

```json
{
  "errors": [
    {
      "code": 15007027,
      "message": "The `attributes.delete_access_token` field must be bool."
    }
  ]
}
```

### 403

* The request is sent with a bearer token that does not belong to the user specified in the `entity_id` parameter.

* The request is sent with a bearer token of a user who is not the owner of the document specified in the `entity_id` parameter.

* API subscription is inactive.
* API subscription has expired.
* User reached the limit of event subscriptions.

**Example** (`Limit reached`)

```json
{
  "errors": [
    {
      "code": 80001006,
      "message": "You have reached the limit of event subscriptions."
    }
  ]
}
```

**Example** (`Subscription expired`)

```json
{
  "errors": [
    {
      "code": 80001005,
      "message": "Your API subscription has expired."
    }
  ]
}
```

**Example** (`Subscription inactive`)

```json
{
  "errors": [
    {
      "code": 80001003,
      "message": "Your API subscription is inactive."
    }
  ]
}
```

**Example** (`Subscription not allowed for user (not an owner)`)

```json
{
  "errors": [
    {
      "code": 15006009,
      "message": "Subscription to event is not allowed"
    }
  ]
}
```

### 404

* `entity_id` not found.

**Example** (``entity_id` not found`)

```json
{
  "errors": [
    {
      "code": 15006005,
      "message": "Not found entity with id = {entity_id}"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/event-subscriptions" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"event": "document.complete", "entity_id": "document_id", "attributes": {"delay": 50, "headers": {"int_head": 12, "bool_head": false, "float_head": 12.24, "string_head": "sample_text"}, "callback": "https://webhook.site/a0093533-766c-456e-b625-97592745216a", "secret_key": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "use_tls_12": true, "retry_count": 3, "integration_id": "Unique ID Integration System", "docid_queryparam": true}}'
```

---

## GET /v2/event-subscriptions/{subscription_id} — Get subscription info

This endpoint allows users to get detailed information about an event subscription by its ID.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `subscription_id` | string | Yes | ID of the subscription. Must match the pattern: [a-z0-9]{40}. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `include_event_count` | string | No | If set to `true`, `event_count` returns the number of `callback_response_log` entries. |

## Responses

### 200

Correct request

**Example** (`Successful response`)

```json
{
  "data": {
    "id": "19d209f7aa59418f996b81deb701697aa403fa72",
    "event": "document.open",
    "action": "callback",
    "active": true,
    "created": 1764244948,
    "version": 2,
    "entity_id": 552215426,
    "entity_type": "document",
    "event_count": null,
    "request_method": "post",
    "json_attributes": {
      "use_tls_12": true,
      "callback_url": "https://webhook.site/a0093533-766c-456e-b625-97592745216a",
      "docid_queryparam": false,
      "include_metadata": true
    },
    "application_name": "test_app",
    "entity_unique_id": "f1c71db945974e2b847b0580d21c386561b415a0",
    "event_subscription_owner_email": "greenanna070@gmail.com"
  }
}
```

### 400

Bad request.

**Example** (`Authorization error`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

Anauthorized. 

**Example** (`Subscription not allowed`)

```json
{
  "errors": [
    {
      "code": 15006004,
      "message": "Event subscription is not allowed."
    }
  ]
}
```

### 404

Subscription not found.

**Example** (`Non-existing subscription_id`)

```json
{
  "errors": [
    {
      "code": 15006003,
      "message": "Event subscription not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/event-subscriptions/{subscription_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/event-subscriptions/{subscription_id} — Edit event subscription

This endpoint allows users to update an existing event subscription.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `subscription_id` | string | Yes | ID of the subscription. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "event",
    "entity_id",
    "attributes"
  ],
  "properties": {
    "event": {
      "type": "string",
      "example": "document.open",
      "description": "Event that triggers the subscription, for example `document.complete`. See the [list of events](/docs/guides-webhooks#entity-events)."
    },
    "action": {
      "type": "string",
      "example": "callback",
      "description": "Always only \"callback\"."
    },
    "entity_id": {
      "type": "string",
      "example": "2e1fa467c4674e988a0542de8bf2f22cb0498410",
      "maxLength": 40,
      "minLength": 40,
      "description": "ID of the entity that should trigger the subscription."
    },
    "attributes": {
      "type": "object",
      "required": [
        "callback"
      ],
      "properties": {
        "headers": {
          "type": "object",
          "properties": {
            "int_head": {
              "type": "integer"
            },
            "bool_head": {
              "type": "boolean"
            },
            "float_head": {
              "type": "number"
            },
            "string_head": {
              "type": "string"
            }
          },
          "description": "You can add any parameters to the \"headers\" array."
        },
        "callback": {
          "type": "string",
          "example": "https://webhook.site/a0093533-766c-456e-b625-97592745216a",
          "description": "URL that should receive the callback."
        },
        "secret_key": {
          "type": "string",
          "maxLength": 300,
          "description": "Enables the HMAC security logic."
        },
        "use_tls_12": {
          "type": "boolean",
          "description": "If true, the 1.2 TLS version will be used. If false, the default TLS version will be used. "
        },
        "integration_id": {
          "type": "string",
          "description": "External system ID."
        },
        "docid_queryparam": {
          "type": "boolean",
          "description": "If true, a JSON that is sent in a callback will contain document ID as a query string parameter and as a part of \"callback_url\" parameter."
        },
        "include_metadata": {
          "type": "boolean",
          "description": "Whether the payload of the webhook should include metadata."
        },
        "delete_access_token": {
          "type": "boolean",
          "default": false,
          "description": "Determines whether to keep access_token in the payload. If true, an access_token key id removed from the payload. If false, the access_token is kept in the payload attributes."
        }
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "event": "document.complete",
  "action": "callback",
  "entity_id": "2e1fa467c4674e988a0542de8bf2f22cb0498410",
  "attributes": {
    "callback": "https://webhook.site/a0093533-766c-456e-b625-97592745216a",
    "use_tls_12": true,
    "docid_queryparam": true
  }
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect Bearer token.
* `event` is not a string.
* `event` is empty.
* `event` doesn't exist.
* `entity_id` is not a string.
* `entity_id` is missing.
* `entity_id` is not 40 characters long.
* `attributes` is not an array.
* `attributes` is empty.
* `attributes` error.
* `callback` is not a string.
* `callback` is empty.
* `callback` is missing.
* `callback` is not a valid email address.
* `callback` URL is not allowed.
* `callback` host unknown or unreachable.
* `use_tls_12` is not a boolean.
* `integration_id` is not a string.
* `integration_id` is not 40 characters long.
* Incorrect `integration_id`.
* `docid_queryparam` is not a boolean.
* `headers` is not an array.
* `secret_key` is not a string.
* `secret_key` is empty.
* `secret_key` is longer than 300 characters.
* `delete_access_token` is not a boolean.
* `include_metadata` is not a boolean.

**Example** (`Empty event`)

```json
{
  "errors": [
    {
      "code": 15007010,
      "message": "The `event` field must not be empty."
    }
  ]
}
```

**Example** (`callback empty`)

```json
{
  "errors": [
    {
      "code": 15007018,
      "message": "The `attributes.callback` field must not be empty."
    }
  ]
}
```

**Example** (`Attributes error`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid payload"
    }
  ]
}
```

**Example** (`Empty attributes`)

```json
{
  "errors": [
    {
      "code": 15007016,
      "message": "The `attributes` field must not be empty."
    }
  ]
}
```

**Example** (`Empty secret_key`)

```json
{
  "errors": [
    {
      "code": 15007025,
      "message": "The `attributes.secret_key` must not be empty."
    }
  ]
}
```

**Example** (`callback missing`)

```json
{
  "errors": [
    {
      "code": 15007028,
      "message": "The \"callback\" field is missing."
    }
  ]
}
```

**Example** (`event not string`)

```json
{
  "errors": [
    {
      "code": 15007009,
      "message": "The `event` field must be string."
    }
  ]
}
```

**Example** (`include_metadata`)

```json
{
  "errors": [
    {
      "code": 15007030,
      "message": "The `attributes.include_metadata` field must be bool."
    }
  ]
}
```

**Example** (`entity_id missing`)

```json
{
  "errors": [
    {
      "code": 15007013,
      "message": "The `entity_id` field must not be empty."
    }
  ]
}
```

**Example** (`headers not array`)

```json
{
  "errors": [
    {
      "code": 15007023,
      "message": "The `attributes.headers` field must be array."
    }
  ]
}
```

**Example** (`callback not string`)

```json
{
  "errors": [
    {
      "code": 15007017,
      "message": "The `attributes.callback` field must be string."
    }
  ]
}
```

**Example** (`event doesn't exist`)

```json
{
  "errors": [
    {
      "code": 15007011,
      "message": "Provided event does not exist."
    }
  ]
}
```

**Example** (`secret_key too long`)

```json
{
  "errors": [
    {
      "code": 15007026,
      "message": "The `secret_key` value is too long. It should have 300 character or less."
    }
  ]
}
```

**Example** (`attributes not array`)

```json
{
  "errors": [
    {
      "code": 15007015,
      "message": "The `attributes` field must be array."
    }
  ]
}
```

**Example** (`entity_id not string`)

```json
{
  "errors": [
    {
      "code": 15007012,
      "message": "The `entity_id` field must be string."
    }
  ]
}
```

**Example** (`secret_key not string`)

```json
{
  "errors": [
    {
      "code": 15007024,
      "message": "The `attributes.secret_key` must be string."
    }
  ]
}
```

**Example** (`Incorrect Bearer token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`entity_id length error`)

```json
{
  "errors": [
    {
      "code": 15007014,
      "message": "The `entity_id` field must have 40 characters."
    }
  ]
}
```

**Example** (`use_tls_12 not boolean`)

```json
{
  "errors": [
    {
      "code": 15007020,
      "message": "The `attributes.use_tls_12` field must be bool."
    }
  ]
}
```

**Example** (`Incorrect integration_id`)

```json
{
  "errors": [
    {
      "code": 15007032,
      "message": "Invalid integration id - 2d384c8a99ff4b6980a52c484b8ca0bdbf8cfc70"
    }
  ]
}
```

**Example** (`callback URL not allowed`)

```json
{
  "errors": [
    {
      "code": 15006001,
      "message": "Host is not allowed."
    }
  ]
}
```

**Example** (`integration_id not string`)

```json
{
  "errors": [
    {
      "code": 15007021,
      "message": "The `attributes.integration_id` field must be string."
    }
  ]
}
```

**Example** (`integration_id length error`)

```json
{
  "errors": [
    {
      "code": 15007031,
      "message": "The `integration_id` field must have 40 characters."
    }
  ]
}
```

**Example** (`docid_queryparam not boolean`)

```json
{
  "errors": [
    {
      "code": 15007022,
      "message": "The `attributes.docid_queryparam` field must be bool."
    }
  ]
}
```

**Example** (`callback not an email address`)

```json
{
  "errors": [
    {
      "code": 15007019,
      "message": "The `attributes.callback` field must be url."
    }
  ]
}
```

**Example** (`delete_access_token not boolean`)

```json
{
  "errors": [
    {
      "code": 15007027,
      "message": "The `attributes.delete_access_token` field must be bool."
    }
  ]
}
```

**Example** (`callback host unknown or unreachable`)

```json
{
  "errors": [
    {
      "code": 15007029,
      "message": "Unknown callback host or callback host unreachable."
    }
  ]
}
```

### 403

* The bearer token is valid but it belongs to another user.
* Subscription update is not allowed.
* API subscription is not found.
* API subscription is inactive.
* API subscription has expired.

**Example** (`Token of another user`)

```json
{
  "errors": [
    {
      "code": 15006004,
      "message": "Event subscription is not allowed."
    }
  ]
}
```

**Example** (`Expired API subscription`)

```json
{
  "errors": [
    {
      "code": 80001005,
      "message": "Your API subscription has expired."
    }
  ]
}
```

**Example** (`Inactive API subscription`)

```json
{
  "errors": [
    {
      "code": 80001003,
      "message": "Your API subscription is inactive."
    }
  ]
}
```

**Example** (`API subscription not found`)

```json
{
  "errors": [
    {
      "code": 80001002,
      "message": "Your API subscription could not be found."
    }
  ]
}
```

**Example** (`Subscription update not allowed`)

```json
{
  "errors": [
    {
      "code": 15006010,
      "message": "Updating of subscription to event is not allowed"
    }
  ]
}
```

### 404

* The entity ID doesn't exist.
* The subscription ID doesn't exist.

**Example** (`Entity ID not found`)

```json
{
  "errors": [
    {
      "code": 15006005,
      "message": "Not found entity with id = 4d184c8a99ff4b6980a52c484b8ca0bdbf8cfc70"
    }
  ]
}
```

**Example** (`Subscription ID not found`)

```json
{
  "errors": [
    {
      "code": 15006003,
      "message": "Event subscription not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/event-subscriptions/{subscription_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"event": "document.complete", "action": "callback", "entity_id": "2e1fa467c4674e988a0542de8bf2f22cb0498410", "attributes": {"callback": "https://webhook.site/a0093533-766c-456e-b625-97592745216a", "use_tls_12": true, "docid_queryparam": true}}'
```

---

## DELETE /v2/event-subscriptions/{subscription_id} — Delete event subscription

This endpoint allows users to delete an event subscription.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `subscription_id` | string | Yes | ID of the subscription. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Responses

### 204

Success, no content

### 400

Incorrect Bearer token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The bearer token is valid but it belongs to another user.
* Email notifications are turned on for this subscription.

**Example** (`Another user's token`)

```json
{
  "errors": [
    {
      "code": 15006004,
      "message": "Event subscription is not allowed."
    }
  ]
}
```

**Example** (`Email notifications error`)

```json
{
  "errors": [
    {
      "code": 15006040,
      "message": "This webhook sends data to a callback URL that is used in your email notifications as a filter. The email address that receives notification is {notificationEmail}. First, remove the callback URL from the notification at API Dashboard, and then unsubscribe from the webhook."
    }
  ]
}
```

### 404

* The subscription ID doesn't exist.
* The subscription ID value is incorrect (must match [a-z0-9]{40}).

**Example** (`Incorrect subscription ID`)

```json
{
  "errors": [
    {
      "code": 15006003,
      "message": "Event subscription not found."
    }
  ]
}
```

**Example** (`Subscription ID doesn't exist`)

```json
{
  "errors": [
    {
      "code": 15006003,
      "message": "Event subscription not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/event-subscriptions/{subscription_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/event-subscriptions/{subscription_id}/activate — Activate event subscription

This endpoint allows users to activate an inactive event subscription.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `subscription_id` | string | Yes | ID of the subscription. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Responses

### 204

Success, no content

### 400

Incorrect Bearer token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

The bearer token is valid but it belongs to another user.

**Example** (`Subscription not allowed`)

```json
{
  "errors": [
    {
      "code": 15006004,
      "message": "Event subscription is not allowed."
    }
  ]
}
```

### 404

* The subscription ID doesn't exist.
* The subscription ID value is incorrect (must match [a-z0-9]{40}).

**Example** (`Incorrect subscription ID`)

```json
{
  "404": "Unable to find a route to match the URI: v2/dashboard/event-subscriptions/test"
}
```

**Example** (`Subscription ID doesn't exist`)

```json
{
  "errors": [
    {
      "code": 15006003,
      "message": "Event subscription not found."
    }
  ]
}
```

### 422

This subscription ID is already active.

**Example** (`Subscription already active`)

```json
{
  "errors": [
    {
      "code": 15006008,
      "message": "Event subscription is already active."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/event-subscriptions/{subscription_id}/activate" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## PUT /v2/event-subscriptions/{subscription_id}/deactivate — Deactivate event subscription

This endpoint allows users to deactivate an active event subscription. Deactivated event subscriptions are not processing callbacks, that they are related to.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `subscription_id` | string | Yes | ID of the subscription. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Responses

### 204

Success, no content

### 400

Incorrect Bearer token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

The bearer token is valid but it belongs to another user.

**Example** (`Subscription not allowed`)

```json
{
  "errors": [
    {
      "code": 15006004,
      "message": "Event subscription is not allowed."
    }
  ]
}
```

### 404

* The subscription ID doesn't exist.
* The subscription ID value is incorrect (must match [a-z0-9]{40}).

**Example** (`Incorrect subscription ID`)

```json
{
  "404": "Unable to find a route to match the URI: v2/dashboard/event-subscriptions/test"
}
```

**Example** (`Subscription ID doesn't exist`)

```json
{
  "errors": [
    {
      "code": 15006003,
      "message": "Event subscription not found."
    }
  ]
}
```

### 422

This subscription ID is already inactive.

**Example** (`Subscription already deactivated`)

```json
{
  "errors": [
    {
      "code": 15006007,
      "message": "Event subscription is already deactivated."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/event-subscriptions/{subscription_id}/deactivate" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## POST /team — Create a team

This endpoint allows API users to create a team.

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the team. Up to `80` characters."
    },
    "type": {
      "type": "string",
      "description": "Team type: `VIEWABLE` or `SHAREABLE`. Default: `VIEWABLE`."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "name": "New team",
  "type": "VIEWABLE"
}
```

## Responses

### 200

The team was created.

**Example** (`Successful response`)

```json
{
  "id": "70e7a191075ce507bf879218e35533fc8457ce37"
}
```

### 400

* Incorrect or missing `name`.
* Incorrect payload.
* Incorrect team type.


**Example** (`Incorrect payload`)

```json
{
  "code": 65536,
  "message": "Invalid payload"
}
```

**Example** (`Incorrect team type`)

```json
{
  "code": 65536,
  "message": "Team type is not valid"
}
```

**Example** (`Incorrect or missing name`)

```json
{
  "code": 65701,
  "message": "Name must not be empty"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/team" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "New team", "type": "VIEWABLE"}'
```

---

## GET /team/{team_id} — Get team

This endpoint allows API users to get information about a team.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `team_id` | string | Yes | ID of the team. |

## Responses

### 200

Team details.

**Example** (`Successful response`)

```json
{
  "id": "d6c184bc8949c9993cd5df63b84c71d072b392c3",
  "name": "Team 1",
  "type": "VIEWABLE",
  "active": true,
  "created": "1792665938",
  "members": [
    {
      "id": "c2fbe5919b42cc30f418c031665450d203c081a1",
      "role": "admin",
      "emails": [
        "user@example.com"
      ],
      "status": "accepted",
      "billing": 1,
      "primary": true,
      "full_name": "John Doe",
      "avatar_url": null,
      "can_admin_view": false,
      "document_access": 1
    }
  ],
  "updated": "1792665938",
  "settings": [
    {
      "value": "No",
      "description": "only_administrator_is_able_to_invite_to_the_team"
    },
    {
      "value": "0",
      "description": "enable_team_generic_email"
    },
    {
      "value": "0",
      "description": "hide_doc_copy_options"
    },
    {
      "value": "",
      "description": "team_default_document_folder"
    },
    {
      "value": "1",
      "description": "support_template_sl"
    }
  ],
  "generic_name": null,
  "workspace_id": null,
  "generic_email": null
}
```

### 400

* User is not in the team.
* Team not found.

**Example** (`Team not found`)

```json
{
  "code": 66391,
  "message": "Team not found"
}
```

**Example** (`User not in the team`)

```json
{
  "code": 65582,
  "message": "User is not part of this team"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/team/{team_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /team/{team_id} — Rename team

This endpoint allows API users to rename a team.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `team_id` | string | Yes | ID of the team. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "New name of the team. Up to `80` characters."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "name": "New team name"
}
```

## Responses

### 200

The team was renamed.

**Example** (`Successful response`)

```json
{
  "id": "70e7a191075ce507bf879218e35533fc8457ce37"
}
```

### 400

Trying to rename team by user who is not primary admin.

**Example** (`Not a team admin`)

```json
{
  "code": 65582,
  "message": "User is not an admin of this team"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/team/{team_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "New team name"}'
```

---

## DELETE /team/{team_id} — Delete team

This endpoint allows API users to delete a team.

> [!NOTE]
> Only the team's primary admin can call this endpoint.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `team_id` | string | Yes | ID of the team. |

## Responses

### 200

The team was deleted.

**Example** (`Successful response`)

```json
{
  "status": "success"
}
```

### 400

* User is not a primary admin of the team.
* Team not found.

**Example** (`Team not found`)

```json
{
  "code": 66391,
  "message": "Team not found"
}
```

**Example** (`User not primary admin`)

```json
{
  "code": 65582,
  "message": "User is not an admin of this team"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/team/{team_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/teams — Get user's teams

This endpoint allows API users to get the list of teams the user belongs to.

## Authorization

bearer

## Responses

### 200

List of teams the user belongs to.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "27b7ed0c850d3b7b414a0b9e6a9db01320eb726d",
      "name": "Team 1",
      "role": "admin",
      "type": "SHAREABLE",
      "active": 1,
      "created": 1736874852,
      "workspace_id": "9ae7f5c493225ace5b744bb1d3f6004008287ef0"
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/teams" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /team/{request_id}/request — Accept or decline invitation to a team

This endpoint allows API users to accept or decline an invite to join a team.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `request_id` | string | Yes | ID of the team invite. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "accept"
  ],
  "properties": {
    "accept": {
      "type": "boolean",
      "description": "`true` to accept the invite, `false` to decline it."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "accept": true
}
```

## Responses

### 200

The invite was accepted or declined.

**Example** (`Successful response`)

```json
{
  "result": "success"
}
```

### 400

* Wrong, expired, or missing token.
* The team invite doesn't exist.
* The team invite was sent to another user.
* The request body is missing or isn't valid JSON.
* `accept` isn't `true` or `false`.
* The team invite was already accepted or declined.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Invalid payload`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid payload"
    }
  ]
}
```

**Example** (`Invite not found`)

```json
{
  "errors": [
    {
      "code": 66392,
      "message": "Team request not found"
    }
  ]
}
```

**Example** (`Invite not pending`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "This request is not pending"
    }
  ]
}
```

**Example** (`Wrong accept value`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Accept must have a valid value."
    }
  ]
}
```

**Example** (`Invite belongs to another user`)

```json
{
  "errors": [
    {
      "code": 65598,
      "message": "You cannot access somebody else's team request"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/team/{request_id}/request" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"accept": true}'
```

---

## GET /team/{request_id}/request — Get team invite

This endpoint allows API users to get information about a user's team invite.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `request_id` | string | Yes | ID of the team invite. |

## Responses

### 200

Team invite details. Possible values of `request_status`:

* `waiting`: the user has not accepted or declined the invite.
* `approved`: the user accepted the invite.
* `declined`: the user declined the invite.
* `denied`: the invite was rejected by a team admin.
* `unknown`: an error occurred.

**Example** (`Successful response`)

```json
{
  "role": "user",
  "team_id": "27b7ed0c850d3b7b414a0b9e6a9db01320eb726d",
  "team_name": "Team 1",
  "request_id": "ec476e8a5ffa444b637961278acbbfb79dac54f4",
  "request_status": "waiting"
}
```

### 400

* The invite is not for this user.
* Invite not found.

**Example** (`Invite not found`)

```json
{
  "code": 66392,
  "message": "Team request not found"
}
```

**Example** (`Invite belongs to another user`)

```json
{
  "code": 65598,
  "message": "You cannot access somebody else's team request"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/team/{request_id}/request" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /team/{team_id}/request — Invite user to a team

This endpoint allows API users to invite users to a team.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `team_id` | string | Yes | ID of the team. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "emails"
  ],
  "properties": {
    "emails": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Email addresses of the users to invite."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "emails": [
    "user1@example.com",
    "user2@example.com"
  ]
}
```

## Responses

### 200

Invite results, one per email address in the request.

**Example** (`Successful response`)

```json
{
  "team_requests": [
    {
      "id": "ec476e8a5ffa444b637961278acbbfb79dac54f4",
      "email": "user@example.com",
      "status": "success"
    }
  ]
}
```

### 400

* Incorrect or empty payload.
* One or more emails adresses are incorrect.
* User is not in the team.
* Team not found.


**Example** (`Team not found`)

```json
{
  "code": 66391,
  "message": "Team not found"
}
```

**Example** (`User not in the team`)

```json
{
  "code": 65615,
  "message": "Operation not allowed"
}
```

**Example** (`Incorrect email or emails`)

```json
{
  "code": 65582,
  "message": "Invalid Email."
}
```

**Example** (`Incorrect or missing payload`)

```json
{
  "code": 65582,
  "message": "Emails are required."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/team/{team_id}/request" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"emails": ["user1@example.com", "user2@example.com"]}'
```

---

## DELETE /team/{team_id}/user/{user_id} — Delete user from team

This endpoint allows API users to remove a user from a team.

**Notes**

* The team primary admin can remove any user from the team.
* Team members can remove themselves from the team.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `team_id` | string | Yes | ID of the team. |
| `user_id` | string | Yes | ID of the user. |

## Responses

### 200

The user was removed from the team.

**Example** (`Successful response`)

```json
{
  "result": "success"
}
```

### 400

* Incorrect `access_token`: it must belong to the team primary admin or to the user being deleted.
* Team not found.
* User not found.

**Example** (`Team not found`)

```json
{
  "code": 66362,
  "message": "Team not found"
}
```

**Example** (`User not found`)

```json
{
  "code": 65582,
  "message": "User not found"
}
```

**Example** (`Insufficient rights`)

```json
{
  "code": 65582,
  "message": "Only the admin or person being deleted can delete themselves"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/team/{team_id}/user/{user_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PATCH /v2/teams/{request_id}/request — Update team invite status

This endpoint allows API users to update the status of an invite to join a team. Works only for the invite requests with the `waiting` status.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `request_id` | string | Yes | ID of the invite to join the team. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "request_status"
  ],
  "properties": {
    "request_status": {
      "type": "string",
      "description": "The updated status of the invite request. Possible values:  `denied`, `declined`, `approved`."
    }
  }
}
```

**Example** (`Updated status: approved`)

```json
{
  "request_status": "approved"
}
```

## Responses

### 200

The invite status was updated.

**Example** (`Successful response`)

```json
{
  "result": "success"
}
```

### 400

* User declines the invite which is not in the `waiting` status.
* User accepts/denies invite which isn't addressed to them.
* Request ID doesn't exist.
* User who updates the invite is a member of the organization with specific parameters.

**Example** (`Request ID doesn't exist`)

```json
{
  "errors": [
    {
      "code": 66392,
      "message": "Team request not found"
    }
  ]
}
```

**Example** (`Accepts/denies somebody's invite `)

```json
{
  "errors": [
    {
      "code": 12023003,
      "message": "You cannot access somebody else's team request"
    }
  ]
}
```

**Example** (`Declines the not `waiting` invite `)

```json
{
  "errors": [
    {
      "code": 12023004,
      "message": "This request is not pending"
    }
  ]
}
```

**Example** (`Organization with specific parameters`)

```json
{
  "errors": [
    {
      "code": 65615,
      "message": "Your Organization restricts you from joining this team"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PATCH \
  "https://api.signnow.com/v2/teams/{request_id}/request" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"request_status": "approved"}'
```

---

## GET /v2/teams/{team_id}/members — Get team members

This endpoint allows API users to retrieve the list of team members, including admins.

Only team members can use the endpoint.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `team_id` | string | Yes | ID of the team. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `with_declined_requests` | boolean | No | Include users that declined an invitation to join the team. |

## Responses

### 200

Successful response. Returns the members of the team, including admins. To also return users who declined or have not accepted the invite to the team, add `with_declined_requests=true`.

**Example** (`Success`)

```json
{
  "data": [
    {
      "id": "21436a9a91c744239f02318d4090d3c188f4f378",
      "role": "admin",
      "emails": [
        "member@mail.com"
      ],
      "status": "accepted",
      "billing": 1,
      "primary": true,
      "full_name": "Jane Doe",
      "avatar_url": "https://example.com/avatars/user12345.png",
      "can_admin_view": false,
      "document_access": 1
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

**Example** (`With declined requests`)

```json
{
  "data": [
    {
      "id": "23278db3aa1e40069462f00b2074673a682731a6",
      "role": "member",
      "emails": [
        "member1@mail.com"
      ],
      "status": "pending",
      "full_name": "Jane Doe",
      "avatar_url": "https://cdn.example.com/users/avatars/56789.jpg",
      "invited_by": "admin@mail.com",
      "request_uid": "983d5d4fca18841e78be8061622beeaed6a9da2cd",
      "request_role": "member",
      "request_updated": 1719840457
    },
    {
      "id": "b215d678cb01420c850c354859e0b6d8b4425b89",
      "role": "admin",
      "emails": [
        "admin@mail.com"
      ],
      "status": "accepted",
      "billing": 1,
      "primary": false,
      "full_name": "Jane Doe",
      "avatar_url": "https://app.signnow.com/api/v2/avatars/66de0c3d72a24682848dc5d87f4007c1f2de22b7/download",
      "document_access": 1
    },
    {
      "id": "399b9178e4244152878e85333a360a95608a2723",
      "role": "member",
      "emails": [
        "member2@mail.com"
      ],
      "status": "accepted",
      "full_name": "Anna Green",
      "avatar_url": "https://app.signnow.com/api/v2/avatars/66de0c3d72a24682848dc5d87f4007c1f2de22a8/download",
      "request_role": "member"
    },
    {
      "id": "21436a9a91c744239f02318d4090d3c188f4f378",
      "role": "member",
      "emails": [
        "member3@mail.com"
      ],
      "status": "accepted",
      "full_name": "Jeremy Black",
      "avatar_url": "https://app.signnow.com/api/v2/avatars/99de0c3d72a24682848dc5d87f4007c1f2de22b7/download",
      "request_role": "member"
    },
    {
      "id": "8bb5e7e301e4468fb54fcf1c0f4892d8aebca3f3",
      "role": "admin",
      "emails": [
        "admin2@mail.com"
      ],
      "status": "accepted",
      "billing": 1,
      "primary": true,
      "full_name": "Elaine Hicks",
      "avatar_url": "https://app.signnow.com/api/v2/avatars/55de0c3d72a24682848dc5d87f4007c1f2de22b7/download",
      "document_access": 1
    },
    {
      "id": "0bc4a5b4f22548ec89344e9a5ecd94c6ba5baefd",
      "role": "member",
      "emails": [
        "member4@mail.com"
      ],
      "status": "declined",
      "full_name": "Kate Brown",
      "avatar_url": "https://app.signnow.com/api/v2/avatars/33de0c3d72a24682848dc5d87f4007c1f2de22b7/download",
      "request_role": "member"
    }
  ],
  "meta": {
    "pagination": {
      "count": 6,
      "links": [],
      "total": 6,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* User is not team member.
* Team not found.


**Example** (`Team not found`)

```json
{
  "errors": [
    {
      "code": 66391,
      "message": "Team not found"
    }
  ]
}
```

**Example** (`User not team member`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "User is not part of this team"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/teams/{team_id}/members" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /oauth2/terminate — Terminate access token

This endpoint allows API users to terminate the access token sent in the `Authorization` header. The token can no longer be used for Bearer authentication.

**Notes**

* To continue making requests, get a new access token.

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {}
}
```

## Responses

### 204

The access token has been revoked and can no longer be used. No content returned.

### 400

- Incorrect or expired access token.
- Token authentication is missing.


**Example** (`Invalid request`)

```json
{
  "error": "invalid_request"
}
```

**Example** (`Token authentication missing`)

```json
{
  "error": "invalid_request"
}
```

**Example** (`Incorrect or expired access token`)

```json
{
  "error": "invalid_token"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/oauth2/terminate" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## POST /oauth2/token — Generate access token

This endpoint allows API users to generate an access token for a user.

In the request, specify the `grant_type` to use:

- `password`: generate an access token using the [password grant](/docs/authentication#password-grant).

- `refresh_token`: generate an access token using the [refresh token grant](/docs/authentication#refresh-token-grant).

- `authorization_code`: generate an access token using the [authorization code grant](/docs/authentication#authorization-code-grant).

See also: [Authentication](/docs/authentication#about-authentication).

## Authorization

basic

## Form Data Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `username` | string | Yes | User email. Required if `grant_type`: `password`. |
| `password` | string | Yes | User password. Required if `grant_type`: `password`. |
| `grant_type` | string | Yes | Specifies the grant type for authorization. Possible values: `password`, `refresh_token`, `authorization_code`. |
| `scope` | string | No | Permissions for the issued token; `*` grants all permissions. Using scope, you can define a custom list of accessible URLs.  For example: `document/* GET/user` will allow access to:  1) all routes starting with `/document/` 2) `GET /user` route. |
| `refresh_token` | string | No | The refresh token value, obtained from the `Generate access token` response. Required if `grant_type`: `refresh_token`. |
| `code` | string | No | The authorization code, obtained from the [Get authorization code](/docs/oauth2/operations/get-oauth2-userauth) response. Required if `grant_type`: `authorization_code`. |
| `expiration_time` | integer | No | Time until the token expires in seconds. Default value is 2592000  seconds (30 days). |

## Responses

### 200

Returns an `access_token` for the user, along with its type, scope, expiration time, and `refresh_token`.

**Example** (`Successful response`)

```json
{
  "scope": "*",
  "expires_in": 2592000,
  "last_login": 1,
  "token_type": "bearer",
  "access_token": "7cXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "refresh_token": "59XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
```

### 400

* `invalid_client`: the Basic authorization token is wrong or missing.
* `invalid_request`: a required parameter is missing, or `grant_type` is missing or not supported.
* The password or email is wrong.
* The refresh token is wrong or expired.
* The `scope` is wrong.
* The authorization code is wrong.
* The user's email isn't verified.
* The user is permanently or temporarily banned.
* The user must sign in through their organization's SSO page.

Most errors return `error` and `code`. Some return only `error`, and a wrong authorization code returns the `errors` array.

**Example** (`Wrong scope`)

```json
{
  "code": 8,
  "error": "invalid_scope"
}
```

**Example** (`Wrong password`)

```json
{
  "code": 826,
  "error": "Invalid credentials."
}
```

**Example** (`Unverified email`)

```json
{
  "code": 1545,
  "error": "unverified_email"
}
```

**Example** (`Wrong grant type`)

```json
{
  "code": 1537,
  "error": "invalid_request"
}
```

**Example** (`Wrong Basic token`)

```json
{
  "error": "invalid_client"
}
```

**Example** (`Missing Basic token`)

```json
{
  "code": 1538,
  "error": "invalid_client"
}
```

**Example** (`Wrong refresh token`)

```json
{
  "code": 997,
  "error": "Invalid refresh token. Please log out and log back in again."
}
```

**Example** (`Wrong authorization code`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "internal api error"
    }
  ]
}
```

**Example** (`Missing required parameter`)

```json
{
  "code": 0,
  "error": "invalid_request"
}
```

**Example** (`User is permanently banned`)

```json
{
  "code": 65681,
  "error": "This account has been deactivated permanently. Please contact SignNow Customer Service to reactivate your account."
}
```

**Example** (`User is temporarily banned`)

```json
{
  "code": 65681,
  "error": "This account has been deactivated temporarily for %N% minutes. To reactivate the account sooner, please contact SignNow Customer Service."
}
```

**Example** (`User is restricted by SSO or organization`)

```json
{
  "error": "Please use your corporate login page to login to SignNow."
}
```

### 403

The user isn't the owner of the application, or the email doesn't belong to a SignNow user.

**Example** (`Access denied`)

```json
{
  "errors": [
    {
      "code": 11005001,
      "message": "Access denied."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/oauth2/token" \
  -H "Authorization: Basic $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## GET /oauth2/token — Verify access token

This endpoint allows API users to verify an access token.

## Authorization

bearer

## Responses

### 200

Returns the access_token itself as well as its' scope, expiration date, and type.

**Example** (`Successful response`)

```json
{
  "scope": "*",
  "expires_in": "2517898",
  "token_type": "bearer",
  "access_token": "8dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
```

### 400

The token is wrong or expired.

**Example** (`Wrong token`)

```json
{
  "error": "invalid_token"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/oauth2/token" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /oauth2/userauth — Get authorization code via redirect

This endpoint allows API users to obtain an authorization code via an application redirect link. The code can then be used to generate an access token (bearer token) to make API requests on behalf of the user — without using their SignNow credentials. 

For more information, see [Generate access token](/docs/oauth2/operations/post-oauth2-token).

## Authorization

bearer

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `response_type` | string | Yes | Must be equal to `code`. |
| `redirect_uri` | string | Yes | URL to which the user is redirected after authorizing your app. The authorization code is sent to this URL. |
| `client_id` | string | Yes | Your application’s client ID, found in the [API Dashboard](https://app.signnow.com/webapp/api-dashboard/keys). |
| `access_token` | string | Yes | An application-level access token. Used to request the user authorization page, which contains a link to obtain the authorization code. |

## Responses

### 302

Redirect to the `redirect_uri` with the authorization code in the `code` query parameter. The body is an HTML page with the same redirect link.

**Example** (`text/html`)

```json
"<!DOCTYPE html>\n<html>\n    <head>\n        <meta charset=\"UTF-8\" />\n        <meta http-equiv=\"refresh\" content=\"0;url='https://example.com?code={authorization_code}'\" />\n\n        <title>Redirecting to https://example.com?code={authorization_code}</title>\n    </head>\n    <body>\n        Redirecting to <a href=\"https://example.com?code={authorization_code}\">https://example.com?code={authorization_code}</a>.\n    </body>\n</html>"
```

### 400

* Incorrect `client_id`.
* `access_token` is missing.
* `client_id` is missing.
* `response_type` is missing.
* `redirect_url` is missing.

**Example** (`Missing parameter`)

```json
{
  "code": 1537,
  "error": "invalid_request"
}
```

**Example** (`Incorrect client_id`)

```json
{
  "code": 65536,
  "error": "internal api error"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/oauth2/userauth" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/organizations/{org_id}/email-footers — Create email footer (deprecated)

This endpoint is deprecated.

Allows users to create email footer text that is added to every email sent on behalf of the organization.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the organization where the email footer is set. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "footer"
  ],
  "properties": {
    "footer": {
      "type": "string",
      "minLength": 1,
      "description": "The email footer text that is added to every email sent on behalf of the organization."
    }
  },
  "x-examples": {
    "example-1": {
      "footer": "footer text"
    }
  },
  "description": ""
}
```

**Example** (`Request body`)

```json
{
  "footer": "footer text"
}
```

## Responses

### 200

Returns the footer id in case of successful response for the admins and moderators with trial, professional and enterprise subscription. Returns an error when:

* If user is not admin/moderator of the Org, "code": 12003003. Message: "Access denied for current administration role in your organization."
* If user who does not have appropriate subscription tries to update settings, "code": 12003002. Message: "Access denied for current asubscription."
* If user tries to update settings of the organization that is not active or does not exist, "code": 12003001. Message: "Organization `deXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found."
* The `footer` field is required, "code": 12010002. Message: "The `footer` field is required."
* The `footer` field must be a string, "code": 12010001. Message: "The `footer` field must be a string."
* The `footer` field length must be less than 65536 characters, "code": 12010005. Message: "The `footer` field length must be less than 65536 characters."

**Example** (`Successful response`)

```json
{
  "id": "12XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/organizations/{org_id}/email-footers" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"footer": "footer text"}'
```

---

## GET /v2/organizations/{org_id}/email-footers — Get all email footers (deprecated)

This endpoint is deprecated.

Allows users to retrieve all email footers of the organization.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the organization where the email footer is set. |

## Responses

### 200

Returns the list of footers in case of successful response for the admins and moderators with trial, professional and enterprise subscription. Returns an error when:

* If user is not admin/moderator of the Org, "code": 12003003. Message: "Access denied for current administration role in your organization."
* If user who does not have appropriate subscription tries to update settings, "code": 12003002. Message: "Access denied for current asubscription."
* If user tries to update settings of the organization that is not active or does not exist, "code": 12003001. Message: "Organization `deXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found."

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "caXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "active": true,
      "footer": "footer text",
      "created_at": 1600251592,
      "updated_at": 1600251592
    },
    {
      "id": "e8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "active": false,
      "footer": "footer text",
      "created_at": 1600249745,
      "updated_at": 1600251592
    }
  ],
  "meta": {
    "pagination": {
      "count": 3,
      "links": [],
      "total": 3,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{org_id}/email-footers" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/organizations/{org_id}/email-footers/{footer_id} — Get email footer text (deprecated)

This endpoint is deprecated.

Allows users to retrieve a specific email footer text of the organization.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the organization the email footer is retrieved for. |
| `footer_id` | string | Yes | ID of the retrieved footer. |

## Responses

### 200

Returns the list of footers in case of successful response for the admins and moderators with trial, professional and enterprise subscription. Returns an error when:

* If user is not admin/moderator of the Org, "code": 12003003. Message: "Access denied for current administration role in your organization."
* If user who does not have appropriate subscription tries to update settings, "code": 12003002. Message: "Access denied for current asubscription."
* If user tries to update settings of the organization that is not active or does not exist, "code": 12003001. Message: "Organization `deXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found."
* Email footer is not found, "code": 12010003. Message: "EmailFooter `%` is not found."

**Example** (`Successful response`)

```json
{
  "data": {
    "id": "12XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "active": true,
    "footer": "footer text",
    "created_at": 1600254668,
    "updated_at": 1600254668
  }
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{org_id}/email-footers/{footer_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/organizations/{org_id}/email-footers/{footer_id} — Update email footer (deprecated)

This endpoint is deprecated.

Allows users to update a specific email footer text of the organization.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the organization the email footer is retrieved for. |
| `footer_id` | string | Yes | ID of the retrieved footer. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "footer",
    "active"
  ],
  "properties": {
    "active": {
      "type": "boolean",
      "description": "Set this footer active or not. Possible values: `true` - set active, `false` - deactivate."
    },
    "footer": {
      "type": "string",
      "minLength": 1,
      "description": "The footer text."
    }
  },
  "x-examples": {
    "example-1": {
      "active": true,
      "footer": "footer text"
    }
  },
  "description": ""
}
```

**Example** (`Request body`)

```json
{
  "active": true,
  "footer": "footer text"
}
```

## Responses

### 204

Returns the 204: No content in case of successful response for the admins and moderators with trial, professional and enterprise subscription. Returns an error when:

* If user is not admin/moderator of the Org, "code": 12003003. Message: "Access denied for current administration role in your organization."
* If user who does not have appropriate subscription tries to update settings, "code": 12003002. Message: "Access denied for current asubscription."
* If user tries to update settings of the organization that is not active or does not exist, "code": 12003001. Message: "Organization `deXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found."
* Email footer is not found, "code": 12010003. Message: "EmailFooter `%` is not found."
* The `footer` field must be a string, "code": 12010001. Message: "The `footer` field must be a string."
* The `footer` field length must be less than 65536 characters, "code": 12010005. Message: "The `footer` field length must be less than 65536 characters."
* The `active` field must be a boolean value, "code": 12010006. Message: "The `active` field must be a boolean value."

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/organizations/{org_id}/email-footers/{footer_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"active": true, "footer": "footer text"}'
```

---

## POST /v2/organizations — Create organization

This endpoint allows API users to create an organization. The user who creates the organization becomes its admin.

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "Name of the organization. Max length: 255 chars."
    }
  },
  "x-examples": {
    "example-1": {
      "name": "Test ORG"
    }
  },
  "description": ""
}
```

**Example** (`Request body`)

```json
{
  "name": "Test ORG"
}
```

## Responses

### 201

Successful response. Returns the ID of the new organization.

**Example** (`Successful response`)

```json
{
  "id": "1afee427a35e404e9eb6f98cb6586f5e3ccef0a2"
}
```

### 400

* Wrong, expired, or missing token.
* `name` is missing.
* `name` isn't a string.
* `name` is longer than `80` characters.
* The user has reached the organization limit: `5` on a trial subscription, `50` on Professional or Enterprise.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Missing name`)

```json
{
  "errors": [
    {
      "code": 12001002,
      "message": "The `name` field is required."
    }
  ]
}
```

**Example** (`name too long`)

```json
{
  "errors": [
    {
      "code": 12001004,
      "message": "The `name` field length must be less than 80 characters."
    }
  ]
}
```

**Example** (`name not a string`)

```json
{
  "errors": [
    {
      "code": 12001003,
      "message": "The `name` field must be a string."
    }
  ]
}
```

**Example** (`Organization limit reached`)

```json
{
  "errors": [
    {
      "code": 12001006,
      "message": "The number of created organizations has been exceeded."
    }
  ]
}
```

### 403

The user doesn't have an active trial, Professional, or Enterprise subscription.

**Example** (`No subscription`)

```json
{
  "errors": [
    {
      "code": 12003002,
      "message": "Access denied for current subscription."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/organizations" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "Test ORG"}'
```

---

## GET /v2/organizations — Get admin's organizations

This endpoint allows API users to retrieve the organizations in which the user is a moderator or admin.

## Authorization

bearer

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `per_page` | string | No | Allowed values: positive integers from 1 to 100. |
| `page` | string | No | Allowed values: any positive integer starting from 1. |
| `filter:status` | string | No | Possible values: active, pending. Format: `?filters=[{"status":{"type": "=", "value":"active\|pending"}}]` |
| `filter:type` | string | No | Possible values: member/admin/moderator. Format: `?filters=[{"type":{"type": "in", "value":["member\|admin\|moderator"]}}]` |

## Responses

### 200

Successful response. Returns the list of organizations.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "9653afba76f8ca227f6526f479b980e0554fe242",
      "logo": null,
      "name": "Sample Organization",
      "active": true,
      "membership": [
        {
          "type": "admin",
          "status": "active",
          "invited_by": {
            "id": "user_unique_id",
            "email": "user@email.com"
          }
        }
      ]
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": {
        "next": "http://example.com/v2/organizations?page=2"
      },
      "total": 22,
      "per_page": 1,
      "total_pages": 22,
      "current_page": 1
    }
  }
}
```

### 400

* Wrong, expired, or missing token.
* `per_page` isn't a number.
* `per_page` is greater than `100`.
* `page` isn't a number.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`page not a digit`)

```json
{
  "errors": [
    {
      "code": 12006004,
      "message": "Query parameter `page` must be a digit"
    }
  ]
}
```

**Example** (`per_page not a digit`)

```json
{
  "errors": [
    {
      "code": 12006001,
      "message": "Query parameter `per_page` must be a digit"
    }
  ]
}
```

**Example** (`per_page greater than 100`)

```json
{
  "errors": [
    {
      "code": 12006003,
      "message": "Query parameter `per_page` must be less than or equal 100"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/organizations/{org_id} — Rename organization

Renames an Organization.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the requested organization. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "Name of the organization. Max length: 255 chars."
    }
  },
  "x-examples": {
    "example-1": {
      "name": "Test ORG"
    }
  },
  "description": ""
}
```

**Example** (`Request body`)

```json
{
  "name": "New organization name"
}
```

## Responses

### 204

Successful response. The organization is updated.

### 400

* Wrong, expired, or missing token.
* `name` is missing.
* `name` isn't a string.
* `name` is longer than `80` characters.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Missing name`)

```json
{
  "errors": [
    {
      "code": 12001002,
      "message": "The `name` field is required."
    }
  ]
}
```

**Example** (`name too long`)

```json
{
  "errors": [
    {
      "code": 12001004,
      "message": "The `name` field length must be less than 80 characters."
    }
  ]
}
```

**Example** (`name not a string`)

```json
{
  "errors": [
    {
      "code": 12001003,
      "message": "The `name` field must be a string."
    }
  ]
}
```

### 403

* The user isn't the organization admin.
* The user doesn't have an active trial, Professional, or Enterprise subscription.

**Example** (`Not an admin`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

**Example** (`No subscription`)

```json
{
  "errors": [
    {
      "code": 12003002,
      "message": "Access denied for current subscription."
    }
  ]
}
```

### 404

The organization doesn't exist or isn't active.

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/organizations/{org_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "New organization name"}'
```

---

## DELETE /v2/organizations/{org_id} — Delete organization

Deletes an organization.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the requested organization. |

## Responses

### 204

Successful response. The organization is deleted.

### 400

Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

The user isn't the organization admin.

**Example** (`Not an admin`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

### 404

The organization doesn't exist or isn't active.

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/organizations/{org_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/organizations/{org_id}/activity — Get organization activity

This endpoint allows API users to retrieve document and user activity statistics for an organization.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the organization where the organization activity is retrieved. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `date_from` | integer | Yes | Start of the period, as a Unix timestamp. The period between `date_from` and `date_to` must be shorter than `31` days. |
| `date_to` | integer | Yes | End of the period, as a Unix timestamp. Must be less than `31` days after `date_from`. |

## Responses

### 200

Successful response. Returns the organization activity log.

**Example** (`Successful response`)

```json
{
  "data": {
    "senders": 26,
    "signers": 218,
    "documents": 2042,
    "active_users": 4652,
    "sent_documents": 451,
    "signed_documents": 101,
    "average_complete_time": "0:8:22"
  }
}
```

### 400

Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user isn't an admin or moderator of the organization.
* The user doesn't have an active trial, Professional, or Enterprise subscription.

**Example** (`No subscription`)

```json
{
  "errors": [
    {
      "code": 12003002,
      "message": "Access denied for current subscription."
    }
  ]
}
```

**Example** (`Not an admin or moderator`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

### 404

The organization doesn't exist or isn't active.

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{org_id}/activity" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/organizations/{org_id}/admins — Get the list of admins

This endpoint allows API users to retrieve the list of moderators and admins of an organization.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the requested organization. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `filters:email` | string | No | Filter by email. Format: `?filters=[{"email":{"type": "=", "value": user_email}}] (email should be encoded as url)` |
| `filter:type` | string | No | Filter by organization type. Possible values: active, pending, declined. Format: `?filters=[{"status":{"type": "=", "value":"active/pending/declined"}}]` |
| `filter:type` | string | No | Possible values: admin/moderator. Format: `?filters=[{"type":{"type": "in", "value":["admin\|moderator"]}}]` |

## Responses

### 200

Successful response. Returns the list of organization admins and moderators.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "378448530c0b27c38a62d3a6bbff10b6349feb9a",
      "type": "admin",
      "email": "user@email.com",
      "status": "active"
    },
    {
      "id": "7d35842c3f5e642f4eb575b63160d76197a7b7c3",
      "type": "moderator",
      "email": "org_owner@email.com",
      "status": "pending"
    }
  ],
  "meta": {
    "pagination": {
      "count": 2,
      "links": [],
      "total": 2,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* Wrong, expired, or missing token.
* The filter name isn't supported.
* The `email` filter value isn't a string.
* The `email` filter `type` isn't `=`.
* The filter doesn't have `type` and `value`.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Unsupported filter`)

```json
{
  "errors": [
    {
      "code": 12006006,
      "message": "Unsupported filter mail was given."
    }
  ]
}
```

**Example** (`Wrong filter format`)

```json
{
  "errors": [
    {
      "code": 12004019,
      "message": "Invalid filter format, filter must have `type` and `value` fields"
    }
  ]
}
```

**Example** (`Wrong email filter type`)

```json
{
  "errors": [
    {
      "code": 12004017,
      "message": "The `email` filter expression should be equal to `=`"
    }
  ]
}
```

**Example** (`email filter not a string`)

```json
{
  "errors": [
    {
      "code": 12004018,
      "message": "The `email` filter value should be of type string"
    }
  ]
}
```

### 403

* The user isn't an admin or moderator of the organization.
* The user doesn't have an active trial, Professional, or Enterprise subscription.

**Example** (`No subscription`)

```json
{
  "errors": [
    {
      "code": 12003002,
      "message": "Access denied for current subscription."
    }
  ]
}
```

**Example** (`Not an admin or moderator`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

### 404

The organization doesn't exist or isn't active.

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{org_id}/admins" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/organizations/{org_id}/admins — Add moderator or admin

This endpoint allows API users to add an admin or moderator to an organization.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the requested organization. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "email",
    "type"
  ],
  "properties": {
    "type": {
      "type": "string",
      "minLength": 1,
      "description": "User's type of access in the organization. Possible values: `moderator`, `admin`."
    },
    "email": {
      "type": "string",
      "minLength": 1,
      "description": "Email of the user invited."
    }
  },
  "x-examples": {
    "example-1": {
      "type": "moderator | admin",
      "email": "new_user@gmail.com"
    }
  },
  "description": ""
}
```

**Example** (`Request body`)

```json
{
  "type": "moderator",
  "email": "new_user@email.com"
}
```

## Responses

### 200

Successful response. Returns the ID of the invitation to become an admin or moderator. A user who isn't registered in SignNow is also invited, with the `pending` status.

**Example** (`Successful response`)

```json
{
  "data": {
    "id": "b53da5ff87eb66f1e93961f81f4e7d77ba0189dd",
    "type": "admin",
    "email": "new_admin@email.com",
    "status": "pending"
  }
}
```

### 400

* Wrong, expired, or missing token.
* `email` is missing.
* `type` is missing.
* `type` isn't `admin` or `moderator`.
* `email` isn't a valid email address.
* The user is already an admin or moderator of the organization.

**Example** (`Wrong type`)

```json
{
  "errors": [
    {
      "code": 12004005,
      "message": "The `type` should be equal to `moderator` or admin."
    }
  ]
}
```

**Example** (`Wrong email`)

```json
{
  "errors": [
    {
      "code": 12004006,
      "message": "The `email` is invalid."
    }
  ]
}
```

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Missing type`)

```json
{
  "errors": [
    {
      "code": 12004003,
      "message": "The `type` field is required."
    }
  ]
}
```

**Example** (`Missing email`)

```json
{
  "errors": [
    {
      "code": 12004001,
      "message": "The `email` field is required."
    }
  ]
}
```

**Example** (`Admin already exists`)

```json
{
  "errors": [
    {
      "code": 12004009,
      "message": "Organization admin exists."
    }
  ]
}
```

### 403

* The user isn't an admin or moderator of the organization.
* A moderator tries to add an admin.
* The user doesn't have an active trial, Professional, or Enterprise subscription.

**Example** (`No subscription`)

```json
{
  "errors": [
    {
      "code": 12003002,
      "message": "Access denied for current subscription."
    }
  ]
}
```

**Example** (`Moderator adds an admin`)

```json
{
  "errors": [
    {
      "code": 12004007,
      "message": "Access denied."
    }
  ]
}
```

**Example** (`Not an admin or moderator`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

### 404

The organization doesn't exist or isn't active.

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/organizations/{org_id}/admins" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"type": "moderator", "email": "new_user@email.com"}'
```

---

## DELETE /v2/organizations/{org_id}/admins/{admin_id} — Remove admin/moderator

Allows users to remove the admin or moderator from the organization.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the organization where the admin/moderator is removed. |
| `admin_id` | string | Yes | ID of the user whose role is changed. |

## Responses

### 204

Successful response. The admin is removed.

### 400

* Wrong, expired, or missing token.
* The admin is the last admin of the organization.

**Example** (`Last admin`)

```json
{
  "errors": [
    {
      "code": 12004022,
      "message": "Can not delete the last admin."
    }
  ]
}
```

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* A moderator tries to remove an admin.
* The user doesn't have an active trial, Professional, or Enterprise subscription.

**Example** (`No subscription`)

```json
{
  "errors": [
    {
      "code": 12003002,
      "message": "Access denied for current subscription."
    }
  ]
}
```

**Example** (`Moderator removes an admin`)

```json
{
  "errors": [
    {
      "code": 12004023,
      "message": "Access denied."
    }
  ]
}
```

### 404

* The admin doesn't exist in the organization.
* The organization doesn't exist or isn't active.

**Example** (`Admin not found`)

```json
{
  "errors": [
    {
      "code": 12004020,
      "message": "Organization admin `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12001001,
      "message": "Organization `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/organizations/{org_id}/admins/{admin_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/organizations/{org_id}/admins/{user_id} — Change admin/moderator role

Allows users to manage the admin or moderator role of another user.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the organization where the role is changed. |
| `user_id` | string | Yes | ID of the user whose role is changed. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "type"
  ],
  "properties": {
    "type": {
      "type": "string",
      "minLength": 1,
      "description": "The type of role that is assigned. Possible values: `moderator`, `admin`."
    }
  },
  "x-examples": {
    "example-1": {
      "type": "moderator | admin"
    }
  },
  "description": ""
}
```

**Example** (`Request body`)

```json
{
  "type": "moderator"
}
```

## Responses

### 204

Successful response. The admin type is changed.

### 400

* Wrong, expired, or missing token.
* `type` is missing.
* `type` isn't `admin` or `moderator`.

**Example** (`Wrong type`)

```json
{
  "errors": [
    {
      "code": 12004012,
      "message": "The `type` should be equal to `moderator` or admin."
    }
  ]
}
```

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Missing type`)

```json
{
  "errors": [
    {
      "code": 12004010,
      "message": "The `type` field is required."
    }
  ]
}
```

### 403

* The user isn't an admin or moderator of the organization.
* A moderator tries to make a user an admin.

**Example** (`Moderator adds an admin`)

```json
{
  "errors": [
    {
      "code": 12004007,
      "message": "Access denied."
    }
  ]
}
```

**Example** (`Not an admin or moderator`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

### 404

* The admin doesn't exist in the organization.
* The organization doesn't exist or isn't active.

**Example** (`Admin not found`)

```json
{
  "errors": [
    {
      "code": 12004020,
      "message": "Organization admin `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/organizations/{org_id}/admins/{user_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"type": "moderator"}'
```

---

## POST /v2/organizations/{org_id}/admins/{user_id}/accept — Accept invite to be admin

This endpoint allows API users to accept an invitation to become an admin or moderator of an organization.

**Notes**

* The invited user calls this endpoint with their own access token. `user_id` is the ID of the invited user.
* To decline the invitation instead, use [`POST /v2/organizations/{org_id}/admins/{user_id}/decline`](/docs/organization/operations/post-v2-organizations-org-id-admins-user-id-decline).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the organization that sent the invitation. |
| `user_id` | string | Yes | ID of the invited user. Must match the owner of the access token. |

## Responses

### 204

Successful response. The invitation is acceptd.

### 400

Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user has no invitation to accept.
* `user_id` belongs to another user.

**Example** (`No invitation`)

```json
{
  "errors": [
    {
      "code": 12004038,
      "message": "Access denied."
    }
  ]
}
```

**Example** (`Another user's invitation`)

```json
{
  "errors": [
    {
      "code": 12004025,
      "message": "Access denied."
    }
  ]
}
```

### 404

* The user with `user_id` isn't in the organization.
* The organization doesn't exist or isn't active.

**Example** (`Admin not found`)

```json
{
  "errors": [
    {
      "code": 12004020,
      "message": "Organization admin `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/organizations/{org_id}/admins/{user_id}/accept" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## POST /v2/organizations/{org_id}/admins/{user_id}/decline — Decline invite to be admin

This endpoint allows API users to decline an invitation to become an admin or moderator of an organization.

**Notes**

* The invited user calls this endpoint with their own access token. `user_id` is the ID of the invited user.
* To accept the invitation instead, use [`POST /v2/organizations/{org_id}/admins/{user_id}/accept`](/docs/organization/operations/post-v2-organizations-org-id-admins-user-id-accept).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the organization that sent the invitation. |
| `user_id` | string | Yes | ID of the invited user. Must match the owner of the access token. |

## Responses

### 204

Successful response. The invitation is declined.

### 400

Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user has no invitation to decline.
* `user_id` belongs to another user.

**Example** (`No invitation`)

```json
{
  "errors": [
    {
      "code": 12004038,
      "message": "Access denied."
    }
  ]
}
```

**Example** (`Another user's invitation`)

```json
{
  "errors": [
    {
      "code": 12004025,
      "message": "Access denied."
    }
  ]
}
```

### 404

* The user with `user_id` isn't in the organization.
* The organization doesn't exist or isn't active.

**Example** (`Admin not found`)

```json
{
  "errors": [
    {
      "code": 12004020,
      "message": "Organization admin `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/organizations/{org_id}/admins/{user_id}/decline" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## PUT /v2/organizations/{destination_org_id}/move — Move users across organizations

Allows admins to move users between organizations in SignNow.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `destination_org_id` | string | Yes | The ID of the organization the user is being transferred to. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "description": "ID of the organization the user is being transferred from."
    },
    "user_id": {
      "type": "string",
      "description": "Id of the user who is being transferred."
    }
  },
  "x-examples": {
    "example-1": {
      "from": "source_org_unique_id",
      "user_id": "unique_id"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "from": "34e3069fee1b590e7f3143e2f3fc0da6e4e020b3",
  "user_id": "12cba9b9f0d683bc585eb50d68852b7c421cfe78"
}
```

## Responses

### 204

Correct request: Success, no content

### 403

* The user has a pending or declined invite.
* The user is banned.
* The user's subscription is expired, Basic, or Premium.
* The organization setting **Block leaving of the organization by member** is enabled.
* The organization has reached the user limit for a trial subscription.

**Example** (`User is banned`)

```json
{
  "errors": [
    {
      "code": 12007052,
      "message": "Can't move banned user between organizations"
    }
  ]
}
```

**Example** (`User has expired, basic, premium subscription`)

```json
{
  "errors": [
    {
      "code": 12007035,
      "message": "Access denied for current subscription."
    }
  ]
}
```

**Example** (`User with invite pending/invite declined status`)

```json
{
  "errors": [
    {
      "code": 12007051,
      "message": "Can't move user between organizations because user didn't accept invite to organization"
    }
  ]
}
```

**Example** (`Org setting is enabled Block leaving of the organization by member`)

```json
{
  "errors": [
    {
      "code": 12004039,
      "message": "You cannot perform this action due to the organization settings."
    }
  ]
}
```

**Example** (`Limit on the number of users in the organization for a trial subscription`)

```json
{
  "errors": [
    {
      "code": 12007034,
      "message": "The number of active and pending organization members has been exceeded for the current subscription plan."
    }
  ]
}
```

### 404

User or organization not found.

**Example** (`User not found`)

```json
{
  "errors": [
    {
      "code": 12005001,
      "message": "User `51b2e8bf2c5b45dca8fbe399508b27a9bb0a900r` is not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `48be423e4c4c40bab3672bb77284756a0a94d924` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/organizations/{destination_org_id}/move" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"from": "34e3069fee1b590e7f3143e2f3fc0da6e4e020b3", "user_id": "12cba9b9f0d683bc585eb50d68852b7c421cfe78"}'
```

---

## GET /v2/organizations/{org_id}/members — Get the list of members

This endpoint allows API users to retrieve all members of an organization.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the requested organization. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `filters:email` | string | No | Filter by email. Format: `?filters=[{"email":{"type": "=", "value": user_email}}]` (email should be encoded as url) |
| `filter:type` | string | No | Filter by organization type. Possible values: active, pending, declined. Format: ?filters=[{"status":{"type": "=", "value":"active/pending/declined"}}] |
| `sort:email` | string | No | Sort results in ascending or descending order. Possible values: asc/desc. Format: `?sort[email]=asc` |

## Responses

### 200

Successful response. Returns the list of organization members.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "d202bea20bbda0df3b2a1324a1d710974d9e4865",
      "email": "signnow.user@email.com",
      "status": "active",
      "last_login": {
        "ip": "2X.XX.XXX.X",
        "created_at": 1592481155,
        "last_login": 1603199032,
        "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36",
        "application": "Sample Application"
      }
    },
    {
      "id": "af7065e55cf4d8421d68431c867153e3e569d9a7",
      "email": "another.signnow.user@email.com",
      "status": "pending",
      "last_login": {
        "ip": "1X.XX.XXX.X",
        "created_at": 1592481156,
        "last_login": 1603199033,
        "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36",
        "application": "Sample Application 2"
      }
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* Wrong, expired, or missing token.
* The filter name isn't supported.
* The `email` filter value isn't a string.
* The `email` filter `type` isn't `=`.
* The filter doesn't have `type` and `value`.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Unsupported filter`)

```json
{
  "errors": [
    {
      "code": 12006006,
      "message": "Unsupported filter mail was given."
    }
  ]
}
```

**Example** (`Wrong filter format`)

```json
{
  "errors": [
    {
      "code": 12007004,
      "message": "Invalid filter format, filter must have `type` and `value` fields"
    }
  ]
}
```

**Example** (`Wrong email filter type`)

```json
{
  "errors": [
    {
      "code": 12007002,
      "message": "The `email` filter expression should be equal to `=`"
    }
  ]
}
```

**Example** (`email filter not a string`)

```json
{
  "errors": [
    {
      "code": 12007003,
      "message": "The `email` filter value should be of type string"
    }
  ]
}
```

### 403

* The user isn't an admin or moderator of the organization.
* The user doesn't have an active trial, Professional, or Enterprise subscription.

**Example** (`No subscription`)

```json
{
  "errors": [
    {
      "code": 12003002,
      "message": "Access denied for current subscription."
    }
  ]
}
```

**Example** (`Not an admin or moderator`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

### 404

The organization doesn't exist or isn't active.

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{org_id}/members" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/organizations/{org_id}/members — Add members

This endpoint allows API users to invite a user to an organization. The invited user appears in the member list with the `pending` status until they accept or decline the invitation.

**Notes**

* Admins and moderators of the organization can invite members.
* If the email does not belong to a registered SignNow user, the invitation is still created.
* On a trial subscription, an organization can have up to `50` active and pending members.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the requested organization. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "email"
  ],
  "properties": {
    "email": {
      "type": "string",
      "minLength": 1,
      "description": "Email of the user invited."
    }
  },
  "x-examples": {
    "Invite member": {
      "email": "user@example.com"
    }
  },
  "description": ""
}
```

**Example** (`Invite member`)

```json
{
  "email": "user@example.com"
}
```

## Responses

### 201

The invitation has been sent. The user appears in the member list with the `pending` status until they accept or decline it. The response body is empty.

### 400

* The `email` field is missing.
* The `email` field is not a string.
* The `email` field is not a valid email address.
* The user is already a member of the organization.

**Example** (`The email field is missing`)

```json
{
  "errors": [
    {
      "code": 12007007,
      "message": "The `email` field is required."
    }
  ]
}
```

**Example** (`The email field is not a string`)

```json
{
  "errors": [
    {
      "code": 12007006,
      "message": "The `email` field must be a string."
    }
  ]
}
```

**Example** (`The email field is not a valid email address`)

```json
{
  "errors": [
    {
      "code": 12007008,
      "message": "The `email` is invalid."
    }
  ]
}
```

**Example** (`The user is already a member of the organization`)

```json
{
  "errors": [
    {
      "code": 12007005,
      "message": "Organization user already exists"
    }
  ]
}
```

### 403

* The user is not an admin or moderator of the organization, or their admin role is pending.
* The user's subscription does not allow adding members to the organization.
* A trial subscription has reached the limit of `50` active and pending members.

**Example** (`The user's subscription does not allow adding members to the organization`)

```json
{
  "errors": [
    {
      "code": 12007035,
      "message": "Access denied for current subscription."
    }
  ]
}
```

**Example** (`A trial subscription has reached the limit of 50 active and pending members`)

```json
{
  "errors": [
    {
      "code": 12007034,
      "message": "The number of active and pending organization members has been exceeded for the current subscription plan."
    }
  ]
}
```

**Example** (`The user is not an admin or moderator of the organization, or their admin role is pending`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

### 404

* The organization does not exist or is not active.

**Example** (`The organization does not exist or is not active`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/organizations/{org_id}/members" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email": "user@example.com"}'
```

---

## DELETE /v2/organizations/{org_id}/members/{user_id} — Remove members

Allows users to remove a member from the organization.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the organization where the member is removed. |
| `user_id` | string | Yes | ID of the member who is removed. |

## Responses

### 204

Successful response. The member is removed.

### 400

Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user isn't an admin or moderator of the organization.
* The user doesn't have an active trial, Professional, or Enterprise subscription.

**Example** (`No subscription`)

```json
{
  "errors": [
    {
      "code": 12004024,
      "message": "Access denied for current subscription."
    }
  ]
}
```

**Example** (`Not an admin or moderator`)

```json
{
  "errors": [
    {
      "code": 12007015,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

### 404

* The user isn't a member of the organization.
* The organization doesn't exist or isn't active.

**Example** (`Member not found`)

```json
{
  "errors": [
    {
      "code": 12007014,
      "message": "Organization user 0aa11112b0ed40aab8cab111a76a6eea07f0000e is not found"
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12001001,
      "message": "Organization `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/organizations/{org_id}/members/{user_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/organizations/{org_id}/members/{user_id}/accept — Accept invite to organization

This endpoint allows API users to accept an invitation to join an organization.

**Notes**

* The invited user calls this endpoint with their own access token. `user_id` is the ID of the invited user.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the organization the member is invited to. |
| `user_id` | string | Yes | ID of the member who is invited. |

## Responses

### 204

The invited user has joined the organization. No content returned.

### 403

* The invitation belongs to another user.
* The user's subscription does not allow this action.

**Example** (`The invitation belongs to another user`)

```json
{
  "errors": [
    {
      "code": 12007012,
      "message": "Access denied to accept invite"
    }
  ]
}
```

**Example** (`The user's subscription does not allow this action`)

```json
{
  "errors": [
    {
      "code": 12003002,
      "message": "Access denied for current subscription."
    }
  ]
}
```

### 404

* The user has no pending invitation to this organization.
* The organization does not exist or is not active.
* The user does not exist.

**Example** (`The user does not exist`)

```json
{
  "errors": [
    {
      "code": 12005001,
      "message": "User `a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6` is not found."
    }
  ]
}
```

**Example** (`The organization does not exist or is not active`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0` is not found."
    }
  ]
}
```

**Example** (`The user has no pending invitation to this organization`)

```json
{
  "errors": [
    {
      "code": 12007013,
      "message": "Organization invite is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/organizations/{org_id}/members/{user_id}/accept" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## POST /v2/organizations/{org_id}/members/{user_id}/decline — Decline invite to organization

This endpoint allows API users to decline an invitation to join an organization.

**Notes**

* The invited user calls this endpoint with their own access token. `user_id` is the ID of the invited user.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the organization the member is invited to. |
| `user_id` | string | Yes | ID of the member who is invited. |

## Responses

### 204

The invited user has declined the invitation to the organization. No content returned.

### 403

* The invitation belongs to another user.

**Example** (`The invitation belongs to another user`)

```json
{
  "errors": [
    {
      "code": 12007033,
      "message": "Access denied to decline invite"
    }
  ]
}
```

### 404

* The user has no pending invitation to this organization.
* The organization does not exist.
* The user does not exist.

**Example** (`The user does not exist`)

```json
{
  "errors": [
    {
      "code": 12005001,
      "message": "User `a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6` is not found."
    }
  ]
}
```

**Example** (`The organization does not exist`)

```json
{
  "errors": [
    {
      "code": 12001001,
      "message": "Organization `e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0` is not found."
    }
  ]
}
```

**Example** (`The user has no pending invitation to this organization`)

```json
{
  "errors": [
    {
      "code": 12007013,
      "message": "Organization invite is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/organizations/{org_id}/members/{user_id}/decline" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## GET /v2/organizations/{org_id}/members/last-logins — Get members' last logins

This endpoint allows API users to retrieve the last login of each member of an organization.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the organization. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `filters:email` | string | No | Filter by email. Format: `?filters=[{"email":{"type": "=", "value": user_email}}]` (email should be encoded as url) |
| `sort:email` | string | No | Sort by email. Possible values: asc, desc. Format: `?sort[email]=asc` |
| `sort:updated` | string | No | Sort by the time of updated. Possible values: asc, desc. Format: `?sort[updated]=asc` |

## Responses

### 200

Successful response. Returns the members' last logins.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "ip": "2XX.XX.XX.X",
      "email": "user1@email.com",
      "user_id": "e41862e38a7eab5d9804995ac7eb7c9248ceeab6",
      "created_at": 1678032034,
      "last_login": 1678032034,
      "user_agent": "user agent sample",
      "application": "Sample Application"
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user isn't an admin or moderator of the organization.
* The user doesn't have an active trial, Professional, or Enterprise subscription.

**Example** (`No subscription`)

```json
{
  "errors": [
    {
      "code": 12003002,
      "message": "Access denied for current subscription."
    }
  ]
}
```

**Example** (`Not an admin or moderator`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

### 404

The organization doesn't exist or isn't active.

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{org_id}/members/last-logins" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/organizations/{org_id}/users-activity — Get users' activity

This endpoint allows API users to retrieve activity statistics for each user in an organization.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the organization where the users' activity is retrieved. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `date_from` | integer | Yes | Start of the period, as a Unix timestamp. The period between `date_from` and `date_to` must be shorter than `31` days. |
| `date_to` | integer | Yes | End of the period, as a Unix timestamp. Must be less than `31` days after `date_from`. |

## Responses

### 200

Successful response. Returns the users' activity log.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "864acea82ba119dafdf45ea8d696a7aaa761b7dd",
      "email": "user1@email.com",
      "signers": 2,
      "documents": 5,
      "sent_documents": 2,
      "signed_documents": 2,
      "average_complete_time": "0:0:0"
    },
    {
      "id": "396c9e546ab534644a8cf14ceec2959cb2caa465",
      "email": "user2@email.com",
      "signers": 1,
      "documents": 2,
      "sent_documents": 1,
      "signed_documents": 1,
      "average_complete_time": "1:16:14"
    }
  ],
  "meta": {
    "pagination": {
      "count": 2,
      "links": [],
      "total": 2,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user isn't an admin or moderator of the organization.
* The user doesn't have an active trial, Professional, or Enterprise subscription.

**Example** (`No subscription`)

```json
{
  "errors": [
    {
      "code": 12003002,
      "message": "Access denied for current subscription."
    }
  ]
}
```

**Example** (`Not an admin or moderator`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

### 404

The organization doesn't exist or isn't active.

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{org_id}/users-activity" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/organizations/{org_unique_id}/documents/search — Get user's documents

This endpoint allows API users to search the documents of an organization's users. Available only to the Administrator of the organization. 

The `filters` query parameter is required. It is an array of filters and must contain at least one filter, for example `?filters=[{"name":{"type":"=","value":"sample name"}}]`. A request without `filters` returns an error.

**Pay attention**: emails must be encoded in such format `sample_name%40email.com`



## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_unique_id` | string | Yes | ID of organization. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `filters:name ` | string | No | Searches documents by document name. The `type` must be `=`. Example: `?filters=[{"name":{"type":"=","value":"sample name"}}]` At least one filter is required. |
| `filters:signer ` | string | No | Searches documents by signer email. Example: `?filters=[{"signer":{"type":"=","value":"signer%40email.com"}}]` At least one filter is required. |
| `filters:owner` | string | No | Searches documents by owner email. Example: `?filters=[{"owner":{"type":"=","value":"owner%40email.com"}}]` At least one filter is required. |
| `filters:text ` | string | No | Searches documents by the text in their text fields. Example: `?filters=[{"text":{"type":"=","value":"Some sample text"}}]` At least one filter is required. |
| `filters:status` | string | No | Searches documents by document status. Possible values: `waiting_for_signing`, `signed`, `pending_payment`. Example: `?filters=[{"status":{"type":"=","value":"signed"}}]` At least one filter is required. |
| `page` | number | No | Page number of the search results. Min: `1`. Example: `?page=3` |
| `sort:name` | string | No | Sorts documents by document name. Possible values: `asc`, `desc`. Example: `?sort[name]=asc` |
| `sort:added` | string | No | Sorts documents by the date they were added. Possible values: `asc`, `desc`. Example: `?sort[added]=asc` |
| `sort:changed` | string | No | Sorts documents by the date they were last changed. Possible values: `asc`, `desc`. Example: `?sort[changed]=asc` |
| `per_page` | number | No | Number of search results per page. Min: `1`. Example: `?per_page=12` |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Responses

### 200

Search by Signer email

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "604eea6993e96ef10e56565daa77e44fbd22c4d8",
      "tags": [
        {
          "name": "field_signature",
          "type": "system"
        },
        {
          "name": "fields",
          "type": "system"
        },
        {
          "name": "electronic_consent_required",
          "type": "system"
        }
      ],
      "lines": [],
      "owner": "owner@email.com",
      "pages": [
        {
          "src": "https://sample.com/thumbnail?size=large&page=0",
          "size": {
            "width": 611.98,
            "height": 791.97
          }
        },
        {
          "src": "https://sample.com/thumbnail?size=large&page=1",
          "size": {
            "width": 611.98,
            "height": 791.97
          }
        },
        {
          "src": "https://sample.com/thumbnail?size=large&page=2",
          "size": {
            "width": 611.98,
            "height": 791.97
          }
        },
        {
          "src": "https://sample.com/thumbnail?size=large&page=3",
          "size": {
            "width": 611.98,
            "height": 791.97
          }
        },
        {
          "src": "https://sample.com/thumbnail?size=large&page=4",
          "size": {
            "width": 611.98,
            "height": 791.97
          }
        },
        {
          "src": "https://sample.com/thumbnail?size=large&page=5",
          "size": {
            "width": 611.98,
            "height": 791.97
          }
        },
        {
          "src": "https://sample.com/thumbnail?size=large&page=6",
          "size": {
            "width": 611.98,
            "height": 791.97
          }
        },
        {
          "src": "https://sample.com/thumbnail?size=large&page=7",
          "size": {
            "width": 611.98,
            "height": 791.97
          }
        },
        {
          "src": "https://sample.com/thumbnail?size=large&page=8",
          "size": {
            "width": 611.98,
            "height": 791.97
          }
        },
        {
          "src": "https://sample.com/thumbnail?size=large&page=9",
          "size": {
            "width": 611.98,
            "height": 791.97
          }
        },
        {
          "src": "https://sample.com/thumbnail?size=large&page=10",
          "size": {
            "width": 611.98,
            "height": 791.97
          }
        },
        {
          "src": "https://sample.com/thumbnail?size=large&page=11",
          "size": {
            "width": 611.98,
            "height": 791.97
          }
        },
        {
          "src": "https://sample.com/thumbnail?size=large&page=12",
          "size": {
            "width": 595.28,
            "height": 841.89
          }
        },
        {
          "src": "https://sample.com/thumbnail?size=large&page=13",
          "size": {
            "width": 595.28,
            "height": 841.89
          }
        }
      ],
      "roles": [
        {
          "name": "Sample name 1",
          "unique_id": "936b2f5803abd44bf31a2c035ea8ba74d124b3a6",
          "signing_order": "1"
        }
      ],
      "seals": [],
      "texts": [],
      "checks": [],
      "fields": [
        {
          "id": "d83a9d90e538cf7b26be563f91af645c70865e55",
          "role": "Sample name 1",
          "type": "signature",
          "role_id": "936b2f5803abd44bf31a2c035ea8ba74d124b3a6",
          "field_id": "14156610bcdaa2a6e402f826da1cb63dcddc9c61",
          "fulfiller": "signer@email.com",
          "element_id": "c088d1fe9d6a9eae71634398f2dc0f080e56d2b6",
          "originator": "owner@email.com",
          "json_attributes": {
            "x": 450,
            "y": 24,
            "name": "Sample name 1",
            "width": 138,
            "height": 69,
            "required": true,
            "page_number": 0,
            "allowed_types": [
              "type",
              "draw",
              "upload"
            ]
          },
          "field_request_id": "14156610bcdaa2a6e402f826da1cb63dcddc9c61",
          "template_field_id": null,
          "field_request_canceled": null
        }
      ],
      "created": "1655973025",
      "inserts": [],
      "updated": "1656321523",
      "user_id": "cf3ef5bac6d81cf03eb62d47455d4a1da6886025",
      "payments": [],
      "requests": [],
      "settings": {
        "ololo": false,
        "mytext": false,
        "mytext1": false,
        "enable_mfa": false,
        "enable_pki": false,
        "copy_export": false,
        "enable_qwer": false,
        "upload_limit": false,
        "document_guide": false,
        "sso-only-login": false,
        "mobileweb_option": false,
        "cloud_auto_export": false,
        "logout_on_signing": false,
        "restrict_download": false,
        "common_experiments": false,
        "enable_experiments": false,
        "add_signature_stamp": false,
        "email_logo_position": false,
        "cfr_title_21_part_11": false,
        "email_btn_bkgd_color": false,
        "email_btn_text_color": false,
        "email_custom_message": false,
        "email_custom_subject": false,
        "email_footer_enabled": false,
        "enable_eu_date_format": false,
        "require_email_subject": false,
        "no_document_attachment": true,
        "agree_to_be_beta_tester": false,
        "electronic_consent_text": false,
        "flatten_document_fields": false,
        "org_allowed_team_admins": false,
        "disable_email_recipients": false,
        "document_schema_extended": false,
        "enable_document_comments": false,
        "front_end_session_length": false,
        "no_user_signature_return": false,
        "require_drawn_signatures": false,
        "signature_stamp_position": false,
        "allow_big_attachment_file": false,
        "cloud_export_with_history": false,
        "enable_full_story_tracker": false,
        "require_login_for_signing": false,
        "allow_download_certificate": false,
        "disable_email_notifications": false,
        "electronic_consent_required": false,
        "email_admin_on_banned_login": false,
        "enable_hyperlink_protection": false,
        "enable_team_admin_move_docs": false,
        "invite_decline_redirect_url": false,
        "parse_only_signature_fields": false,
        "allow_team_admin_rename_docs": false,
        "emailed_docs_include_history": false,
        "no_document_file_attachments": false,
        "add_signature_stamp_with_name": false,
        "digitally_sign_dowloaded_docs": false,
        "watermark_downloaded_document": false,
        "invite_completion_redirect_url": false,
        "required_preset_signature_name": false,
        "signing_link_document_download": false,
        "block_login_via_social_networks": false,
        "hide_upgrade_subscription_button": false,
        "allow_edit_document_after_signing": false,
        "default_field_invite_remind_after": false,
        "disable_download_action_in_editor": false,
        "enable_advanced_threat_protection": false,
        "auto_deletion_documents_from_trash": false,
        "default_field_invite_remind_before": false,
        "default_field_invite_remind_repeat": false,
        "document_completion_retention_days": false,
        "require_authentication_for_invites": false,
        "save_signer_signature_and_initials": false,
        "signing_link_document_name_formula": false,
        "disable_recipients_list_from_editor": false,
        "document_attachment_only_for_signer": false,
        "default_field_invite_expiration_time": false,
        "unsuccessful_logout_attempts_allowed": false,
        "audit_trail_completion_retention_days": false,
        "block_organization_selfleave_by_member": false,
        "allow_document_copying_to_other_accounts": false,
        "allow_embedded_extended_token_expiration": false,
        "pending_invite_document_view_notification": false,
        "guide_signers_only_through_required_fields": false,
        "redirect_to_registration_when_fields_saved": false,
        "hide_decline_to_sign_option_in_signing_session": false,
        "max_attachments_for_signnow_fields_per_document": false,
        "only_administrator_is_able_to_invite_to_the_team": false,
        "allow_big_count_of_attachment_fields_per_document": false,
        "agreement_to_test_new_functionality_in_organization": false,
        "auto_apply_signatures_and_initials_to_document_fields": false,
        "block_export_options_when_credit_card_validation_is_used": false,
        "invite_update_notifications_for_all_invites_at_invite_create": false,
        "every_signature_and_initials_field_requires_user_authentication": false
      },
      "template": false,
      "parent_id": "0df861e489624e48cc26b9a3b49497dd1bd741b6",
      "thumbnail": {
        "large": "https://sample.com/thumbnail?size=large",
        "small": "https://sample.com/thumbnail?size=small",
        "medium": "https://sample.com/thumbnail?size=medium"
      },
      "hyperlinks": [],
      "owner_name": "sample name",
      "page_count": "14",
      "signatures": [
        {
          "x": "450",
          "y": "24",
          "id": "c088d1fe9d6a9eae71634398f2dc0f080e56d2b6",
          "data": "iVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
          "email": "owner@email.com",
          "width": "138",
          "height": "55",
          "created": "1656321523",
          "subtype": "signature",
          "user_id": "27eeab936050b1ed9acec080305fc2d1148f2172",
          "page_number": "0",
          "signature_request_id": null
        }
      ],
      "attachments": [],
      "exported_to": [],
      "integrations": [],
      "radiobuttons": [],
      "version_time": "1656321523",
      "viewer_roles": [],
      "document_name": "Sample name",
      "field_invites": [
        {
          "id": "85f8152b2a0160fd6368043deb295a61eaa247c5",
          "role": "Sample name 1",
          "email": "owner@email.com",
          "pfrid": null,
          "status": "fulfilled",
          "created": "1655973182",
          "pfrtype": null,
          "role_id": "936b2f5803abd44bf31a2c035ea8ba74d124b3a6",
          "updated": "1656321523",
          "declined": [],
          "reassign": "0",
          "reminder": "0",
          "pframount": null,
          "pfrstatus": null,
          "pfrcreated": null,
          "id_verified": "UNVERIFIED",
          "is_embedded": false,
          "redirect_uri": null,
          "delivery_type": "email",
          "password_type": "",
          "email_statuses": [],
          "pfrmerchant_id": null,
          "signer_user_id": "27eeab936050b1ed9acec080305fc2d1148f2172",
          "embedded_signer": [],
          "expiration_time": "1658565182",
          "is_draft_exists": "0",
          "password_method": "",
          "payment_request": null,
          "is_full_declined": false,
          "pfrcurrency_name": null,
          "pfrmerchant_type": null,
          "is_document_locked": "0",
          "password_protected": "0",
          "pfrjson_attributes": null,
          "force_new_signature": null,
          "signer_phone_invite": null,
          "decline_by_signature": "0",
          "signing_instructions": null,
          "electronic_consent_id": "be476be19911b190578211422bfa5bca2347fece",
          "prefill_signature_name": null,
          "id_verification_required": "NO",
          "pfrmerchant_account_name": null,
          "pfrpayment_transaction_id": null,
          "electronic_consent_required": 1,
          "required_preset_signature_name": null,
          "stripe_ach_bank_account_present": "0",
          "stripe_ach_bank_account_verified": "0"
        }
      ],
      "notary_invites": [],
      "origin_user_id": null,
      "originator_logo": "",
      "routing_details": [
        {
          "cc": [],
          "id": "4b771bdca80061d0718be67707f11162b4e14ade",
          "data": [
            {
              "name": "Sample name 1",
              "role_id": "936b2f5803abd44bf31a2c035ea8ba74d124b3a6",
              "inviter_role": false,
              "default_email": "owner@email.com",
              "delivery_type": "email",
              "signing_order": 1
            }
          ],
          "cc_step": [],
          "created": "1655973176",
          "updated": "1655973181",
          "viewers": [],
          "invite_link_instructions": null
        }
      ],
      "field_validators": [],
      "original_filename": "sample name.pdf",
      "origin_document_id": null,
      "document_group_info": {
        "invite_id": null,
        "invite_status": null,
        "sign_as_merged": false,
        "document_group_id": null,
        "doc_count_in_group": 0,
        "document_group_name": null
      },
      "enumeration_options": [],
      "viewer_field_invites": [],
      "signing_session_settings": {
        "welcome_message": null
      },
      "document_group_template_info": [],
      "originator_organization_settings": [
        {
          "value": "0",
          "setting": "no_user_signature_return"
        },
        {
          "value": "",
          "setting": "invite_completion_redirect_url"
        },
        {
          "value": "",
          "setting": "invite_decline_redirect_url"
        },
        {
          "value": "0",
          "setting": "required_preset_signature_name"
        },
        {
          "value": "0",
          "setting": "require_email_subject"
        },
        {
          "value": "0",
          "setting": "require_login_for_signing"
        },
        {
          "value": "1",
          "setting": "logout_on_signing"
        },
        {
          "value": "0",
          "setting": "front_end_session_length"
        },
        {
          "value": "1",
          "setting": "add_signature_stamp_with_name"
        },
        {
          "value": "0",
          "setting": "cfr_title_21_part_11"
        },
        {
          "value": "0",
          "setting": "require_authentication_for_invites"
        },
        {
          "value": "1",
          "setting": "document_guide"
        },
        {
          "value": "0",
          "setting": "disable_email_notifications"
        },
        {
          "value": "no",
          "setting": "block_export_options_when_credit_card_validation_is_used"
        },
        {
          "value": "no",
          "setting": "block_login_via_social_networks"
        },
        {
          "value": "0",
          "setting": "common_experiments"
        },
        {
          "value": "0",
          "setting": "hide_decline_to_sign_option_in_signing_session"
        },
        {
          "value": "0",
          "setting": "hide_upgrade_subscription_button"
        },
        {
          "value": "",
          "setting": "do_no_consent_redirect_url"
        },
        {
          "value": "0",
          "setting": "lock_signing_date_by_default"
        },
        {
          "value": "0",
          "setting": "allow_download_certificate"
        },
        {
          "value": "0",
          "setting": "have_merged_document_group_option"
        },
        {
          "value": "1",
          "setting": "guide_signers_only_through_required_fields"
        },
        {
          "value": "30",
          "setting": "invite_expiration_days"
        },
        {
          "value": "0",
          "setting": "allow_big_attachment_file"
        },
        {
          "value": "0",
          "setting": "allow_big_count_of_attachment_fields_per_document"
        },
        {
          "value": "0",
          "setting": "enable_hyperlink_field"
        },
        {
          "value": "0",
          "setting": "disable_download_action_in_editor"
        },
        {
          "value": "bottom",
          "setting": "signature_stamp_position"
        },
        {
          "value": "0",
          "setting": "enable_pki"
        },
        {
          "value": "1",
          "setting": "save_signer_signature_and_initials"
        },
        {
          "value": "1",
          "setting": "auto_apply_signatures_and_initials_to_document_fields"
        },
        {
          "value": "0",
          "setting": "receive_signer_email_after_sent_field_invite_to_yourself"
        },
        {
          "value": "0",
          "setting": "allow_edit_document_after_signing"
        },
        {
          "value": "off",
          "setting": "every_signature_and_initials_field_requires_user_authentication"
        },
        {
          "value": "0",
          "setting": "enable_render_pages_in_editor_as_images"
        },
        {
          "value": "0",
          "setting": "allow_team_admin_rename_docs"
        }
      ]
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 403

User is not the admin of the organization.

**Example** (`User is not the admin of the organization`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

### 404

Organization is not active or does not exist.

**Example** (`Organization is not active or does not exist`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `{organization_id}` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{org_unique_id}/documents/search" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/organizations/{organization_id}/members/last-logins/export — Export last logins of members

This endpoint allows for admin of the organization to get a CSV file with login data for the selected date range. The file is sent by email.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `date_from` | integer | Yes | A timestamp that defines the timeframe for the data collection (from). |
| `date_to` | integer | Yes | A timestamp that defines the timeframe for the data collection (to). |

## Responses

### 204

Success, no content

### 400

* Period values are missing.
* Incorrect period value or format.
* date_from is greater than date_to.
* date_from is not integer.
* date_to is not integer.
* Report for this date range was requested 30 minutes again or less.

**Example** (`date_to missing`)

```json
{
  "errors": [
    {
      "code": 12006009,
      "message": "The `date_to` field is required."
    }
  ]
}
```

**Example** (`Incorrect date_to`)

```json
{
  "errors": [
    {
      "code": 12006015,
      "message": "The `date_to` field value must be positive, non zero value."
    }
  ]
}
```

**Example** (`date_from missing`)

```json
{
  "errors": [
    {
      "code": 12006007,
      "message": "The `date_from` field is required."
    }
  ]
}
```

**Example** (`Incorrect date_from`)

```json
{
  "errors": [
    {
      "code": 12006014,
      "message": "The `date_from` field value must be positive, non zero value."
    }
  ]
}
```

**Example** (`date_to not integer`)

```json
{
  "errors": [
    {
      "code": 12006010,
      "message": "The `date_to` field must be an integer."
    }
  ]
}
```

**Example** (`date_from not integer`)

```json
{
  "errors": [
    {
      "code": 12006008,
      "message": "The `date_from` field must be an integer."
    }
  ]
}
```

**Example** (`This request already exists`)

```json
{
  "errors": [
    {
      "code": 12020001,
      "message": "A report with the same filtering criteria is already being generated. Try again later."
    }
  ]
}
```

**Example** (`date_from greater than date_to`)

```json
{
  "errors": [
    {
      "code": 12006011,
      "message": "`date_to` should be greater than `date_from`."
    }
  ]
}
```

### 403

* User doesn't have active trial professional or enterprise subscription.
* User is not an administrator of the organization.
* Organization is not active.

**Example** (`User not admin`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

**Example** (`Subscription error`)

```json
{
  "errors": [
    {
      "code": 12003002,
      "message": "Access denied for current subscription."
    }
  ]
}
```

**Example** (`Organization not active`)

```json
{
  "errors": [
    {
      "code": 12003005,
      "message": "Organization is not active."
    }
  ]
}
```

### 404

Organization is not active or doesn't exist.

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization {organization_id} is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/organizations/{organization_id}/members/last-logins/export" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## POST /v2/organizations/{organization_id}/users-activity/export — Export last activity of members

This endpoint allows for admin or moderator of the organization to get a CSV file of users activity of the organization. The file is sent by email.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `date_from` | integer | Yes | A timestamp that defines the timeframe for the data collection (from). |
| `date_to` | integer | Yes | A timestamp that defines the timeframe for the data collection (to). |
| `sort[email]` | string | No | Sort results by email. Possible values: asc, desc. |
| `email` | string | No | Filter results by email. Format: `&filters=[{"email":{"type":"=","value":"user@mail.com"}}]` |
| `ban` | boolean | No | Filter results by users that were banned from the organization or not. Format: `&filters=[{"ban":{"type": "=", "value": true/false}}]` |
| `subscriptionStatus` | string | No | Filter results by subscription status. Possible values: active, not_active. Format: `&filters=[{"subscriptionStatus":{"type": "=", "value": active/not_active}}]` |

## Responses

### 204

Success, no content

### 400

* The same request was made 30 minutes ago or less.
* Incorrect period value or format.
* Period values are missing.
* date_from is greater than date_to.
* date_from is not integer.
* date_to is not integer.
* The date range is more than 31 days.
* email filter type is not string.
* email filter type is not equal to '='.
* email filter value is not string.
* email filter value is not a valid email.
* email filter type or value is missing.
* ban filter type is not string.
* ban filter type is not equal to '='.
* ban filter value is not boolean.
* ban filter type or value is missing.
* subscriptionStatus filter type is not string.
* subscriptionStatus filter type is not equal to '='.
* subscriptionStatus filter value is not string.
* subscriptionStatus filter value is not equal to 'active' or 'not_active'.
* subscriptionStatus filter type or value is missing.
* Problem with saving data to queue.

**Example** (`ban type not =`)

```json
{
  "errors": [
    {
      "code": 12016007,
      "message": "The `ban` filter expression must be equal to `=`."
    }
  ]
}
```

**Example** (`date_to missing`)

```json
{
  "errors": [
    {
      "code": 12006009,
      "message": "The `date_to` field is required."
    }
  ]
}
```

**Example** (`email type not =`)

```json
{
  "errors": [
    {
      "code": 12016002,
      "message": "The `email` filter expression must be equal to `=`."
    }
  ]
}
```

**Example** (`Incorrect date_to`)

```json
{
  "errors": [
    {
      "code": 12006015,
      "message": "The `date_to` field value must be positive, non zero value."
    }
  ]
}
```

**Example** (`date_from missing`)

```json
{
  "errors": [
    {
      "code": 12006007,
      "message": "The `date_from` field is required."
    }
  ]
}
```

**Example** (`Incorrect date_from`)

```json
{
  "errors": [
    {
      "code": 12006014,
      "message": "The `date_from` field value must be positive, non zero value."
    }
  ]
}
```

**Example** (`ban type not string`)

```json
{
  "errors": [
    {
      "code": 12016006,
      "message": "Invalid filter format, filter `type` must be a string."
    }
  ]
}
```

**Example** (`date_to not integer`)

```json
{
  "errors": [
    {
      "code": 12006010,
      "message": "The `date_to` field must be an integer."
    }
  ]
}
```

**Example** (`Date range is too big`)

```json
{
  "errors": [
    {
      "code": 12006012,
      "message": "Date range should be less than 31 days."
    }
  ]
}
```

**Example** (`ban value not boolean`)

```json
{
  "errors": [
    {
      "code": 12016008,
      "message": "The `ban` filter value must be of type bool."
    }
  ]
}
```

**Example** (`date_from not integer`)

```json
{
  "errors": [
    {
      "code": 12006008,
      "message": "The `date_from` field must be an integer."
    }
  ]
}
```

**Example** (`email type not string`)

```json
{
  "errors": [
    {
      "code": 12016001,
      "message": "Invalid filter format, filter `type` must be a string."
    }
  ]
}
```

**Example** (`email value not string`)

```json
{
  "errors": [
    {
      "code": 12016003,
      "message": "The `email` filter value must be of type string."
    }
  ]
}
```

**Example** (`email not a valid email`)

```json
{
  "errors": [
    {
      "code": 12016005,
      "message": "The `email` filter value should be a valid email."
    }
  ]
}
```

**Example** (`ban type or value missing`)

```json
{
  "errors": [
    {
      "code": 12016009,
      "message": "Invalid `ban` filter format, filter must have `type` and `value` fields."
    }
  ]
}
```

**Example** (`This request already exists`)

```json
{
  "errors": [
    {
      "code": 12020001,
      "message": "A report with the same filtering criteria is already being generated. Try again later."
    }
  ]
}
```

**Example** (`email type or value missing`)

```json
{
  "errors": [
    {
      "code": 12016004,
      "message": "Invalid `email` filter format, filter must have `type` and `value` fields."
    }
  ]
}
```

**Example** (`Problem with saving to queue`)

```json
{
  "errors": [
    {
      "code": 12021001,
      "message": "Problem with saving to queue."
    }
  ]
}
```

**Example** (`subscriptionStatus type not =`)

```json
{
  "errors": [
    {
      "code": 12016011,
      "message": "The `subscriptionStatus` filter expression must be equal to `=`."
    }
  ]
}
```

**Example** (`date_from greater than date_to`)

```json
{
  "errors": [
    {
      "code": 12006011,
      "message": "`date_to` should be greater than `date_from`."
    }
  ]
}
```

**Example** (`Incorrect subscriptionStatus value`)

```json
{
  "errors": [
    {
      "code": 12016013,
      "message": "The `subscriptionStatus` filter value must be equal to `active` or `not_active`."
    }
  ]
}
```

**Example** (`subscriptionStatus type not string`)

```json
{
  "errors": [
    {
      "code": 12016010,
      "message": "The `subscriptionStatus` filter expression must be a string."
    }
  ]
}
```

**Example** (`subscriptionStatus value not string`)

```json
{
  "errors": [
    {
      "code": 12016012,
      "message": "The `subscriptionStatus` filter value must be a string."
    }
  ]
}
```

**Example** (`subscriptionStatus type or value missing`)

```json
{
  "errors": [
    {
      "code": 12016014,
      "message": "Invalid `subscriptionStatus` filter format, filter must have `type` and `value` fields."
    }
  ]
}
```

### 403

* User doesn't have active trial professional or enterprise subscription.
* User is not an administrator of the organization.
* Organization is not active.

**Example** (`User not admin`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

**Example** (`Subscription error`)

```json
{
  "errors": [
    {
      "code": 12003002,
      "message": "Access denied for current subscription."
    }
  ]
}
```

**Example** (`Organization not active`)

```json
{
  "errors": [
    {
      "code": 12003005,
      "message": "Organization is not active."
    }
  ]
}
```

### 404

Organization is not active or doesn't exist.

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization {organization_id} is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/organizations/{organization_id}/users-activity/export" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## POST /v2/organizations/{org_id}/allowed-team-admins — Set an allowed team admin

This endpoint allows API users to add an allowed team admin to an organization.

**Notes**

* Admins and moderators of the organization can add allowed team admins.
* The `email` must belong to a registered SignNow user.
* To activate or deactivate an allowed team admin, use [Activate/deactivate allowed team admins](/docs/organization/operations/put-v2-organizations-org-id-allowed-team-admins).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the organization where the allowed admin is set. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "email"
  ],
  "properties": {
    "email": {
      "type": "string",
      "minLength": 1,
      "description": "Email address of the allowed team admin."
    }
  },
  "x-examples": {
    "Add allowed team admin": {
      "email": "user@example.com"
    }
  },
  "description": ""
}
```

**Example** (`Add allowed team admin`)

```json
{
  "email": "user@example.com"
}
```

## Responses

### 201

The allowed team admin has been added. The response body is empty.

### 400

* The `email` field is missing.
* The `email` field is not a string.
* The `email` field is not a valid email address.
* The user is already an allowed team admin.

**Example** (`The email field is missing`)

```json
{
  "errors": [
    {
      "code": 12012002,
      "message": "The `email` field is required."
    }
  ]
}
```

**Example** (`The email field is not a string`)

```json
{
  "errors": [
    {
      "code": 12012001,
      "message": "The `email` field must be a string."
    }
  ]
}
```

**Example** (`The user is already an allowed team admin`)

```json
{
  "errors": [
    {
      "code": 12012012,
      "message": "Provided organization allowed team admin exists"
    }
  ]
}
```

**Example** (`The email field is not a valid email address`)

```json
{
  "errors": [
    {
      "code": 12012003,
      "message": "The `email` is invalid."
    }
  ]
}
```

### 403

* The user is not an admin or moderator of the organization.
* The user's subscription does not allow this action.

**Example** (`The user's subscription does not allow this action`)

```json
{
  "errors": [
    {
      "code": 12003002,
      "message": "Access denied for current subscription."
    }
  ]
}
```

**Example** (`The user is not an admin or moderator of the organization`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

### 404

* The organization does not exist or is not active.
* No SignNow user is registered with this email address.

**Example** (`The organization does not exist or is not active`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0` is not found."
    }
  ]
}
```

**Example** (`No SignNow user is registered with this email address`)

```json
{
  "errors": [
    {
      "code": 12005001,
      "message": "User `user@example.com` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/organizations/{org_id}/allowed-team-admins" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email": "user@example.com"}'
```

---

## PUT /v2/organizations/{org_id}/allowed-team-admins — Activate/deactivate allowed team admins

Allows users to activate/deactivate an org allowed team admin.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the organization where the allowed admin is set. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "email",
    "active"
  ],
  "properties": {
    "email": {
      "type": "string",
      "minLength": 1,
      "description": "Email address of the allowed team admin."
    },
    "active": {
      "type": "boolean",
      "description": "Boolean. Activate or deactivate the allowed team admin. Possible values: `true` - activate, `false` - deactivate."
    }
  },
  "x-examples": {
    "example-1": {
      "email": "new_allowed_team_admin@email.com",
      "active": true
    }
  },
  "description": ""
}
```

**Example** (`Request body`)

```json
{
  "email": "new_allowed_team_admin@email.com",
  "active": true
}
```

## Responses

### 204

Successful response. The list of allowed team admins is updated.

### 400

* Wrong, expired, or missing token.
* `email` is missing.
* `email` isn't a string.
* `email` isn't a valid email address.
* `active` is missing.
* `active` isn't a boolean.
* No SignNow user has this email.

**Example** (`Wrong email`)

```json
{
  "errors": [
    {
      "code": 12012003,
      "message": "The `email` is invalid."
    }
  ]
}
```

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Missing email`)

```json
{
  "errors": [
    {
      "code": 12012002,
      "message": "The `email` field is required."
    }
  ]
}
```

**Example** (`Missing active`)

```json
{
  "errors": [
    {
      "code": 12012014,
      "message": "The `active` field is required."
    }
  ]
}
```

**Example** (`User not found`)

```json
{
  "errors": [
    {
      "code": 12005001,
      "message": "User `user@email.com` is not found."
    }
  ]
}
```

**Example** (`email not a string`)

```json
{
  "errors": [
    {
      "code": 12012001,
      "message": "The `email` field must be a string."
    }
  ]
}
```

**Example** (`active not a boolean`)

```json
{
  "errors": [
    {
      "code": 12012013,
      "message": "The `active` field must be a boolean."
    }
  ]
}
```

### 403

* The user isn't an admin or moderator of the organization.
* The user doesn't have an active trial, Professional, or Enterprise subscription.

**Example** (`No subscription`)

```json
{
  "errors": [
    {
      "code": 12003002,
      "message": "Access denied for current subscription."
    }
  ]
}
```

**Example** (`Not an admin or moderator`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

### 404

The organization doesn't exist or isn't active.

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/organizations/{org_id}/allowed-team-admins" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email": "new_allowed_team_admin@email.com", "active": true}'
```

---

## GET /v2/organizations/{org_id}/allowed-team-admins — Get allowed team admins

This endpoint allows API users to retrieve the list of allowed team admins of an organization.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the organization where the allowed admin is set. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `filters:email` | string | No | Filter by email. Format: `?filters=[{"email":{"type": "=", "value": user_email}}]` (email should be encoded as url) |
| `filter:active` | string | No | Filter by activated/deactivated parameter. Possible values: true, false Format: `?filters=[{"active":{"type": "=", "value": false}}]` |

## Responses

### 200

Successful response. Returns the list of allowed team admins.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "email": "user@email.com",
      "active": true,
      "created": 1600689195,
      "updated": 1600689195,
      "user_id": "12da95772237fd48795c3994059fa8e1fdb55e29"
    }
  ],
  "meta": {
    "pagination": {
      "count": 7,
      "links": [],
      "total": 7,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user isn't an admin or moderator of the organization.
* The user doesn't have an active trial, Professional, or Enterprise subscription.

**Example** (`No subscription`)

```json
{
  "errors": [
    {
      "code": 12003002,
      "message": "Access denied for current subscription."
    }
  ]
}
```

**Example** (`Not an admin or moderator`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

### 404

The organization doesn't exist or isn't active.

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{org_id}/allowed-team-admins" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/organizations/{org_id}/logo — Upload organization logo

Allows admin to upload organization logo.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the requested organization. |

## Form Data Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `logo` | string | Yes | @/path/to/your/file.pdf |

## Responses

### 204

Successful response. The logo is uploaded.

### 400

* Wrong, expired, or missing token.
* The `logo` file is missing.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Missing logo`)

```json
{
  "errors": [
    {
      "code": 12002006,
      "message": "`logo` is required parameter."
    }
  ]
}
```

### 403

* The user isn't an admin or moderator of the organization.
* The user doesn't have an active trial, Professional, or Enterprise subscription.

**Example** (`No subscription`)

```json
{
  "errors": [
    {
      "code": 12003002,
      "message": "Access denied for current subscription."
    }
  ]
}
```

**Example** (`Not an admin or moderator`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

### 404

The organization doesn't exist or isn't active.

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/organizations/{org_id}/logo" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## DELETE /v2/organizations/{org_id}/logo — Delete organization logo

Allows admin to remove organization logo.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the requested organization. |

## Responses

### 204

Successful response. The logo is deleted.

### 400

Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user isn't an admin or moderator of the organization.
* The user doesn't have an active trial, Professional, or Enterprise subscription.

**Example** (`No subscription`)

```json
{
  "errors": [
    {
      "code": 12003002,
      "message": "Access denied for current subscription."
    }
  ]
}
```

**Example** (`Not an admin or moderator`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

### 404

The organization doesn't exist or isn't active.

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/organizations/{org_id}/logo" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/organizations/{org_id}/settings — Update organization settings

This endpoint allows admins to update settings for the specified organization.

Learn more about [organization settings](/docs/organizations#organization-settings).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the requested organization. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "setting_name",
    "value"
  ],
  "properties": {
    "value": {
      "type": "string",
      "minLength": 1,
      "description": "The new value of the setting. List of settings in the endpoint description."
    },
    "setting_name": {
      "type": "string",
      "minLength": 1,
      "description": "The name of the setting that is changed."
    }
  },
  "x-examples": {
    "example-1": {
      "value": "setting_value",
      "setting_name": "user_setting_name"
    }
  },
  "description": ""
}
```

**Example** (`Request body`)

```json
{
  "value": "setting_value",
  "setting_name": "user_setting_name"
}
```

## Responses

### 204

Returns 204: Success, no content for admins and moderators with free trial, professional, or enterprise subscriptions.

### 400

- The `value` type is incorrect.
- The `value` field is missing.
- The `value` should be 1000 characters or fewer.
- The `setting_name` field is missing.
- The organization setting was not found.
- The access token is incorrect.

**Example** (`Value is missing`)

```json
{
  "errors": [
    {
      "code": 12009005,
      "message": "The value field is required."
    }
  ]
}
```

**Example** (`Setting not found`)

```json
{
  "errors": [
    {
      "code": 12009003,
      "message": "Organization setting is not found."
    }
  ]
}
```

**Example** (`Value is too long`)

```json
{
  "errors": [
    {
      "code": 12009006,
      "message": "The value filed can not exceed the limit of 1000 characters."
    }
  ]
}
```

**Example** (`Value type incorrect`)

```json
{
  "errors": [
    {
      "code": 12009004,
      "message": "The value field must be a string."
    }
  ]
}
```

**Example** (`Setting_name is missing`)

```json
{
  "errors": [
    {
      "code": 12009001,
      "message": "The setting_name field is required."
    }
  ]
}
```

### 403

- The user is not the organization admin.
- The user cannot change settings with the current subscription plan.

**Example** (`User is not admin`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

**Example** (`Subscription restricted`)

```json
{
  "errors": [
    {
      "code": 12003002,
      "message": "Access denied for current subscription."
    }
  ]
}
```

### 404

Organization not found.

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `4e9cdccb8e764fbe86a664cc9e24502d3db65f6b` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/organizations/{org_id}/settings" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"value": "setting_value", "setting_name": "user_setting_name"}'
```

---

## GET /v2/organizations/{org_id}/settings — Get organization settings

This endpoint allows API users to retrieve the settings of an organization.

Learn more about [organization settings](/docs/organizations#organization-settings).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the requested organization. |

## Responses

### 200

Returns the list of organization settings for admins and moderators with free trial, professional, or enterprise subscriptions.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "value": null,
      "created": null,
      "setting": "no_document_attachment",
      "updated": null,
      "default_value": "0"
    },
    {
      "value": null,
      "created": null,
      "setting": "no_document_file_attachments",
      "updated": null,
      "default_value": "0"
    },
    {
      "value": null,
      "created": null,
      "setting": "mobileweb_option",
      "updated": null,
      "default_value": "app_or_mobileweb_choice"
    },
    {
      "value": null,
      "created": null,
      "setting": "require_drawn_signatures",
      "updated": null,
      "default_value": "0"
    },
    {
      "value": null,
      "created": null,
      "setting": "org_allowed_team_admins",
      "updated": null,
      "default_value": "0"
    },
    {
      "value": null,
      "created": null,
      "setting": "digitally_sign_dowloaded_docs",
      "updated": null,
      "default_value": "no"
    },
    {
      "value": null,
      "created": null,
      "setting": "pending_invite_document_view_notification",
      "updated": null,
      "default_value": "no"
    },
    {
      "value": null,
      "created": null,
      "setting": "cloud_export_with_history",
      "updated": null,
      "default_value": "0"
    },
    {
      "value": null,
      "created": null,
      "setting": "emailed_docs_include_history",
      "updated": null,
      "default_value": "0"
    },
    {
      "value": "0",
      "created": 1736061495,
      "setting": "require_email_subject",
      "updated": 1736061497,
      "default_value": "0"
    },
    {
      "value": null,
      "created": null,
      "setting": "document_completion_retention_days",
      "updated": null,
      "default_value": "0"
    },
    {
      "value": null,
      "created": null,
      "setting": "require_login_for_signing",
      "updated": null,
      "default_value": "0"
    },
    {
      "value": null,
      "created": null,
      "setting": "logout_on_signing",
      "updated": null,
      "default_value": "0"
    },
    {
      "value": null,
      "created": null,
      "setting": "audit_trail_completion_retention_days",
      "updated": null,
      "default_value": "0"
    },
    {
      "value": null,
      "created": null,
      "setting": "front_end_session_length",
      "updated": null,
      "default_value": "0"
    }
  ],
  "meta": {
    "pagination": {
      "count": 15,
      "links": {
        "next": "https://api.signnow.com/v2/organizations/5d07bfbb31bb486bb636fb992cd6d05ca677be54/settings?page=2"
      },
      "total": 42,
      "per_page": 15,
      "total_pages": 3,
      "current_page": 1
    }
  }
}
```

### 400

* Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

The user is not the organization admin.

**Example** (`The user is not the organization admin`)

```json
{
  "errors": [
    {
      "code": 12003003,
      "message": "Access denied for current administration role in your organization."
    }
  ]
}
```

### 404

Organization was not found.

**Example** (`Organization was not found`)

```json
{
  "errors": [
    {
      "code": 12003001,
      "message": "Organization `4e9cdccb8e764fbe86a664cc9e24502d3dbf6686` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{org_id}/settings" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/organizations/{organization_id}/brand — Get brand assigned to organization

This endpoint allows API users to get the brand that is assigned to an organization.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of an organization. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Default brand of the organization.

**Example** (`No default brand`)

```json
{
  "data": []
}
```

**Example** (`Default brand exists`)

```json
{
  "data": {
    "link": "https://api.signnow.com/v2/organizations/d675d64269db12538aa971ad2dfe1697164bc614/brands/65abbd5b6ca8bec57fdef2b2dd0460fba313fd14",
    "level": "organization",
    "title": "Company brand",
    "resources": {
      "logo": {
        "data": {
          "original": "https://api.signnow.com/v2/organizations/d675d64269db12538aa971ad2dfe1697164bc614/brands/65abbd5b6ca8bec57fdef2b2dd0460fba313fd14/resources/logo"
        },
        "link": "https://api.signnow.com/v2/organizations/d675d64269db12538aa971ad2dfe1697164bc614/brands/65abbd5b6ca8bec57fdef2b2dd0460fba313fd14/resources/logo?hash=39c7aded523a80a0e8f9e9ffb88d3d319e27d401"
      },
      "general": {
        "data": {
          "icons": {
            "color": "#546470",
            "background": "#ffffff",
            "hover-background": "#f1f2f4"
          },
          "texts": {
            "color": "#2f373e"
          },
          "header": {
            "background": "#ffffff"
          },
          "buttons": {
            "primary": {
              "color": "#ffffff",
              "background": "#0077c8",
              "active-border": "#004a7c",
              "hover-background": "#005995",
              "active-background": "#004a7c"
            },
            "dropdown": {
              "color": "#546470",
              "background": "#ffffff",
              "hover-background": "#f1f2f4",
              "active-background": "#dadee2"
            },
            "secondary": {
              "color": "#38424b",
              "background": "#e3e6e9",
              "active-border": "#d5dade",
              "hover-background": "#f1f2f4",
              "active-background": "#d5dade"
            }
          }
        },
        "link": "https://api.signnow.com/v2/organizations/d675d64269db12538aa971ad2dfe1697164bc614/brands/65abbd5b6ca8bec57fdef2b2dd0460fba313fd14/resources/general"
      }
    },
    "unique_id": "65abbd5b6ca8bec57fdef2b2dd0460fba313fd14",
    "owner_type": "organization"
  }
}
```

### 404

The organization is not found.

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{organization_id}/brand" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/organizations/{organization_id}/brand — Assign brand to organization

This endpoint allows API users to assign an organization brand to an organization.

**Notes**

* Admins and moderators of the organization can assign organization brands.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of an organization. Must match the pattern: [a-z0-9]{40}. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "brand_id"
  ],
  "properties": {
    "brand_id": {
      "type": "string",
      "example": "2274bf62786844e981584543275cdc0c88d67d45",
      "maxLength": 40,
      "minLength": 40,
      "description": "ID of the brand that should be default."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "brand_id": "2274bf62786844e981584543275cdc0c88d67d45"
}
```

## Responses

### 201

The brand has been assigned to the organization. The response body is empty.

### 400

* Incorrect or missing token.
* Request body is missing.
* Incorrect payload.
* `title` is not string.
* `title` is empty.
* `title` is longer than 40 characters.

**Example** (`Empty title`)

```json
{
  "errors": [
    {
      "code": 25002034,
      "message": "Brand title must not be an empty string."
    }
  ]
}
```

**Example** (`title not string`)

```json
{
  "errors": [
    {
      "code": 25002031,
      "message": "Brand title must be a string."
    }
  ]
}
```

**Example** (`Incorrect payload`)

```json
{
  "errors": [
    {
      "code": 25002002,
      "message": "Invalid payload given."
    }
  ]
}
```

**Example** (`title is too long`)

```json
{
  "code": 25002073,
  "message": "Brand id length must be 40 characters."
}
```

**Example** (`Request body missing`)

```json
{
  "code": 25002033,
  "message": "Brand title is required."
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is authorized with a token from an app they don’t own.
* The brand is not an organization brand or a common brand.
* The user is neither admin, nor moderator of the organization.

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

**Example** (`User not admin or moderator`)

```json
{
  "code": 25006002,
  "message": "Insufficient organization rights."
}
```

**Example** (`Not organization or common brand`)

```json
{
  "code": 25002026,
  "message": "Brand assignment is not allowed for provided entity."
}
```

### 404

The organization is not found.

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/organizations/{organization_id}/brand" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"brand_id": "2274bf62786844e981584543275cdc0c88d67d45"}'
```

---

## DELETE /v2/organizations/{organization_id}/brand — Unassign brand from organization

This endpoint allows users to unassign an organization brand from an organization. Only an admin or moderator of the organization can perform this action.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of an organization. Must match the pattern: [a-z0-9]{40}. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "brand_id"
  ],
  "properties": {
    "brand_id": {
      "type": "string",
      "example": "2274bf62786844e981584543275cdc0c88d67d45",
      "maxLength": 40,
      "description": "ID of the brand that should not be default anymore."
    }
  }
}
```

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is authorized with a token from an app they don’t own.
* The user is neither admin, nor moderator of the organization.

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed."
}
```

**Example** (`User not admin or moderator`)

```json
{
  "code": 25006002,
  "message": "Insufficient organization rights."
}
```

### 404

* The organization is not found.
* The brand is not an organization brand or a common brand.

**Example** (`Incorrect brand`)

```json
{
  "code": 25002027,
  "message": "Brand assignment not found."
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/organizations/{organization_id}/brand" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/organizations/{organization_id}/brands — Create organization brand

This endpoint allows API users to create a brand for an organization.

**Notes**

* Admins and moderators of the organization can create organization brands.
* To make the brand the organization's default, assign it with [Assign brand to organization](/docs/organization-branding/operations/put-v2-organizations-org-id-brand).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "title"
  ],
  "properties": {
    "title": {
      "type": "string",
      "example": "HR documents",
      "maxLength": 100,
      "description": "Brand name.",
      "x-stoplight": {
        "id": "o4f6tpxsanwgr"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "title": "HR documents"
}
```

## Responses

### 201

The organization brand has been created. Returns the ID of the new brand.

**Example** (`Successful response`)

```json
{
  "data": {
    "id": "c44ce90428b64e15908d847b0148be0a8a3d3ddd"
  }
}
```

### 400

* Incorrect or missing token.
* Request body is missing.
* Incorrect payload.
* `title` is not string.
* `title` is empty.
* `title` is longer than 100 characters.

**Example** (`Empty title`)

```json
{
  "errors": [
    {
      "code": 25002034,
      "message": "Brand title must not be an empty string."
    }
  ]
}
```

**Example** (`title not string`)

```json
{
  "errors": [
    {
      "code": 25002031,
      "message": "Brand title must be a string."
    }
  ]
}
```

**Example** (`Incorrect payload`)

```json
{
  "errors": [
    {
      "code": 25002002,
      "message": "Invalid payload given."
    }
  ]
}
```

**Example** (`title is too long`)

```json
{
  "errors": [
    {
      "code": 25002032,
      "message": "Brand title length must less, than 100 characters."
    }
  ]
}
```

**Example** (`Request body missing`)

```json
{
  "errors": [
    {
      "code": 25002033,
      "message": "Brand title is required."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is authorized with a token from an app they don’t own.
* The user is neither admin, nor moderator of the organization.

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

**Example** (`User not admin or moderator`)

```json
{
  "code": 25006002,
  "message": "Insufficient organization rights."
}
```

### 404

The organization is not found.

**Example** (`Organization not found`)

```json
{
  "code": 25006001,
  "message": "Organization not found."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"title": "HR documents"}'
```

---

## GET /v2/organizations/{organization_id}/brands — Get organization brands

This endpoint allows API users to retrieve all brands associated with an organization.

**Notes**

Each brand has an `owner_type` field that defines who owns it and what access is allowed. There are two ownership types returned by this endpoint:

* **`common`** — system default SignNow brand. Read-only; cannot be edited or customized. Appears in the brand list, but any modification attempt returns a "No access to brand" error.
* **`organization`** — custom brand owned by the organization. Full access for organization admins. This is the brand type you should create and use for customization.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "link": "https://api.signnow.com/v2/brands/f403197bda9365ba4b30f8bc6046e4be6a4c3611",
      "title": "signNow",
      "resources": [],
      "unique_id": "f403197bda9365ba4b30f8bc6046e4be6a4c3611",
      "owner_type": "common"
    },
    {
      "link": "https://api.signnow.com/v2/organizations/1e9cdccb8e764fbe86a664cc9e24502d3db7b297/brands/dbfbe9c51014492ea7e8f98a56b35254896a4ed3",
      "title": "New Theme",
      "resources": {
        "email": {
          "data": null,
          "link": "https://api.signnow.com/v2/organizations/1e9cdccb8e764fbe86a664cc9e24502d3db7b297/brands/dbfbe9c51014492ea7e8f98a56b35254896a4ed3/resources/email"
        },
        "editor": {
          "data": null,
          "link": "https://api.signnow.com/v2/organizations/1e9cdccb8e764fbe86a664cc9e24502d3db7b297/brands/dbfbe9c51014492ea7e8f98a56b35254896a4ed3/resources/editor"
        },
        "general": {
          "data": null,
          "link": "https://api.signnow.com/v2/organizations/1e9cdccb8e764fbe86a664cc9e24502d3db7b297/brands/dbfbe9c51014492ea7e8f98a56b35254896a4ed3/resources/general"
        }
      },
      "unique_id": "dbfbe9c51014492ea7e8f98a56b35254896a4ed3",
      "owner_type": "organization"
    }
  ],
  "meta": {
    "pagination": {
      "count": 4,
      "links": [],
      "total": 4,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is authorized with a token from an app they don’t own.
* The user is not a member, moderator, or admin of the organization.

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

**Example** (`User not in organization`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

### 404

The organization is not found.

**Example** (`The organization is not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/organizations/{organization_id}/brands/{brand_id} — Get an organization brand

This endpoint allows API users to get an organization brand by its ID.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Brand details.

**Example** (`Successful response`)

```json
{
  "data": {
    "link": "https://api.signnow.com/v2/organizations/d675d64269db12538aa971ad2dfe1697164bc614/brands/65abbd5b6ca8bec57fdef2b2dd0460fba313fd14",
    "title": "Company brand",
    "resources": {
      "logo": {
        "data": {
          "original": "https://api.signnow.com/v2/organizations/d675d64269db12538aa971ad2dfe1697164bc614/brands/65abbd5b6ca8bec57fdef2b2dd0460fba313fd14/resources/logo"
        },
        "link": "https://api.signnow.com/v2/organizations/d675d64269db12538aa971ad2dfe1697164bc614/brands/65abbd5b6ca8bec57fdef2b2dd0460fba313fd14/resources/logo?hash=39c7aded523a80a0e8f9e9ffb88d3d319e27d401"
      },
      "general": {
        "data": {
          "icons": {
            "color": "#546470",
            "background": "#ffffff",
            "hover-background": "#f1f2f4"
          },
          "texts": {
            "color": "#2f373e"
          },
          "header": {
            "background": "#ffffff"
          },
          "buttons": {
            "primary": {
              "color": "#ffffff",
              "background": "#0077c8",
              "active-border": "#004a7c",
              "hover-background": "#005995",
              "active-background": "#004a7c"
            },
            "dropdown": {
              "color": "#546470",
              "background": "#ffffff",
              "hover-background": "#f1f2f4",
              "active-background": "#dadee2"
            },
            "secondary": {
              "color": "#38424b",
              "background": "#e3e6e9",
              "active-border": "#d5dade",
              "hover-background": "#f1f2f4",
              "active-background": "#d5dade"
            }
          }
        },
        "link": "https://api.signnow.com/v2/organizations/d675d64269db12538aa971ad2dfe1697164bc614/brands/65abbd5b6ca8bec57fdef2b2dd0460fba313fd14/resources/general"
      }
    },
    "unique_id": "65abbd5b6ca8bec57fdef2b2dd0460fba313fd14",
    "owner_type": "organization"
  }
}
```

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is authorized with a token from an app they don’t own.
* The brand exists but it is not an organization brand.

**Example** (`Non-organization brand`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

### 404

* The brand is not found.
* The organization is not found.

**Example** (`Brand not found`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/organizations/{organization_id}/brands/{brand_id} — Update an organization brand

This endpoint allows users to rename an organization brand by its ID. Only an admin or moderator of the organization can perform this action.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "title"
  ],
  "properties": {
    "title": {
      "type": "string",
      "example": "HR documents",
      "maxLength": 100,
      "description": "Brand name.",
      "x-stoplight": {
        "id": "8ujjf1yvjl2b6"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "title": "HR documents"
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* The user is neither admin, nor moderator of the organization.
* Request body is missing.
* Incorrect payload.
* `title` is not string.
* `title` is empty.
* `title` is longer than 100 characters.

**Example** (`Empty title`)

```json
{
  "errors": [
    {
      "code": 25002034,
      "message": "Brand title must not be an empty string."
    }
  ]
}
```

**Example** (`title not string`)

```json
{
  "errors": [
    {
      "code": 25002031,
      "message": "Brand title must be a string."
    }
  ]
}
```

**Example** (`Incorrect payload`)

```json
{
  "errors": [
    {
      "code": 25002002,
      "message": "Invalid payload given."
    }
  ]
}
```

**Example** (`title is too long`)

```json
{
  "errors": [
    {
      "code": 25002032,
      "message": "Brand title length must less, than 100 characters."
    }
  ]
}
```

**Example** (`Request body missing`)

```json
{
  "errors": [
    {
      "code": 25002033,
      "message": "Brand title is required."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`User not admin or moderator`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

### 403

* The user is authorized with a token from an app they don’t own.
* The brand exists but it is not an organization brand.
* The user is neither admin, nor moderator of the organization.

**Example** (`Non-organization brand`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

**Example** (`User not admin or moderator`)

```json
{
  "code": 25006002,
  "message": "Insufficient organization rights."
}
```

### 404

* The brand is not found.
* The organization is not found.

**Example** (`Brand not found`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"title": "HR documents"}'
```

---

## DELETE /v2/organizations/{organization_id}/brands/{brand_id} — Delete an organization brand

This endpoint allows users to delete an organization brand by its ID. Only an admin or moderator of the organization can perform this action.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is authorized with a token from an app they don’t own.
* The brand exists but it is not an organization brand.
* The user is neither admin, nor moderator of the organization.

**Example** (`Non-organization brand`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

**Example** (`User not admin or moderator`)

```json
{
  "code": 25006002,
  "message": "Insufficient organization rights."
}
```

### 404

* The brand is not found.
* The organization is not found.

**Example** (`Brand not found`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/organizations/{organization_id}/brands/{brand_id}/resources/editor — Create org editor brand resource

This endpoint allows users to create an editor brand resource for an organization. Only an admin or moderator of the organization can perform this action.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "fields": {
      "type": "object",
      "properties": {
        "date": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the date field in the fields panel."
        },
        "text": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the text field in the fields panel."
        },
        "email": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the email field in the fields panel."
        },
        "stamp": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the stamp field in the fields panel."
        },
        "formula": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the formula field in the fields panel."
        },
        "checkbox": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the checkbox field in the fields panel."
        },
        "dropdown": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the dropdown field in the fields panel."
        },
        "fullname": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the fullname field in the fields panel."
        },
        "initials": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the initials field in the fields panel."
        },
        "hyperlink": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the hyperlink field in the fields panel."
        },
        "signature": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the signature field in the fields panel."
        },
        "attachment": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the attachment field in the fields panel."
        },
        "radiobutton": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "default": true
            }
          },
          "description": "Whether to show the radiobutton field in the fields panel."
        }
      },
      "description": "Settings of the fields panel on the left sidebar. Available for embedded sending, embedded editor, and FreeForm invite."
    },
    "sidebar": {
      "type": "object",
      "properties": {
        "background": {
          "type": "string",
          "description": "Background color for a signing session sidebar in HEX color code."
        },
        "visibility": {
          "type": "boolean",
          "description": "Whether the sidebar should be visible or not."
        }
      }
    },
    "toolbar": {
      "type": "object",
      "properties": {
        "background": {
          "type": "string",
          "example": "#ffffff",
          "description": "Background color of the toolbar in HEX color code."
        },
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Whether to show the toolbar in the header."
        }
      },
      "description": "Configuration of the toolbar in the header. Available for embedded sending and embedded editor."
    },
    "settings": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Enable/disable the Settings button. Possible values: `true`, `false`."
        }
      },
      "description": "Settings object that contains attributes for the Settings dropdown button."
    },
    "auth-page": {
      "type": "object",
      "properties": {
        "check-pin": {
          "type": "object",
          "properties": {
            "phone": {
              "type": "object",
              "properties": {
                "body-text": {
                  "type": "object",
                  "properties": {
                    "en": {
                      "type": "string",
                      "example": "Enter the document password sent you by voice call or sms.",
                      "maxLength": 900,
                      "description": "Custom text in English."
                    },
                    "es": {
                      "type": "string",
                      "example": "Introduce la contrase\u00f1a del documento que te ha enviado por llamada de voz o sms.",
                      "maxLength": 900,
                      "description": "Custom text in Spanish."
                    },
                    "fr": {
                      "type": "string",
                      "example": "Entrez le mot de passe du document que vous avez re\u00e7u par appel vocal ou sms.",
                      "maxLength": 900,
                      "description": "Custom text in French."
                    }
                  },
                  "description": "Custom text displayed for phone/SMS-protected invites."
                }
              },
              "description": "Customizes text for phone/SMS-protected invites."
            },
            "password": {
              "type": "object",
              "properties": {
                "body-text": {
                  "type": "object",
                  "properties": {
                    "en": {
                      "type": "string",
                      "example": "Enter the document password below to unlock the document.",
                      "maxLength": 900,
                      "description": "Custom text in English."
                    },
                    "es": {
                      "type": "string",
                      "example": "Introduce la contrase\u00f1a del documento a continuaci\u00f3n para desbloquear el documento.",
                      "maxLength": 900,
                      "description": "Custom text in Spanish."
                    },
                    "fr": {
                      "type": "string",
                      "example": "Entrez le mot de passe du document ci-dessous pour d\u00e9verrouiller le document.",
                      "maxLength": 900,
                      "description": "Custom text in French."
                    }
                  },
                  "description": "Custom text displayed for password-protected invites."
                }
              },
              "description": "Customizes text for password-protected invites."
            }
          },
          "description": "Customizes text prompting the signer to enter the password."
        },
        "header-text": {
          "type": "object",
          "properties": {
            "en": {
              "type": "string",
              "example": "{sender_email} invited you to sign {document_name}",
              "maxLength": 300,
              "description": "Custom header text in English. Placeholders `{sender_email}` and `{document_name}` are available."
            },
            "es": {
              "type": "string",
              "example": "{sender_email} te ha invitado a firmar {document_name}",
              "maxLength": 300,
              "description": "Custom header text in Spanish. Placeholders `{sender_email}` and `{document_name}` are available."
            },
            "fr": {
              "type": "string",
              "example": "{sender_email} vous a invit\u00e9 \u00e0 signer {document_name}",
              "maxLength": 300,
              "description": "Custom header text in French. Placeholders `{sender_email}` and `{document_name}` are available."
            }
          },
          "description": "Customizes a header text displayed to the signer on the two-factor authentication page."
        },
        "request-pin": {
          "type": "object",
          "properties": {
            "body-text": {
              "type": "object",
              "properties": {
                "en": {
                  "type": "string",
                  "example": "Press the button below to have the password sent to you by voice call or sms message.",
                  "maxLength": 900,
                  "description": "Custom text with instructions in English."
                },
                "es": {
                  "type": "string",
                  "example": "Pulsa el bot\u00f3n de abajo para que te env\u00eden la contrase\u00f1a por llamada de voz o mensaje sms.",
                  "maxLength": 900,
                  "description": "Custom text with instructions in Spanish."
                },
                "fr": {
                  "type": "string",
                  "example": "Appuyez sur le bouton ci-dessous pour que le mot de passe vous soit envoy\u00e9 par appel vocal ou sms.",
                  "maxLength": 900,
                  "description": "Custom text with instructions in French."
                }
              },
              "description": "Custom text displayed to the signer with instructions for obtaining a password."
            }
          },
          "description": "Customizes text with instructions for obtaining a password via voice call or SMS. Displayed only for phone/SMS-protected invites."
        }
      },
      "description": "An object that customizes the authentication page for invites protected by two-factor authentication, including phone calls, SMS, and passwords set by the sender."
    },
    "navigation": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "string",
          "description": "Enable/disable the Navigation elements. Possible values: `true`, `false`."
        }
      },
      "description": "Navigation object that contains attributes for the Navigation elements."
    },
    "sender-info": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether the **Contact Sender** option on the **More Actions** menu should be visible or not."
        },
        "contact-name": {
          "type": "string",
          "maxLength": 300,
          "description": "The name of the sender that should appear if a signer clicks **Contact Sender**."
        },
        "contact-email": {
          "type": "string",
          "maxLength": 254,
          "description": "The email of the sender that should appear if a signer clicks **Contact Sender**."
        }
      }
    },
    "close-button": {
      "type": "object",
      "properties": {
        "title": {
          "type": "object",
          "properties": {
            "editor": {
              "type": "object",
              "properties": {
                "en": {
                  "type": "string",
                  "example": "Save and Close",
                  "maxLength": 50,
                  "description": "Button title in English."
                },
                "es": {
                  "type": "string",
                  "example": "Guardar y cerrar",
                  "maxLength": 50,
                  "description": "Button title in Spanish."
                },
                "fr": {
                  "type": "string",
                  "example": "Enregistrer et fermer",
                  "maxLength": 50,
                  "description": "Button title in French."
                }
              },
              "description": "Customizes text of the **Save and Close** button in the editor. Available for the embedded editor and embedded sending mode."
            },
            "signing": {
              "type": "object",
              "properties": {
                "en": {
                  "type": "string",
                  "example": "Save Progress and Finish Later",
                  "maxLength": 50,
                  "description": "Text in English for signing session."
                },
                "es": {
                  "type": "string",
                  "example": "Guardar progresos y terminar m\u00e1s tarde",
                  "maxLength": 50,
                  "description": "Text in Spanish for signing session."
                },
                "fr": {
                  "type": "string",
                  "example": "Enregistrer la progression et terminer plus tard",
                  "maxLength": 50,
                  "description": "Text in French for signing session."
                }
              },
              "description": "Customizes text of the **Save Progress and Finish Later** option during the signing session."
            }
          },
          "description": "Localized text for the closing options in signing session, embedded sending and editor modes."
        },
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Whether the **Close** button (in the header in view mode) or **Save progress and Finish Later** option (in the **More Actions** menu during the signing session) should be visible."
        }
      },
      "description": "Object that defines the visibility and text for the closing options."
    },
    "progress-bar": {
      "type": "object",
      "properties": {
        "default-color": {
          "type": "string",
          "description": "Default color of the progress bar."
        },
        "completed-color": {
          "type": "string",
          "description": "Progress bar color when the signer has completed the invite to sign."
        }
      },
      "description": "Progress bar object that contains attributes for the progress bar elements."
    },
    "support-chat": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "string",
          "description": "Whether the support chat icon should be visible or not."
        }
      }
    },
    "accessibility": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Text color for the Accessibility button in hex color code."
        },
        "border": {
          "type": "string",
          "description": "Border color for the Accessibility button in hex color code."
        },
        "enabled": {
          "type": "boolean",
          "description": "Whether to enable or disable the accessibility mode. By default accessibility is off."
        },
        "background": {
          "type": "string",
          "description": "Background color for the Accessibility button in hex color code."
        },
        "visibility": {
          "type": "boolean",
          "description": "Whether to show or hide the accessibility option in the **More Actions** menu."
        },
        "hover-color": {
          "type": "string",
          "description": "Hover over text button color in hex color code."
        },
        "active-color": {
          "type": "string",
          "description": "Text button color in hex color code when active."
        },
        "hover-border": {
          "type": "string",
          "description": "Hover over border button color in hex color code."
        },
        "active-border": {
          "type": "string",
          "description": "Border button color in hex color code when active."
        },
        "hover-background": {
          "type": "string",
          "description": "Hover over background button color in hex color code."
        },
        "active-background": {
          "type": "string",
          "description": "Background button color in hex color code when active."
        }
      },
      "description": "Accessibility object that contains attributes for the Accessibility button."
    },
    "complete-page": {
      "type": "object",
      "properties": {
        "decline": {
          "type": "object",
          "properties": {
            "body-text": {
              "type": "object",
              "properties": {
                "en": {
                  "type": "string",
                  "description": "Decline main text in English."
                },
                "es": {
                  "type": "string",
                  "description": "Decline main text in Spanish."
                },
                "fr": {
                  "type": "string",
                  "description": "Decline main text in French."
                }
              }
            },
            "header-text": {
              "type": "object",
              "properties": {
                "en": {
                  "type": "string",
                  "description": "Decline header text in English."
                },
                "es": {
                  "type": "string",
                  "description": "Decline header text in Spanish."
                },
                "fr": {
                  "type": "string",
                  "description": "Decline header text in French."
                }
              }
            }
          },
          "description": "Custom text that appears on the page after a signer confirms declining a document."
        },
        "success": {
          "type": "object",
          "properties": {
            "body-text": {
              "type": "object",
              "properties": {
                "en": {
                  "type": "string",
                  "description": "Success main text in English."
                },
                "es": {
                  "type": "string",
                  "description": "Success main text in Spanish."
                },
                "fr": {
                  "type": "string",
                  "description": "Success main text in French."
                }
              }
            },
            "header-text": {
              "type": "object",
              "properties": {
                "en": {
                  "type": "string",
                  "description": "Success header text in English."
                },
                "es": {
                  "type": "string",
                  "description": "Success header text in Spanish."
                },
                "fr": {
                  "type": "string",
                  "description": "Success header text in French."
                }
              }
            }
          },
          "description": "Custom text that appears on the page after a signer completes a document."
        },
        "registration": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "description": "Whether the registration button on the completion page should be visible or not for new users."
            }
          }
        },
        "button-download": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "description": "Whether the button to download a document on the completion page should be visible or not."
            }
          }
        },
        "button-to-signnow": {
          "type": "object",
          "properties": {
            "visibility": {
              "type": "boolean",
              "description": "Whether the button with a link to signNow on the completion page should be visible or not."
            }
          }
        }
      },
      "description": "Customization of the page that opens after a document is signed or declined."
    },
    "document-name": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Whether to show the document name in the header."
        }
      },
      "description": "Configuration of the document name. Available for embedded signing, embedded sending (in the editor), embedded editor, FreeForm invite, and embedded view."
    },
    "editing-tools": {
      "type": "object",
      "properties": {
        "background": {
          "type": "string",
          "example": "#ffffff",
          "description": "Background color of the editing tools panel in HEX color code."
        }
      },
      "description": "Configuration of the left-side editing tools panel. Available for embedded sending, embedded editor, and FreeForm invite."
    },
    "decline-button": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether the **Decline** option should be visible in the **More Actions** menu."
        }
      },
      "description": "An object that determines the availability of the decline option to the recipient."
    },
    "default-fields": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "example": true,
          "description": "Whether to show the Default fields tab in the left sidebar. When set to `false`, the Custom fields tab becomes the only tab and the Default / Custom fields tab switcher disappears. The default value is `true`."
        }
      },
      "description": "Configuration of the Default fields tab. Available for embedded sending and embedded editor."
    },
    "field-settings": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "example": true,
          "description": "Whether to show the Element settings button on the right side of the header. The default value is true."
        }
      },
      "description": "Configuration of the Element settings in the right sidebar. The Element settings allows users to customize field settings. Available for embedded sending and embedded editor."
    },
    "page-dimension": {
      "type": "object",
      "properties": {
        "percent": {
          "type": "integer",
          "maximum": 300,
          "minimum": 10,
          "multipleOf": 10,
          "description": "The dimension of the signing session page when it is opened in percents."
        }
      }
    },
    "preview-button": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Whether to show the Open Preview button in the toolbar."
        }
      },
      "description": "Configuration of the Open Preview button in the toolbar. Available for embedded sending and embedded editor."
    },
    "complete-footer": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether the footer about completion of all the required fields should be visible or not."
        },
        "custom-text": {
          "type": "object",
          "properties": {
            "en": {
              "type": "string",
              "description": "Footer text in English."
            },
            "es": {
              "type": "string",
              "description": "Footer text in Spanish."
            },
            "fr": {
              "type": "string",
              "description": "Footer text in French."
            }
          }
        }
      }
    },
    "continue-button": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Whether to show the Continue button in the header."
        }
      },
      "description": "Configuration of the Continue button. Available for embedded sending."
    },
    "download-button": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Defines the visibility of the **Download** and **History** buttons during the signing session and **Download**, **Download With History** and **Document History** buttons in view mode."
        }
      },
      "description": "An object that defines the download options for the recipient."
    },
    "request-payment": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Whether to show the Payment Request option in the settings dropdown."
        }
      },
      "description": "Configuration of the request payment option in the editor. Available for embedded sending and embedded editor."
    },
    "signing-settings": {
      "type": "object",
      "properties": {
        "guide-signers-only-through-required-fields": {
          "type": "boolean",
          "default": true,
          "description": "Whether to guide signers through required fields only. `true` - the **Go Through Required Fields** checkbox is checked in **More Actions**; the signer will be guided only through required fields; `false` \u2013 the **Go Through Required Fields** checkbox is not checked in **More Actions**; the signer will be guided through all fields."
        },
        "auto-apply-signatures-and-initials-to-document-fields": {
          "type": "boolean",
          "default": true,
          "description": "Whether to offer a signer to automatically apply signature and initials to all corresponding empty fields in a document after filling out the first field. `true` \u2013 the signer will be prompted to automatically fill all empty signature and initials fields after completing the first one; `false` \u2013 the signer will need to fill each signature and initials field individually; no prompt will be shown. "
        }
      },
      "description": "Settings configured for the signing experience."
    },
    "manage-recipients": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Whether to show the Manage Recipients link."
        }
      },
      "description": "Configuration of the Manage Recipients link. Available for embedded sending and embedded editor."
    },
    "step-progress-bar": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Whether to show the steps progress bar in the header."
        }
      },
      "description": "Configuration of the steps progress bar. Available for embedded sending and embedded editor."
    },
    "thumbnails-button": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "default": true,
          "description": "Whether to show the Thumbnails button in the toolbar."
        }
      },
      "description": "Configuration of the Thumbnails button in the toolbar. Available for embedded sending and embedded editor."
    }
  },
  "x-examples": {
    "Example 1": {
      "settings": {
        "visibility": "true"
      },
      "navigation": {
        "visibility": "true"
      },
      "progress-bar": {
        "default-color": "#232323",
        "completed-color": "#232323"
      },
      "accessibility": {
        "color": "#232323",
        "border": "#232323",
        "enabled": false,
        "background": "#232323",
        "visibility": "true",
        "hover-color": "#232323",
        "active-color": "#232323",
        "hover-border": "#232323",
        "active-border": "#232323",
        "hover-background": "#232323",
        "active-background": "#232323"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "fields": {
    "date": {
      "visibility": true
    },
    "text": {
      "visibility": true
    },
    "email": {
      "visibility": true
    },
    "stamp": {
      "visibility": true
    },
    "formula": {
      "visibility": true
    },
    "checkbox": {
      "visibility": true
    },
    "dropdown": {
      "visibility": true
    },
    "fullname": {
      "visibility": true
    },
    "initials": {
      "visibility": true
    },
    "hyperlink": {
      "visibility": true
    },
    "signature": {
      "visibility": true
    },
    "attachment": {
      "visibility": true
    },
    "radiobutton": {
      "visibility": true
    }
  },
  "sidebar": {
    "background": "#ffffff",
    "visibility": true
  },
  "toolbar": {
    "background": "#ffffff",
    "visibility": true
  },
  "settings": {
    "visibility": true
  },
  "auth-page": {
    "check-pin": {
      "phone": {
        "body-text": {
          "en": "Enter the document password sent you by voice call or sms.",
          "es": "Introduce la contrase\u00f1a del documento que te ha enviado por llamada de voz o sms.",
          "fr": "Entrez le mot de passe du document que vous avez re\u00e7u par appel vocal ou sms."
        }
      },
      "password": {
        "body-text": {
          "en": "Enter the document password below to unlock the document.",
          "es": "Introduce la contrase\u00f1a del documento a continuaci\u00f3n para desbloquear el documento.",
          "fr": "Entrez le mot de passe du document ci-dessous pour d\u00e9verrouiller le document."
        }
      }
    },
    "header-text": {
      "en": "{sender_email} invited you to sign {document_name}",
      "es": "{sender_email} te ha invitado a firmar {document_name}",
      "fr": "{sender_email} vous a invit\u00e9 \u00e0 signer {document_name}"
    },
    "request-pin": {
      "body-text": {
        "en": "Press the button bellow to have the password sent to you by voice call or sms message.",
        "es": "Pulsa el bot\u00f3n de abajo para que te env\u00eden la contrase\u00f1a por llamada de voz o mensaje sms.",
        "fr": "Appuyez sur le bouton ci-dessous pour que le mot de passe vous soit envoy\u00e9 par appel vocal ou sms."
      }
    }
  },
  "navigation": {
    "visibility": true
  },
  "sender-info": {
    "visibility": true,
    "contact-name": "Contact Name",
    "contact-email": "contact@email.com"
  },
  "close-button": {
    "title": {
      "editor": {
        "en": "Save and Close",
        "es": "Guardar y cerrar",
        "fr": "Enregistrer et fermer"
      },
      "signing": {
        "en": "Save Progress and Finish Later",
        "es": "Guardar progresos y terminar m\u00e1s tarde",
        "fr": "Enregistrer la progression et terminer plus tard"
      }
    },
    "visibility": true
  },
  "progress-bar": {
    "default-color": "#e3e6e9",
    "completed-color": "#0777cf"
  },
  "support-chat": {
    "visibility": true
  },
  "accessibility": {
    "color": "#546470",
    "border": "#ffffff",
    "enabled": false,
    "background": "#ffffff",
    "visibility": true,
    "hover-color": "#546470",
    "active-color": "#546470",
    "hover-border": "#f1f2f4",
    "active-border": "#dadee2",
    "hover-background": "#f1f2f4",
    "active-background": "#dadee2"
  },
  "complete-page": {
    "decline": {
      "body-text": {
        "en": "You did not consent to do business electronically with the sender. The Electronic Signature Disclosure can still be accepted before the sender cancels the invite. The invite can be found in your inbox and signNow account. You can still download the document if you\u2019d like to. Contact the sender to find out what to do next.",
        "es": "No has dado tu consentimiento para hacer negocios electr\u00f3nicamente con el remitente. La Divulgaci\u00f3n de Firma Electr\u00f3nica a\u00fan se puede aceptar antes de que el remitente cancele la invitaci\u00f3n. Puedes encontrar la invitaci\u00f3n en tu bandeja de entrada y en la cuenta de signNow. A\u00fan puedes descargar el documento si lo deseas. Ponte en contacto con el remitente para saber qu\u00e9 hacer a continuaci\u00f3n.",
        "fr": "Vous n\u2019avez pas consenti \u00e0 traiter par voie \u00e9lectronique avec l\u2019exp\u00e9diteur. La Divulgation par signature \u00e9lectronique peut toujours \u00eatre accept\u00e9e avant que l\u2019exp\u00e9diteur n\u2019annule l\u2019invitation. L\u2019invitation se trouve dans votre bo\u00eete de r\u00e9ception et dans votre compte signNow. Vous pouvez n\u00e9anmoins t\u00e9l\u00e9charger le document si vous le souhaitez. Contactez l\u2019exp\u00e9diteur pour conna\u00eetre les prochaines \u00e9tapes."
      },
      "header-text": {
        "en": "You've declined the Electronic Signature Disclosure agreement",
        "es": "Has rechazado el acuerdo de Divulgaci\u00f3n de firmas electr\u00f3nicas",
        "fr": "Vous avez refus\u00e9 l\u2019accord de Divulgation par signature \u00e9lectronique"
      }
    },
    "success": {
      "body-text": {
        "en": "The sender will be notified and receive the signed document.",
        "es": "El remitente recibir\u00e1 una notificaci\u00f3n y el documento firmado. Tambi\u00e9n se ha enviado una copia a tu bandeja de entrada y se ha guardado en tu cuenta de signNow.",
        "fr": "L'exp\u00e9diteur sera inform\u00e9 et recevra le document sign\u00e9. Une copie a \u00e9galement \u00e9t\u00e9 envoy\u00e9e dans votre bo\u00eete de r\u00e9ception et enregistr\u00e9e dans votre compte signNow."
      },
      "header-text": {
        "en": "You've filled out and signed the document",
        "es": "Has completado y firmado el documento",
        "fr": "Vous avez rempli et sign\u00e9 le document"
      }
    },
    "registration": {
      "visibility": true
    },
    "button-download": {
      "visibility": true
    },
    "button-to-signnow": {
      "visibility": false
    }
  },
  "document-name": {
    "visibility": true
  },
  "editing-tools": {
    "background": "#ffffff"
  },
  "decline-button": {
    "visibility": true
  },
  "default-fields": {
    "visibility": true
  },
  "field-settings": {
    "visibility": true
  },
  "page-dimension": {
    "percent": 150
  },
  "preview-button": {
    "visibility": true
  },
  "complete-footer": {
    "visibility": true,
    "custom-text": {
      "en": "You've completed all required fields. Review your document and click Finish.",
      "es": "Has completado todos los campos obligatorios. Revisa tu documento y haz clic en Finalizar.",
      "fr": "Vous avez rempli tous les champs obligatoires. Relisez votre document et cliquez sur Terminer."
    }
  },
  "continue-button": {
    "visibility": true
  },
  "download-button": {
    "visibility": true
  },
  "request-payment": {
    "visibility": true
  },
  "signing-settings": {
    "guide-signers-only-through-required-fields": true,
    "auto-apply-signatures-and-initials-to-document-fields": true
  },
  "manage-recipients": {
    "visibility": true
  },
  "step-progress-bar": {
    "visibility": true
  },
  "thumbnails-button": {
    "visibility": true
  },
  "decline-invite-text": {
    "en": "You're about to decline to sign {document_name} from {invite_owner_email}. Note that all the changes you've made to this document will be lost.",
    "es": "Est\u00e1s a punto de rechazar para firmar {document_name} de {invite_owner_email}. Ten en cuenta en cuenta que todos los cambios que hayas realizado en este documento se perder\u00e1n.",
    "fr": "Vous \u00eates sur le point de refuser de signer {document_name} de {invite_owner_email}. Notez que toutes les modifications que vous avez apport\u00e9es \u00e0 ce document seront perdues."
  }
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* Request without body.
* `visibility` is not a boolean.
* `color` value is not a string.
* `color` is not a HEX color code.
* `active-color` is not a string.
* `active-color` is not a HEX color code.
* `hover-color` is not a string.
* `hover-color` is not a HEX color code.
* `default-color` is not a string.
* `default-color` is not a HEX color code.
* `completed-color` is not a string.
* `completed-color` is not a HEX color code.
* `background` is not a string.
* `background` is not a HEX color code.
* `active-background` is not a string.
* `active-background` is not a HEX color code.
* `hover-background` is not a string.
* `hover-background` is not a HEX color code.
* `border` is not a string.
* `border` is not a HEX color code.
* `active-border` is not a string.
* `active-border` is not a HEX color code.
* `hover-border` is not a string.
* `hover-border` is not a HEX color code.
* `enabled` is not a boolean.
* `navigation` is not an array.
* `navigation.visibility` is not a boolean.
* `progress-bar` is not an array.
* `sidebar` is not an array.
* `sidebar.background` is not a string.
* `sidebar.visibility` is not a boolean.
* `complete-footer` field is not an array.
* `complete-footer.visibility` is not a boolean.
* `complete-footer.custom-text` is not an array.
* `complete-footer.custom-text.en` is not a string.
* `support-chat` is not an array.
* `support-chat.visibility` is not a boolean.
* `complete-page.success` is not an array.
* `complete-page.success.header-text.en` is not a string.
* `complete-page.success.body-text.en` is not a string.
* `complete-page.decline` is not an array.
* `complete-page.decline.header-text.en` is not a string.
* `complete-page.decline.body-text.en` is not a string.
* `registration` is not an array.
* `registration.visibility` is not a boolean.
* `button-to-signnow` is not an array.
* `button-to-signnow.visibility` is not a boolean.
* `button-download` is not an array.
* `button-download.visibility` is not a boolean.
* `sender-info` is not an array.
* `sender-info.visibility` is not a boolean.
* `page-dimension` is not an array.
* `percent` is not an integer.
* `contact-name` is not a string.
* `contact-email` is not a string.
* `close-button` is not an array.
* `close-button.visibility` is not a boolean.
* `close-button` is not an array.
* `close-button.visibility` is not a boolean.
* `close-button.title` is not an array.
* `close-button.title.signing` is not an array.
* `close-button.title.editor` is not an array.
* `close-button.title.signing.en` is not a string.
* `close-button.title.signing.fr` is not a string.
* `close-button.title.signing.es` is not a string.
* `close-button.title.editor.en` is not a string.
* `close-button.title.editor.fr` is not a string.
* `close-button.title.editor.es` is not a string.
* `close-button.title.signing.en` is too long.
* `close-button.title.signing.fr` is too long.
* `close-button.title.signing.es` is too long.
* `close-button.title.editor.en` is too long.
* `close-button.title.editor.fr` is too long.
* `close-button.title.editor.es` is too long.
* `close-button.title.signing.en` contains UTF 4-byte characters.
* `close-button.title.signing.fr` contains UTF 4-byte characters.
* `close-button.title.signing.es` contains UTF 4-byte characters.
* `close-button.title.editor.en` contains UTF 4-byte characters.
* `close-button.title.editor.fr` contains UTF 4-byte characters.
* `close-button.title.editor.es` contains UTF 4-byte characters.
* `decline-button` is not an array.
* `decline-button.visibility` is not a boolean.
* `document-name` is not an array.
* `document-name.visibility` is not a boolean.
* `toolbar` is not an array.
* `toolbar.visibility` is not a boolean.
* `toolbar.background` not a string.
* `toolbar.background` has incorrect format.
* `editing-tools` is not an array.
* `editing-tools.background` is not a string.
* `editing-tools.background` has incorrect format.
* `manage-recipients` is not an array.
* `manage-recipients.visibility` is not a boolean.
* `preview-button` is not an array.
* `preview-button.visibility` is not a boolean.
* `thumbnails-button` is not an array.
* `thumbnails-button.visibility` is not a boolean.
* `request-payment` is not an array.
* `request-payment.visibility` is not a boolean.
* `continue-button` is not an array.
* `continue-button.visibility` is not a boolean.
* `step-progress-bar` is not an array.
* `step-progress-bar.visibility` is not a boolean.
* `signing-settings` type is incorrect.
* `signing-settings.guide-signers-only-through-required-fields` type is incorrect.
* `signing-settings.auto-apply-signatures-and-initials-to-document-fields` type is incorrect.
* `fields` is not an array.
* `fields.signature` is not an array.
* `fields.signature.visibility` is not a boolean.
* `fields.text` is not an array.
* `fields.text.visibility` is not a boolean.
* `fields.date` is not an array.
* `fields.date.visibility` is not a boolean.
* `fields.initials` is not an array.
* `fields.initials.visibility` is not a boolean.
* `fields.fullname` is not an array.
* `fields.fullname.visibility` is not a boolean.
* `fields.email` is not an array.
* `fields.email.visibility` is not a boolean.
* `fields.checkbox` is not an array.
* `fields.checkbox.visibility` is not a boolean.
* `fields.radiobutton` is not an array.
* `fields.radiobutton.visibility` is not a boolean.
* `fields.attachment` is not an array.
* `fields.attachment.visibility` is not a boolean.
* `fields.dropdown` is not an array.
* `fields.dropdown.visibility` is not a boolean.
* `fields.stamp` is not an array.
* `fields.stamp.visibility` is not a boolean.
* `fields.formula` is not an array.
* `fields.formula.visibility` is not a boolean.
* `fields.hyperlink` is not an array.
* `fields.hyperlink.visibility` is not a boolean.
* `field-settings` is not an array.
* `field-settings.visibility` is not a boolean.
* `default-fields` is not an array.
* `default-fields.visibility` is not a boolean.


**Example** (`color not string`)

```json
{
  "errors": [
    {
      "code": 25002006,
      "message": "The 'color' attribute must be a string"
    }
  ]
}
```

**Example** (`border not string`)

```json
{
  "errors": [
    {
      "code": 25002008,
      "message": "The 'background' attribute must be a string"
    }
  ]
}
```

**Example** (`sidebar not array`)

```json
{
  "errors": [
    {
      "code": 25002145,
      "message": "The 'sidebar' field must be an array."
    }
  ]
}
```

**Example** (`sidebar.visibility`)

```json
{
  "errors": [
    {
      "code": 25002148,
      "message": "The 'sidebar.visibility' must be a boolean."
    }
  ]
}
```

**Example** (`enabled not boolean`)

```json
{
  "errors": [
    {
      "code": 25002190,
      "message": "The 'accessibility.enabled' field must be a boolean."
    }
  ]
}
```

**Example** (`percent not integer`)

```json
{
  "errors": [
    {
      "code": 25002215,
      "message": "The `page-dimension.percent` field must be an integer."
    }
  ]
}
```

**Example** (`Request without body`)

```json
{
  "errors": [
    {
      "code": 25002002,
      "message": "Invalid payload given."
    }
  ]
}
```

**Example** (`navigation not array`)

```json
{
  "errors": [
    {
      "code": 25002088,
      "message": "The 'navigation' attribute must be an array."
    }
  ]
}
```

**Example** (`background not string`)

```json
{
  "errors": [
    {
      "code": 25002004,
      "message": "The 'background' attribute must be a string"
    }
  ]
}
```

**Example** (`custom-text not array`)

```json
{
  "errors": [
    {
      "code": 25002151,
      "message": "The 'complete-footer.custom-text' must be an array."
    }
  ]
}
```

**Example** (`sender-info not array`)

```json
{
  "errors": [
    {
      "code": 25002207,
      "message": "The `sender-info` field must be an array."
    }
  ]
}
```

**Example** (`close-button not array`)

```json
{
  "errors": [
    {
      "code": 25002218,
      "message": "The close-button field must be an array."
    }
  ]
}
```

**Example** (`fields is not an array`)

```json
{
  "errors": [
    {
      "code": 25002295,
      "message": "The `fields` field must be an array."
    }
  ]
}
```

**Example** (`hover-color not string`)

```json
{
  "errors": [
    {
      "code": 25002012,
      "message": "The 'hover-color' attribute must be a string"
    }
  ]
}
```

**Example** (`progress-bar not array`)

```json
{
  "errors": [
    {
      "code": 25002089,
      "message": "The 'progress-bar' attribute must be an array."
    }
  ]
}
```

**Example** (`registration not array`)

```json
{
  "errors": [
    {
      "code": 25002139,
      "message": "This value should be of type array."
    }
  ]
}
```

**Example** (`support-chat not array`)

```json
{
  "errors": [
    {
      "code": 25002158,
      "message": "The 'support-chat' field must be an array."
    }
  ]
}
```

**Example** (`visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002003,
      "message": "The visibility should be a boolean."
    }
  ]
}
```

**Example** (`active-color not string`)

```json
{
  "errors": [
    {
      "code": 25002039,
      "message": "The 'active-color' attribute must be a string"
    }
  ]
}
```

**Example** (`contact-name not string`)

```json
{
  "errors": [
    {
      "code": 25002212,
      "message": "The `sender-info.contact-name` must be a string."
    }
  ]
}
```

**Example** (`hover-border not string`)

```json
{
  "errors": [
    {
      "code": 25002014,
      "message": "The 'hover-border' attribute must be a string"
    }
  ]
}
```

**Example** (`toolbar is not an array`)

```json
{
  "errors": [
    {
      "code": 25002276,
      "message": "The `toolbar` field must be an array."
    }
  ]
}
```

**Example** (`active-border not string`)

```json
{
  "errors": [
    {
      "code": 25002041,
      "message": "The 'active-border' attribute must be a string."
    }
  ]
}
```

**Example** (`color not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002007,
      "message": "The 'color' attribute format is invalid"
    }
  ]
}
```

**Example** (`contact-email not string`)

```json
{
  "errors": [
    {
      "code": 25002209,
      "message": "The `sender-info.contact-email` must be a string."
    }
  ]
}
```

**Example** (`decline-button not array`)

```json
{
  "errors": [
    {
      "code": 25002220,
      "message": "The decline-button field must be an array."
    }
  ]
}
```

**Example** (`default-color not string`)

```json
{
  "errors": [
    {
      "code": 25002043,
      "message": "The 'default-color' attribute must be a string."
    }
  ]
}
```

**Example** (`page-dimension not array`)

```json
{
  "errors": [
    {
      "code": 25002214,
      "message": "The `page-dimension` field must be an array."
    }
  ]
}
```

**Example** (`border not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002009,
      "message": "The 'border' attribute format is invalid"
    }
  ]
}
```

**Example** (`complete-footer not array`)

```json
{
  "errors": [
    {
      "code": 25002149,
      "message": "The 'complete-footer' field must be an array."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`completed-color not string`)

```json
{
  "errors": [
    {
      "code": 25002045,
      "message": "The 'completed-color' attribute must be a string."
    }
  ]
}
```

**Example** (`default-color is not string`)

```json
{
  "errors": [
    {
      "code": 25002043,
      "message": "The 'default-color' attribute must be a string."
    }
  ]
}
```

**Example** (`fields.date is not an array`)

```json
{
  "errors": [
    {
      "code": 25002300,
      "message": "The `fields.date` must be an array."
    }
  ]
}
```

**Example** (`fields.text is not an array`)

```json
{
  "errors": [
    {
      "code": 25002298,
      "message": "The `fields.text` must be an array."
    }
  ]
}
```

**Example** (`hover-background not string`)

```json
{
  "errors": [
    {
      "code": 25002010,
      "message": "The 'hover-background' attribute must be a string"
    }
  ]
}
```

**Example** (`active-background not string`)

```json
{
  "errors": [
    {
      "code": 25002037,
      "message": "The 'active-background' attribute must be a string"
    }
  ]
}
```

**Example** (`close-button.title not array`)

```json
{
  "errors": [
    {
      "code": 25002355,
      "message": "The `close-button.title` must be an array."
    }
  ]
}
```

**Example** (`completed-color in ot string`)

```json
{
  "errors": [
    {
      "code": 25002045,
      "message": "The 'completed-color' attribute must be a string."
    }
  ]
}
```

**Example** (`custom-text value not string`)

```json
{
  "errors": [
    {
      "code": 25002152,
      "message": "The 'complete-footer.custom-text.en' must be a string."
    }
  ]
}
```

**Example** (`fields.email is not an array`)

```json
{
  "errors": [
    {
      "code": 25002306,
      "message": "The `fields.email` must be an array."
    }
  ]
}
```

**Example** (`fields.stamp is not an array`)

```json
{
  "errors": [
    {
      "code": 25002316,
      "message": "The `fields.stamp` must be an array."
    }
  ]
}
```

**Example** (`background not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002005,
      "message": "The 'background' attribute format is invalid"
    }
  ]
}
```

**Example** (`document-name is not an array`)

```json
{
  "errors": [
    {
      "code": 25002274,
      "message": "The `document-name` field must be an array."
    }
  ]
}
```

**Example** (`editing-tools is not an array`)

```json
{
  "errors": [
    {
      "code": 25002280,
      "message": "The `editing-tools` field must be an array."
    }
  ]
}
```

**Example** (`sidebar.background not string`)

```json
{
  "errors": [
    {
      "code": 25002146,
      "message": "The 'sidebar.background' must be a string."
    }
  ]
}
```

**Example** (`toolbar.background not string`)

```json
{
  "errors": [
    {
      "code": 25002278,
      "message": "The `toolbar.background` must be a string."
    }
  ]
}
```

**Example** (`fields.formula is not an array`)

```json
{
  "errors": [
    {
      "code": 25002318,
      "message": "The `fields.formula` must be an array."
    }
  ]
}
```

**Example** (`hover-color not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002013,
      "message": "The 'hover-color' attribute format is invalid"
    }
  ]
}
```

**Example** (`preview-button is not an array`)

```json
{
  "errors": [
    {
      "code": 25002285,
      "message": "The `preview-button` field must be an array."
    }
  ]
}
```

**Example** (`toolbar.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002277,
      "message": "The `toolbar.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`active-color not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002040,
      "message": "The 'active-color' attribute format is invalid"
    }
  ]
}
```

**Example** (`complete-page.decline not array`)

```json
{
  "errors": [
    {
      "code": 25002173,
      "message": "The 'complete-page.decline' attribute must be an array."
    }
  ]
}
```

**Example** (`continue-button is not an array`)

```json
{
  "errors": [
    {
      "code": 25002291,
      "message": "The `continue-button` field must be an array."
    }
  ]
}
```

**Example** (`decline.body-text.en not string`)

```json
{
  "errors": [
    {
      "code": 25002180,
      "message": "The 'complete-page.decline.body-text.en' must be a string."
    }
  ]
}
```

**Example** (`fields.checkbox is not an array`)

```json
{
  "errors": [
    {
      "code": 25002308,
      "message": "The `fields.checkbox` must be an array."
    }
  ]
}
```

**Example** (`fields.dropdown is not an array`)

```json
{
  "errors": [
    {
      "code": 25002314,
      "message": "The `fields.dropdown` must be an array."
    }
  ]
}
```

**Example** (`fields.fullname is not an array`)

```json
{
  "errors": [
    {
      "code": 25002304,
      "message": "The `fields.fullname` must be an array."
    }
  ]
}
```

**Example** (`fields.initials is not an array`)

```json
{
  "errors": [
    {
      "code": 25002302,
      "message": "The `fields.initials` must be an array."
    }
  ]
}
```

**Example** (`hover-border not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002015,
      "message": "The 'hover-border' attribute format is invalid"
    }
  ]
}
```

**Example** (`request-payment is not an array`)

```json
{
  "errors": [
    {
      "code": 25002289,
      "message": "The `request-payment` field must be an array."
    }
  ]
}
```

**Example** (`signing-settings type incorrect`)

```json
{
  "errors": [
    {
      "code": 25002376,
      "message": "The 'signing-settings' field must be an array."
    }
  ]
}
```

**Example** (`success.body-text.en not string`)

```json
{
  "errors": [
    {
      "code": 25002167,
      "message": "The 'complete-page.success.body-text.en' must be a string."
    }
  ]
}
```

**Example** (`active-border not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002042,
      "message": "The 'active-border' attribute format is invalid"
    }
  ]
}
```

**Example** (`complete-page.success not array `)

```json
{
  "errors": [
    {
      "code": 25002160,
      "message": "The 'complete-page.success' attribute must be an array."
    }
  ]
}
```

**Example** (`default-color not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002044,
      "message": "The 'default-color' attribute format is invalid."
    }
  ]
}
```

**Example** (`fields.hyperlink is not an array`)

```json
{
  "errors": [
    {
      "code": 25002320,
      "message": "The `fields.hyperlink` must be an array."
    }
  ]
}
```

**Example** (`fields.signature is not an array`)

```json
{
  "errors": [
    {
      "code": 25002296,
      "message": "The `fields.signature` must be an array."
    }
  ]
}
```

**Example** (`decline.header-text.en not string`)

```json
{
  "errors": [
    {
      "code": 25002174,
      "message": "The 'complete-page.decline.header-text.en' must be a string."
    }
  ]
}
```

**Example** (`fields.attachment is not an array`)

```json
{
  "errors": [
    {
      "code": 25002312,
      "message": "The `fields.attachment` must be an array."
    }
  ]
}
```

**Example** (`manage-recipients is not an array`)

```json
{
  "errors": [
    {
      "code": 25002283,
      "message": "The `manage-recipients` field must be an array."
    }
  ]
}
```

**Example** (`step-progress-bar is not an array`)

```json
{
  "errors": [
    {
      "code": 25002293,
      "message": "The `step-progress-bar` field must be an array."
    }
  ]
}
```

**Example** (`success.header-text.en not string`)

```json
{
  "errors": [
    {
      "code": 25002161,
      "message": "The 'complete-page.success.header-text.en' must be a string."
    }
  ]
}
```

**Example** (`thumbnails-button is not an array`)

```json
{
  "errors": [
    {
      "code": 25002287,
      "message": "The `thumbnails-button` field must be an array."
    }
  ]
}
```

**Example** (`toolbar.background invalid format`)

```json
{
  "errors": [
    {
      "code": 25002279,
      "message": "The `toolbar.background` must contain a valid HTML color format."
    }
  ]
}
```

**Example** (`completed-color not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002046,
      "message": "The 'completed-color' attribute format is invalid."
    }
  ]
}
```

**Example** (`fields.date.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002301,
      "message": "The `fields.date.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`fields.radiobutton is not an array`)

```json
{
  "errors": [
    {
      "code": 25002310,
      "message": "The `fields.radiobutton` must be an array."
    }
  ]
}
```

**Example** (`fields.text.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002299,
      "message": "The `fields.text.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`sender-info.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002208,
      "message": "The `sender-info.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`close-button.title.editor not array`)

```json
{
  "errors": [
    {
      "code": 25002357,
      "message": "The `close-button.title.editor` must be an array."
    }
  ]
}
```

**Example** (`close-button.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002219,
      "message": "The `close-button.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`editing-tools.background not string`)

```json
{
  "errors": [
    {
      "code": 25002281,
      "message": "The `editing-tools.background` must be a string."
    }
  ]
}
```

**Example** (`fields.email.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002307,
      "message": "The `fields.email.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`fields.stamp.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002317,
      "message": "The `fields.stamp.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`hover-background not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002011,
      "message": "The 'hover-background' attribute format is invalid"
    }
  ]
}
```

**Example** (`registration.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002186,
      "message": "The 'complete-page.registration.visibility' must be boolean."
    }
  ]
}
```

**Example** (`support-chat.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002159,
      "message": "The 'support-chat.visibility' must be a boolean."
    }
  ]
}
```

**Example** (`active-background not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002038,
      "message": "The 'active-background' attribute format is invalid"
    }
  ]
}
```

**Example** (`close-button.title.signing not array`)

```json
{
  "errors": [
    {
      "code": 25002356,
      "message": "The `close-button.title.signing` must be an array."
    }
  ]
}
```

**Example** (`default-fields field is not an array`)

```json
{
  "errors": [
    {
      "code": 25002381,
      "message": "The `default-fields` field must be an array."
    }
  ]
}
```

**Example** (`document-name.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002275,
      "message": "The `document-name.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`field-settings field is not an array`)

```json
{
  "errors": [
    {
      "code": 25002379,
      "message": "The `field-settings` field must be an array."
    }
  ]
}
```

**Example** (`close-button.title.editor.en too long`)

```json
{
  "errors": [
    {
      "code": 25002367,
      "message": "The `close-button.title.editor.en` must contain no more than 50 characters."
    }
  ]
}
```

**Example** (`close-button.title.editor.es too long`)

```json
{
  "errors": [
    {
      "code": 25002369,
      "message": "The `close-button.title.editor.es` must contain no more than 50 characters."
    }
  ]
}
```

**Example** (`close-button.title.editor.fr too long`)

```json
{
  "errors": [
    {
      "code": 25002368,
      "message": "The `close-button.title.editor.fr` must contain no more than 50 characters."
    }
  ]
}
```

**Example** (`decline-button.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002221,
      "message": "The `decline-button.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`fields.formula.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002319,
      "message": "The `fields.formula.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`preview-button.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002286,
      "message": "The `preview-button.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`button_download.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002188,
      "message": "The 'complete-page.button_download.visibility' must be boolean."
    }
  ]
}
```

**Example** (`close-button.title.signing.en too long`)

```json
{
  "errors": [
    {
      "code": 25002364,
      "message": "The `close-button.title.signing.en` must contain no more than 50 characters."
    }
  ]
}
```

**Example** (`close-button.title.signing.es too long`)

```json
{
  "errors": [
    {
      "code": 25002366,
      "message": "The `close-button.title.signing.es` must contain no more than 50 characters."
    }
  ]
}
```

**Example** (`close-button.title.signing.fr too long`)

```json
{
  "errors": [
    {
      "code": 25002365,
      "message": "The `close-button.title.signing.fr` must contain no more than 50 characters."
    }
  ]
}
```

**Example** (`complete-footer.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002150,
      "message": "The 'complete-footer.visibility' must be a boolean."
    }
  ]
}
```

**Example** (`continue-button.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002292,
      "message": "The `continue-button.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`fields.checkbox.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002309,
      "message": "The `fields.checkbox.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`fields.dropdown.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002315,
      "message": "The `fields.dropdown.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`fields.fullname.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002305,
      "message": "The `fields.fullname.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`fields.initials.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002303,
      "message": "The `fields.initials.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`request-payment.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002290,
      "message": "The `request-payment.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`close-button.title.editor.en not string`)

```json
{
  "errors": [
    {
      "code": 25002361,
      "message": "The `close-button.title.editor.en` must be a string."
    }
  ]
}
```

**Example** (`close-button.title.editor.es not string`)

```json
{
  "errors": [
    {
      "code": 25002363,
      "message": "The `close-button.title.editor.es` must be a string."
    }
  ]
}
```

**Example** (`close-button.title.editor.fr not string`)

```json
{
  "errors": [
    {
      "code": 25002362,
      "message": "The `close-button.title.editor.fr` must be a string."
    }
  ]
}
```

**Example** (`fields.hyperlink.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002321,
      "message": "The `fields.hyperlink.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`fields.signature.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002297,
      "message": "The `fields.signature.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`button_to_signnow.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002187,
      "message": "The 'complete-page.button_to_signnow.visibility' must be boolean."
    }
  ]
}
```

**Example** (`close-button.title.signing.en not string`)

```json
{
  "errors": [
    {
      "code": 25002358,
      "message": "The `close-button.title.signing.en` must be a string."
    }
  ]
}
```

**Example** (`close-button.title.signing.es not string`)

```json
{
  "errors": [
    {
      "code": 25002360,
      "message": "The `close-button.title.signing.es` must be a string."
    }
  ]
}
```

**Example** (`close-button.title.signing.fr not string`)

```json
{
  "errors": [
    {
      "code": 25002359,
      "message": "The `close-button.title.signing.fr` must be a string."
    }
  ]
}
```

**Example** (`default-fields.visibility is not boolean`)

```json
{
  "errors": [
    {
      "code": 25002382,
      "message": "The `default-fields.visibility` field must be a boolean."
    }
  ]
}
```

**Example** (`field-settings.visibility is not boolean`)

```json
{
  "errors": [
    {
      "code": 25002380,
      "message": "The `field-settings.visibility` field must be a boolean."
    }
  ]
}
```

**Example** (`fields.attachment.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002313,
      "message": "The `fields.attachment.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`manage-recipients.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002284,
      "message": "The `manage-recipients.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`step-progress-bar.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002294,
      "message": "The `step-progress-bar.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`thumbnails-button.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002288,
      "message": "The `thumbnails-button.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`editing-tools.background incorrect format`)

```json
{
  "errors": [
    {
      "code": 25002282,
      "message": "The `editing-tools.background` must contain a valid HTML color format."
    }
  ]
}
```

**Example** (`fields.radiobutton.visibility not boolean`)

```json
{
  "errors": [
    {
      "code": 25002311,
      "message": "The `fields.radiobutton.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`close-button.title.signing.fr utf4byte not supported`)

```json
{
  "errors": [
    {
      "code": 25002371,
      "message": "UTF 4-byte characters in `close-button.title.signing.fr` are not supported."
    }
  ]
}
```

**Example** (`close-button.title.editor.en utf 4-byte not supported`)

```json
{
  "errors": [
    {
      "code": 25002373,
      "message": "UTF 4-byte characters in `close-button.title.editor.en` are not supported."
    }
  ]
}
```

**Example** (`close-button.title.editor.es utf 4-byte not supported`)

```json
{
  "errors": [
    {
      "code": 25002375,
      "message": "UTF 4-byte characters in `close-button.title.editor.es` are not supported."
    }
  ]
}
```

**Example** (`close-button.title.editor.fr utf 4-byte not supported`)

```json
{
  "errors": [
    {
      "code": 25002374,
      "message": "UTF 4-byte characters in `close-button.title.editor.fr` are not supported."
    }
  ]
}
```

**Example** (`close-button.title.signing.en utf 4-byte not supported`)

```json
{
  "errors": [
    {
      "code": 25002370,
      "message": "UTF 4-byte characters in `close-button.title.signing.en` are not supported."
    }
  ]
}
```

**Example** (`close-button.title.signing.es utf 4-byte not supported`)

```json
{
  "errors": [
    {
      "code": 25002372,
      "message": "UTF 4-byte characters in `close-button.title.signing.es` are not supported."
    }
  ]
}
```

**Example** (`guide-signers-only-through-required-fields type incorrect`)

```json
{
  "errors": [
    {
      "code": 25002377,
      "message": "The 'signing-settings.guide-signers-only-through-required-fields' attribute must be a boolean."
    }
  ]
}
```

**Example** (`auto-apply-signatures-and-initials-to-document-fields type incorrect`)

```json
{
  "errors": [
    {
      "code": 25002378,
      "message": "The 'signing-settings.auto-apply-signatures-and-initials-to-document-fields' attribute must be a boolean."
    }
  ]
}
```

### 403

* Request with a valid bearer token from another user logged in.
* The user is authorized with a token from an app they don’t own.
* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.

**Example** (`Another user's token`)

```json
{
  "code": 25002002,
  "message": "No access to the brand"
}
```

**Example** (`Non-organization brand`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

**Example** (`User not admin or moderator`)

```json
{
  "code": 25006002,
  "message": "Insufficient organization rights."
}
```

### 404

* The organization is not found.
* The brand is not found.
* `brand_id` cannot be null.
* Editor resource for this `brand_id` doesn't exist.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`brand_id is null`)

```json
{
  "404": "Unable to find a route to match the URI: /v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/general"
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

**Example** (`Editor resource not found`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: editor."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/editor" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"fields": {"date": {"visibility": true}, "text": {"visibility": true}, "email": {"visibility": true}, "stamp": {"visibility": true}, "formula": {"visibility": true}, "checkbox": {"visibility": true}, "dropdown": {"visibility": true}, "fullname": {"visibility": true}, "initials": {"visibility": true}, "hyperlink": {"visibility": true}, "signature": {"visibility": true}, "attachment": {"visibility": true}, "radiobutton": {"visibility": true}}, "sidebar": {"background": "#ffffff", "visibility": true}, "toolbar": {"background": "#ffffff", "visibility": true}, "settings": {"visibility": true}, "auth-page": {"check-pin": {"phone": {"body-text": {"en": "Enter the document password sent you by voice call or sms.", "es": "Introduce la contrase\u00f1a del documento que te ha enviado por llamada de voz o sms.", "fr": "Entrez le mot de passe du document que vous avez re\u00e7u par appel vocal ou sms."}}, "password": {"body-text": {"en": "Enter the document password below to unlock the document.", "es": "Introduce la contrase\u00f1a del documento a continuaci\u00f3n para desbloquear el documento.", "fr": "Entrez le mot de passe du document ci-dessous pour d\u00e9verrouiller le document."}}}, "header-text": {"en": "{sender_email} invited you to sign {document_name}", "es": "{sender_email} te ha invitado a firmar {document_name}", "fr": "{sender_email} vous a invit\u00e9 \u00e0 signer {document_name}"}, "request-pin": {"body-text": {"en": "Press the button bellow to have the password sent to you by voice call or sms message.", "es": "Pulsa el bot\u00f3n de abajo para que te env\u00eden la contrase\u00f1a por llamada de voz o mensaje sms.", "fr": "Appuyez sur le bouton ci-dessous pour que le mot de passe vous soit envoy\u00e9 par appel vocal ou sms."}}}, "navigation": {"visibility": true}, "sender-info": {"visibility": true, "contact-name": "Contact Name", "contact-email": "contact@email.com"}, "close-button": {"title": {"editor": {"en": "Save and Close", "es": "Guardar y cerrar", "fr": "Enregistrer et fermer"}, "signing": {"en": "Save Progress and Finish Later", "es": "Guardar progresos y terminar m\u00e1s tarde", "fr": "Enregistrer la progression et terminer plus tard"}}, "visibility": true}, "progress-bar": {"default-color": "#e3e6e9", "completed-color": "#0777cf"}, "support-chat": {"visibility": true}, "accessibility": {"color": "#546470", "border": "#ffffff", "enabled": false, "background": "#ffffff", "visibility": true, "hover-color": "#546470", "active-color": "#546470", "hover-border": "#f1f2f4", "active-border": "#dadee2", "hover-background": "#f1f2f4", "active-background": "#dadee2"}, "complete-page": {"decline": {"body-text": {"en": "You did not consent to do business electronically with the sender. The Electronic Signature Disclosure can still be accepted before the sender cancels the invite. The invite can be found in your inbox and signNow account. You can still download the document if you\u2019d like to. Contact the sender to find out what to do next.", "es": "No has dado tu consentimiento para hacer negocios electr\u00f3nicamente con el remitente. La Divulgaci\u00f3n de Firma Electr\u00f3nica a\u00fan se puede aceptar antes de que el remitente cancele la invitaci\u00f3n. Puedes encontrar la invitaci\u00f3n en tu bandeja de entrada y en la cuenta de signNow. A\u00fan puedes descargar el documento si lo deseas. Ponte en contacto con el remitente para saber qu\u00e9 hacer a continuaci\u00f3n.", "fr": "Vous n\u2019avez pas consenti \u00e0 traiter par voie \u00e9lectronique avec l\u2019exp\u00e9diteur. La Divulgation par signature \u00e9lectronique peut toujours \u00eatre accept\u00e9e avant que l\u2019exp\u00e9diteur n\u2019annule l\u2019invitation. L\u2019invitation se trouve dans votre bo\u00eete de r\u00e9ception et dans votre compte signNow. Vous pouvez n\u00e9anmoins t\u00e9l\u00e9charger le document si vous le souhaitez. Contactez l\u2019exp\u00e9diteur pour conna\u00eetre les prochaines \u00e9tapes."}, "header-text": {"en": "You'\''ve declined the Electronic Signature Disclosure agreement", "es": "Has rechazado el acuerdo de Divulgaci\u00f3n de firmas electr\u00f3nicas", "fr": "Vous avez refus\u00e9 l\u2019accord de Divulgation par signature \u00e9lectronique"}}, "success": {"body-text": {"en": "The sender will be notified and receive the signed document.", "es": "El remitente recibir\u00e1 una notificaci\u00f3n y el documento firmado. Tambi\u00e9n se ha enviado una copia a tu bandeja de entrada y se ha guardado en tu cuenta de signNow.", "fr": "L'\''exp\u00e9diteur sera inform\u00e9 et recevra le document sign\u00e9. Une copie a \u00e9galement \u00e9t\u00e9 envoy\u00e9e dans votre bo\u00eete de r\u00e9ception et enregistr\u00e9e dans votre compte signNow."}, "header-text": {"en": "You'\''ve filled out and signed the document", "es": "Has completado y firmado el documento", "fr": "Vous avez rempli et sign\u00e9 le document"}}, "registration": {"visibility": true}, "button-download": {"visibility": true}, "button-to-signnow": {"visibility": false}}, "document-name": {"visibility": true}, "editing-tools": {"background": "#ffffff"}, "decline-button": {"visibility": true}, "default-fields": {"visibility": true}, "field-settings": {"visibility": true}, "page-dimension": {"percent": 150}, "preview-button": {"visibility": true}, "complete-footer": {"visibility": true, "custom-text": {"en": "You'\''ve completed all required fields. Review your document and click Finish.", "es": "Has completado todos los campos obligatorios. Revisa tu documento y haz clic en Finalizar.", "fr": "Vous avez rempli tous les champs obligatoires. Relisez votre document et cliquez sur Terminer."}}, "continue-button": {"visibility": true}, "download-button": {"visibility": true}, "request-payment": {"visibility": true}, "signing-settings": {"guide-signers-only-through-required-fields": true, "auto-apply-signatures-and-initials-to-document-fields": true}, "manage-recipients": {"visibility": true}, "step-progress-bar": {"visibility": true}, "thumbnails-button": {"visibility": true}, "decline-invite-text": {"en": "You'\''re about to decline to sign {document_name} from {invite_owner_email}. Note that all the changes you'\''ve made to this document will be lost.", "es": "Est\u00e1s a punto de rechazar para firmar {document_name} de {invite_owner_email}. Ten en cuenta en cuenta que todos los cambios que hayas realizado en este documento se perder\u00e1n.", "fr": "Vous \u00eates sur le point de refuser de signer {document_name} de {invite_owner_email}. Notez que toutes les modifications que vous avez apport\u00e9es \u00e0 ce document seront perdues."}}'
```

---

## GET /v2/organizations/{organization_id}/brands/{brand_id}/resources/editor — Get org editor brand resource

This endpoint allows API users to retrieve the editor resource of an organization brand.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "data": {
    "fields": {
      "date": {
        "visibility": true
      },
      "text": {
        "visibility": true
      },
      "email": {
        "visibility": true
      },
      "stamp": {
        "visibility": true
      },
      "formula": {
        "visibility": true
      },
      "checkbox": {
        "visibility": true
      },
      "dropdown": {
        "visibility": true
      },
      "fullname": {
        "visibility": true
      },
      "initials": {
        "visibility": true
      },
      "hyperlink": {
        "visibility": true
      },
      "signature": {
        "visibility": true
      },
      "attachment": {
        "visibility": true
      },
      "radiobutton": {
        "visibility": true
      }
    },
    "sidebar": {
      "background": "#ffffff",
      "visibility": true
    },
    "toolbar": {
      "background": "#ffffff",
      "visibility": true
    },
    "settings": {
      "visibility": true
    },
    "auth-page": {
      "check-pin": {
        "phone": {
          "body-text": {
            "en": "Enter the document password sent you by voice call or sms.",
            "es": "Introduce la contrase\u00f1a del documento que te ha enviado por llamada de voz o sms.",
            "fr": "Entrez le mot de passe du document que vous avez re\u00e7u par appel vocal ou sms."
          }
        },
        "password": {
          "body-text": {
            "en": "Enter the document password below to unlock the document.",
            "es": "Introduce la contrase\u00f1a del documento a continuaci\u00f3n para desbloquear el documento.",
            "fr": "Entrez le mot de passe du document ci-dessous pour d\u00e9verrouiller le document."
          }
        }
      },
      "header-text": {
        "en": "{sender_email} invited you to sign {document_name}",
        "es": "{sender_email} te ha invitado a firmar {document_name}",
        "fr": "{sender_email} vous a invit\u00e9 \u00e0 signer {document_name}"
      },
      "request-pin": {
        "body-text": {
          "en": "Press the button bellow to have the password sent to you by voice call or sms message.",
          "es": "Pulsa el bot\u00f3n de abajo para que te env\u00eden la contrase\u00f1a por llamada de voz o mensaje sms.",
          "fr": "Appuyez sur le bouton ci-dessous pour que le mot de passe vous soit envoy\u00e9 par appel vocal ou sms."
        }
      }
    },
    "navigation": {
      "visibility": true
    },
    "sender-info": {
      "visibility": true,
      "contact-name": "Contact Name",
      "contact-email": "contact@email.com"
    },
    "close-button": {
      "visibility": false
    },
    "progress-bar": {
      "default-color": "#e3e6e9",
      "completed-color": "#0777cf"
    },
    "support-chat": {
      "visibility": true
    },
    "accessibility": {
      "color": "#546470",
      "border": "#ffffff",
      "enabled": false,
      "background": "#ffffff",
      "visibility": true,
      "hover-color": "#546470",
      "active-color": "#546470",
      "hover-border": "#f1f2f4",
      "active-border": "#dadee2",
      "hover-background": "#f1f2f4",
      "active-background": "#dadee2"
    },
    "complete-page": {
      "decline": {
        "body-text": {
          "en": "You did not consent to do business electronically with the sender. The Electronic Signature Disclosure can still be accepted before the sender cancels the invite. The invite can be found in your inbox and signNow account. You can still download the document if you\u2019d like to. Contact the sender to find out what to do next.",
          "es": "No has dado tu consentimiento para hacer negocios electr\u00f3nicamente con el remitente. La Divulgaci\u00f3n de Firma Electr\u00f3nica a\u00fan se puede aceptar antes de que el remitente cancele la invitaci\u00f3n. Puedes encontrar la invitaci\u00f3n en tu bandeja de entrada y en la cuenta de signNow. A\u00fan puedes descargar el documento si lo deseas. Ponte en contacto con el remitente para saber qu\u00e9 hacer a continuaci\u00f3n.",
          "fr": "Vous n\u2019avez pas consenti \u00e0 traiter par voie \u00e9lectronique avec l\u2019exp\u00e9diteur. La Divulgation par signature \u00e9lectronique peut toujours \u00eatre accept\u00e9e avant que l\u2019exp\u00e9diteur n\u2019annule l\u2019invitation. L\u2019invitation se trouve dans votre bo\u00eete de r\u00e9ception et dans votre compte signNow. Vous pouvez n\u00e9anmoins t\u00e9l\u00e9charger le document si vous le souhaitez. Contactez l\u2019exp\u00e9diteur pour conna\u00eetre les prochaines \u00e9tapes."
        },
        "header-text": {
          "en": "You've declined the Electronic Signature Disclosure agreement",
          "es": "Has rechazado el acuerdo de Divulgaci\u00f3n de firmas electr\u00f3nicas",
          "fr": "Vous avez refus\u00e9 l\u2019accord de Divulgation par signature \u00e9lectronique"
        }
      },
      "success": {
        "body-text": {
          "en": "The sender will be notified and receive the signed document.",
          "es": "El remitente recibir\u00e1 una notificaci\u00f3n y el documento firmado. Tambi\u00e9n se ha enviado una copia a tu bandeja de entrada y se ha guardado en tu cuenta de signNow.",
          "fr": "L'exp\u00e9diteur sera inform\u00e9 et recevra le document sign\u00e9. Une copie a \u00e9galement \u00e9t\u00e9 envoy\u00e9e dans votre bo\u00eete de r\u00e9ception et enregistr\u00e9e dans votre compte signNow."
        },
        "header-text": {
          "en": "You've filled out and signed the document",
          "es": "Has completado y firmado el documento",
          "fr": "Vous avez rempli et sign\u00e9 le document"
        }
      },
      "registration": {
        "visibility": true
      },
      "button-download": {
        "visibility": true
      },
      "button-to-signnow": {
        "visibility": false
      }
    },
    "document-name": {
      "visibility": true
    },
    "editing-tools": {
      "background": "#ffffff"
    },
    "decline-button": {
      "visibility": true
    },
    "default-fields": {
      "visibility": true
    },
    "field-settings": {
      "visibility": true
    },
    "page-dimension": {
      "percent": 150
    },
    "preview-button": {
      "visibility": true
    },
    "complete-footer": {
      "visibility": true,
      "custom-text": {
        "en": "You've completed all required fields. Review your document and click Finish.",
        "es": "Has completado todos los campos obligatorios. Revisa tu documento y haz clic en Finalizar.",
        "fr": "Vous avez rempli tous les champs obligatoires. Relisez votre document et cliquez sur Terminer."
      }
    },
    "continue-button": {
      "visibility": true
    },
    "download-button": {
      "visibility": true
    },
    "request-payment": {
      "visibility": true
    },
    "signing-settings": {
      "guide-signers-only-through-required-fields": true,
      "auto-apply-signatures-and-initials-to-document-fields": true
    },
    "manage-recipients": {
      "visibility": true
    },
    "step-progress-bar": {
      "visibility": true
    },
    "thumbnails-button": {
      "visibility": true
    },
    "decline-invite-text": {
      "en": "You're about to decline to sign {document_name} from {invite_owner_email}. Note that all the changes you've made to this document will be lost.",
      "es": "Est\u00e1s a punto de rechazar para firmar {document_name} de {invite_owner_email}. Ten en cuenta en cuenta que todos los cambios que hayas realizado en este documento se perder\u00e1n.",
      "fr": "Vous \u00eates sur le point de refuser de signer {document_name} de {invite_owner_email}. Notez que toutes les modifications que vous avez apport\u00e9es \u00e0 ce document seront perdues."
    }
  }
}
```

### 400

* Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is authorized with a token from an app they don’t own.
* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

**Example** (`User not admin or moderator`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

### 404

* The organization doesn't exist.
* The brand doesn't exist.
* The brand has no editor resource.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

**Example** (`Editor resource not found`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: editor."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/editor" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/organizations/{organization_id}/brands/{brand_id}/resources/editor — Delete org editor brand resource

This endpoint allows users to delete an editor brand resource for an organization. Only an admin or moderator of the organization can perform this action.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is authorized with a token from an app they don’t own.
* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.


**Example** (`Non-organization brand`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

**Example** (`User not admin or moderator`)

```json
{
  "code": 25006002,
  "message": "Insufficient organization rights."
}
```

### 404

* The organization is not found.
* The brand is not found.
* `brand_id` cannot be null.
* Editor resource for this `brand_id` doesn't exist.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`brand_id is null`)

```json
{
  "404": "Unable to find a route to match the URI: /v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/general"
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

**Example** (`Editor resource not found`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: editor."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/editor" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-canceled — Create org email canceled brand resource

This endpoint allows organization admins and moderators to set the texts of canceled invite emails for an organization brand.

**Notes**

* Only an admin or moderator of the organization can perform this action.
* Set texts per language: use `en`, `es`, and `fr` as top-level keys. Other top-level keys are ignored.
* The request replaces the whole resource. Include every language you want to keep.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "en": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom text indicating sender."
        },
        "subject": {
          "type": "string",
          "description": "Email subject text. Placeholder `{document_name}` is available."
        },
        "body_header": {
          "type": "string",
          "maxLength": 300,
          "description": "Email header text."
        },
        "body_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Email body text. Placeholder `{document_name}` is available. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `300` characters, including tags."
        },
        "footer_message": {
          "type": "string",
          "maxLength": 4096,
          "description": "Email footer text. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `4096` characters, including tags."
        }
      },
      "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/branding-email-resources#language-branding)."
    }
  },
  "x-examples": {
    "Example 1": {
      "en": {
        "from": "from_email@email.com",
        "subject": "My custom subject {document_name}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      },
      "es": {
        "from": "from_email@email.com",
        "subject": "My custom subject {document_name}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      },
      "fr": {
        "from": "from_email@email.com",
        "subject": "My custom subject {document_name}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "en": {
    "from": "Sender Name",
    "subject": "Has canceled the document invite",
    "body_header": "Document Invite Canceled",
    "body_message": "<p>The invitation for <b>{document_name}</b> document was canceled</p>",
    "footer_message": "<p><b>Unique Solutions Inc.</b></p>"
  },
  "es": {
    "from": "Nombre del remitente",
    "subject": "Cancel\u00f3 la invitaci\u00f3n al documento",
    "body_header": "Invitaci\u00f3n a documento cancelada",
    "body_message": "La invitaci\u00f3n al documento {document_name} fue cancelada",
    "footer_message": "Unique Solutions Inc."
  },
  "fr": {
    "from": "Nom de l'exp\u00e9diteur",
    "subject": "A annul\u00e9 l'invitation au document",
    "body_header": "Invitation de document annul\u00e9e",
    "body_message": "L\u2019invitation pour le document {document_name} a \u00e9t\u00e9 annul\u00e9e",
    "footer_message": "Unique Solutions Inc."
  }
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* `subject` is not a string.
* `subject` is longer than 300 characters.
* `body_header` is not a string.
* `body_header` is longer than 300 characters.
* `body_message` is not a string.
* `body_message` is longer than 300 characters.
* `body_message` contains HTML that is not allowed: a tag outside the allowed list, a tag with an attribute, an unclosed or misnested tag, or an HTML comment.
* `footer_message` is not a string.
* `footer_message` is longer than 4096 characters.
* `footer_message` contains HTML that is not allowed.
* `from` is not a string.
* `from` is longer than 300 characters.
* Incorrect placeholder found.

**Example** (`from too long`)

```json
{
  "errors": [
    {
      "code": 25002072,
      "message": "The 'from' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`from not string`)

```json
{
  "errors": [
    {
      "code": 25002050,
      "message": "The 'from' attribute must be a string."
    }
  ]
}
```

**Example** (`subject too long`)

```json
{
  "errors": [
    {
      "code": 25002058,
      "message": "The 'subject' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`subject not string`)

```json
{
  "errors": [
    {
      "code": 25002049,
      "message": "The 'subject' attribute must be a string."
    }
  ]
}
```

**Example** (`body_header too long`)

```json
{
  "errors": [
    {
      "code": 25002059,
      "message": "The 'body_header' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`Incorrect placeholder`)

```json
{
  "errors": [
    {
      "code": 25002081,
      "message": "Invalid placeholder found, expected {document_name}, {invite_email}."
    }
  ]
}
```

**Example** (`body_message too long`)

```json
{
  "errors": [
    {
      "code": 25002060,
      "message": "The 'body_message' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`body_header not string`)

```json
{
  "errors": [
    {
      "code": 25002052,
      "message": "The 'body_header' attribute must be a string."
    }
  ]
}
```

**Example** (`body_message not string`)

```json
{
  "errors": [
    {
      "code": 25002053,
      "message": "The 'body_message' attribute must be a string."
    }
  ]
}
```

**Example** (`footer_message too long`)

```json
{
  "errors": [
    {
      "code": 25002061,
      "message": "The 'footer_message' attribute must not exceed 4096 characters."
    }
  ]
}
```

**Example** (`footer_message not string`)

```json
{
  "errors": [
    {
      "code": 25002054,
      "message": "The 'footer_message' attribute must be a string."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`body_message has unclosed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: unclosed <b>."
    }
  ]
}
```

**Example** (`body_message has tag attribute`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <p style>."
    }
  ]
}
```

**Example** (`body_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

**Example** (`footer_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002383,
      "message": "The 'footer_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

### 403

* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

**Example** (`User not admin or moderator`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

### 422

Language is not an array.

**Example** (`Missing language settings`)

```json
{
  "errors": [
    {
      "code": 25002093,
      "message": "Invalid payload. Expected pair of languages with their settings."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-canceled" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"en": {"from": "Sender Name", "subject": "Has canceled the document invite", "body_header": "Document Invite Canceled", "body_message": "<p>The invitation for <b>{document_name}</b> document was canceled</p>", "footer_message": "<p><b>Unique Solutions Inc.</b></p>"}, "es": {"from": "Nombre del remitente", "subject": "Cancel\u00f3 la invitaci\u00f3n al documento", "body_header": "Invitaci\u00f3n a documento cancelada", "body_message": "La invitaci\u00f3n al documento {document_name} fue cancelada", "footer_message": "Unique Solutions Inc."}, "fr": {"from": "Nom de l'\''exp\u00e9diteur", "subject": "A annul\u00e9 l'\''invitation au document", "body_header": "Invitation de document annul\u00e9e", "body_message": "L\u2019invitation pour le document {document_name} a \u00e9t\u00e9 annul\u00e9e", "footer_message": "Unique Solutions Inc."}}'
```

---

## GET /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-canceled — Get org email canceled brand resource

This endpoint allows organization members to retrieve the `email-invite-canceled` resource of an organization brand.

**Notes**

* Any member of the organization can perform this action.
* If the brand has no email canceled resource, the request returns `404`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Email branding of the brand resource, grouped by language. Only the languages and fields saved for the brand are returned.

**Example** (`Successful response`)

```json
{
  "data": {
    "en": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    },
    "es": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    },
    "fr": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    }
  }
}
```

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is not a member of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`User not a member`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.
* The brand has no `email-invite-canceled` resource.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

**Example** (`Brand resource not found`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: email-invite-canceled."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-canceled" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-canceled — Delete org email canceled brand resource

This endpoint allows organization admins and moderators to delete the `email-invite-canceled` resource of an organization brand.

**Notes**

* Only an admin or moderator of the organization can perform this action.
* If the brand has no email canceled resource, the request returns `404`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

**Example** (`User not admin or moderator`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.
* The brand has no `email-invite-canceled` resource.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

**Example** (`Brand resource not found`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: email-invite-canceled."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-canceled" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-completed — Create org email completed brand resource

This endpoint allows organization admins and moderators to set the texts of completed invite emails for an organization brand.

**Notes**

* Only an admin or moderator of the organization can perform this action.
* Set texts per language: use `en`, `es`, and `fr` as top-level keys. Other top-level keys are ignored.
* The request replaces the whole resource. Include every language you want to keep.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "en": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom text indicating sender."
        },
        "subject": {
          "type": "string",
          "description": "Email subject text. Placeholder `{document_name}` is available."
        },
        "body_header": {
          "type": "string",
          "maxLength": 300,
          "description": "Email header text."
        },
        "body_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Email body text. Placeholder `{document_name}` is available. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `300` characters, including tags."
        },
        "footer_message": {
          "type": "string",
          "maxLength": 4096,
          "description": "Email footer text. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `4096` characters, including tags."
        }
      },
      "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/branding-email-resources#language-branding)."
    }
  },
  "x-examples": {
    "Example 1": {
      "en": {
        "from": "from_email@email.com",
        "subject": "My custom subject {document_name}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      },
      "es": {
        "from": "from_email@email.com",
        "subject": "My custom subject {document_name}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      },
      "fr": {
        "from": "from_email@email.com",
        "subject": "My custom subject {document_name}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "en": {
    "from": "Sender Name",
    "subject": "{document_name} Has Been Completed",
    "body_header": "You filled out and signed a document",
    "body_message": "<p>You\u2019ve filled out and signed the <b>{document_name}</b> document. Follow the link below to view and download the document.</p>",
    "footer_message": "<p><b>Unique Solutions Inc.</b></p>"
  },
  "es": {
    "from": "Nombre del remitente",
    "subject": "{document_name} Se ha completado",
    "body_header": "Has rellenado y firmado un documento",
    "body_message": "Has rellenado y firmado el documento {document_name}. Haz clic en el siguiente enlace para ver y descargar el documento.",
    "footer_message": "Unique Solutions Inc."
  },
  "fr": {
    "from": "Nom de l'exp\u00e9diteur",
    "subject": "{document_name} A \u00e9t\u00e9 finalis\u00e9",
    "body_header": "Vous avez rempli et sign\u00e9 un document",
    "body_message": "Vous avez rempli et sign\u00e9 le document {document_name}. Suivez le lien ci-dessous pour consulter et t\u00e9l\u00e9charger le document.",
    "footer_message": "Unique Solutions Inc."
  }
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* `subject` is not a string.
* `subject` is longer than 300 characters.
* `body_header` is not a string.
* `body_header` is longer than 300 characters.
* `body_message` is not a string.
* `body_message` is longer than 300 characters.
* `body_message` contains HTML that is not allowed: a tag outside the allowed list, a tag with an attribute, an unclosed or misnested tag, or an HTML comment.
* `footer_message` is not a string.
* `footer_message` is longer than 4096 characters.
* `footer_message` contains HTML that is not allowed.
* `from` is not a string.
* `from` is longer than 300 characters.
* Incorrect placeholder found.

**Example** (`from too long`)

```json
{
  "errors": [
    {
      "code": 25002072,
      "message": "The 'from' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`from not string`)

```json
{
  "errors": [
    {
      "code": 25002050,
      "message": "The 'from' attribute must be a string."
    }
  ]
}
```

**Example** (`subject too long`)

```json
{
  "errors": [
    {
      "code": 25002058,
      "message": "The 'subject' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`subject not string`)

```json
{
  "errors": [
    {
      "code": 25002049,
      "message": "The 'subject' attribute must be a string."
    }
  ]
}
```

**Example** (`body_header too long`)

```json
{
  "errors": [
    {
      "code": 25002059,
      "message": "The 'body_header' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`Incorrect placeholder`)

```json
{
  "errors": [
    {
      "code": 25002081,
      "message": "Invalid placeholder found, expected {document_name}, {invite_email}."
    }
  ]
}
```

**Example** (`body_message too long`)

```json
{
  "errors": [
    {
      "code": 25002060,
      "message": "The 'body_message' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`body_header not string`)

```json
{
  "errors": [
    {
      "code": 25002052,
      "message": "The 'body_header' attribute must be a string."
    }
  ]
}
```

**Example** (`body_message not string`)

```json
{
  "errors": [
    {
      "code": 25002053,
      "message": "The 'body_message' attribute must be a string."
    }
  ]
}
```

**Example** (`footer_message too long`)

```json
{
  "errors": [
    {
      "code": 25002061,
      "message": "The 'footer_message' attribute must not exceed 4096 characters."
    }
  ]
}
```

**Example** (`footer_message not string`)

```json
{
  "errors": [
    {
      "code": 25002054,
      "message": "The 'footer_message' attribute must be a string."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`body_message has unclosed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: unclosed <b>."
    }
  ]
}
```

**Example** (`body_message has tag attribute`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <p style>."
    }
  ]
}
```

**Example** (`body_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

**Example** (`footer_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002383,
      "message": "The 'footer_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

### 403

* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

**Example** (`User not admin or moderator`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

### 422

Language is not an array.

**Example** (`Missing language settings`)

```json
{
  "errors": [
    {
      "code": 25002093,
      "message": "Invalid payload. Expected pair of languages with their settings."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-completed" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"en": {"from": "Sender Name", "subject": "{document_name} Has Been Completed", "body_header": "You filled out and signed a document", "body_message": "<p>You\u2019ve filled out and signed the <b>{document_name}</b> document. Follow the link below to view and download the document.</p>", "footer_message": "<p><b>Unique Solutions Inc.</b></p>"}, "es": {"from": "Nombre del remitente", "subject": "{document_name} Se ha completado", "body_header": "Has rellenado y firmado un documento", "body_message": "Has rellenado y firmado el documento {document_name}. Haz clic en el siguiente enlace para ver y descargar el documento.", "footer_message": "Unique Solutions Inc."}, "fr": {"from": "Nom de l'\''exp\u00e9diteur", "subject": "{document_name} A \u00e9t\u00e9 finalis\u00e9", "body_header": "Vous avez rempli et sign\u00e9 un document", "body_message": "Vous avez rempli et sign\u00e9 le document {document_name}. Suivez le lien ci-dessous pour consulter et t\u00e9l\u00e9charger le document.", "footer_message": "Unique Solutions Inc."}}'
```

---

## GET /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-completed — Get org email completed brand resource

This endpoint allows organization members to retrieve the `email-invite-completed` resource of an organization brand.

**Notes**

* Any member of the organization can perform this action.
* If the brand has no email completed resource, the request returns `404`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Email branding of the brand resource, grouped by language. Only the languages and fields saved for the brand are returned.

**Example** (`Successful response`)

```json
{
  "data": {
    "en": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    },
    "es": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    },
    "fr": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    }
  }
}
```

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is not a member of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`User not a member`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.
* The brand has no `email-invite-completed` resource.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

**Example** (`Brand resource not found`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: email-invite-completed."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-completed" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-completed — Delete org email completed brand resource

This endpoint allows organization admins and moderators to delete the `email-invite-completed` resource of an organization brand.

**Notes**

* Only an admin or moderator of the organization can perform this action.
* If the brand has no email completed resource, the request returns `404`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

**Example** (`User not admin or moderator`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.
* The brand has no `email-invite-completed` resource.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

**Example** (`Brand resource not found`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: email-invite-completed."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-completed" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-general — Create org email general brand resource

This endpoint allows organization admins and moderators to set the general email branding of an organization brand, applied to all email types.

**Notes**

* Only an admin or moderator of the organization can perform this action.
* The request replaces the whole resource. Include every setting you want to keep. An empty body `{}` clears the stored settings.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "ccd": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether or not to show the list of CCD emails in the invite emails.\n",
          "x-stoplight": {
            "id": "86yh1r34on57u"
          }
        }
      },
      "description": "CCD section of the invite emails.",
      "x-stoplight": {
        "id": "8k9kk0geq4hlo"
      }
    },
    "logo": {
      "type": "object",
      "properties": {
        "position": {
          "type": "string",
          "description": "Logo position on the page. Possible values: left, middle, right."
        }
      },
      "description": "Logo object in the email."
    },
    "buttons": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "**View Document** button text color in HEX color code."
        },
        "background": {
          "type": "string",
          "description": "**View Document** button background color in HEX color code."
        }
      },
      "description": "**View Document** button object."
    },
    "sender_email": {
      "type": "string",
      "description": "Email address that will be prefilled in the to field when user clicks the **Contact Sender** button and an email service opens."
    },
    "contact_sender": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether or not to show the Contact Sender section in the emails.",
          "x-stoplight": {
            "id": "zhsy7nbyu2ldq"
          }
        }
      },
      "description": "Contact sender section of the emails.",
      "x-stoplight": {
        "id": "wh670iha54nw0"
      }
    },
    "secondary_buttons": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "**Contact Sender** button text color in HEX color code.",
          "x-stoplight": {
            "id": "p0qa0ixm7g30m"
          }
        },
        "background": {
          "type": "string",
          "description": "**Contact Sender** button background color in HEX color code.",
          "x-stoplight": {
            "id": "fqizk8vnxcw2l"
          }
        }
      },
      "description": "**Contact Sender** button object.",
      "x-stoplight": {
        "id": "82gon73lveei7"
      }
    },
    "signnow_references": {
      "type": "boolean",
      "description": "Whether or not to show links to SignNow mobile apps."
    },
    "hide_download_image": {
      "type": "boolean",
      "description": "When a signer completes a document, whether to show or hide an image instruction on how to download the completed document."
    }
  },
  "x-examples": {
    "Example 1": {
      "logo": {
        "position": "middle"
      },
      "buttons": {
        "color": "#E4F18B",
        "background": "#EB4C7E"
      },
      "sender_email": "sender_email@gmail.com",
      "signnow_references": true,
      "hide_download_image": false
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "logo": {
    "position": "middle"
  },
  "buttons": {
    "color": "#ffffff",
    "background": "#0777cf"
  },
  "sender_email": "mail@signnow.com",
  "secondary_buttons": {
    "color": "#38424b",
    "background": "#e3e6e9"
  },
  "signnow_references": true,
  "hide_download_image": false
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* Request body is incorrect or missing.
* Payload contains unexpected attributes.
* Language value is not an array.
* `logo` is not an array.
* `position` is not a string.
* `position` is incorrect.
* `buttons` is not an array.
* `buttons.color` parameter value is not a string.
* `buttons.color` is not a HEX color code.
* `buttons.background` parameter value is not a string.
* `buttons.background` is not a HEX color code.
* `secondary_buttons` is not an array.
* `secondary_buttons.color` parameter value is not a string.
* `secondary_buttons.color` is not a HEX color code.
* `secondary_buttons.background` parameter value is not a string.
* `secondary_buttons.background` is not a HEX color code.
* `sender_email` is not a string.
* `sender_email` is empty.
* `sender_email` is not a correct email address.
* `signnow_references` is not a boolean.
* `hide_download_image` is not a boolean.
* `contact_sender` is not an array.
* `contact_sender.visibility` is not a boolean.
* `ccd` is not an array.
* `ccd.visibility` is not a boolean.

**Example** (`Logo not array`)

```json
{
  "code": 25002092,
  "message": "The 'logo' attribute must be an array."
}
```

**Example** (`ccd is not array`)

```json
{
  "code": 25002228,
  "message": "The `ccd` field must be an array."
}
```

**Example** (`buttons not array`)

```json
{
  "code": 25002091,
  "message": "The 'buttons' attribute must be an array."
}
```

**Example** (`Empty sender_email`)

```json
{
  "code": 25002058,
  "message": "The 'sender_email' must not be an empty string."
}
```

**Example** (`Incorrect position`)

```json
{
  "code": 25002048,
  "message": "The 'position' attribute is invalid, allowed values: left, middle, right."
}
```

**Example** (`Language not array`)

```json
{
  "code": 25002093,
  "message": "Invalid payload. Expected pair of languages with their settings."
}
```

**Example** (`Unexpected attributes`)

```json
{
  "code": 25002139,
  "message": "The {{ field }} field was not expected."
}
```

**Example** (`position is not string`)

```json
{
  "code": 25002047,
  "message": "The 'position' attribute must be a string."
}
```

**Example** (`sender_email not string`)

```json
{
  "code": 25002056,
  "message": "The 'sender_email' attribute must be a string."
}
```

**Example** (`buttons.color not string`)

```json
{
  "code": 25002006,
  "message": "The 'color' attribute must be a string."
}
```

**Example** (`contact_sender not array`)

```json
{
  "code": 25002226,
  "message": "The `contact_sender` field must be an array."
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`ccd.visibility not boolean`)

```json
{
  "code": 25002229,
  "message": "The `ccd.visibility` field must be a boolean."
}
```

**Example** (`secondary_buttons not array`)

```json
{
  "code": 25002090,
  "message": "The 'secondary_buttons' attribute must be an array."
}
```

**Example** (`buttons.background not string`)

```json
{
  "code": 25002004,
  "message": "The 'background' attribute must be a string."
}
```

**Example** (`signnow_references not boolean`)

```json
{
  "code": 25002055,
  "message": "The 'signnow_references' attribute must be a boolean."
}
```

**Example** (`hide_download_image not boolean`)

```json
{
  "code": 25002084,
  "message": "The 'hide_download_image' attribute must be a boolean."
}
```

**Example** (`buttons.color not HEX color code`)

```json
{
  "code": 25002007,
  "message": "The 'color' attribute format is invalid."
}
```

**Example** (`Request body incorrect or missing`)

```json
{
  "code": 25002002,
  "message": "Invalid payload given."
}
```

**Example** (`sender_email not an email address`)

```json
{
  "code": 25002057,
  "message": "The 'sender_email' attribute must be a valid email address."
}
```

**Example** (`secondary_buttons.color not string`)

```json
{
  "code": 25002088,
  "message": "The 'secondary_buttons.color' attribute must be a string."
}
```

**Example** (`buttons.background not HEX color code`)

```json
{
  "code": 25002005,
  "message": "The 'background' attribute format is invalid."
}
```

**Example** (`contact_sender.visibility not boolean`)

```json
{
  "code": 25002227,
  "message": "The `contact_sender.visibility` field must be a boolean."
}
```

**Example** (`secondary_buttons.background not string`)

```json
{
  "code": 25002086,
  "message": "The 'secondary_buttons.background' attribute must be a string."
}
```

**Example** (`secondary_buttons.color not HEX color code`)

```json
{
  "code": 25002089,
  "message": "The 'secondary_buttons.color' attribute format is invalid."
}
```

**Example** (`secondary_buttons.background not HEX color code`)

```json
{
  "code": 25002087,
  "message": "The 'secondary_buttons.background' attribute format is invalid."
}
```

### 403

* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

**Example** (`User not admin or moderator`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-general" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"logo": {"position": "middle"}, "buttons": {"color": "#ffffff", "background": "#0777cf"}, "sender_email": "mail@signnow.com", "secondary_buttons": {"color": "#38424b", "background": "#e3e6e9"}, "signnow_references": true, "hide_download_image": false}'
```

---

## GET /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-general — Get org email general brand resource

This endpoint allows organization members to retrieve the `email-general` resource of an organization brand.

**Notes**

* Any member of the organization can perform this action.
* If the brand has no email general resource, the request returns `404`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "data": {
    "ccd": {
      "visibility": true
    },
    "logo": {
      "position": "left"
    },
    "buttons": {
      "color": "#ffffff",
      "background": "#0777cf"
    },
    "sender_email": "user2@example.com",
    "contact_sender": {
      "visibility": true
    },
    "secondary_buttons": {
      "color": "#38424b",
      "background": "#e3e6e9"
    },
    "signnow_references": true,
    "hide_download_image": false
  }
}
```

### 400

* Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is not a member of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`User not a member`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.
* The brand has no `email-general` resource.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

**Example** (`Brand resource not found`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: email-general."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-general" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-general — Delete org email general brand resource

This endpoint allows organization admins and moderators to delete the `email-general` resource of an organization brand.

**Notes**

* Only an admin or moderator of the organization can perform this action.
* If the brand has no email general resource, the request returns `404`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

**Example** (`User not admin or moderator`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.
* The brand has no `email-general` resource.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

**Example** (`Brand resource not found`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: email-general."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-general" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite — Create org email invite brand resource

This endpoint allows organization admins and moderators to set the texts of invite emails for an organization brand.

**Notes**

* Only an admin or moderator of the organization can perform this action.
* Set texts per language: use `en`, `es`, and `fr` as top-level keys. Other top-level keys are ignored.
* The request replaces the whole resource. Include every language you want to keep.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "en": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom text indicating sender."
        },
        "subject": {
          "type": "string",
          "maxLength": 300,
          "description": "Email subject text. Placeholder `{document_name}` is available."
        },
        "expiration": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom message text for expiration email. Placeholder `{days}` is available: data from the invite `expiration_days` parameter is used."
        },
        "body_header": {
          "type": "string",
          "maxLength": 300,
          "description": "Email header text."
        },
        "body_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Email body text. Placeholder `{document_name}` is available. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `300` characters, including tags."
        },
        "footer_message": {
          "type": "string",
          "maxLength": 4096,
          "description": "Email footer text. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `4096` characters, including tags."
        }
      },
      "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/branding-email-resources#language-branding)."
    }
  },
  "x-examples": {
    "Example 1": {
      "en": {
        "from": "From user ",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message EN"
      },
      "es": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      },
      "fr": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "en": {
    "from": "Sender Name",
    "subject": "Needs Your Signature",
    "expiration": "This invite will expire in {days} days",
    "body_header": "You were invited to review and sign a document",
    "body_message": "<p>You\u2019ve been invited to fill out and sign the <b>{document_name}</b> document.</p>",
    "footer_message": "<p><b>Unique Solutions Inc.</b></p>"
  },
  "es": {
    "from": "Nombre del remitente",
    "subject": "Necesita tu firma",
    "expiration": "Esta invitaci\u00f3n dejar\u00e1 de ser v\u00e1lida en {days} d\u00edas",
    "body_header": "Te han invitado a revisar y firmar un documento",
    "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
    "footer_message": "Unique Solutions Inc."
  },
  "fr": {
    "from": "Nom de l'exp\u00e9diteur",
    "subject": "A besoin de votre signature",
    "expiration": "Cette invitation expirera dans {days} jours",
    "body_header": "Vous avez \u00e9t\u00e9 invit\u00e9 \u00e0 v\u00e9rifier et signer un document",
    "body_message": "Vous invite \u00e0 compl\u00e9ter et signer le document {document_name}.",
    "footer_message": "Unique Solutions Inc."
  }
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* `subject` is not a string.
* `subject` is longer than 300 characters.
* `body_header` is not a string.
* `body_header` is longer than 300 characters.
* `body_message` is not a string.
* `body_message` is longer than 300 characters.
* `body_message` contains HTML that is not allowed: a tag outside the allowed list, a tag with an attribute, an unclosed or misnested tag, or an HTML comment.
* `footer_message` is not a string.
* `footer_message` is longer than 4096 characters.
* `footer_message` contains HTML that is not allowed.
* `from` is not a string.
* `expiration` is not a string.
* `expiration` is longer than 300 characters.
* Incorrect placeholder found.

**Example** (`from too long`)

```json
{
  "errors": [
    {
      "code": 25002072,
      "message": "The 'from' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`from not string`)

```json
{
  "errors": [
    {
      "code": 25002050,
      "message": "The 'from' attribute must be a string."
    }
  ]
}
```

**Example** (`subject too long`)

```json
{
  "errors": [
    {
      "code": 25002058,
      "message": "The 'subject' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`subject not string`)

```json
{
  "errors": [
    {
      "code": 25002049,
      "message": "The 'subject' attribute must be a string."
    }
  ]
}
```

**Example** (`expiration too long`)

```json
{
  "errors": [
    {
      "code": 25002078,
      "message": "The 'expiration' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`body_header too long`)

```json
{
  "errors": [
    {
      "code": 25002059,
      "message": "The 'body_header' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`Incorrect placeholder`)

```json
{
  "errors": [
    {
      "code": 25002081,
      "message": "Invalid placeholder found, expected {document_name}, {invite_email}."
    }
  ]
}
```

**Example** (`body_message too long`)

```json
{
  "errors": [
    {
      "code": 25002060,
      "message": "The 'body_message' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`expiration not string`)

```json
{
  "errors": [
    {
      "code": 25002079,
      "message": "The 'expiration' attribute must be a string."
    }
  ]
}
```

**Example** (`body_header not string`)

```json
{
  "errors": [
    {
      "code": 25002052,
      "message": "The 'body_header' attribute must be a string."
    }
  ]
}
```

**Example** (`body_message not string`)

```json
{
  "errors": [
    {
      "code": 25002053,
      "message": "The 'body_message' attribute must be a string."
    }
  ]
}
```

**Example** (`footer_message too long`)

```json
{
  "errors": [
    {
      "code": 25002061,
      "message": "The 'footer_message' attribute must not exceed 4096 characters."
    }
  ]
}
```

**Example** (`footer_message not string`)

```json
{
  "errors": [
    {
      "code": 25002054,
      "message": "The 'footer_message' attribute must be a string."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`body_message has unclosed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: unclosed <b>."
    }
  ]
}
```

**Example** (`body_message has tag attribute`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <p style>."
    }
  ]
}
```

**Example** (`body_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

**Example** (`footer_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002383,
      "message": "The 'footer_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

### 403

* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

**Example** (`User not admin or moderator`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

### 422

Language is not an array.

**Example** (`Missing language settings`)

```json
{
  "errors": [
    {
      "code": 25002093,
      "message": "Invalid payload. Expected pair of languages with their settings."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"en": {"from": "Sender Name", "subject": "Needs Your Signature", "expiration": "This invite will expire in {days} days", "body_header": "You were invited to review and sign a document", "body_message": "<p>You\u2019ve been invited to fill out and sign the <b>{document_name}</b> document.</p>", "footer_message": "<p><b>Unique Solutions Inc.</b></p>"}, "es": {"from": "Nombre del remitente", "subject": "Necesita tu firma", "expiration": "Esta invitaci\u00f3n dejar\u00e1 de ser v\u00e1lida en {days} d\u00edas", "body_header": "Te han invitado a revisar y firmar un documento", "body_message": "Has invitado para rellenar y firmar el documento {document_name}.", "footer_message": "Unique Solutions Inc."}, "fr": {"from": "Nom de l'\''exp\u00e9diteur", "subject": "A besoin de votre signature", "expiration": "Cette invitation expirera dans {days} jours", "body_header": "Vous avez \u00e9t\u00e9 invit\u00e9 \u00e0 v\u00e9rifier et signer un document", "body_message": "Vous invite \u00e0 compl\u00e9ter et signer le document {document_name}.", "footer_message": "Unique Solutions Inc."}}'
```

---

## GET /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite — Get org email invite brand resource

This endpoint allows organization members to retrieve the `email-invite` resource of an organization brand.

**Notes**

* Any member of the organization can perform this action.
* If the brand has no email invite resource, the request returns `404`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Email branding of the brand resource, grouped by language. Only the languages and fields saved for the brand are returned.

**Example** (`Successful response`)

```json
{
  "data": {
    "en": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "expiration": "Expiration message {days}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    },
    "es": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "expiration": "Expiration message {days}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    },
    "fr": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "expiration": "Expiration message {days}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    }
  }
}
```

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is not a member of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`User not a member`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.
* The brand has no `email-invite` resource.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

**Example** (`Brand resource not found`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: email-invite."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite — Delete org email invite brand resource

This endpoint allows organization admins and moderators to delete the `email-invite` resource of an organization brand.

**Notes**

* Only an admin or moderator of the organization can perform this action.
* If the brand has no email invite resource, the request returns `404`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

**Example** (`User not admin or moderator`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.
* The brand has no `email-invite` resource.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

**Example** (`Brand resource not found`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: email-invite."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-reassign — Create org email reassign brand resource

This endpoint allows organization admins and moderators to set the texts of reassign emails for an organization brand.

**Notes**

* Only an admin or moderator of the organization can perform this action.
* Set texts per language: use `en`, `es`, and `fr` as top-level keys. Other top-level keys are ignored.
* The request replaces the whole resource. Include every language you want to keep.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "en": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom text indicating sender."
        },
        "subject": {
          "type": "string",
          "maxLength": 300,
          "description": "Email subject text. Placeholder `{document_name}` is available."
        },
        "expiration": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom message text for expiration email. Placeholder `{days}` is available: data from the invite `expiration_days` parameter is used."
        },
        "body_header": {
          "type": "string",
          "maxLength": 300,
          "description": "Email header text."
        },
        "body_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Email body text. Placeholder `{document_name}` is available. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `300` characters, including tags."
        },
        "footer_message": {
          "type": "string",
          "maxLength": 4096,
          "description": "Email footer text. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `4096` characters, including tags."
        },
        "forward_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Email message from the signer who forwarded the email. Placeholder {email_from} is available."
        }
      },
      "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/branding-email-resources#language-branding)."
    }
  },
  "x-examples": {
    "Example 1": {
      "en": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message",
        "forward_message": "Forward message {email_from}"
      },
      "es": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message",
        "forward_message": "Forward message {email_from}"
      },
      "fr": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message",
        "forward_message": "Forward message {email_from}"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "en": {
    "from": "Sender Name",
    "subject": "Needs Your Signature",
    "expiration": "This invite will expire in {days} days",
    "body_header": "You were invited to review and sign a document",
    "body_message": "<p>You\u2019ve been invited to fill out and sign the <b>{document_name}</b> document.</p>",
    "footer_message": "<p><b>Unique Solutions Inc.</b></p>",
    "forward_message": "This message is forwarded by {email_from}"
  },
  "es": {
    "from": "Nombre del remitente",
    "subject": "Necesita tu firma",
    "expiration": "Esta invitaci\u00f3n dejar\u00e1 de ser v\u00e1lida en {days} d\u00edas",
    "body_header": "Te han invitado a revisar y firmar un documento",
    "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
    "footer_message": "Unique Solutions Inc.",
    "forward_message": "Este mensaje ha sido enviado por {email_from}"
  },
  "fr": {
    "from": "Nom de l'exp\u00e9diteur",
    "subject": "A besoin de votre signature",
    "expiration": "Cette invitation expirera dans {days} jours",
    "body_header": "Vous avez \u00e9t\u00e9 invit\u00e9 \u00e0 v\u00e9rifier et signer un document",
    "body_message": "Vous invite \u00e0 compl\u00e9ter et signer le document {document_name}.",
    "footer_message": "Unique Solutions Inc.",
    "forward_message": "Ce message est transf\u00e9r\u00e9 par {email_from}"
  }
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* `subject` is not a string.
* `subject` is longer than 300 characters.
* `body_header` is not a string.
* `body_header` is longer than 300 characters.
* `body_message` is not a string.
* `body_message` is longer than 300 characters.
* `body_message` contains HTML that is not allowed: a tag outside the allowed list, a tag with an attribute, an unclosed or misnested tag, or an HTML comment.
* `footer_message` is not a string.
* `footer_message` is longer than 4096 characters.
* `footer_message` contains HTML that is not allowed.
* `forward_message` is not a string.
* `forward_message` is longer than 300 characters.
* `from` is not a string.
* `from` is longer than 300 characters.
* `expiration` is not a string.
* `expiration` is longer than 300 characters.
* Incorrect placeholder found.

**Example** (`from too long`)

```json
{
  "errors": [
    {
      "code": 25002072,
      "message": "The 'from' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`from not string`)

```json
{
  "errors": [
    {
      "code": 25002050,
      "message": "The 'from' attribute must be a string."
    }
  ]
}
```

**Example** (`subject too long`)

```json
{
  "errors": [
    {
      "code": 25002058,
      "message": "The 'subject' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`subject not string`)

```json
{
  "errors": [
    {
      "code": 25002049,
      "message": "The 'subject' attribute must be a string."
    }
  ]
}
```

**Example** (`expiration too long`)

```json
{
  "errors": [
    {
      "code": 25002078,
      "message": "The 'expiration' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`body_header too long`)

```json
{
  "errors": [
    {
      "code": 25002059,
      "message": "The 'body_header' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`Incorrect placeholder`)

```json
{
  "errors": [
    {
      "code": 25002081,
      "message": "Invalid placeholder found, expected {document_name}, {invite_email}."
    }
  ]
}
```

**Example** (`body_message too long`)

```json
{
  "errors": [
    {
      "code": 25002060,
      "message": "The 'body_message' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`expiration not string`)

```json
{
  "errors": [
    {
      "code": 25002079,
      "message": "The 'expiration' attribute must be a string."
    }
  ]
}
```

**Example** (`body_header not string`)

```json
{
  "errors": [
    {
      "code": 25002052,
      "message": "The 'body_header' attribute must be a string."
    }
  ]
}
```

**Example** (`body_message not string`)

```json
{
  "errors": [
    {
      "code": 25002053,
      "message": "The 'body_message' attribute must be a string."
    }
  ]
}
```

**Example** (`footer_message too long`)

```json
{
  "errors": [
    {
      "code": 25002061,
      "message": "The 'footer_message' attribute must not exceed 4096 characters."
    }
  ]
}
```

**Example** (`forward_message too long`)

```json
{
  "errors": [
    {
      "code": 25002083,
      "message": "The 'forward_message' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`footer_message not string`)

```json
{
  "errors": [
    {
      "code": 25002054,
      "message": "The 'footer_message' attribute must be a string."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`forward_message not string`)

```json
{
  "errors": [
    {
      "code": 25002082,
      "message": "The 'forward_message' attribute must be a string."
    }
  ]
}
```

**Example** (`body_message has unclosed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: unclosed <b>."
    }
  ]
}
```

**Example** (`body_message has tag attribute`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <p style>."
    }
  ]
}
```

**Example** (`body_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

**Example** (`footer_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002383,
      "message": "The 'footer_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

### 403

* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

**Example** (`User not admin or moderator`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

### 422

Language is not an array.

**Example** (`Missing language settings`)

```json
{
  "errors": [
    {
      "code": 25002093,
      "message": "Invalid payload. Expected pair of languages with their settings."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-reassign" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"en": {"from": "Sender Name", "subject": "Needs Your Signature", "expiration": "This invite will expire in {days} days", "body_header": "You were invited to review and sign a document", "body_message": "<p>You\u2019ve been invited to fill out and sign the <b>{document_name}</b> document.</p>", "footer_message": "<p><b>Unique Solutions Inc.</b></p>", "forward_message": "This message is forwarded by {email_from}"}, "es": {"from": "Nombre del remitente", "subject": "Necesita tu firma", "expiration": "Esta invitaci\u00f3n dejar\u00e1 de ser v\u00e1lida en {days} d\u00edas", "body_header": "Te han invitado a revisar y firmar un documento", "body_message": "Has invitado para rellenar y firmar el documento {document_name}.", "footer_message": "Unique Solutions Inc.", "forward_message": "Este mensaje ha sido enviado por {email_from}"}, "fr": {"from": "Nom de l'\''exp\u00e9diteur", "subject": "A besoin de votre signature", "expiration": "Cette invitation expirera dans {days} jours", "body_header": "Vous avez \u00e9t\u00e9 invit\u00e9 \u00e0 v\u00e9rifier et signer un document", "body_message": "Vous invite \u00e0 compl\u00e9ter et signer le document {document_name}.", "footer_message": "Unique Solutions Inc.", "forward_message": "Ce message est transf\u00e9r\u00e9 par {email_from}"}}'
```

---

## GET /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-reassign — Get org email reassign brand resource

This endpoint allows organization members to retrieve the `email-invite-reassign` resource of an organization brand.

**Notes**

* Any member of the organization can perform this action.
* If the brand has no email reassign resource, the request returns `404`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Email branding of the brand resource, grouped by language. Only the languages and fields saved for the brand are returned.

**Example** (`Successful response`)

```json
{
  "data": {
    "en": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "expiration": "Expiration message {days}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message",
      "forward_message": "Forward message {email_from}"
    },
    "es": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "expiration": "Expiration message {days}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message",
      "forward_message": "Forward message {email_from}"
    },
    "fr": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "expiration": "Expiration message {days}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message",
      "forward_message": "Forward message {email_from}"
    }
  }
}
```

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is not a member of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`User not a member`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.
* The brand has no `email-invite-reassign` resource.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

**Example** (`Brand resource not found`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: email-invite-reassign."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-reassign" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-reassign — Delete org email reassign brand resource

This endpoint allows organization admins and moderators to delete the `email-invite-reassign` resource of an organization brand.

**Notes**

* Only an admin or moderator of the organization can perform this action.
* If the brand has no email reassign resource, the request returns `404`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

**Example** (`User not admin or moderator`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.
* The brand has no `email-invite-reassign` resource.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

**Example** (`Brand resource not found`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: email-invite-reassign."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-reassign" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-reminder — Create org email reminder brand resource

This endpoint allows organization admins and moderators to set the texts of reminder emails for an organization brand.

**Notes**

* Only an admin or moderator of the organization can perform this action.
* Set texts per language: use `en`, `es`, and `fr` as top-level keys. Other top-level keys are ignored.
* The request replaces the whole resource. Include every language you want to keep.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "en": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom text indicating sender."
        },
        "subject": {
          "type": "string",
          "maxLength": 300,
          "description": "Email subject text. Placeholder `{document_name}` is available."
        },
        "expiration": {
          "type": "string",
          "maxLength": 300,
          "description": "Custom message text for expiration email. Placeholder `{days}` is available: data from the invite `expiration_days` parameter is used."
        },
        "body_header": {
          "type": "string",
          "maxLength": 300,
          "description": "Email header text."
        },
        "body_message": {
          "type": "string",
          "maxLength": 300,
          "description": "Email body text. Placeholder `{document_name}` is available. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `300` characters, including tags."
        },
        "footer_message": {
          "type": "string",
          "maxLength": 4096,
          "description": "Email footer text. You can format the text with the following HTML tags: `b`, `strong`, `i`, `em`, `u`, `s`, `br`, `p`, `hr`, `ul`, `ol`, `li`, `h1`\u2013`h6`. Tags can't have attributes such as `style` or `class`, and every tag must be closed and correctly nested. Max length: `4096` characters, including tags."
        }
      },
      "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/branding-email-resources#language-branding)."
    }
  },
  "x-examples": {
    "Example 1": {
      "en": {
        "from": "From user ",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message EN"
      },
      "es": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      },
      "fr": {
        "from": "From user",
        "subject": "My custom subject {document_name}",
        "expiration": "Expiration message {days}",
        "body_header": "Body header message",
        "body_message": "Body message {document_name}",
        "footer_message": "Footer message"
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "en": {
    "from": "Sender Name",
    "subject": "Reminder: {document_name}: Signature Request",
    "expiration": "This invite will expire in {days} days",
    "body_header": "You were invited to review and sign a document",
    "body_message": "<p>You\u2019ve been invited to fill out and sign the <b>{document_name}</b> document.</p>",
    "footer_message": "<p><b>Unique Solutions Inc.</b></p>"
  },
  "es": {
    "from": "Nombre del remitente",
    "subject": "Recordatorio: {document_name}: Solicitud de firma",
    "expiration": "Esta invitaci\u00f3n dejar\u00e1 de ser v\u00e1lida en {days} d\u00edas",
    "body_header": "Te han invitado a revisar y firmar un documento",
    "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
    "footer_message": "Unique Solutions Inc."
  },
  "fr": {
    "from": "Nom de l'exp\u00e9diteur",
    "subject": "Rappel: {document_name}: demande de signature",
    "expiration": "Cette invitation expirera dans {days} jours",
    "body_header": "Vous avez \u00e9t\u00e9 invit\u00e9 \u00e0 v\u00e9rifier et signer un document",
    "body_message": "Vous invite \u00e0 compl\u00e9ter et signer le document {document_name}.",
    "footer_message": "Unique Solutions Inc."
  }
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* `subject` is not a string.
* `subject` is longer than 300 characters.
* `body_header` is not a string.
* `body_header` is longer than 300 characters.
* `body_message` is not a string.
* `body_message` is longer than 300 characters.
* `body_message` contains HTML that is not allowed: a tag outside the allowed list, a tag with an attribute, an unclosed or misnested tag, or an HTML comment.
* `footer_message` is not a string.
* `footer_message` is longer than 4096 characters.
* `footer_message` contains HTML that is not allowed.
* `from` is not a string.
* `expiration` is not a string.
* `expiration` is longer than 300 characters.
* Incorrect placeholder found.

**Example** (`from too long`)

```json
{
  "errors": [
    {
      "code": 25002072,
      "message": "The 'from' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`from not string`)

```json
{
  "errors": [
    {
      "code": 25002050,
      "message": "The 'from' attribute must be a string."
    }
  ]
}
```

**Example** (`subject too long`)

```json
{
  "errors": [
    {
      "code": 25002058,
      "message": "The 'subject' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`subject not string`)

```json
{
  "errors": [
    {
      "code": 25002049,
      "message": "The 'subject' attribute must be a string."
    }
  ]
}
```

**Example** (`expiration too long`)

```json
{
  "errors": [
    {
      "code": 25002078,
      "message": "The 'expiration' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`body_header too long`)

```json
{
  "errors": [
    {
      "code": 25002059,
      "message": "The 'body_header' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`Incorrect placeholder`)

```json
{
  "errors": [
    {
      "code": 25002081,
      "message": "Invalid placeholder found, expected {document_name}, {invite_email}."
    }
  ]
}
```

**Example** (`body_message too long`)

```json
{
  "errors": [
    {
      "code": 25002060,
      "message": "The 'body_message' attribute must not exceed 300 characters."
    }
  ]
}
```

**Example** (`expiration not string`)

```json
{
  "errors": [
    {
      "code": 25002079,
      "message": "The 'expiration' attribute must be a string."
    }
  ]
}
```

**Example** (`body_header not string`)

```json
{
  "errors": [
    {
      "code": 25002052,
      "message": "The 'body_header' attribute must be a string."
    }
  ]
}
```

**Example** (`body_message not string`)

```json
{
  "errors": [
    {
      "code": 25002053,
      "message": "The 'body_message' attribute must be a string."
    }
  ]
}
```

**Example** (`footer_message too long`)

```json
{
  "errors": [
    {
      "code": 25002061,
      "message": "The 'footer_message' attribute must not exceed 4096 characters."
    }
  ]
}
```

**Example** (`footer_message not string`)

```json
{
  "errors": [
    {
      "code": 25002054,
      "message": "The 'footer_message' attribute must be a string."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`body_message has unclosed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: unclosed <b>."
    }
  ]
}
```

**Example** (`body_message has tag attribute`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <p style>."
    }
  ]
}
```

**Example** (`body_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002384,
      "message": "The 'body_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

**Example** (`footer_message has disallowed tag`)

```json
{
  "errors": [
    {
      "code": 25002383,
      "message": "The 'footer_message' attribute contains HTML that is not allowed: <div>."
    }
  ]
}
```

### 403

* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

**Example** (`User not admin or moderator`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

### 422

Language is not an array.

**Example** (`Missing language settings`)

```json
{
  "errors": [
    {
      "code": 25002093,
      "message": "Invalid payload. Expected pair of languages with their settings."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-reminder" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"en": {"from": "Sender Name", "subject": "Reminder: {document_name}: Signature Request", "expiration": "This invite will expire in {days} days", "body_header": "You were invited to review and sign a document", "body_message": "<p>You\u2019ve been invited to fill out and sign the <b>{document_name}</b> document.</p>", "footer_message": "<p><b>Unique Solutions Inc.</b></p>"}, "es": {"from": "Nombre del remitente", "subject": "Recordatorio: {document_name}: Solicitud de firma", "expiration": "Esta invitaci\u00f3n dejar\u00e1 de ser v\u00e1lida en {days} d\u00edas", "body_header": "Te han invitado a revisar y firmar un documento", "body_message": "Has invitado para rellenar y firmar el documento {document_name}.", "footer_message": "Unique Solutions Inc."}, "fr": {"from": "Nom de l'\''exp\u00e9diteur", "subject": "Rappel: {document_name}: demande de signature", "expiration": "Cette invitation expirera dans {days} jours", "body_header": "Vous avez \u00e9t\u00e9 invit\u00e9 \u00e0 v\u00e9rifier et signer un document", "body_message": "Vous invite \u00e0 compl\u00e9ter et signer le document {document_name}.", "footer_message": "Unique Solutions Inc."}}'
```

---

## GET /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-reminder — Get org email reminder brand resource

This endpoint allows organization members to retrieve the `email-invite-reminder` resource of an organization brand.

**Notes**

* Any member of the organization can perform this action.
* If the brand has no email reminder resource, the request returns `404`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Email branding of the brand resource, grouped by language. Only the languages and fields saved for the brand are returned.

**Example** (`Successful response`)

```json
{
  "data": {
    "en": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "expiration": "Expiration message {days}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    },
    "es": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "expiration": "Expiration message {days}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    },
    "fr": {
      "from": "From user user@mail.com",
      "subject": "My custom subject {document_name}",
      "expiration": "Expiration message {days}",
      "body_header": "Body header message",
      "body_message": "Body message {document_name}",
      "footer_message": "Footer message"
    }
  }
}
```

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is not a member of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`User not a member`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.
* The brand has no `email-invite-reminder` resource.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

**Example** (`Brand resource not found`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: email-invite-reminder."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-reminder" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-reminder — Delete org email reminder brand resource

This endpoint allows organization admins and moderators to delete the `email-invite-reminder` resource of an organization brand.

**Notes**

* Only an admin or moderator of the organization can perform this action.
* If the brand has no email reminder resource, the request returns `404`.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.
* The user is authorized with a token from an app they don’t own.

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

**Example** (`User not admin or moderator`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

### 404

* The organization is not found.
* The brand is not found.
* The brand has no `email-invite-reminder` resource.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

**Example** (`Brand resource not found`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: email-invite-reminder."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/email-invite-reminder" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/organizations/{organization_id}/brands/{brand_id}/resources/general — Create org general brand resource

This endpoint allows users to create a general brand resource for an organization. Only an admin or moderator of the organization can perform this action.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "icons": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Text color in HEX color code."
        },
        "border": {
          "type": "string",
          "description": "Border color in HEX color code."
        },
        "background": {
          "type": "string",
          "description": "Background color in HEX color code."
        },
        "hover-color": {
          "type": "string",
          "description": "Text color in HEX color code when the button is hovered over."
        },
        "hover-border": {
          "type": "string",
          "description": "Border color in HEX color code when the button is hovered over."
        },
        "hover-background": {
          "type": "string",
          "description": "Background color in HEX color code when the button is hovered over."
        }
      },
      "description": "Icons object that contains attributes for all icons in the resource."
    },
    "texts": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Text color in the HEX color code."
        }
      },
      "description": "Text object that contains attributes for texts in the resource."
    },
    "header": {
      "type": "object",
      "properties": {
        "background": {
          "type": "string",
          "description": "Background color in HEX color code."
        }
      },
      "description": "Header object. Contains attributes for headers."
    },
    "buttons": {
      "type": "object",
      "properties": {
        "default": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "description": "Text color in HEX color code."
            },
            "border": {
              "type": "string",
              "description": "Border color in HEX color code."
            },
            "background": {
              "type": "string",
              "description": "Background color in HEX color code."
            },
            "hover-color": {
              "type": "string",
              "description": "Text color in HEX color code when the button is hovered over."
            },
            "active-color": {
              "type": "string",
              "description": "Text color in HEX color code when the button is active."
            },
            "hover-border": {
              "type": "string",
              "description": "Border color in HEX color code when the button is hovered over."
            },
            "active-border": {
              "type": "string",
              "description": "Border color in HEX color code when the button is active."
            },
            "hover-background": {
              "type": "string",
              "description": "Background color in HEX color code when the button is hovered over."
            },
            "active-background": {
              "type": "string",
              "description": "Background color in HEX color code when the button is active."
            }
          },
          "description": "Default button object."
        },
        "primary": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "description": "Text color in HEX color code."
            },
            "border": {
              "type": "string",
              "description": "Border color in HEX color code."
            },
            "background": {
              "type": "string",
              "description": "Background color in HEX color code."
            },
            "hover-color": {
              "type": "string",
              "description": "Text color in HEX color code when the button is hovered over."
            },
            "active-color": {
              "type": "string",
              "description": "Text color in HEX color code when the button is active."
            },
            "hover-border": {
              "type": "string",
              "description": "Border color in HEX color code when the button is hovered over."
            },
            "active-border": {
              "type": "string",
              "description": "Border color in HEX color code when the button is active."
            },
            "hover-background": {
              "type": "string",
              "description": "Background color in HEX color code when the button is hovered over."
            },
            "active-background": {
              "type": "string",
              "description": "Background color in HEX color code when the button is active."
            }
          },
          "description": "Primary button object."
        },
        "dropdown": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "description": "Text color in HEX color code."
            },
            "border": {
              "type": "string",
              "description": "Border color in HEX color code."
            },
            "background": {
              "type": "string",
              "description": "Background color in HEX color code."
            },
            "hover-color": {
              "type": "string",
              "description": "Text color in HEX color code when the button is hovered over."
            },
            "active-color": {
              "type": "string",
              "description": "Text color in HEX color code when the button is active."
            },
            "hover-border": {
              "type": "string",
              "description": "Border color in HEX color code when the button is hovered over."
            },
            "active-border": {
              "type": "string",
              "description": "Border color in HEX color code when the button is active."
            },
            "hover-background": {
              "type": "string",
              "description": "Background color in HEX color code when the button is hovered over."
            },
            "active-background": {
              "type": "string",
              "description": "Background color in HEX color code when the button is active."
            }
          },
          "description": "Dropdown button object."
        },
        "secondary": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "description": "Text color in HEX color code."
            },
            "border": {
              "type": "string",
              "description": "Border color in HEX color code."
            },
            "background": {
              "type": "string",
              "description": "Background color in HEX color code."
            },
            "hover-color": {
              "type": "string",
              "description": "Text color in HEX color code when the button is hovered over."
            },
            "active-color": {
              "type": "string",
              "description": "Text color in HEX color code when the button is active."
            },
            "hover-border": {
              "type": "string",
              "description": "Border color in HEX color code when the button is hovered over."
            },
            "active-border": {
              "type": "string",
              "description": "Border color in HEX color code when the button is active."
            },
            "hover-background": {
              "type": "string",
              "description": "Background color in HEX color code when the button is hovered over."
            },
            "active-background": {
              "type": "string",
              "description": "Background color in HEX color code when the button is active."
            }
          },
          "description": "Secondary button object."
        }
      },
      "description": "Button object that contains `primary`, `secondary`, `default`, and `dropdown` button attributes."
    },
    "hyperlink": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "example": "#546470",
          "description": "Default color of the hyperlink text in HEX color code."
        },
        "hover-color": {
          "type": "string",
          "example": "#667988",
          "description": "Color of the hyperlink text when hovered in HEX color code."
        },
        "active-color": {
          "type": "string",
          "example": "#4b5963",
          "description": "Color of the hyperlink text when clicked in HEX color code."
        }
      },
      "description": "Defines hyperlink colors for default, hover, and active (clicked) states. Available for embedded sending and embedded editor."
    },
    "help-center": {
      "type": "object",
      "properties": {
        "visibility": {
          "type": "boolean",
          "description": "Whether the button with a link to signNow help center should be visible or not."
        }
      }
    },
    "consent-text": {
      "type": "object",
      "properties": {
        "en": {
          "type": "string",
          "maxLength": 900,
          "description": "Custom consent text in English that can be updated. Placeholder {sender_email} is available."
        },
        "es": {
          "type": "string",
          "maxLength": 900,
          "description": "Custom consent text in Spanish that can be updated. Placeholder {sender_email} is available."
        },
        "fr": {
          "type": "string",
          "maxLength": 900,
          "description": "Custom consent text in French that can be updated. Placeholder {sender_email} is available."
        }
      },
      "description": "Consent text object that contains attributes for consent text that appears when a signer opens the document. Consent text appears if sender is in organization and consent text is enabled for the organization."
    },
    "main-background": {
      "type": "string",
      "description": "Main background color in HEX color code."
    },
    "welcome-message": {
      "type": "object",
      "properties": {
        "body-text": {
          "type": "object",
          "properties": {
            "en": {
              "type": "string",
              "maxLength": 300,
              "description": "Custom welcome message in English that can be updated. Placeholder {sender_email} is available."
            },
            "es": {
              "type": "string",
              "maxLength": 300,
              "description": "Custom welcome message in Spanish that can be updated. Placeholder {sender_email} is available."
            },
            "fr": {
              "type": "string",
              "maxLength": 300,
              "description": "Custom welcome message in French that can be updated. Placeholder {sender_email} is available."
            }
          },
          "description": "Custom welcome message."
        },
        "visibility": {
          "type": "boolean",
          "description": "Whether a welcome message should appear or not."
        },
        "header-text": {
          "type": "object",
          "properties": {
            "en": {
              "type": "string",
              "example": "Hi, {signer_email}",
              "maxLength": 300,
              "description": "Custom header text in English. The placeholder `{signer_email}` is replaced with the recipient's name or email/phone number (for regular documents); name or email (for embedded invites); name or \u201cGuest Signer\u201d (for signing links); and \u201cGuest Signer\u201d (for document group signing links)."
            },
            "es": {
              "type": "string",
              "example": "Hola, {signer_email}",
              "maxLength": 300,
              "description": "Custom header text in Spanish. The placeholder `{signer_email}` is replaced with the recipient's name or email/phone number (for regular documents); name or email (for embedded invites); name or \u201cGuest Signer\u201d (for signing links); and \u201cGuest Signer\u201d (for document group signing links)."
            },
            "fr": {
              "type": "string",
              "example": "Bonjour, {signer_email}",
              "maxLength": 300,
              "description": "Custom header text in French. The placeholder `{signer_email}` is replaced with the recipient's name or email/phone number (for regular documents); name or email (for embedded invites); name or \u201cGuest Signer\u201d (for signing links); and \u201cGuest Signer\u201d (for document group signing links)."
            }
          },
          "description": "Custom text displayed in the welcome message header."
        }
      },
      "description": "Welcome message object that contains attributes for a welcome message that appears when a signer opens the document or clicks the notification icon on the header."
    }
  },
  "x-examples": {
    "Example 1": {
      "icons": {
        "color": "#546470",
        "border": "#ffffff",
        "background": "#ffffff",
        "hover-color": "#546470",
        "hover-border": "#f1f2f4",
        "hover-background": "#f1f2f4"
      },
      "texts": {
        "color": "#2f373e"
      },
      "header": {
        "background": "#ffffff"
      },
      "buttons": {
        "default": {
          "color": "#546470",
          "border": "#ffffff",
          "background": "#ffffff",
          "hover-color": "#546470",
          "active-color": "#546470",
          "hover-border": "#f1f2f4",
          "active-border": "#ffffff",
          "hover-background": "#f1f2f4",
          "active-background": "#ffffff"
        },
        "primary": {
          "color": "#ffffff",
          "border": "#0777cf",
          "background": "#0777cf",
          "hover-color": "#ffffff",
          "active-color": "#ffffff",
          "hover-border": "#348fd7",
          "active-border": "#003458",
          "hover-background": "#348fd7",
          "active-background": "#076dbd"
        },
        "dropdown": {
          "color": "#546470",
          "border": "#ffffff",
          "background": "#ffffff",
          "hover-color": "#546470",
          "active-color": "#546470",
          "hover-border": "#f1f2f4",
          "active-border": "#ffffff",
          "hover-background": "#f1f2f4",
          "active-background": "#ffffff"
        },
        "secondary": {
          "color": "#38424b",
          "border": "#e3e6e9",
          "background": "#e3e6e9",
          "hover-color": "#38424b",
          "active-color": "#38424b",
          "hover-border": "#f1f2f4",
          "active-border": "#d5dade",
          "hover-background": "#f1f2f4",
          "active-background": "#d5dade"
        }
      },
      "hyperlink": {
        "color": "#546470",
        "hover-color": "#667988",
        "active-color": "#4b5963"
      },
      "help-center": {
        "visibility": true
      },
      "consent-text": {
        "en": "{sender_email} has invited you to fill out and sign this in one place.",
        "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
        "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
      },
      "main-background": "#efefef",
      "welcome-message": {
        "body-text": {
          "en": "{sender_email} has invited you to fill out and sign this in one place.",
          "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
          "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
        },
        "visibility": true,
        "header-text": {
          "en": "Hi, {signer_email}",
          "es": "Hola, {signer_email}",
          "fr": "Bonjour, {signer_email}"
        }
      }
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "icons": {
    "color": "#546470",
    "border": "#ffffff",
    "background": "#ffffff",
    "hover-color": "#546470",
    "hover-border": "#f1f2f4",
    "hover-background": "#f1f2f4"
  },
  "texts": {
    "color": "#2f373e"
  },
  "header": {
    "background": "#ffffff"
  },
  "buttons": {
    "default": {
      "color": "#546470",
      "border": "#ffffff",
      "background": "#ffffff",
      "hover-color": "#546470",
      "active-color": "#546470",
      "hover-border": "#f1f2f4",
      "active-border": "#ffffff",
      "hover-background": "#f1f2f4",
      "active-background": "#ffffff"
    },
    "primary": {
      "color": "#ffffff",
      "border": "#0777cf",
      "background": "#0777cf",
      "hover-color": "#ffffff",
      "active-color": "#ffffff",
      "hover-border": "#348fd7",
      "active-border": "#003458",
      "hover-background": "#348fd7",
      "active-background": "#076dbd"
    },
    "dropdown": {
      "color": "#546470",
      "border": "#ffffff",
      "background": "#ffffff",
      "hover-color": "#546470",
      "active-color": "#546470",
      "hover-border": "#f1f2f4",
      "active-border": "#ffffff",
      "hover-background": "#f1f2f4",
      "active-background": "#ffffff"
    },
    "secondary": {
      "color": "#38424b",
      "border": "#e3e6e9",
      "background": "#e3e6e9",
      "hover-color": "#38424b",
      "active-color": "#38424b",
      "hover-border": "#f1f2f4",
      "active-border": "#d5dade",
      "hover-background": "#f1f2f4",
      "active-background": "#d5dade"
    }
  },
  "hyperlink": {
    "color": "#546470",
    "hover-color": "#667988",
    "active-color": "#4b5963"
  },
  "help-center": {
    "visibility": true
  },
  "consent-text": {
    "en": "{sender_email} has invited you to fill out and sign this in one place.",
    "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
    "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
  },
  "main-background": "#efefef",
  "welcome-message": {
    "body-text": {
      "en": "{sender_email} has invited you to fill out and sign this in one place.",
      "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
      "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
    },
    "visibility": true,
    "header-text": {
      "en": "Hi, {signer_email}",
      "es": "Hola, {signer_email}",
      "fr": "Bonjour, {signer_email}"
    }
  }
}
```

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* The request body is empty.
* `background` is not a string.
* `background` is not a HEX color code.
* `color` is not a string.
* `color` is not a HEX color code.
* `border` is not a string.
* `border` is not a HEX color code.
* `hover-background` is not a string.
* `hover-background` is not a HEX color code.
* `hover-color` is not a string.
* `hover-color` is not a HEX color code.
* `hover-border` is not a string.
* `hover-border` is not a HEX color code.
* `active-background` is not a string.
* `active-background` is not a HEX color code.
* `active-color` is not a string.
* `active-color` is not a HEX color code.
* `active-border` is not a string.
* `active-border` is not a HEX color code.
* `main-background` is not a string.
* `consent-text` is not an array.
* `consent-text` value is not a string.
* `welcome-message` is not an array.
* `welcome-message.visibility` value is not a boolean.
* `welcome-message.body-text` is not an array.
* `body-text` value is not a string.
* `help-center` is not an array.
* `help-center.visibility` is not a boolean.
* The `hyperlink` is not an array.
* The `hyperlink.color` is not a string.
* The `hyperlink.color` is not a valid HTML color format.
* The `hyperlink.hover-color` is not a string.
* The `hyperlink.hover-color` is not a valid HTML color format.
* The `hyperlink.active-color` is not a string.
* The `hyperlink.active-color` is not a valid HTML color format.

**Example** (`Empty body`)

```json
{
  "errors": [
    {
      "code": 25002002,
      "message": "Invalid payload given."
    }
  ]
}
```

**Example** (`color not string`)

```json
{
  "errors": [
    {
      "code": 25002006,
      "message": "The 'color' attribute must be a string"
    }
  ]
}
```

**Example** (`border not string`)

```json
{
  "errors": [
    {
      "code": 25002008,
      "message": "The 'border' attribute must be a string"
    }
  ]
}
```

**Example** (`hyperlink not array`)

```json
{
  "errors": [
    {
      "code": 25002322,
      "message": "The 'hyperlink' attribute must be an array"
    }
  ]
}
```

**Example** (`background not string`)

```json
{
  "errors": [
    {
      "code": 25002004,
      "message": "The 'background' attribute must be a string"
    }
  ]
}
```

**Example** (`hover-color not string`)

```json
{
  "errors": [
    {
      "code": 25002012,
      "message": "The 'hover-color' attribute must be a string"
    }
  ]
}
```

**Example** (`active-color not string`)

```json
{
  "errors": [
    {
      "code": 25002039,
      "message": "The 'active-color' attribute must be a string"
    }
  ]
}
```

**Example** (`hover-border not string`)

```json
{
  "errors": [
    {
      "code": 25002014,
      "message": "The 'hover-border' attribute must be a string"
    }
  ]
}
```

**Example** (`color not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002007,
      "message": "The 'color' attribute format is invalid"
    }
  ]
}
```

**Example** (`help-center not an array`)

```json
{
  "errors": [
    {
      "code": 25002205,
      "message": "The `help-center` field must be an array."
    }
  ]
}
```

**Example** (`active-border  not string`)

```json
{
  "errors": [
    {
      "code": 25002041,
      "message": "The 'active-border' attribute must be a string"
    }
  ]
}
```

**Example** (`border not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002009,
      "message": "The 'border' attribute format is invalid"
    }
  ]
}
```

**Example** (`consent-text not an array`)

```json
{
  "errors": [
    {
      "code": 25002191,
      "message": "The `consent-text` attribute must be an array."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`hyperlink.color not string`)

```json
{
  "errors": [
    {
      "code": 25002323,
      "message": "The 'color' attribute must be a string"
    }
  ]
}
```

**Example** (`hover-background not string`)

```json
{
  "errors": [
    {
      "code": 25002010,
      "message": "The 'hover-background' attribute must be a string"
    }
  ]
}
```

**Example** (`active-background not string`)

```json
{
  "errors": [
    {
      "code": 25002037,
      "message": "The 'active-background' attribute must be a string"
    }
  ]
}
```

**Example** (`body-text value not a string`)

```json
{
  "errors": [
    {
      "code": 25002199,
      "message": "The `welcome-message.body-text.en` must be a string."
    }
  ]
}
```

**Example** (`main-background not a string`)

```json
{
  "errors": [
    {
      "code": 25002143,
      "message": "The 'main-background' field must be a string."
    }
  ]
}
```

**Example** (`welcome-message not an array`)

```json
{
  "errors": [
    {
      "code": 25002196,
      "message": "The `welcome-message` field must be an array."
    }
  ]
}
```

**Example** (`background not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002005,
      "message": "The 'background' attribute format is invalid"
    }
  ]
}
```

**Example** (`hover-color not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002013,
      "message": "The 'hover-color' attribute format is invalid"
    }
  ]
}
```

**Example** (`active-color not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002040,
      "message": "The 'active-color' attribute format is invalid"
    }
  ]
}
```

**Example** (`consent-text value not a string`)

```json
{
  "errors": [
    {
      "code": 25002192,
      "message": "The `consent-text.en` attribute must be a string."
    }
  ]
}
```

**Example** (`hover-border not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002015,
      "message": "The 'hover-border' attribute format is invalid"
    }
  ]
}
```

**Example** (`active-border not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002042,
      "message": "The 'active-border' attribute format is invalid"
    }
  ]
}
```

**Example** (`hyperlink.active-color not valid`)

```json
{
  "errors": [
    {
      "code": 25002328,
      "message": "The 'active-color' attribute must contain a valid HTML color format"
    }
  ]
}
```

**Example** (`hyperlink.color format incorrect`)

```json
{
  "errors": [
    {
      "code": 25002324,
      "message": "The 'color' attribute must contain a valid HTML color format"
    }
  ]
}
```

**Example** (`hyperlink.hover-color not string`)

```json
{
  "errors": [
    {
      "code": 25002325,
      "message": "The 'hover-color' attribute must be a string"
    }
  ]
}
```

**Example** (`help-center.visibility not a bool`)

```json
{
  "errors": [
    {
      "code": 25002206,
      "message": "The `help-center.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`hyperlink.active-color not string`)

```json
{
  "errors": [
    {
      "code": 25002327,
      "message": "The 'active-color' attribute must be a string"
    }
  ]
}
```

**Example** (`hover-background not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002011,
      "message": "The 'hover-background' attribute format is invalid"
    }
  ]
}
```

**Example** (`active-background not HEX color code`)

```json
{
  "errors": [
    {
      "code": 25002038,
      "message": "The 'active-background' attribute format is invalid"
    }
  ]
}
```

**Example** (`welcome-message.visibility not a bool`)

```json
{
  "errors": [
    {
      "code": 25002197,
      "message": "The `welcome-message.visibility` must be a boolean."
    }
  ]
}
```

**Example** (`hyperlink.hover-color format incorrect`)

```json
{
  "errors": [
    {
      "code": 25002326,
      "message": "The 'hover-color' attribute must contain a valid HTML color format"
    }
  ]
}
```

**Example** (`welcome-message.body-text not an array`)

```json
{
  "errors": [
    {
      "code": 25002198,
      "message": "The `welcome-message.body-text` must be an array."
    }
  ]
}
```

### 403

* The user is authorized with a token from an app they don’t own.
* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.


**Example** (`Non-organization brand`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

**Example** (`User not admin or moderator`)

```json
{
  "code": 25006002,
  "message": "Insufficient organization rights."
}
```

### 404

* The organization is not found.
* The brand is not found.
* `brand_id` cannot be null.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`brand_id is null`)

```json
{
  "404": "Unable to find a route to match the URI: /v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/general"
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/general" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"icons": {"color": "#546470", "border": "#ffffff", "background": "#ffffff", "hover-color": "#546470", "hover-border": "#f1f2f4", "hover-background": "#f1f2f4"}, "texts": {"color": "#2f373e"}, "header": {"background": "#ffffff"}, "buttons": {"default": {"color": "#546470", "border": "#ffffff", "background": "#ffffff", "hover-color": "#546470", "active-color": "#546470", "hover-border": "#f1f2f4", "active-border": "#ffffff", "hover-background": "#f1f2f4", "active-background": "#ffffff"}, "primary": {"color": "#ffffff", "border": "#0777cf", "background": "#0777cf", "hover-color": "#ffffff", "active-color": "#ffffff", "hover-border": "#348fd7", "active-border": "#003458", "hover-background": "#348fd7", "active-background": "#076dbd"}, "dropdown": {"color": "#546470", "border": "#ffffff", "background": "#ffffff", "hover-color": "#546470", "active-color": "#546470", "hover-border": "#f1f2f4", "active-border": "#ffffff", "hover-background": "#f1f2f4", "active-background": "#ffffff"}, "secondary": {"color": "#38424b", "border": "#e3e6e9", "background": "#e3e6e9", "hover-color": "#38424b", "active-color": "#38424b", "hover-border": "#f1f2f4", "active-border": "#d5dade", "hover-background": "#f1f2f4", "active-background": "#d5dade"}}, "hyperlink": {"color": "#546470", "hover-color": "#667988", "active-color": "#4b5963"}, "help-center": {"visibility": true}, "consent-text": {"en": "{sender_email} has invited you to fill out and sign this in one place.", "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.", "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."}, "main-background": "#efefef", "welcome-message": {"body-text": {"en": "{sender_email} has invited you to fill out and sign this in one place.", "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.", "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."}, "visibility": true, "header-text": {"en": "Hi, {signer_email}", "es": "Hola, {signer_email}", "fr": "Bonjour, {signer_email}"}}}'
```

---

## GET /v2/organizations/{organization_id}/brands/{brand_id}/resources/general — Get org general brand resource

This endpoint allows API users to retrieve the general resource of an organization brand.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "data": {
    "icons": {
      "color": "#546470",
      "border": "#ffffff",
      "background": "#ffffff",
      "hover-color": "#546470",
      "hover-border": "#f1f2f4",
      "hover-background": "#f1f2f4"
    },
    "texts": {
      "color": "#2f373e"
    },
    "header": {
      "background": "#ffffff"
    },
    "buttons": {
      "default": {
        "color": "#546470",
        "border": "#ffffff",
        "background": "#ffffff",
        "hover-color": "#546470",
        "active-color": "#546470",
        "hover-border": "#f1f2f4",
        "active-border": "#ffffff",
        "hover-background": "#f1f2f4",
        "active-background": "#ffffff"
      },
      "primary": {
        "color": "#ffffff",
        "border": "#0777cf",
        "background": "#0777cf",
        "hover-color": "#ffffff",
        "active-color": "#ffffff",
        "hover-border": "#348fd7",
        "active-border": "#003458",
        "hover-background": "#348fd7",
        "active-background": "#076dbd"
      },
      "dropdown": {
        "color": "#546470",
        "border": "#ffffff",
        "background": "#ffffff",
        "hover-color": "#546470",
        "active-color": "#546470",
        "hover-border": "#f1f2f4",
        "active-border": "#ffffff",
        "hover-background": "#f1f2f4",
        "active-background": "#ffffff"
      },
      "secondary": {
        "color": "#38424b",
        "border": "#e3e6e9",
        "background": "#e3e6e9",
        "hover-color": "#38424b",
        "active-color": "#38424b",
        "hover-border": "#f1f2f4",
        "active-border": "#d5dade",
        "hover-background": "#f1f2f4",
        "active-background": "#d5dade"
      }
    },
    "hyperlink": {
      "color": "#546470",
      "hover-color": "#667988",
      "active-color": "#4b5963"
    },
    "help-center": {
      "visibility": true
    },
    "consent-text": {
      "en": "{sender_email} has invited you to fill out and sign this in one place.",
      "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
      "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
    },
    "main-background": "#efefef",
    "welcome-message": {
      "body-text": {
        "en": "{sender_email} has invited you to fill out and sign this in one place.",
        "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
        "fr": "{sender_email} vous a invit\u00e9 \u00e0 remplir et signer ce document dans un endroit."
      },
      "visibility": true,
      "header-text": {
        "en": "Hi, {signer_email}",
        "es": "Hola, {signer_email}",
        "fr": "Bonjour, {signer_email}"
      }
    }
  }
}
```

### 400

* Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is authorized with a token from an app they don’t own.
* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.

**Example** (`Non-organization brand`)

```json
{
  "errors": [
    {
      "code": 25002030,
      "message": "No access to the brand."
    }
  ]
}
```

**Example** (`User doesn't own the app`)

```json
{
  "errors": [
    {
      "code": 25002001,
      "message": "Brand action not allowed"
    }
  ]
}
```

**Example** (`User not admin or moderator`)

```json
{
  "errors": [
    {
      "code": 25006002,
      "message": "Insufficient organization rights."
    }
  ]
}
```

### 404

* The organization doesn't exist.
* The brand doesn't exist.
* The brand has no general resource.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

**Example** (`General resource not found`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: general."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/general" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/organizations/{organization_id}/brands/{brand_id}/resources/general — Delete org general brand resource

This endpoint allows users to delete a general brand resource for an organization. Only an admin or moderator of the organization can perform this action.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is authorized with a token from an app they don’t own.
* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.


**Example** (`Non-organization brand`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

**Example** (`User not admin or moderator`)

```json
{
  "code": 25006002,
  "message": "Insufficient organization rights."
}
```

### 404

* The organization is not found.
* The brand is not found.
* `brand_id` cannot be null.
* General resource for this `brand_id` doesn't exist.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`brand_id is null`)

```json
{
  "404": "Unable to find a route to match the URI: /v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/general"
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

**Example** (`General resource not found`)

```json
{
  "errors": [
    {
      "code": 25002036,
      "message": "Brand resource not found. Resource name: general."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/general" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/organizations/{organization_id}/brands/{brand_id}/resources/logo — Create org logo brand resource

This endpoint allows users to create a logo brand resource for an organization. Only an admin or moderator of the organization can perform this action.

Accepts .png, .jpeg, .gif, and .bmp file types. Maximum file size per upload is 2 MB.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Form Data Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `logo` | file | Yes | Logo file with image format. |

## Responses

### 204

Success, no content

### 400

* Incorrect or missing token.
* Request without logo.
* Incorrect logo format.
* The logo file is too large.
* Brand resource logo already exists for this `brand_id`.

**Example** (`Logo is missing`)

```json
{
  "code": 25002047,
  "message": "Brand logo is required."
}
```

**Example** (`Incorrect logo format`)

```json
{
  "code": 25002048,
  "message": "The mime type of the file is invalid (\"text/plain\"). Allowed mime types are \"image/x-ms-bmp\", \"image/gif\", \"image/jpeg\", \"image/png\", \"image/bmp\"."
}
```

**Example** (`Logo file is too large`)

```json
{
  "code": 25002051,
  "message": "The file is too large. Allowed maximum size is 2 MB."
}
```

**Example** (`Brand logo already exists`)

```json
{
  "code": 25002050,
  "message": "Brand logo already exists. Resource name: logo."
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is authorized with a token from an app they don’t own.
* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.


**Example** (`Non-organization brand`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User doesn't own the app`)

```json
{
  "code": 25002001,
  "message": "Brand action not allowed"
}
```

**Example** (`User not admin or moderator`)

```json
{
  "code": 25006002,
  "message": "Insufficient organization rights."
}
```

### 404

* The organization is not found.
* The brand is not found.
* `brand_id` cannot be null.

**Example** (`Brand not found`)

```json
{
  "code": 25002016,
  "message": "Brand not found."
}
```

**Example** (`brand_id is null`)

```json
{
  "404": "Unable to find a route to match the URI: /v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/logo"
}
```

**Example** (`Organization not found`)

```json
{
  "code": 25006001,
  "message": "Organization not found."
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/logo" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## GET /v2/organizations/{organization_id}/brands/{brand_id}/resources/logo — Get org logo brand resource

This endpoint allows API users to retrieve the image file of the `logo` brand resource of an organization brand.

**Notes**

* The image is returned in the response body without a `Content-Disposition` header, so a browser displays it instead of downloading it.
* The endpoint also accepts requests without an access token.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 200

The logo image file, returned as uploaded. The content type matches the image, for example `image/png` or `image/jpeg`. SVG files are returned as `image/svg+xml`.

### 403

The brand exists but it is not an organization brand.

**Example** (`Non-organization brand`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

### 404

* The organization is not found.
* The brand is not found.
* `brand_id` cannot be null.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`brand_id is null`)

```json
{
  "404": "Unable to find a route to match the URI: /v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/logo"
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/logo" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/organizations/{organization_id}/brands/{brand_id}/resources/logo — Delete org logo brand resource

This endpoint allows users to delete a logo brand resource for an organization. Only an admin or moderator of the organization can perform this action.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `organization_id` | string | Yes | ID of the organization. Must match the pattern: [a-z0-9]{40}. |
| `brand_id` | string | Yes | ID of the brand. Must match the pattern: [a-z0-9]{40}. |

## Responses

### 204

Success, no content

### 400

Incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 403

* The user is neither admin, nor moderator of the organization.
* The brand exists but it is not an organization brand.

**Example** (`Non-organization brand`)

```json
{
  "code": 25002030,
  "message": "No access to the brand."
}
```

**Example** (`User not admin or moderator`)

```json
{
  "code": 25006002,
  "message": "Insufficient organization rights."
}
```

### 404

* The organization is not found.
* The brand is not found.
* `brand_id` cannot be null.

**Example** (`Brand not found`)

```json
{
  "errors": [
    {
      "code": 25002016,
      "message": "Brand not found."
    }
  ]
}
```

**Example** (`brand_id is null`)

```json
{
  "404": "Unable to find a route to match the URI: /v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/logo"
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 25006001,
      "message": "Organization not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/organizations/{organization_id}/brands/{brand_id}/resources/logo" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /document/{document_id} — Add payment request field

This endpoint allows API users to add a payment request field to a document.

For more information, see the [Request payments guide](/docs/request-payments-guide).

> [!NOTE]
> The payment request field is a text field with a specific validator ID. You can only add one payment request field to your invite.

For payment requests with field values, you must use the following validator IDs:

- `7ef095fd94ce63b670b52b2e83457d59ac796a39` (currency amount format 1) - comma for thousands, dot for decimals. Example: `8,100.00`
- `824085fd04ce63b670b11b2e83457d59ac796a39` (currency amount format 2) - dot for thousands, comma for decimals. Example: `8.100,00`

> [!NOTE]
> To request payment from the recipient, you have to [connect to the payment service](/docs/request-payments/operations/post-organizations-org-id-merchantaccount) and send a [signature invite with a payment request](/docs/request-payments/operations/post-document-document-id-invite). The recipient will be asked to pay the amount you specified once they’ve completed the document.

<details>
<summary>Use additional attributes to customize the payment request field</summary>

| Parameter | Description | Example |
| --- | --- | --- |
| `type` | Field type. For the payment request field, the `type` is `text`. |<img src="/reference-assets/images/Request_payments/payment_field_type_name.png" alt="Payment field type"> |
| `name` | Name of the payment field. | See the screenshot above.  |
| `validator_id` | A string that adds format validation. To use the field for the payment request, you must use the following validators: `7ef095fd94ce63b670b52b2e83457d59ac796a39` (currency amount format 1) - comma for thousands, dot for decimals. Example: `8,100.00`; `824085fd04ce63b670b11b2e83457d59ac796a39` (currency amount format 2) - dot for thousands, comma for decimals. Example: `8.100,00`. | <img src="/reference-assets/images/Request_payments/validator_payment_field.png" alt="Validator ID"> |

</details>

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | Document ID. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "fields"
  ],
  "properties": {
    "fields": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "x",
          "y",
          "width",
          "height",
          "type",
          "role"
        ],
        "properties": {
          "x": {
            "type": "number",
            "example": 358,
            "description": "A horizontal position of the field in pixels."
          },
          "y": {
            "type": "number",
            "example": 171,
            "description": "A vertical position of the field in pixels."
          },
          "name": {
            "type": "string",
            "example": "payment_field",
            "minLength": 1,
            "description": "A unique field name."
          },
          "role": {
            "type": "string",
            "example": "Signer 1",
            "minLength": 1,
            "description": "Recipient role assigned to the field."
          },
          "type": {
            "type": "string",
            "example": "text",
            "minLength": 1,
            "description": "Field type. For the payment request field, the `type` is `text`."
          },
          "width": {
            "type": "number",
            "example": 177,
            "description": "Field width in pixels."
          },
          "height": {
            "type": "number",
            "example": 50,
            "description": "Field height in pixels."
          },
          "required": {
            "type": "boolean",
            "description": "Indicates whether the field is required. The field **must** be set to required to use it for the payment request.\n\n"
          },
          "page_number": {
            "type": "number",
            "example": 0,
            "description": "The page number where the field will be placed. Page numbering starts at 0 (corresponding to page 1)."
          },
          "validator_id": {
            "type": "string",
            "example": "7ef095fd94ce63b670b52b2e83457d59ac796a39",
            "minLength": 1,
            "description": "A string that adds format validation. To use the field for the payment request, you **must** use the following validators:\n`7ef095fd94ce63b670b52b2e83457d59ac796a39` (currency amount format 1) - comma for thousands, dot for decimals. Example: `8,100.00`;\n`824085fd04ce63b670b11b2e83457d59ac796a39` (currency amount format 2) - dot for thousands, comma for decimals. Example: `8.100,00`\n"
          },
          "prefilled_text": {
            "type": "string",
            "example": "8100",
            "description": "The amount in the specified format shown in the field when the signer opens the document. For the payment request field, only numbers should be used.\n\n",
            "x-stoplight": {
              "id": "u1mhkit828rse"
            }
          }
        }
      },
      "minItems": 1,
      "description": "Array of field objects to add to the document.",
      "uniqueItems": true
    }
  },
  "x-examples": {
    "example-1": {
      "fields": [
        {
          "x": 358,
          "y": 171,
          "name": "signature1",
          "role": "Signer 1",
          "type": "text",
          "width": 177,
          "height": 50,
          "required": true,
          "page_number": 0,
          "validator_id": "{{number_validator_id}}",
          "custom_defined_option": false
        }
      ],
      "elements": [],
      "client_timestamp": "timestamp"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "fields": [
    {
      "x": 358,
      "y": 171,
      "name": "payment_field",
      "role": "Signer 1",
      "type": "text",
      "width": 177,
      "height": 50,
      "required": true,
      "page_number": 0,
      "validator_id": "7ef095fd94ce63b670b52b2e83457d59ac796a39",
      "prefilled_text": "8100"
    }
  ]
}
```

## Responses

### 200

Returns ID of the updated document with a payment request field in case of successful response.

**Example** (`Successful response`)

```json
{
  "id": "15ceb2c99d3b8ac562cc7cc85d6924b579d1ce13",
  "lines": [],
  "texts": [],
  "checks": [],
  "hyperlinks": [],
  "signatures": [],
  "attachments": [],
  "radiobuttons": []
}
```

### 400

* Wrong, expired, or missing token.
* The document doesn't exist.
* The document belongs to another user.
* The request body isn't valid JSON.
* `fields` isn't an array.
* A field has no `type` or an unsupported `type`.
* A required field property, such as `role` or `x`, is missing.
* `page_number` points to a page the document doesn't have.
* `validator_id` doesn't match any validator.
* `prefilled_text` doesn't match the field's validator.
* A coordinate or size is out of range, for example `x` is less than `0` or `width` is less than `1`.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Missing role`)

```json
{
  "errors": [
    {
      "code": 69632,
      "message": "Role must not be empty"
    }
  ]
}
```

**Example** (`Missing type`)

```json
{
  "errors": [
    {
      "code": 65652,
      "message": "Type cannot be empty"
    }
  ]
}
```

**Example** (`Not the owner`)

```json
{
  "errors": [
    {
      "code": 65610,
      "message": "not writable"
    }
  ]
}
```

**Example** (`x out of range`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "X must not be less then 0."
    }
  ]
}
```

**Example** (`Invalid payload`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid payload"
    }
  ]
}
```

**Example** (`Unsupported type`)

```json
{
  "errors": [
    {
      "code": 65652,
      "message": "Type does not exist. Available types: signature, text, enumeration, radiobutton, checkbox, initials, attachment, hyperlink, stamp"
    }
  ]
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document not found"
    }
  ]
}
```

**Example** (`Page doesn't exist`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Adding fields to a non-existent page"
    }
  ]
}
```

**Example** (`Wrong validator_id`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Invalid Regex validator provided in field_data"
    }
  ]
}
```

**Example** (`fields not an array`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Fields must be an array."
    }
  ]
}
```

**Example** (`prefilled_text doesn't match validator`)

```json
{
  "errors": [
    {
      "code": 65586,
      "message": "RegEx validation failed for the text : abc"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/document/{document_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"fields": [{"x": 358, "y": 171, "name": "payment_field", "role": "Signer 1", "type": "text", "width": 177, "height": 50, "required": true, "page_number": 0, "validator_id": "7ef095fd94ce63b670b52b2e83457d59ac796a39", "prefilled_text": "8100"}]}'
```

---

## POST /document/{document_id}/invite — Send document invite with payment request

This endpoint allows API users to send a document invite with a payment request. Recipients will be redirected to the payment page after completing the documents.

For more information, see the [Request payments guide](/docs/request-payments-guide).

> [!NOTE]
> To request a payment, users must either connect to the payment service individually or accept an invitation to an organization already connected to the payment service.

- To invite a user to an organization, see [Add members](/docs/organization/operations/post-v2-organizations-org-id-members). 

- To accept an invitation to an organization, the user can click the link they receive, or see [Accept invite to organization](/docs/organization/operations/post-v2-organizations-org-id-members-user-id-accept).

- To connect your organization to the payment service, see [Connect to merchant account](/docs/request-payments/operations/post-organizations-org-id-merchantaccount).

A payment request can be linked to a specific field (`calculated` type) or set as a fixed amount (`fixed`type).

This article lists only the parameters required for a payment request. For other field invite parameters, see [Send field invite](/docs/document-field-invite/operations/post-document-doc-id-invite).


<details>
<summary>Use additional attributes to customize the request</summary>

| Parameter | Description | Example |
| --- | --- | --- |
| `field_type` | Type of the field that sets the payment amount. Required if the request `type` is `calculated`. For a payment request invite, `filed_type` is `text_fields`. |<img src="/reference-assets/images/Request_payments/payment_request_field_name_type.png" alt="Field type"> |
| `field_name` | Name of the field that sets the payment amount. Used if the `type` is `calculated`. Can be found in the [Get document response](/docs/document/operations/get-document) (fields.name). | See the screenshot above.  |
| `type` | Defines how the payment amount is set. Allowed values: `fixed` (the amount is set in the amount field) and `calculated` (set using a document field).<br><br> Learn how to [add a payment request field](/docs/request-payments/operations/put-document-document-id). |<img src="/reference-assets/images/Request_payments/payment_request_type.png" alt="Payment type"> |
| `currency` | Payment currency in ISO format. |<img src="/reference-assets/images/Request_payments/payment_request_amount_currency.png" alt="Currency"> |
| `amount` | Amount of payment. Required if `type` is 'fixed'. | See the screenshot above. |

</details>

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | Document ID. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "to",
    "from"
  ],
  "properties": {
    "to": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "email",
          "role"
        ],
        "properties": {
          "role": {
            "type": "string",
            "example": "Recipient 1",
            "description": "Recipient's role. Can be found in the response to [Get document](/docs/document/operations/get-document) request (roles.name)."
          },
          "email": {
            "type": "string",
            "example": "signer@email.com",
            "description": "Recipient's email address."
          },
          "payment_request": {
            "type": "object",
            "required": [
              "type",
              "currency",
              "merchants"
            ],
            "properties": {
              "type": {
                "type": "string",
                "example": "calculated",
                "description": "Defines how the payment amount is set. Possible values: `fixed` (the payment amount is set in the amount field) and `calculated` (the payment amount is set using a document field)."
              },
              "amount": {
                "type": "string",
                "example": "1000",
                "description": "Payment amount. Required if `type` is `fixed`.",
                "x-stoplight": {
                  "id": "ai5r848z73xpb"
                }
              },
              "currency": {
                "type": "string",
                "example": "USD",
                "description": "Payment currency in ISO format."
              },
              "field_id": {
                "type": "string",
                "example": "6d1511309f7f4d80b4df8e19a804d58846504000",
                "description": "ID of the field that sets the payment amount. Required if the request `type` is `calculated`. Can be found in the [Get document](/docs/document/operations/get-document) response (fields.id)."
              },
              "merchants": {
                "type": "array",
                "items": {
                  "type": "string",
                  "example": "44bdae1e20624166b8073b58560066fc68440000"
                },
                "description": "IDs of connected payment service accounts. Found in the [Get user](/docs/user/operations/get-user-info) response and [Get merchant account](/docs/request-payments/operations/get-organizations-org-id-merchantaccount-merchant-account-id) response."
              },
              "field_name": {
                "type": "string",
                "example": "payment_field",
                "description": "Name of the field that sets the payment amount. Used if the `type` is `calculated`. Can be found in the [Get document](/docs/document/operations/get-document) response (fields.name)."
              },
              "field_type": {
                "type": "string",
                "example": "text_fields",
                "description": "Type of the field that sets the payment amount. Required if the request `type` is `calculated`. Allowed value is `text_fields`.\n"
              }
            },
            "description": "Payment request details."
          }
        }
      },
      "description": "An array of objects with email addresses and settings for all recipients."
    },
    "from": {
      "type": "string",
      "example": "sender@email.com",
      "description": "Sender's email address."
    }
  },
  "x-examples": {
    "Example 1": {
      "to": [
        {
          "role": "Signer 1",
          "email": "signer@email.com",
          "order": 1,
          "role_id": "dc594a43ed1d43b3abe4f50302420df507119111",
          "payment_request": {
            "type": "calculated",
            "currency": "USD",
            "field_id": "6d1511309f7f4d80b4df8e19a804d58846504000",
            "merchants": [
              "44bdae1e20624166b8073b58560066fc68440000",
              "e314905b9fa546f999013bf2551225f4e0190000"
            ],
            "field_name": "payment_field",
            "field_type": "text_fields"
          }
        }
      ],
      "from": "sender@email.com",
      "document_id": "2274bf62786844e981584543275cdc0c88d67d45"
    }
  }
}
```

**Example** (`Fixed amount`)

```json
{
  "to": [
    {
      "role": "Signer 1",
      "email": "signer@email.com",
      "payment_request": {
        "type": "fixed",
        "amount": "1000",
        "currency": "USD",
        "merchants": [
          "4bdae1e20624166b8073b58560066fc68440000",
          "e314905b9fa546f999013bf2551225f4e0190000"
        ]
      }
    }
  ],
  "from": "sender@email.com"
}
```

**Example** (`Calculated amount`)

```json
{
  "to": [
    {
      "role": "Signer 1",
      "email": "signer@email.com",
      "order": 1,
      "payment_request": {
        "type": "calculated",
        "currency": "USD",
        "field_id": "6d1511309f7f4d80b4df8e19a804d58846504000",
        "merchants": [
          "44bdae1e20624166b8073b58560066fc68440000",
          "e314905b9fa546f999013bf2551225f4e0190000"
        ],
        "field_name": "payment_field",
        "field_type": "text_fields"
      }
    }
  ],
  "from": "sender@email.com"
}
```

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "status": "success"
}
```

### 400

- `field_id` is empty or missing. 
- `field_type` is missing or incorrect.
- `amount` is empty or missing.
- `currency` is missing.
- `type` is missing.
- `merchants` is empty.
- Merchant ID is incorrect.

**Example** (`Merchants empty`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Required at least one merchant account in payment request"
    }
  ]
}
```

**Example** (`currency missing`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Must provide currency type for payments"
    }
  ]
}
```

**Example** (`Merchant ID incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid merchant_id in payment_field_request"
    }
  ]
}
```

**Example** (`amount empty or missing`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "For fixed payment types, please enter non zero amount"
    }
  ]
}
```

**Example** (`field_id empty or missing`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid field id provided"
    }
  ]
}
```

**Example** (`field_type missing or incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid field type, valid types are: text_fields"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/document/{document_id}/invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"to": [{"role": "Signer 1", "email": "signer@email.com", "payment_request": {"type": "fixed", "amount": "1000", "currency": "USD", "merchants": ["4bdae1e20624166b8073b58560066fc68440000", "e314905b9fa546f999013bf2551225f4e0190000"]}}], "from": "sender@email.com"}'
```

---

## POST /documentgroup/{group_id}/groupinvite — Send doc group invite with payment request

This endpoint allows API users to send a document group invite with a payment request. Recipients will be redirected to the payment page after completing the documents.

For more information, see the [Request payments guide](/docs/request-payments-guide).

> [!NOTE]
> To request a payment, users must either connect to the payment service individually or accept an invitation to an organization already connected to the payment service.

- To connect your organization to the payment service, see [Connect to merchant account](/docs/request-payments/operations/post-organizations-org-id-merchantaccount).

- To connect a personal SignNow account to the payment service, see [Connect to personal merchant account](/docs/request-payments/operations/post-v2-merchant-accounts).

A payment request can be linked to a specific field (`calculated` type) or set as a fixed amount (`fixed`type).

This article lists only the parameters required for a payment request. For other document group invite parameters, see [Invite to sign doc group](/docs/doc-group-field-invite/operations/invite-to-sign-document-group).


<details>
<summary>Use additional attributes to customize the request</summary>

| Parameter | Description | Example |
| --- | --- | --- |
| `field_type` | Type of the field that sets the payment amount. Required if the request `type` is `calculated`. For a payment request invite, `filed_type` is `text_fields`. |<img src="/reference-assets/images/Request_payments/payment_request_field_name_type.png" alt="Field type"> |
| `field_name` | Name of the field that sets the payment amount. Used if the `type` is `calculated`. Can be found in the [Get document response](/docs/document/operations/get-document) (fields.name). | See the screenshot above.  |
| `type` | Defines how the payment amount is set. Allowed values: `fixed` (the amount is set in the amount field) and `calculated` (set using a document field).<br><br> Learn how to [add a payment request field](/docs/request-payments/operations/put-document-document-id). |<img src="/reference-assets/images/Request_payments/payment_request_type.png" alt="Payment type"> |
| `currency` | Payment currency in ISO format. |<img src="/reference-assets/images/Request_payments/payment_request_amount_currency.png" alt="Currency"> |
| `amount` | Amount of payment. Required if `type` is 'fixed'. | See the screenshot above. |

</details>

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `group_id` | string | Yes | ID of the document group. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "invite_steps"
  ],
  "properties": {
    "invite_steps": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "order",
          "invite_actions"
        ],
        "properties": {
          "order": {
            "type": "integer",
            "example": 1,
            "description": "Signing order step. All signers assigned to a specific order step (e.g., order: 1) receive the invite email simultaneously. Emails for the next order step (e.g., order: 2) are sent only after all actions in the previous order step are completed."
          },
          "invite_emails": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "email"
              ],
              "properties": {
                "email": {
                  "type": "string",
                  "example": "signer@email.com",
                  "description": "Recipient email address."
                }
              }
            },
            "description": "An array of recipient emails within this step."
          },
          "invite_actions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string",
                  "example": "signer@email.com",
                  "description": "Recipient email address."
                },
                "action": {
                  "enum": [
                    "sign",
                    "view",
                    "approve"
                  ],
                  "type": "string",
                  "example": "sign",
                  "description": "The action required from the recipient in the document. Allowed values: `sign`, `view`, `approve`."
                },
                "role_name": {
                  "type": "string",
                  "example": "Signer",
                  "description": "Recipient role name."
                },
                "document_id": {
                  "type": "string",
                  "example": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye",
                  "description": "ID of the document on which the action is required."
                },
                "payment_request": {
                  "type": "object",
                  "required": [
                    "type",
                    "currency",
                    "merchants",
                    "field_type",
                    "field_id",
                    "amount"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "fixed",
                      "description": "The type of the payment request. Allowed values: `fixed`, `calculated`."
                    },
                    "amount": {
                      "type": "string",
                      "example": "1000",
                      "description": "Payment amount. Required for the `fixed` payment type."
                    },
                    "currency": {
                      "type": "string",
                      "example": "USD",
                      "description": "Payment currency in ISO format."
                    },
                    "field_id": {
                      "type": "string",
                      "example": "eb1dc1e1946f47cd87fa4a63664803bddbazzzz",
                      "description": "The ID of the field that defines the payment amount. Required for the `calculated` payment type. Can be found in the\u00a0[Get document](/docs/document/operations/get-document)\u00a0response."
                    },
                    "merchants": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "IDs of connected payment service accounts. Can be found in the [Get merchant account](/docs/request-payments/operations/get-organizations-org-id-merchantaccount-merchant-account-id)\u00a0response."
                    },
                    "field_name": {
                      "type": "string",
                      "example": "payment_field",
                      "description": "The name of the field that defines the payment amount. Used for the `calculated` payment type. Can be found in the\u00a0[Get document](/docs/document/operations/get-document)\u00a0response."
                    },
                    "field_type": {
                      "type": "string",
                      "example": "text_fields",
                      "description": "The field type that defines the payment amount. Required for the `calculated` payment type. Allowed value is\u00a0`text_fields`."
                    }
                  },
                  "description": "An object with the payment request configuration."
                }
              }
            },
            "description": "An array of objects, where each object defines a recipient, their role, and the corresponding action for a document."
          }
        }
      },
      "description": "Steps of the document group invite. Every step contains the `order` number, `invite_emails` and `invite_actions` within this step."
    }
  },
  "x-examples": {
    "Example 1": {
      "invite_steps": [
        {
          "order": 1,
          "invite_emails": [
            {
              "email": "seller@email.com"
            }
          ],
          "invite_actions": [
            {
              "email": "seller@email.com",
              "action": "sign",
              "role_name": "Seller",
              "document_id": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye",
              "payment_request": {
                "type": "calculated",
                "currency": "USD",
                "field_id": "eb1dc1e1946f47cd87fa4a63664803bddbazzzz",
                "merchants": [
                  "5ef7e3853f4a4624a037d90d20513a195937dxxx"
                ],
                "field_name": "payment_buyer",
                "field_type": "text_fields"
              }
            }
          ]
        },
        {
          "order": 2,
          "invite_emails": [
            {
              "email": "buyer@email.com"
            }
          ],
          "invite_actions": [
            {
              "email": "buyer@email.com",
              "action": "sign",
              "role_name": "Buyer",
              "document_id": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye",
              "payment_request": {
                "type": "fixed",
                "amount": "1000",
                "currency": "USD",
                "merchants": [
                  "yyyye3853f4a4624a037d90d20513a195937dxxx"
                ]
              }
            }
          ]
        }
      ]
    }
  }
}
```

**Example** (`Request with `fixed` payment type`)

```json
{
  "invite_steps": [
    {
      "order": 1,
      "invite_emails": [
        {
          "email": "seller@email.com"
        }
      ],
      "invite_actions": [
        {
          "email": "seller@email.com",
          "action": "sign",
          "role_name": "Seller",
          "document_id": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye"
        }
      ]
    },
    {
      "order": 2,
      "invite_emails": [
        {
          "email": "buyer@email.com"
        }
      ],
      "invite_actions": [
        {
          "email": "buyer@email.com",
          "action": "sign",
          "role_name": "Buyer",
          "document_id": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye",
          "payment_request": {
            "type": "fixed",
            "amount": "1000",
            "currency": "USD",
            "merchants": [
              "5ef7e3853f4a4624a037d90d20513a195937dxxx"
            ]
          }
        }
      ]
    }
  ]
}
```

**Example** (`Request with `calculated` payment type`)

```json
{
  "invite_steps": [
    {
      "order": 1,
      "invite_emails": [
        {
          "email": "seller@email.com"
        }
      ],
      "invite_actions": [
        {
          "email": "seller@email.com",
          "action": "sign",
          "role_name": "Seller",
          "document_id": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye"
        }
      ]
    },
    {
      "order": 2,
      "invite_emails": [
        {
          "email": "buyer@email.com"
        }
      ],
      "invite_actions": [
        {
          "email": "buyer@email.com",
          "action": "sign",
          "role_name": "Buyer",
          "document_id": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye",
          "payment_request": {
            "type": "calculated",
            "currency": "USD",
            "field_id": "eb1dc1e1946f47cd87fa4a63664803bddba6fff",
            "merchants": [
              "5ef7e3853f4a4624a037d90d20513a195937dxxx"
            ],
            "field_name": "payment_buyer",
            "field_type": "text_fields"
          }
        }
      ]
    }
  ]
}
```

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "id": "XXXXe0ea656944f3b833d0baeb1067f02490YYYY",
  "pending_invite_link": null
}
```

### 400

- `field_id` is empty or missing. 
- `field_type` is missing or incorrect.
- `amount` is empty or missing.
- `currency` is missing.
- `type` is missing.
- `merchants` is empty.
- Merchant ID is incorrect.

**Example** (`Merchants empty`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Required at least one merchant account in payment request"
    }
  ]
}
```

**Example** (`currency missing`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Must provide currency type for payments"
    }
  ]
}
```

**Example** (`Merchant ID incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid merchant_id in payment_field_request"
    }
  ]
}
```

**Example** (`amount empty or missing`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "For fixed payment types, please enter non zero amount"
    }
  ]
}
```

**Example** (`field_id empty or missing`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid field id provided"
    }
  ]
}
```

**Example** (`field_type missing or incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid field type, valid types are: text_fields"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/documentgroup/{group_id}/groupinvite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"invite_steps": [{"order": 1, "invite_emails": [{"email": "seller@email.com"}], "invite_actions": [{"email": "seller@email.com", "action": "sign", "role_name": "Seller", "document_id": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye"}]}, {"order": 2, "invite_emails": [{"email": "buyer@email.com"}], "invite_actions": [{"email": "buyer@email.com", "action": "sign", "role_name": "Buyer", "document_id": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye", "payment_request": {"type": "fixed", "amount": "1000", "currency": "USD", "merchants": ["5ef7e3853f4a4624a037d90d20513a195937dxxx"]}}]}]}'
```

---

## POST /v2/merchant-accounts — Connect to personal merchant account

This endpoint allows API users to connect their personal SignNow account to the payment service.

For more information, see the [Request payments guide](/docs/request-payments-guide).

Currently, users can connect to Stripe and Stripe Connect. To receive payments, you'll need a valid payment system account.

<details>
<summary>Use additional attributes to customize the request</summary>

| Parameter | Description | Example |
| --- | --- | --- |
| `display_credit_card_form` | Boolean indicating whether to display the credit card form by Stripe to the recipient. Must be `true` if `account_type` is `Stripe`. | <img src="/reference-assets/images/Request_payments/payment_form_card.png" alt="Make Payment dialog with the credit card form">  |


</details>

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "account_name",
    "account_type"
  ],
  "properties": {
    "currency": {
      "type": "string",
      "default": "USD",
      "example": "USD",
      "description": "The currency used for recipient transactions."
    },
    "secure_key": {
      "type": "string",
      "example": "sk_yyyy_yyyyyjcpCb9qbdk8IMXNyyyy",
      "description": "Secure API key (secret) given by Stripe. Required if `account_type` is `Stripe`."
    },
    "account_name": {
      "type": "string",
      "example": "My Stripe",
      "description": "Name of the new merchant account."
    },
    "account_type": {
      "type": "string",
      "example": "Stripe",
      "description": "The type of payment service. Allowed values: `Stripe`, `StripeConnect`."
    },
    "publishable_key": {
      "type": "string",
      "example": "pk_xxxx_xxxxxGDlOVChs1OowXjAiYYY",
      "description": "Publishable API key given by Stripe. Required if `account_type` is `Stripe`."
    },
    "display_ach_form": {
      "type": "boolean",
      "description": "Deprecated. Boolean indicating whether to display the ACH payment form by Stripe. If `account_type` is `Stripe`, the only accepted value is `false`. Omit this parameter."
    },
    "display_credit_card_form": {
      "type": "boolean",
      "description": "Boolean indicating whether to display the credit card form by Stripe. Required if `account_type` is `Stripe`, and the only accepted value is `true`. Other account types ignore this parameter."
    }
  },
  "x-examples": {
    "Example 1": {
      "currency": "USD",
      "secure_key": "sk_yyyy_yyyyyjcpCb9qbdk8IMXNyyyy",
      "account_name": "My Stripe",
      "account_type": "Stripe",
      "publishable_key": "pk_xxxx_xxxxxGDlOVChs1OowXjAiYYY",
      "display_credit_card_form": true
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "currency": "USD",
  "secure_key": "sk_yyyy_0vkrljcpCb9qbdk8IMXNyyyy",
  "account_name": "My Stripe",
  "account_type": "Stripe",
  "publishable_key": "pk_xxxx_y16i7GDlOVChs1OowXjAiYYY",
  "display_credit_card_form": true
}
```

## Responses

### 201

Successful response.

**Example** (`Successful response`)

```json
{
  "data": {
    "id": "1b0f204a3bc9566a936ea510f2bb70cd7e7cf277"
  }
}
```

### 400

- `account_type` is incorrect or empty.
- `account_name` is empty.
- `publishable_key` is empty.
- `secure_key` is empty.
- `account_type` is `Stripe` and `display_ach_form` is `true`.
- `account_type` is `Stripe` and `display_credit_card_form` is `false`.

**Example** (`secure_key empty`)

```json
{
  "errors": [
    {
      "code": 29004007,
      "message": "Secure key is empty."
    }
  ]
}
```

**Example** (`account_name empty`)

```json
{
  "errors": [
    {
      "code": 29004001,
      "message": "Account name is required."
    }
  ]
}
```

**Example** (`publishable_key empty`)

```json
{
  "errors": [
    {
      "code": 29004004,
      "message": "Publishable key is empty."
    }
  ]
}
```

**Example** (`account_type incorrect or empty`)

```json
{
  "errors": [
    {
      "code": 29004017,
      "message": "Parameter `account_type` is required and must be one of: Stripe, StripeConnect, PayPal."
    }
  ]
}
```

**Example** (`ACH form enabled, card form disabled`)

```json
{
  "errors": [
    {
      "code": 13048046,
      "message": "Parameter `display_ach_form` must be false for `Stripe`"
    },
    {
      "code": 13048047,
      "message": "Parameter `display_credit_card_form` must be true for `Stripe`"
    }
  ]
}
```

### 403

Too many active accounts.

**Example** (`Too many active accounts`)

```json
{
  "errors": [
    {
      "code": 132,
      "message": "Forbidden to create multiple active accounts of the same type."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/merchant-accounts" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"currency": "USD", "secure_key": "sk_yyyy_0vkrljcpCb9qbdk8IMXNyyyy", "account_name": "My Stripe", "account_type": "Stripe", "publishable_key": "pk_xxxx_y16i7GDlOVChs1OowXjAiYYY", "display_credit_card_form": true}'
```

---

## GET /v2/merchant-accounts/{merchant_account_id} — Get personal merchant account

This endpoint allows API users to retrieve details about their connected payment account(s).

For more information, see the [Request payments guide](/docs/request-payments-guide).

If you use the request without `merchant_account_id`, you will retrieve all connected payment accounts for the user.



## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `merchant_account_id` | string | Yes | ID of the connected payment account. |

## Responses

### 200

Returns details of the connected payment account in case of successful response.

**Example** (`Successful response`)

```json
{
  "data": {
    "id": "64a4fcbb1e839788fcaabf14a16d1cd1cb979e84",
    "active": true,
    "created": 1761755047,
    "updated": 1761755047,
    "currency": "USD",
    "secure_key": "********yyyy",
    "entity_type": "user",
    "currency_name": "US Dollar",
    "merchant_type": "Stripe",
    "publishable_key": "********iYYY",
    "display_ach_form": false,
    "merchant_account_name": "Stripe 1",
    "display_credit_card_form": true
  }
}
```

### 400

* Wrong, expired, or missing token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

### 404

The merchant account doesn't exist or isn't connected to the user's account.

**Example** (`Account not found`)

```json
{
  "errors": [
    {
      "message": "Merchant account `0d4ad4b1d6a64bf6a8e8b7f0e2f5b5ac0c1f9e3d` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/merchant-accounts/{merchant_account_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/merchant-accounts/{merchant_account_id} — Delete personal merchant account

This endpoint allows API users to disconnect their payment account.

For more information, see the [Request payments guide](/docs/request-payments-guide).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `merchant_account_id` | string | Yes | ID of the connected payment account. |

## Responses

### 204

No content

### 404

User account not found.

**Example** (`Account not found`)

```json
{
  "errors": [
    {
      "message": "User merchant account `xxxxe3853f4a4624a037d90d20513a195937yyyy` is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/merchant-accounts/{merchant_account_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /organizations/{org_id}/merchantaccount — Connect to merchant account

This endpoint allows API users to connect a SignNow organization to a payment service.

For more information, see the [Request payments guide](/docs/request-payments-guide).

Currently, the organization can be connected to Stripe and Stripe Connect. To receive payments, you'll need a valid payment system account.

> [!NOTE]
> An organization is limited to one active account per payment service. The connected payment service will apply to all organization members by default.

<details>
<summary>Use additional attributes to customize the request</summary>

| Parameter | Description | Example |
| --- | --- | --- |
| `display_credit_card_form` | Boolean indicating whether to display the credit card form by Stripe to the recipient. Must be `true` if `account_type` is `Stripe`. | <img src="/reference-assets/images/Request_payments/payment_form_card.png" alt="Make Payment dialog with the credit card form">  |


</details>

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the requested organization. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "account_name",
    "account_type"
  ],
  "properties": {
    "currency": {
      "type": "string",
      "default": "USD",
      "example": "USD",
      "description": "The currency used for recipient transactions."
    },
    "secure_key": {
      "type": "string",
      "example": "sk_yyyy_0vkrljcpCb9qbdk8IMXNyyyy",
      "description": "Secure API key (secret) given by Stripe. Required if `account_type` is `Stripe`."
    },
    "account_name": {
      "type": "string",
      "example": "My Stripe",
      "description": "Name of the new merchant account."
    },
    "account_type": {
      "type": "string",
      "example": "Stripe",
      "description": "The type of payment service. Allowed values: `Stripe`, `StripeConnect`."
    },
    "publishable_key": {
      "type": "string",
      "example": "pk_xxxx_y16i7GDlOVChs1OowXjAiYYY",
      "description": "Publishable API key given by Stripe. Required if `account_type` is `Stripe`."
    },
    "display_ach_form": {
      "type": "boolean",
      "description": "Deprecated. Boolean indicating whether to display the ACH payment form by Stripe. If `account_type` is `Stripe`, the only accepted value is `false`. Omit this parameter."
    },
    "display_credit_card_form": {
      "type": "boolean",
      "description": "Boolean indicating whether to display the credit card form by Stripe. Required if `account_type` is `Stripe`, and the only accepted value is `true`. Other account types ignore this parameter."
    }
  },
  "x-examples": {
    "Example 1": {
      "currency": "USD",
      "secure_key": "sk_yyyy_0vkrljcpCb9qbdk8IMXNyyyy",
      "account_name": "My Stripe",
      "account_type": "Stripe",
      "publishable_key": "pk_xxxx_y16i7GDlOVChs1OowXjAiYYY",
      "display_credit_card_form": true
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "currency": "USD",
  "secure_key": "sk_yyyy_0vkrljcpCb9qbdk8IMXNyyyy",
  "account_name": "My Stripe",
  "account_type": "Stripe",
  "publishable_key": "pk_xxxx_y16i7GDlOVChs1OowXjAiYYY",
  "display_credit_card_form": true
}
```

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "id": "5f793dfe081e4bf7a3dd25d245cdff1bebe3a188"
}
```

### 400

- `account_type` is incorrect or empty.
- `account_name` is empty.
- `publishable_key` is empty.
- `secure_key` is empty.
- `account_type` is `Stripe` and `display_ach_form` is `true`.
- `account_type` is `Stripe` and `display_credit_card_form` is `false`.

**Example** (`secure_key empty`)

```json
{
  "errors": [
    {
      "code": 29004007,
      "message": "Secure key is empty."
    }
  ]
}
```

**Example** (`account_name empty`)

```json
{
  "errors": [
    {
      "code": 29004001,
      "message": "Account name is required."
    }
  ]
}
```

**Example** (`publishable_key empty`)

```json
{
  "errors": [
    {
      "code": 29004004,
      "message": "Publishable key is empty."
    }
  ]
}
```

**Example** (`account_type incorrect or empty`)

```json
{
  "errors": [
    {
      "code": 29004017,
      "message": "Parameter `account_type` is required and must be one of: Stripe, StripeConnect, PayPal."
    }
  ]
}
```

**Example** (`ACH form enabled, card form disabled`)

```json
{
  "errors": [
    {
      "code": 29004024,
      "message": "Display ACH form must be false"
    },
    {
      "code": 29004025,
      "message": "Display credit card form must be true"
    }
  ]
}
```

### 403

The organization has too many active accounts.

**Example** (`The organization has too many active accounts`)

```json
{
  "errors": [
    {
      "code": 132,
      "message": "Forbidden to create multiple active accounts of the same type."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/organizations/{org_id}/merchantaccount" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"currency": "USD", "secure_key": "sk_yyyy_0vkrljcpCb9qbdk8IMXNyyyy", "account_name": "My Stripe", "account_type": "Stripe", "publishable_key": "pk_xxxx_y16i7GDlOVChs1OowXjAiYYY", "display_credit_card_form": true}'
```

---

## GET /organizations/{org_id}/merchantaccount/{merchant_account_id} — Get merchant account

This endpoint allows API users to retrieve details of all payment accounts within a specific organization. Use the payment account ID to retrieve details of a specific account.

For more information, see the [Request payments guide](/docs/request-payments-guide).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the requested organization. |
| `merchant_account_id` | string | Yes | The account ID of merchant account(s) to get details for. |

## Responses

### 200

Returns details of the organization payment account(s) in case of successful response.

**Example** (`Successful response`)

```json
{
  "id": "5ef7e3853f4a4624a037d90d20513a195937d255",
  "currency": "USD",
  "secure_key": "sk_yyyy_0vkrljcpCb9qbdk8IMXNyyyy",
  "account_name": "My Stripe",
  "currency_name": "US Dollar",
  "merchant_type": "Stripe",
  "publishable_key": "pk_xxxx_y16i7GDlOVChs1OowXjAiYYY",
  "display_ach_form": false,
  "merchant_account_id": "Stripe",
  "display_credit_card_form": true
}
```

### 400

* Wrong, expired, or missing token.
* The organization doesn't exist.
* The user isn't an admin of the organization.
* The merchant account doesn't exist in the organization.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 29005001,
      "message": "Organization not found"
    }
  ]
}
```

**Example** (`Not an organization admin`)

```json
{
  "errors": [
    {
      "code": 7,
      "message": "Not allowed"
    }
  ]
}
```

**Example** (`Merchant account not found`)

```json
{
  "errors": [
    {
      "code": 46,
      "message": "Merchant account not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/organizations/{org_id}/merchantaccount/{merchant_account_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /organizations/{org_id}/merchantaccount/{merchant_account_id} — Delete merchant account

This endpoint allows API users to delete an organization's merchant account.

For more information, see the [Request payments guide](/docs/request-payments-guide).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `org_id` | string | Yes | ID of the requested organization. |
| `merchant_account_id` | string | Yes | ID of the merchant account to delete. |

## Responses

### 200

Returns successful status in case of successful response.

**Example** (`Successful response`)

```json
{
  "status": "success"
}
```

### 400

* Wrong, expired, or missing token.
* The organization doesn't exist.
* The user isn't an admin of the organization.
* The merchant account doesn't exist in the organization.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Organization not found`)

```json
{
  "errors": [
    {
      "code": 29005001,
      "message": "Organization not found"
    }
  ]
}
```

**Example** (`Not an organization admin`)

```json
{
  "errors": [
    {
      "code": 7,
      "message": "Not allowed"
    }
  ]
}
```

**Example** (`Merchant account not found`)

```json
{
  "errors": [
    {
      "code": 46,
      "message": "Merchant account not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/organizations/{org_id}/merchantaccount/{merchant_account_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /documentgroup/{document_group_id}/scheduled-invite — Create scheduled invite

This endpoint allows API users to create a scheduled document group invite. At the moment specified by `scheduled_timestamp`, the invite is sent to recipients automatically. Both freeform invite and field invite can be sent.

**Notes**

* A paid API plan or Site License is required to create a scheduled invite.
* `scheduled_timestamp` must be a Unix timestamp (in seconds) that points to a moment in the future.
* The invite type is detected from the `invite_data` payload shape:
    * If the documents in the group do **not** contain fields, pass a [freeform invite payload](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites) in `invite_data`.
    * If the documents in the group contain fields, pass a [field invite payload](/docs/doc-group-field-invite/operations/invite-to-sign-document-group) in `invite_data`.
* Each document group can have only one scheduled invite in the `active` status.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group for which the scheduled invite is created. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "scheduled_timestamp",
    "invite_data"
  ],
  "properties": {
    "invite_data": {
      "type": "object",
      "description": "The full document group invite payload. The invite type is detected from the payload shape:\n\n* Send the same body as the [Create freeform document group invite](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites) endpoint when the documents in the group do not contain fields.\n* Send the same body as the [Create field invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group) endpoint when the documents in the group contain fields."
    },
    "scheduled_timestamp": {
      "type": "integer",
      "example": 1820000000,
      "description": "Unix timestamp (in seconds) of the moment when the prepared invite must be sent. Must be a positive integer that points to a moment in the future."
    }
  },
  "x-examples": {
    "Field invite (document group with fields)": {
      "invite_data": {
        "cc": [
          "cc-recipient@email.com"
        ],
        "order_type": "recipient_order",
        "invite_steps": [
          {
            "order": 1,
            "invite_emails": [
              {
                "email": "approver@email.com",
                "message": "Review and approve before sending to the signer.",
                "subject": "Please approve the document",
                "expiration_days": 30
              }
            ],
            "invite_actions": [
              {
                "email": "approver@email.com",
                "action": "approve",
                "role_name": "Approver",
                "document_id": "300e9518c757ec9f2a2e29e6e916e077c644235e",
                "redirect_uri": "https://example.com/",
                "authentication": {
                  "type": "phone",
                  "phone": "+12025550123",
                  "method": "phone_call"
                },
                "redirect_target": "blank"
              }
            ]
          },
          {
            "order": 2,
            "invite_emails": [
              {
                "email": "signer1@email.com",
                "message": "Hi, please sign this document group.",
                "subject": "Please sign",
                "reminder": {
                  "remind_after": 5,
                  "remind_before": 3,
                  "remind_repeat": 2
                },
                "expiration_days": 30
              }
            ],
            "invite_actions": [
              {
                "email": "signer1@email.com",
                "action": "sign",
                "role_name": "Signer 1",
                "document_id": "300e9518c757ec9f2a2e29e6e916e077c644235e",
                "redirect_uri": "https://example.com/",
                "allow_reassign": "0",
                "authentication": {
                  "type": "password",
                  "value": "123456"
                },
                "redirect_target": "blank",
                "decline_by_signature": "0",
                "decline_redirect_uri": "https://example.com/"
              }
            ]
          },
          {
            "order": 3,
            "invite_emails": [
              {
                "email": "viewer@email.com",
                "message": "The document has been signed. You can view it.",
                "subject": "Signed document"
              }
            ],
            "invite_actions": [
              {
                "email": "viewer@email.com",
                "action": "view",
                "role_name": "Viewer",
                "document_id": "300e9518c757ec9f2a2e29e6e916e077c644235e"
              }
            ]
          }
        ],
        "sign_as_merged": false
      },
      "scheduled_timestamp": 1820000000
    },
    "Freeform invite (document group without fields)": {
      "invite_data": {
        "cc": [
          {
            "email": "cc-recipient@email.com"
          }
        ],
        "to": [
          {
            "email": "signer1@email.com",
            "language": "en",
            "redirect_uri": "https://example.com/",
            "redirect_target": "blank"
          }
        ],
        "message": "Please sign this document group.",
        "subject": "Please sign this document group",
        "redirect_uri": "https://example.com/",
        "client_timestamp": 1820000000
      },
      "scheduled_timestamp": 1820000000
    }
  }
}
```

**Example** (`Field invite (document group with fields)`)

```json
{
  "invite_data": {
    "cc": [
      "cc-recipient@email.com"
    ],
    "order_type": "recipient_order",
    "invite_steps": [
      {
        "order": 1,
        "invite_emails": [
          {
            "email": "approver@email.com",
            "message": "Review and approve before sending to the signer.",
            "subject": "Please approve the document",
            "expiration_days": 30
          }
        ],
        "invite_actions": [
          {
            "email": "approver@email.com",
            "action": "approve",
            "role_name": "Approver",
            "document_id": "300e9518c757ec9f2a2e29e6e916e077c644235e",
            "redirect_uri": "https://example.com/",
            "authentication": {
              "type": "phone",
              "phone": "+12025550123",
              "method": "phone_call"
            },
            "redirect_target": "blank"
          }
        ]
      },
      {
        "order": 2,
        "invite_emails": [
          {
            "email": "signer1@email.com",
            "message": "Hi, please sign this document group.",
            "subject": "Please sign",
            "reminder": {
              "remind_after": 5,
              "remind_before": 3,
              "remind_repeat": 2
            },
            "expiration_days": 30
          }
        ],
        "invite_actions": [
          {
            "email": "signer1@email.com",
            "action": "sign",
            "role_name": "Signer 1",
            "document_id": "300e9518c757ec9f2a2e29e6e916e077c644235e",
            "redirect_uri": "https://example.com/",
            "allow_reassign": "0",
            "authentication": {
              "type": "password",
              "value": "123456"
            },
            "redirect_target": "blank",
            "decline_by_signature": "0",
            "decline_redirect_uri": "https://example.com/"
          }
        ]
      },
      {
        "order": 3,
        "invite_emails": [
          {
            "email": "viewer@email.com",
            "message": "The document has been signed. You can view it.",
            "subject": "Signed document"
          }
        ],
        "invite_actions": [
          {
            "email": "viewer@email.com",
            "action": "view",
            "role_name": "Viewer",
            "document_id": "300e9518c757ec9f2a2e29e6e916e077c644235e"
          }
        ]
      }
    ],
    "sign_as_merged": false
  },
  "scheduled_timestamp": 1820000000
}
```

**Example** (`Freeform invite (document group without fields)`)

```json
{
  "invite_data": {
    "cc": [
      {
        "email": "cc-recipient@email.com"
      }
    ],
    "to": [
      {
        "email": "signer1@email.com",
        "language": "en",
        "redirect_uri": "https://example.com/",
        "redirect_target": "blank"
      }
    ],
    "message": "Please sign this document group.",
    "subject": "Please sign this document group",
    "redirect_uri": "https://example.com/",
    "client_timestamp": 1820000000
  },
  "scheduled_timestamp": 1820000000
}
```

## Responses

### 204

Returned when the scheduled invite passes validation and is stored with the `active` status. The response body is empty.

### 400

Validation errors for the scheduled invite payload:

* `scheduled_timestamp` is missing, null, not an integer, or points to a moment in the past.
* `invite_data` is missing, null, of the wrong type, or empty.
* The document group already has an active scheduled invite.
* The document group already has an active group invite.
* The user is not the document group owner.

In addition, all validation errors that apply to the regular invite payload also apply to the contents of `invite_data`.

**Example** (`invite_data is null`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `invite_data` value should not be null."
    }
  ]
}
```

**Example** (`invite_data is empty`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `invite_data` value must not be an empty array."
    }
  ]
}
```

**Example** (`invite_data wrong type`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `invite_data` value should be of type array."
    }
  ]
}
```

**Example** (`Incorrect scheduled time`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Incorrect scheduled time for invite."
    }
  ]
}
```

**Example** (`Group invite already exists`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "An invite already exists for this document group."
    }
  ]
}
```

**Example** (`scheduled_timestamp is null`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `scheduled_timestamp` value should not be null."
    }
  ]
}
```

**Example** (`scheduled_timestamp wrong type`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `scheduled_timestamp` value should be of type int."
    }
  ]
}
```

**Example** (`Scheduled invite already exists`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "A scheduled invite already exists."
    }
  ]
}
```

**Example** (`User is not document group owner`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "User is not document group owner"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/documentgroup/{document_group_id}/scheduled-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"invite_data": {"cc": ["cc-recipient@email.com"], "order_type": "recipient_order", "invite_steps": [{"order": 1, "invite_emails": [{"email": "approver@email.com", "message": "Review and approve before sending to the signer.", "subject": "Please approve the document", "expiration_days": 30}], "invite_actions": [{"email": "approver@email.com", "action": "approve", "role_name": "Approver", "document_id": "300e9518c757ec9f2a2e29e6e916e077c644235e", "redirect_uri": "https://example.com/", "authentication": {"type": "phone", "phone": "+12025550123", "method": "phone_call"}, "redirect_target": "blank"}]}, {"order": 2, "invite_emails": [{"email": "signer1@email.com", "message": "Hi, please sign this document group.", "subject": "Please sign", "reminder": {"remind_after": 5, "remind_before": 3, "remind_repeat": 2}, "expiration_days": 30}], "invite_actions": [{"email": "signer1@email.com", "action": "sign", "role_name": "Signer 1", "document_id": "300e9518c757ec9f2a2e29e6e916e077c644235e", "redirect_uri": "https://example.com/", "allow_reassign": "0", "authentication": {"type": "password", "value": "123456"}, "redirect_target": "blank", "decline_by_signature": "0", "decline_redirect_uri": "https://example.com/"}]}, {"order": 3, "invite_emails": [{"email": "viewer@email.com", "message": "The document has been signed. You can view it.", "subject": "Signed document"}], "invite_actions": [{"email": "viewer@email.com", "action": "view", "role_name": "Viewer", "document_id": "300e9518c757ec9f2a2e29e6e916e077c644235e"}]}], "sign_as_merged": false}, "scheduled_timestamp": 1820000000}'
```

---

## PUT /documentgroup/{document_group_id}/scheduled-invite — Update scheduled invite

This endpoint allows API users to update the `scheduled_timestamp` of an active scheduled document group invite. Only the timing can be changed; to change the invite payload itself, cancel the active scheduled invite and create a new one.

**Notes**

* A paid API plan or Site License is required.
* The new `scheduled_timestamp` must be a Unix timestamp (in seconds) that points to a moment in the future.
* The document group must have a scheduled invite in the `active` status.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group for which the scheduled invite is created. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "scheduled_timestamp"
  ],
  "properties": {
    "scheduled_timestamp": {
      "type": "integer",
      "example": 1820000000,
      "description": "New Unix timestamp (in seconds) of the moment when the prepared invite must be sent. Must be a positive integer that points to a moment in the future."
    }
  },
  "x-examples": {
    "Correct request": {
      "scheduled_timestamp": 1820000000
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "scheduled_timestamp": 1820000000
}
```

## Responses

### 200

Returned when the scheduled invite is successfully rescheduled.

**Example** (`Successful response`)

```json
{
  "result": "success"
}
```

### 400

Validation errors for the update payload:

* `scheduled_timestamp` is missing, null, not an integer, or points to a moment in the past.
* The document group does not have an active scheduled invite.
* The user is not the document group owner.

**Example** (`Incorrect scheduled time`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Incorrect scheduled time for invite."
    }
  ]
}
```

**Example** (`scheduled_timestamp is null`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `scheduled_timestamp` value should not be null."
    }
  ]
}
```

**Example** (`scheduled_timestamp wrong type`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `scheduled_timestamp` value should be of type int."
    }
  ]
}
```

**Example** (`User is not document group owner`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "User is not document group owner"
    }
  ]
}
```

**Example** (`Active scheduled invite not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Active scheduled invite not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/documentgroup/{document_group_id}/scheduled-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"scheduled_timestamp": 1820000000}'
```

---

## DELETE /documentgroup/{document_group_id}/scheduled-invite — Cancel scheduled invite

This endpoint allows API users to cancel an active scheduled document group invite. Once cancelled, the scheduled invite is no longer in the `active` status and will not be sent at the originally scheduled time. After cancellation, a new scheduled invite can be created for the same document group.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group for which the scheduled invite is created. |

## Responses

### 200

Returned when the active scheduled invite is successfully cancelled.

**Example** (`Successful response`)

```json
{
  "result": "success"
}
```

### 400

Errors:

* The document group does not have an active scheduled invite.
* The user is not the document group owner.

**Example** (`User is not document group owner`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "User is not document group owner"
    }
  ]
}
```

**Example** (`Active scheduled invite not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Active scheduled invite not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/documentgroup/{document_group_id}/scheduled-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /documentgroup/{document_group_id}/scheduled-invite/send — Send scheduled invite

This endpoint allows API users to send an active scheduled document group invite immediately, bypassing the originally scheduled time. After the invite is sent, the scheduled record is removed from the `active` status.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group whose scheduled invite is sent immediately. |

## Responses

### 200

The scheduled invite was sent. The response depends on the invite type:

* Field invite: `id` and `pending_invite_link`.
* Freeform invite: a `data` object with `id`.

**Example** (`Field invite`)

```json
{
  "id": "fc7794c8c4e6955ebb1567b6f6bfaeb9fff850e9",
  "pending_invite_link": null
}
```

**Example** (`Freeform invite`)

```json
{
  "data": {
    "id": "0c07f46771aa32c211d953d076179b29567c9dd7"
  }
}
```

### 400

Errors:

* The document group does not have an active scheduled invite.
* The user is not the document group owner.

**Example** (`User is not document group owner`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "User is not document group owner"
    }
  ]
}
```

**Example** (`Active scheduled invite not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Active scheduled invite not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/documentgroup/{document_group_id}/scheduled-invite/send" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## POST /document/{document_id}/scheduled-invite — Create scheduled invite

This endpoint allows API users to create a scheduled document invite. At the moment specified by `scheduled_timestamp`, the invite is sent to recipients automatically. Both freeform invite and field invite can be sent.

**Notes**

* A paid API plan or Site License is required to create a scheduled invite.
* `scheduled_timestamp` must be a Unix timestamp (in seconds) that points to a moment in the future.
* The invite type is detected from the `invite_data` payload shape:
    * If the document does **not** contain fields, pass a [freeform invite payload](/docs/doc-freeform-invite/operations/post-freeform-document-id-invite) in `invite_data`.
    * If the document contains fields, pass a [field invite payload](/docs/document-field-invite/operations/post-document-doc-id-invite) in `invite_data`.
* Each document can have only one scheduled invite in the `active` status.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document for which the scheduled invite is created. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "scheduled_timestamp",
    "invite_data"
  ],
  "properties": {
    "invite_data": {
      "type": "object",
      "description": "The full document invite payload. The invite type is detected from the payload shape:\n\n* Send the same body as the [Create freeform invite](/docs/doc-freeform-invite/operations/post-freeform-document-id-invite) endpoint when the document does not contain fields.\n* Send the same body as the [Create field invite](/docs/document-field-invite/operations/post-document-doc-id-invite) endpoint when the document contains fields."
    },
    "scheduled_timestamp": {
      "type": "integer",
      "example": 1820000000,
      "description": "Unix timestamp (in seconds) of the moment when the prepared invite must be sent. Must be a positive integer that points to a moment in the future."
    }
  },
  "x-examples": {
    "Field invite (document with fields)": {
      "invite_data": {
        "cc": [
          "cc-recipient@email.com"
        ],
        "to": [
          {
            "role": "Signer",
            "email": "signer1@email.com",
            "order": 2,
            "message": "Hi, please sign this document.",
            "subject": "New signature request",
            "password": "123456",
            "reminder": {
              "remind_after": 5,
              "remind_before": 3,
              "remind_repeat": 2
            },
            "redirect_uri": "https://example.com/",
            "expiration_days": 30,
            "redirect_target": "blank",
            "authentication_type": "password",
            "decline_redirect_uri": "https://example.com/"
          }
        ],
        "from": "sender@email.com",
        "message": "Please sign the attached document.",
        "subject": "Needs your signature",
        "viewers": [
          {
            "role": "Viewer",
            "email": "viewer@email.com",
            "order": 3,
            "message": "Please review the document.",
            "subject": "Document for your review"
          }
        ],
        "approvers": [
          {
            "role": "Approver",
            "email": "approver@email.com",
            "order": 1,
            "phone": "+12025550123",
            "method": "phone_call",
            "message": "Review and approve before sending to the signer.",
            "subject": "Please approve the document",
            "redirect_uri": "https://example.com/",
            "expiration_days": 30,
            "redirect_target": "blank",
            "authentication_type": "phone"
          }
        ],
        "cc_message": "CC on a signature request.",
        "cc_subject": "Signature requested"
      },
      "scheduled_timestamp": 1820000000
    },
    "Freeform invite (document without fields)": {
      "invite_data": {
        "cc": [
          "cc-recipient@email.com"
        ],
        "to": "signer1@email.com",
        "from": "sender@email.com",
        "message": "Please sign this document.",
        "subject": "Please sign this document",
        "language": "en",
        "cc_message": "CC on a signature request.",
        "cc_subject": "Signature requested",
        "redirect_uri": "https://example.com/",
        "redirect_target": "blank"
      },
      "scheduled_timestamp": 1820000000
    }
  }
}
```

**Example** (`Field invite (document with fields)`)

```json
{
  "invite_data": {
    "cc": [
      "cc-recipient@email.com"
    ],
    "to": [
      {
        "role": "Signer",
        "email": "signer1@email.com",
        "order": 2,
        "message": "Hi, please sign this document.",
        "subject": "New signature request",
        "password": "123456",
        "reminder": {
          "remind_after": 5,
          "remind_before": 3,
          "remind_repeat": 2
        },
        "redirect_uri": "https://example.com/",
        "expiration_days": 30,
        "redirect_target": "blank",
        "authentication_type": "password",
        "decline_redirect_uri": "https://example.com/"
      }
    ],
    "from": "sender@email.com",
    "message": "Please sign the attached document.",
    "subject": "Needs your signature",
    "viewers": [
      {
        "role": "Viewer",
        "email": "viewer@email.com",
        "order": 3,
        "message": "Please review the document.",
        "subject": "Document for your review"
      }
    ],
    "approvers": [
      {
        "role": "Approver",
        "email": "approver@email.com",
        "order": 1,
        "phone": "+12025550123",
        "method": "phone_call",
        "message": "Review and approve before sending to the signer.",
        "subject": "Please approve the document",
        "redirect_uri": "https://example.com/",
        "expiration_days": 30,
        "redirect_target": "blank",
        "authentication_type": "phone"
      }
    ],
    "cc_message": "CC on a signature request.",
    "cc_subject": "Signature requested"
  },
  "scheduled_timestamp": 1820000000
}
```

**Example** (`Freeform invite (document without fields)`)

```json
{
  "invite_data": {
    "cc": [
      "cc-recipient@email.com"
    ],
    "to": "signer1@email.com",
    "from": "sender@email.com",
    "message": "Please sign this document.",
    "subject": "Please sign this document",
    "language": "en",
    "cc_message": "CC on a signature request.",
    "cc_subject": "Signature requested",
    "redirect_uri": "https://example.com/",
    "redirect_target": "blank"
  },
  "scheduled_timestamp": 1820000000
}
```

## Responses

### 204

Returned when the scheduled invite passes validation and is stored with the `active` status. The response body is empty.

### 400

Validation errors for the scheduled invite payload:

* `scheduled_timestamp` is missing, null, not an integer, or points to a moment in the past.
* `invite_data` is missing, null, of the wrong type, or empty.
* The document already has an active scheduled invite.
* The user is not the document owner.

In addition, all validation errors that apply to the regular invite payload also apply to the contents of `invite_data`.

**Example** (`invite_data is null`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `invite_data` value should not be null."
    }
  ]
}
```

**Example** (`invite_data is empty`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `invite_data` value must not be an empty array."
    }
  ]
}
```

**Example** (`invite_data wrong type`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `invite_data` value should be of type array."
    }
  ]
}
```

**Example** (`Incorrect scheduled time`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Incorrect scheduled time for invite."
    }
  ]
}
```

**Example** (`User is not document owner`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "User is not document owner"
    }
  ]
}
```

**Example** (`scheduled_timestamp is null`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `scheduled_timestamp` value should not be null."
    }
  ]
}
```

**Example** (`scheduled_timestamp wrong type`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `scheduled_timestamp` value should be of type int."
    }
  ]
}
```

**Example** (`Scheduled invite already exists`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "A scheduled invite already exists."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/document/{document_id}/scheduled-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"invite_data": {"cc": ["cc-recipient@email.com"], "to": [{"role": "Signer", "email": "signer1@email.com", "order": 2, "message": "Hi, please sign this document.", "subject": "New signature request", "password": "123456", "reminder": {"remind_after": 5, "remind_before": 3, "remind_repeat": 2}, "redirect_uri": "https://example.com/", "expiration_days": 30, "redirect_target": "blank", "authentication_type": "password", "decline_redirect_uri": "https://example.com/"}], "from": "sender@email.com", "message": "Please sign the attached document.", "subject": "Needs your signature", "viewers": [{"role": "Viewer", "email": "viewer@email.com", "order": 3, "message": "Please review the document.", "subject": "Document for your review"}], "approvers": [{"role": "Approver", "email": "approver@email.com", "order": 1, "phone": "+12025550123", "method": "phone_call", "message": "Review and approve before sending to the signer.", "subject": "Please approve the document", "redirect_uri": "https://example.com/", "expiration_days": 30, "redirect_target": "blank", "authentication_type": "phone"}], "cc_message": "CC on a signature request.", "cc_subject": "Signature requested"}, "scheduled_timestamp": 1820000000}'
```

---

## PUT /document/{document_id}/scheduled-invite — Update scheduled invite

This endpoint allows API users to update the `scheduled_timestamp` of an active scheduled document invite. Only the timing can be changed; to change the invite payload itself, cancel the active scheduled invite and create a new one.

**Notes**

* A paid API plan or Site License is required.
* The new `scheduled_timestamp` must be a Unix timestamp (in seconds) that points to a moment in the future.
* The document must have a scheduled invite in the `active` status.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document for which the scheduled invite is created. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "scheduled_timestamp"
  ],
  "properties": {
    "scheduled_timestamp": {
      "type": "integer",
      "example": 1820000000,
      "description": "New Unix timestamp (in seconds) of the moment when the prepared invite must be sent. Must be a positive integer that points to a moment in the future."
    }
  },
  "x-examples": {
    "Correct request": {
      "scheduled_timestamp": 1820000000
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "scheduled_timestamp": 1820000000
}
```

## Responses

### 200

Returned when the scheduled invite is successfully rescheduled.

**Example** (`Successful response`)

```json
{
  "result": "success"
}
```

### 400

Validation errors for the update payload:

* `scheduled_timestamp` is missing, null, not an integer, or points to a moment in the past.
* The document does not have an active scheduled invite.
* The user is not the document owner.

**Example** (`Incorrect scheduled time`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Incorrect scheduled time for invite."
    }
  ]
}
```

**Example** (`User is not document owner`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "User is not document owner"
    }
  ]
}
```

**Example** (`scheduled_timestamp is null`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `scheduled_timestamp` value should not be null."
    }
  ]
}
```

**Example** (`scheduled_timestamp wrong type`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The `scheduled_timestamp` value should be of type int."
    }
  ]
}
```

**Example** (`Active scheduled invite not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Active scheduled invite not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/document/{document_id}/scheduled-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"scheduled_timestamp": 1820000000}'
```

---

## DELETE /document/{document_id}/scheduled-invite — Cancel scheduled invite

This endpoint allows API users to cancel an active scheduled document invite. Once cancelled, the scheduled invite is no longer in the `active` status and will not be sent at the originally scheduled time. After cancellation, a new scheduled invite can be created for the same document.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document for which the scheduled invite is created. |

## Responses

### 200

Returned when the active scheduled invite is successfully cancelled.

**Example** (`Successful response`)

```json
{
  "result": "success"
}
```

### 400

Errors:

* The document does not have an active scheduled invite.
* The user is not the document owner.

**Example** (`User is not document owner`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "User is not document owner"
    }
  ]
}
```

**Example** (`Active scheduled invite not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Active scheduled invite not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/document/{document_id}/scheduled-invite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /document/{document_id}/scheduled-invite/send — Send scheduled invite

This endpoint allows API users to send an active scheduled document invite immediately, bypassing the originally scheduled time. After the invite is sent, the scheduled record is removed from the `active` status.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document whose scheduled invite is sent immediately. |

## Responses

### 200

The scheduled invite was sent. The response depends on the invite type:

* Field invite: an object with `status`.
* Freeform invite: an array with one object that contains `result`, `id`, and `callback_url`.

**Example** (`Field invite`)

```json
{
  "status": "success"
}
```

**Example** (`Freeform invite`)

```json
[
  {
    "id": "971839e345637137047b876f185f29d4a9a08ae9",
    "result": "success",
    "callback_url": "none"
  }
]
```

### 400

Errors:

* The document does not have an active scheduled invite.
* The user is not the document owner.

**Example** (`User is not document owner`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "User is not document owner"
    }
  ]
}
```

**Example** (`Active scheduled invite not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Active scheduled invite not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/document/{document_id}/scheduled-invite/send" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## GET /v2/search — Search for documents, templates, and document groups

This endpoint allows API users to search across their documents, templates, document groups, and document group templates. Search covers all folders accessible to the user, including own, shared, and team folders. Results are sorted by the date updated, from newest to oldest.

Each `search_by` value uses its own matching logic and minimum `search_key` length:

| `search_by` value | Searches | Matching | Min `search_key` length |
|---|---|---|---|
| `name` | Entity name | Contains | 1 |
| `id` | Entity ID | Exact match | — |
| `inviter-email` | Inviter email | Prefix | 2 |
| `signer-email` | Signer email | Prefix | 2 |
| `document-text` | Text inside the document | Substring | 3 |

Matching is case-insensitive. Leading and trailing whitespace in `search_key` is trimmed before the length check. If `search_key` is shorter than the minimum for a given field, that field returns no results without a validation error. For `inviter-email` and `signer-email`, the prefix match applies to the first 40 characters of the email; a longer `search_key` matches by exact email value.

The maximum number of results before pagination is 1,000.

## Authorization

bearer

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `search_key` | string | Yes | Search phrase. Must be a non-empty string. |
| `search_by` | string | Yes | Comma-separated list of fields to search by. Possible values: `name`, `id`, `inviter-email`, `signer-email`, `document-text`. |
| `per_page` | integer | No | Number of results per page. Possible values: 1–20. |
| `page` | integer | No | Page number. Must be greater than 0. |

## Responses

### 200

Success. `entity_properties` content depends on `entity_type`. An empty result returns HTTP 200 with an empty `data` array and `meta.pagination.total` set to `0`. Document text and emails are used for matching only and are not returned in the response.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "4fcb94c8db29cf4c009e62cd350f163915738c7d",
      "name": "Sales invoice.pdf",
      "owner": "owner@email.com",
      "created": "1696492112",
      "updated": "1696492114",
      "folder_id": "e648cf25e288f8ef15c50645077c54242200d93e",
      "entity_type": "document-group",
      "entity_properties": {
        "state": "created",
        "documents": [
          {
            "id": "604303bb7d33cecb594404b500caccbba88d8192",
            "owner": {
              "id": "5756e3e836c44cbd66fd296d2362727bff0d2584",
              "email": "owner@email.com"
            },
            "roles": [],
            "updated": 1696492113,
            "folder_id": null,
            "thumbnail": {
              "large": "https://api.signnow.com/document/604303bb7d33cecb594404b500caccbba88d8192/thumbnail?size=large",
              "small": "https://api.signnow.com/document/604303bb7d33cecb594404b500caccbba88d8192/thumbnail?size=small",
              "medium": "https://api.signnow.com/document/604303bb7d33cecb594404b500caccbba88d8192/thumbnail?size=medium"
            },
            "has_fields": false,
            "page_count": 1,
            "signatures": [],
            "document_name": "Sales invoice.pdf",
            "field_invites": [],
            "freeform_invites": []
          }
        ],
        "invite_id": null,
        "origin_dgt": null,
        "entity_labels": [],
        "sign_as_merged": null,
        "scheduled_invite": null,
        "freeform_invite_id": null
      }
    },
    {
      "id": "d0bffaffa8a75a521bc68a2236aa76df0c04d2be",
      "name": "Contract",
      "owner": "owner@email.com",
      "created": "1696492100",
      "updated": "1696492110",
      "folder_id": "e648cf25e288f8ef15c50645077c54242200d93e",
      "entity_type": "document",
      "entity_properties": {
        "roles": [
          {
            "name": "Signer 1",
            "unique_id": "5994bd11f0a4a2fd10b92abe563187559c7bdcfb",
            "signing_order": "1"
          }
        ],
        "thumbnail": {
          "large": "https://api.signnow.com/document/d0bffaffa8a75a521bc68a2236aa76df0c04d2be/thumbnail?size=large",
          "small": "https://api.signnow.com/document/d0bffaffa8a75a521bc68a2236aa76df0c04d2be/thumbnail?size=small",
          "medium": "https://api.signnow.com/document/d0bffaffa8a75a521bc68a2236aa76df0c04d2be/thumbnail?size=medium"
        },
        "page_count": "1",
        "signatures": [],
        "entity_labels": [],
        "field_invites": [],
        "scheduled_invite": null,
        "origin_document_id": null
      }
    }
  ],
  "meta": {
    "pagination": {
      "count": 2,
      "links": {
        "next": "https://api.signnow.com/v2/search?search_key=invoice&search_by=name&per_page=15&page=2"
      },
      "total": 118,
      "per_page": 15,
      "total_pages": 8,
      "current_page": 1
    }
  }
}
```

### 400

* Wrong, expired, or missing token.
* The `search_key` field is not a string.
* The `search_key` field is empty.
* The `search_by` field is not a string.
* The `search_by` field is empty.
* The `search_by` field values are not in the available value list: `name`, `id`, `inviter-email`, `signer-email`, `document-text`.
* The `per_page` field is not a digit.
* The `per_page` field value is 0 or less.
* The `per_page` field value is greater than 20.
* The `page` field is not a digit.
* The `page` field value is 0 or less.
* Could not find search info.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`search_by is empty`)

```json
{
  "errors": [
    {
      "code": 26003010,
      "message": "The `search_by` field is empty."
    }
  ]
}
```

**Example** (`page is not a digit`)

```json
{
  "errors": [
    {
      "code": 26003015,
      "message": "The `page` field is not a digit."
    }
  ]
}
```

**Example** (`search_key is empty`)

```json
{
  "errors": [
    {
      "code": 26003008,
      "message": "The `search_key` field is empty."
    }
  ]
}
```

**Example** (`Search info not found`)

```json
{
  "errors": [
    {
      "code": 26003021,
      "message": "Could not find search info."
    }
  ]
}
```

**Example** (`page value is 0 or less`)

```json
{
  "errors": [
    {
      "code": 26003016,
      "message": "The `page` field value is 0 or less."
    }
  ]
}
```

**Example** (`per_page is not a digit`)

```json
{
  "errors": [
    {
      "code": 26003012,
      "message": "The `per_page` field is not a digit."
    }
  ]
}
```

**Example** (`search_by is not a string`)

```json
{
  "errors": [
    {
      "code": 26003009,
      "message": "The `search_by` field is not a string."
    }
  ]
}
```

**Example** (`search_key is not a string`)

```json
{
  "errors": [
    {
      "code": 26003007,
      "message": "The `search_key` field is not a string."
    }
  ]
}
```

**Example** (`per_page value is 0 or less`)

```json
{
  "errors": [
    {
      "code": 26003013,
      "message": "The `per_page` field value is 0 or less."
    }
  ]
}
```

**Example** (`search_by value is not valid`)

```json
{
  "errors": [
    {
      "code": 26003011,
      "message": "The `search_by` field values are not in the available value list: `name`, `id`, `inviter-email`, `signer-email`, `document-text`."
    }
  ]
}
```

**Example** (`per_page value is greater than 20`)

```json
{
  "errors": [
    {
      "code": 26003014,
      "message": "The `per_page` field value is greater than 20."
    }
  ]
}
```

### 500

* Internal API error.

**Example** (`Internal API error`)

```json
{
  "error": [
    {
      "code": 26000005,
      "message": "Internal Api Error"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/search" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/application/signing-links — Get signing links

This endpoint allows API users to retrieve the list of the user's signing links.

## Authorization

basic

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `per_page` | string | No | How many links to show per page in response. Default value: 15. |
| `page` | string | No | In how many pages to display the response. Default value: 1. |
| `count` | string | No | Possible values: array with 2 items. Item type is null or integer. Format: `?filters=[{"count":{"type":"between","value":[2,5]}}]` |
| `active` | string | No | Filter only active or inactive links. Possible values: true/false. Format: `?filters=[{"active":{"type":"=","value":false}}]` |
| `created` | string | No | Filter by the date of creation. Possible values: desc (descending order)/asc (ascending order). Example: `?sort[created]=desc` |
| `count` | string | No | Filter by count. Possible values: desc (descending order)/asc (ascending order). Example: `?sort[count]=desc` |

## Responses

### 200

Successful response. Returns the signing links of the application.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "241ea40525656184b093e3437080e25b054fc110",
      "hash": "HaSh",
      "count": 7,
      "active": true,
      "created": 1554801793
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": {
        "next": "http://example.com/v2/signing-links?per_page=1&page=3",
        "previous": "http://example.com/v2/signing-links?per_page=1&page=1"
      },
      "total": 3,
      "per_page": 1,
      "total_pages": 3,
      "current_page": 2
    }
  }
}
```

### 400

Wrong or missing Basic authorization token, or a bearer token is used instead of the Basic token.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/application/signing-links" \
  -H "Authorization: Basic $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /link — Create signing link

This endpoint allows API users to generate a signing link and a QR code for a specific document.

**Add values of smart fields to a redirect URI** 

If you create a link for a template that contains smart fields, you can add smart field values to the redirect uri using placeholders.

1. Create a template with smart fields 
2. Create a single signing link for the template with `redirect_uri` parameter that contains field placeholders to match field values.

*Example*

```
https://example.com?firstname=[smart_fields.firstname]&lastname=[smart_fields.lastname]

```

For more information, check out our video tutorial.

<details open>

**<summary>Video tutorial</summary>**

<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>

[Video tutorial](https://www.youtube.com/watch?v=XbUwX_2S5eU)

</details>

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "lastname": {
      "type": "string",
      "example": "Doe",
      "description": "Signer's last name that appears in the welcome message. Can be used with or without a first name. If neither first nor last name is specified, the signer is referred to as Guest Signer.",
      "x-stoplight": {
        "id": "194iu2xbxlfyj"
      }
    },
    "firstname": {
      "type": "string",
      "example": "Jane",
      "description": "Signer's first name that appears in the welcome message header. Can be used with or without a last name. If neither first nor last name is specified, the signer is referred to as Guest Signer.",
      "x-stoplight": {
        "id": "rpudac10llpro"
      }
    },
    "document_id": {
      "type": "string",
      "example": "bf19a9dba96745b6bf516dc4118ea639faac18f3",
      "description": "Template ID."
    },
    "redirect_uri": {
      "type": "string",
      "example": "https://example.com?firstname=[smart_fields.firstname]&lastname=[smart_fields.lastname]",
      "description": "When all the requested fields are completed and signed, the signer is redirected to this URI. Can contain placeholders referencing the values of smart fields."
    }
  },
  "x-examples": {
    "example-1": {
      "document_id": "{{document_id}}",
      "redirect_uri": "https://google.com?firstname=[smart_fields.firstname]&lastname=[smart_fields.lastname]"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "lastname": "Doe",
  "firstname": "Jane",
  "document_id": "bf19a9dba96745b6bf516dc4118ea639faac18f3",
  "redirect_uri": "https://example.com?firstname=[smart_fields.firstname]&lastname=[smart_fields.lastname]"
}
```

## Responses

### 200

Signing links and QR code links for the document.

**Example** (`Successful response`)

```json
{
  "url": "https://signnow.com/s/e9P6v1WW",
  "url_qrcode": "https://signnow.com/qrcode/e9P6v1WW",
  "url_no_signup": "https://signnow.com/s/NKb23XO3",
  "url_no_signup_qrcode": "https://signnow.com/qrcode/NKb23XO3"
}
```

### 400

- The document contains no unassigned roles.
- The document ID is incorrect.

**Example** (`No unassigned roles`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "A document must have at least one role that does not have a fixed e-mail to create an invite link."
    }
  ]
}
```

**Example** (`Incorrect document ID`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/link" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"lastname": "Doe", "firstname": "Jane", "document_id": "bf19a9dba96745b6bf516dc4118ea639faac18f3", "redirect_uri": "https://example.com?firstname=[smart_fields.firstname]&lastname=[smart_fields.lastname]"}'
```

---

## PUT /v2/application/signing-links/{signing_link_short_url_id} — Activate/deactivate signing link

Allows API users to activate or deactivate the existing signing links.

For more information, check out our video tutorial.

<details open>

**<summary>Video tutorial</summary>**

<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>

[Video tutorial](https://www.youtube.com/watch?v=XbUwX_2S5eU)

</details>

## Authorization

basic

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `signing_link_short_url_id` | string | Yes | ID of a Signing Link that should be activated/deactivated. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "active"
  ],
  "properties": {
    "active": {
      "type": "boolean",
      "description": "Boolean. Determines if the link must be active. Possible values: `true` - yes, the link must be active, `false` - deactivate the link."
    }
  },
  "x-examples": {
    "example-1": {
      "active": true
    }
  },
  "description": ""
}
```

**Example** (`Request body`)

```json
{
  "active": true
}
```

## Responses

### 204

Successful response. The signing link is updated.

### 400

* Wrong or missing Basic authorization token, or a bearer token is used instead of the Basic token.
* `active` is missing or `null`.
* `active` isn't a boolean.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Missing active`)

```json
{
  "errors": [
    {
      "code": 19007002,
      "message": "Field `active` must be not null"
    }
  ]
}
```

**Example** (`active not a boolean`)

```json
{
  "errors": [
    {
      "code": 19007001,
      "message": "Field `active` must be a boolean"
    }
  ]
}
```

### 404

The signing link doesn't exist or belongs to another application.

**Example** (`Signing link not found`)

```json
{
  "errors": [
    {
      "code": 19002004,
      "message": "The signing link `0aa11112b0ed40aab8cab111a76a6eea07f0000e` is not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/application/signing-links/{signing_link_short_url_id}" \
  -H "Authorization: Basic $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"active": true}'
```

---

## POST /v2/document-groups/{document_group_id}/signing-links — Create/edit signing link for doc group

This endpoint allows API users to create a signing link for a document group, or update the existing one.

This endpoint can be used only:
* by the owner of the document group
* when there are no documents within the document group that have Viewers in the routing details
* all the roles specified in the documents are mapped with recipients of the signing link
* when there are no roles with Viewer level of access to all documents
* at least one of the documents has active fields

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_group_id` | string | Yes | ID of the document group. |

## Responses

### 200

The signing link was created or updated.

**Example** (`Successful response`)

```json
{
  "data": {
    "id": "b9bccc376c97189dc1b9d5ab481104e26ea8816b",
    "url": "https://signnow.com/dispatch?route=document_group_signing_link&signing_link_id=70f10357c139fe012c645b17dcbb3cc13c1621bf",
    "hash": "Ab3dE5gH",
    "created": 1792744366,
    "short_url": "https://signnow.com/s/Ab3dE5gH",
    "json_attributes": {
      "brand_id": null,
      "recipients": null
    }
  }
}
```

### 400

* Request without headers.
* There are no fields on the documents.
* Document group has active invite.
* There is no recipient on the document group.
* There is no guest signer on the first signing step.
* There is more than one guest signer on the document group.
* Documents should not be deleted.
* Not all signers mapped to recipients.
* There cannot exist view only recipient on the document group.
* `Require Login to Sign` organization setting is enabled.
* `Invites Must Use Two Factor Authentication` organization setting is enabled. 
* At least one recipient contain email group.



**Example** (`Request without headers`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Document group has active invite`)

```json
{
  "errors": [
    {
      "code": 19040003,
      "message": "Document group has active invite."
    }
  ]
}
```

**Example** (`Documents should not be deleted.`)

```json
{
  "errors": [
    {
      "code": 19040007,
      "message": "Documents should not be deleted."
    }
  ]
}
```

**Example** (`Not all signers mapped to recipients.`)

```json
{
  "errors": [
    {
      "code": 19040008,
      "message": "Not all signers mapped to recipients."
    }
  ]
}
```

**Example** (`There are no fields on the documents.`)

```json
{
  "errors": [
    {
      "code": 19040002,
      "message": "There are no fields on the documents."
    }
  ]
}
```

**Example** (`At least one recipient contain email group`)

```json
{
  "errors": [
    {
      "code": 190400012,
      "message": "At least one recipient contains email group."
    }
  ]
}
```

**Example** (`There is no recipient on the document group.`)

```json
{
  "errors": [
    {
      "code": 19040004,
      "message": "There is no recipient on the document group."
    }
  ]
}
```

**Example** (`There is no guest signer on the first signing step.`)

```json
{
  "errors": [
    {
      "code": 19040005,
      "message": "There is no guest signer on the first signing step."
    }
  ]
}
```

**Example** (``Require Login to Sign` organization setting is enabled.`)

```json
{
  "errors": [
    {
      "code": 190400011,
      "message": "Require Login to Sign organization setting is enabled."
    }
  ]
}
```

**Example** (`There is more than one guest signer on the document group.`)

```json
{
  "errors": [
    {
      "code": 19040006,
      "message": "There is more than one guest signer on the document group."
    }
  ]
}
```

**Example** (`There cannot exist view only recipient on the document group.`)

```json
{
  "errors": [
    {
      "code": 190400010,
      "message": "There cannot exist view only recipient on the document group."
    }
  ]
}
```

**Example** (``Invites Must Use Two Factor Authentication` organization setting is enabled`)

```json
{
  "errors": [
    {
      "code": 190400012,
      "message": "`Invites Must Use Two Factor Authentication` organization setting is enabled."
    }
  ]
}
```

### 403

Current user is not document group owner.

**Example** (`Current user is not document group owner.`)

```json
{
  "errors": [
    {
      "code": 19040001,
      "message": "Current user is not document group owner."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/document-groups/{document_group_id}/signing-links" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## POST /document/{document_id}/integration/object/smartfields — Prefill smart fields

This endpoint allows API users to prefill smart fields in a document.

**Note:** names of smart fields are case-sensitive.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | ID of the document. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "data",
    "client_timestamp"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "field_name1": {
            "type": "string"
          },
          "field_name2": {
            "type": "string"
          }
        }
      }
    },
    "client_timestamp": {
      "type": "string"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "data": [
    {
      "first_name": "John"
    },
    {
      "company": "Example Inc."
    }
  ],
  "client_timestamp": 1792744000
}
```

## Responses

### 200

The smart fields were prefilled.

**Example** (`Successful response`)

```json
{
  "status": "success"
}
```

### 400

Bad request.

**Example** (`Document not found`)

```json
{
  "code": 65582,
  "message": "Document not found"
}
```

**Example** (`Invalid Authorization`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Field invite not found`)

```json
{
  "code": 66502,
  "message": "Field invite not found"
}
```

**Example** (`Authentication type must not be empty`)

```json
{
  "code": 65536,
  "message": "authentication type must not be empty"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/document/{document_id}/integration/object/smartfields" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"data": [{"first_name": "John"}, {"company": "Example Inc."}], "client_timestamp": 1792744000}'
```

---

## POST /document/{template_id}/integration_objects — Add smart fields to template

This endpoint allows API users to add smart fields to a template: fillable fields mapped to the fields in a CSV file. With smart fields, users can have their documents generated from a template and pre-filled automatically with data from a CSV file (spreadsheet) before sending.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `template_id` | string | Yes | ID of the template. |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | Yes | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "integration_objects"
  ],
  "properties": {
    "integration_objects": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "page_number",
          "font",
          "data",
          "api_integration_id",
          "size",
          "x",
          "y"
        ],
        "properties": {
          "x": {
            "type": "integer",
            "maximum": 16777215,
            "minimum": 0,
            "description": "X coordinates of a pixel on the page where the smart field should be placed.",
            "exclusiveMaximum": true
          },
          "y": {
            "type": "integer",
            "maximum": 16777215,
            "minimum": 0,
            "description": "X coordinates of a pixel on the page where the smart field should be placed.",
            "exclusiveMaximum": true
          },
          "data": {
            "type": "string",
            "description": "The name of the smart field."
          },
          "font": {
            "type": "string",
            "description": "Font for the text in the smart field. Possible values: `Arial`, `Times New Roman`, `Courier New`, `Tahoma`, and `Comic Sans MS`."
          },
          "size": {
            "type": "integer",
            "maximum": 2147483647,
            "minimum": 0,
            "description": "Font size for the text in the field.",
            "exclusiveMaximum": true
          },
          "width": {
            "type": "number",
            "maximum": 16777215,
            "minimum": 0,
            "description": "Field width.",
            "x-stoplight": {
              "id": "t9u1avlii4wr1"
            },
            "exclusiveMaximum": true
          },
          "height": {
            "type": "number",
            "maximum": 16777215,
            "minimum": 0,
            "description": "Field height.",
            "x-stoplight": {
              "id": "395a74spbplk9"
            },
            "exclusiveMaximum": true
          },
          "page_number": {
            "type": "integer",
            "minimum": 0,
            "description": "The page in the document where the smart field should be placed."
          },
          "api_integration_id": {
            "type": "string",
            "description": "Always set to `b98fc00add6b43a606bc527c81eee741bf16a7d8`"
          }
        }
      },
      "description": "Array of Smart Field objects."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "integration_objects": [
    {
      "x": 217,
      "y": 32,
      "data": "First name",
      "font": "Arial",
      "size": 12,
      "page_number": 0,
      "api_integration_id": "b98fc00add6b43a606bc527c81eee741bf16a7d8"
    }
  ]
}
```

## Responses

### 200

Returns a new document ID in SignNow.

**Example** (`Successful response`)

```json
{
  "ids": [
    "0350eb8bcc94648c389d3fd13375f85941d5af39"
  ]
}
```

### 400

* Wrong, expired, or missing token.
* Incorrect payload.
* User doesn’t own the document.
* Document is a part of a document group that is being changed.
* `integration_objects` not an array.
* Empty `integration_objects`.
* `api_integration_id` is not a string.
* `api_integration_id` is not found.
* Incorrect `color` format.
* `bold`, `italic`, or `underline` is not a boolean.
* `line_height` is not numeric.
* `line_height` is less than 0 or greater than 999.99.
* `size` is not numeric.
* Empty `size`.
* `size` is less than 0 or greater than 2147483647.
* `x` or `y` is not numeric.
* Empty `x` or `y`.
* `x` or `y` is less than 0.
* `x` or `y` is greater than 16777215.
* `data` is not a string.
* Empty `data`.
* `data` contains an ampersand (&).
* `height` or `width` is not an integer.
* `height` or `width` is not within the 0-16777215 range.
* `font` is not a string.
* Empty `font`.
* `page_number` is not an integer.
* Empty `page_number`.
* `page_number` is less than 0.

**Example** (`Missing x`)

```json
{
  "errors": [
    {
      "code": 66014,
      "message": "X must not be empty"
    }
  ]
}
```

**Example** (`Missing y`)

```json
{
  "errors": [
    {
      "code": 66015,
      "message": "Y must not be empty"
    }
  ]
}
```

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Missing data`)

```json
{
  "errors": [
    {
      "code": 66008,
      "message": "Data must not be empty"
    }
  ]
}
```

**Example** (`Missing font`)

```json
{
  "errors": [
    {
      "code": 66016,
      "message": "Font must not be empty"
    }
  ]
}
```

**Example** (`Missing size`)

```json
{
  "errors": [
    {
      "code": 66017,
      "message": "Size must not be empty"
    }
  ]
}
```

**Example** (`x less than 0`)

```json
{
  "errors": [
    {
      "code": 66014,
      "message": "X must not be less then 0."
    }
  ]
}
```

**Example** (`x not numeric`)

```json
{
  "errors": [
    {
      "code": 66014,
      "message": "X must be numeric."
    }
  ]
}
```

**Example** (`y not numeric`)

```json
{
  "errors": [
    {
      "code": 66015,
      "message": "Y must be numeric."
    }
  ]
}
```

**Example** (`Incorrect width`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The `width` should be between 1 and 16777215."
    }
  ]
}
```

**Example** (`data not string`)

```json
{
  "errors": [
    {
      "code": 66008,
      "message": "Data must be a string"
    }
  ]
}
```

**Example** (`font not string`)

```json
{
  "errors": [
    {
      "code": 66016,
      "message": "Font must be string."
    }
  ]
}
```

**Example** (`Incorrect height`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The `height` should be between 1 and 16777215."
    }
  ]
}
```

**Example** (`bold not boolean`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The bold attribute must be boolean"
    }
  ]
}
```

**Example** (`size less than 0`)

```json
{
  "errors": [
    {
      "code": 66017,
      "message": "Size must not be less than 0."
    }
  ]
}
```

**Example** (`size not numeric`)

```json
{
  "errors": [
    {
      "code": 66017,
      "message": "Size must be numeric."
    }
  ]
}
```

**Example** (`Incorrect payload`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid payload"
    }
  ]
}
```

**Example** (`width not integer`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The `width` should be of type integer."
    }
  ]
}
```

**Example** (`height not integer`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The `height` should be of type integer."
    }
  ]
}
```

**Example** (`italic not boolean`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The italic attribute must be boolean"
    }
  ]
}
```

**Example** (`Missing page_number`)

```json
{
  "errors": [
    {
      "code": 66013,
      "message": "Page number must not be empty"
    }
  ]
}
```

**Example** (`underline not boolean`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The underline attribute must be boolean"
    }
  ]
}
```

**Example** (`Incorrect color format`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "The color attribute format is invalid"
    }
  ]
}
```

**Example** (`data contains ampersand`)

```json
{
  "errors": [
    {
      "code": 66008,
      "message": "Data must not contain ampersand character"
    }
  ]
}
```

**Example** (`line_height less than 0`)

```json
{
  "errors": [
    {
      "code": 66018,
      "message": "Line height must not be less than 0."
    }
  ]
}
```

**Example** (`line_height not numeric`)

```json
{
  "errors": [
    {
      "code": 66018,
      "message": "Line height must be numeric."
    }
  ]
}
```

**Example** (`page_number less than 0`)

```json
{
  "errors": [
    {
      "code": 66013,
      "message": "Page number must not be less then 0."
    }
  ]
}
```

**Example** (`page_number not integer`)

```json
{
  "errors": [
    {
      "code": 66013,
      "message": "Page number must be numeric."
    }
  ]
}
```

**Example** (`y greater than 16777215`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Invalid data provided for Y"
    }
  ]
}
```

**Example** (`User doesn't own document`)

```json
{
  "errors": [
    {
      "code": 65610,
      "message": "not writable"
    }
  ]
}
```

**Example** (`api_integration_id not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Api integration not found"
    }
  ]
}
```

**Example** (`size greater than 2147483647`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Invalid data provided for size"
    }
  ]
}
```

**Example** (`Doc group in correction state`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document group in correction state."
    }
  ]
}
```

**Example** (`api_integration_id not string`)

```json
{
  "errors": [
    {
      "code": 66011,
      "message": "Api integration id must be a string"
    }
  ]
}
```

**Example** (`integration_objects not array`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Integration objects must be an array."
    }
  ]
}
```

**Example** (`line_height greater than 999.99`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Invalid data provided for line_height"
    }
  ]
}
```

**Example** (`Empty or missing integration_objects`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Integration objects array is required."
    }
  ]
}
```

### 404

Document not found.

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/document/{template_id}/integration_objects" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"integration_objects": [{"x": 217, "y": 32, "data": "First name", "font": "Arial", "size": 12, "page_number": 0, "api_integration_id": "b98fc00add6b43a606bc527c81eee741bf16a7d8"}]}'
```

---

## DELETE /document/{template_id}/integration_objects — Delete smart fields from template

This endpoint allows API users to delete smart fields from a template. 

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `template_id` | string | Yes | ID of the template. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "integration_objects"
  ],
  "properties": {
    "integration_objects": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Array of integration objects to be deleted."
    }
  },
  "x-examples": {
    "example-1": {
      "integration_objects": [
        "10a31fb24b874f6bafe25898b203869798927398",
        "fdd70ca993ec4141ab082426e7df592467ea485e"
      ]
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "integration_objects": [
    "4fe4509cd8b00bea671749618f25f47aedde8ff2",
    "cc9935fab9b557fb023c53eed17069ddda1992f9"
  ]
}
```

## Responses

### 200

The smart fields were deleted from the template.

**Example** (`Successful response`)

```json
{
  "Result": "Success"
}
```

### 400

Bad request.

**Example** (`Invalid Authorization`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Integration objects array is required`)

```json
{
  "code": 65536,
  "message": "Integration objects array is required."
}
```

**Example** (`Invalid data provided for integration objects`)

```json
{
  "code": 65536,
  "message": "Invalid data provided for integration objects"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/document/{template_id}/integration_objects" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /document/{template_id}/integration_objects — Get smart fields from template

This endpoint allows API users to retrieve the smart fields of a template. 

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `template_id` | string | Yes | ID of the template. |

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "integration_objects": [
    {
      "x": "217",
      "y": "32",
      "id": "6771388c18c2da944f36c4378659bad2faa3e89b",
      "data": "Some Data",
      "font": "Arial",
      "size": "12",
      "email": "user@email.com",
      "created": "1553867317",
      "user_id": "80263e5d4429fa85ecda202c07740280dc3a0cfd",
      "document_id": "90a2c0e942c399c6e123007300b51c7365d720ea",
      "line_height": "0.00",
      "page_number": 0,
      "json_attributes": {
        "bold": true,
        "color": "FFFAF0",
        "italic": false,
        "underline": false
      },
      "api_integration_id": "b977e0c6e33ddb6fb6b875cb7618c71b53a442e7"
    }
  ]
}
```

### 400

* Wrong, expired, or missing token.
* The document doesn't exist.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/document/{template_id}/integration_objects" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /link — Add smart fields values to redirect URI

This endpoint allows API users to add smart field values to the redirect URI via placeholders when creating a link for a template with smart fields.

1. Create a template with smart fields
2. Create a single signing link for the template with `redirect_uri` parameter that contains field placeholders to match field values.

*Example*

```
https://example.com?firstname=[smart_fields.firstname]&lastname=[smart_fields.lastname]

```

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "document_id"
  ],
  "properties": {
    "document_id": {
      "type": "string",
      "description": "ID of the document or template to create the link for."
    },
    "redirect_uri": {
      "type": "string",
      "description": "The URI that opens after the document is signed. Max: `1500` characters."
    }
  },
  "x-examples": {
    "example-1": {
      "document_id": "{{document_id}}",
      "redirect_uri": "https://google.com?firstname=[smart_fields.firstname]&lastname=[smart_fields.lastname]"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "document_id": "bff3ceb1dacc9cc7436326f6b513acbc231931c4",
  "redirect_uri": "https://example.com?firstname=[smart_fields.firstname]&lastname=[smart_fields.lastname]"
}
```

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "url": "https://signnow.com/s/Xk2Lm9Qa",
  "url_qrcode": "https://signnow.com/qrcode/Xk2Lm9Qa",
  "url_no_signup": "https://signnow.com/s/Pq7Rt4Zw",
  "url_no_signup_qrcode": "https://signnow.com/qrcode/Pq7Rt4Zw"
}
```

### 400

* Wrong, expired, or missing token.
* `document_id` is missing.
* The document doesn't exist.
* The document belongs to another user.
* The document has no fields.
* Every role in the document has a fixed email address.
* `redirect_uri` isn't a valid URL or is longer than `1500` characters.

**Example** (`No fields`)

```json
{
  "errors": [
    {
      "code": 65594,
      "message": "Cannot create signing links on documents with no fields"
    }
  ]
}
```

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Not the owner`)

```json
{
  "errors": [
    {
      "code": 65610,
      "message": "User is not document owner"
    }
  ]
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document not found"
    }
  ]
}
```

**Example** (`Wrong redirect_uri`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The redirect uri must be a valid url."
    }
  ]
}
```

**Example** (`Missing document_id`)

```json
{
  "errors": [
    {
      "code": 65544,
      "message": "Document ID is required"
    }
  ]
}
```

**Example** (`No unassigned roles`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "A document must have at least one role that does not have a fixed e-mail to create an invite link."
    }
  ]
}
```

**Example** (`redirect_uri too long`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The redirect uri should be less than 1500 characters."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/link" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"document_id": "bff3ceb1dacc9cc7436326f6b513acbc231931c4", "redirect_uri": "https://example.com?firstname=[smart_fields.firstname]&lastname=[smart_fields.lastname]"}'
```

---

## POST /team/{team_id}/shared/document/folder — Enable Documents folder

This endpoint allows API users to enable the Documents folder for a team. 

> [!NOTE]
> Only the team's primary admin or an admin can call this endpoint.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `team_id` | string | Yes | ID of the team. |

## Responses

### 200

The Documents folder was enabled for the team.

**Example** (`Successful response`)

```json
{
  "id": "132bcc1aaf479fd33bf635001b2f7b34215e9db7"
}
```

### 400

* User is not an admin.
* Team not found.

**Example** (`Team not found`)

```json
{
  "code": 66391,
  "message": "Team not found"
}
```

**Example** (`User not admin`)

```json
{
  "code": 65615,
  "message": "Operation not allowed"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/team/{team_id}/shared/document/folder" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## DELETE /team/{team_id}/shared/document/folder — Disable Documents folder

This endpoint allows API users to disable the Documents folder for a team. The team's Documents folder is deleted. Documents stored in it are not deleted: they move back to their owners' Documents folders.

> [!NOTE]
> Only the team's primary admin or an admin can call this endpoint.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `team_id` | string | Yes | ID of the team. |

## Responses

### 200

The Documents folder was disabled for the team.

**Example** (`Successful response`)

```json
{
  "result": "success"
}
```

### 400

* User is not an admin.
* Team not found.
* The Documents folder isn't enabled for the team.
* The team belongs to a workspace.

**Example** (`Team not found`)

```json
{
  "code": 66391,
  "message": "Team not found"
}
```

**Example** (`User not admin`)

```json
{
  "code": 65615,
  "message": "Operation not allowed"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/team/{team_id}/shared/document/folder" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /import/document-templates — Import template from DocuSign

This endpoint allows API users to import a DocuSign template from a ZIP file to the user's account and get the ID of the new template.

**How to download a template from DocuSign as a zip file**

1. Log in to your DocuSign account and go to the **Templates** tab.
2. Select the template you’d like to download and click **Use** > **Download** next to it.
3. The template will be downloaded to your device in ZIP format.

*Note*: To download multiple DocuSign templates at once, select all the templates you need and click **More** > **Download** in the action panel above your templates.

## Authorization

bearer

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-type` | string | No | multipart/form-data |

## Form Data Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `file` | string | No | @your-file.zip |

## Responses

### 200

List of created document templates

**Example** (`Successful response`)

```json
[
  {
    "file_size": 12345,
    "document_id": "f320565688fb75a86ed20f3ac95abb05ce39c8eb",
    "document_name": "document name 1"
  },
  {
    "file_size": 12345,
    "document_id": "453533b08ff6e34249df7188f47c0d7885e32f2c",
    "document_name": "document name 2"
  },
  {
    "file_size": null,
    "document_id": null,
    "document_name": "document name 3",
    "processing_error": "Data does not contain valid json'"
  }
]
```

### 400

* Wrong, expired, or missing token.
* The request has no file, code 65536. Message: "Must upload one file".
* The file is larger than 50 MB, code 65580. Message: "File is too big."
* The file type is incorrect (must be a ZIP file containing JSON), code 65578. Message: "Wrong file type."
* Document dimensions couldn't be generated, code 21001101. Message: "PdfProcessor. Couldn't get dimensions".

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`No file in the request`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Must upload one file"
    }
  ]
}
```

**Example** (`File size more than 50 MB`)

```json
{
  "errors": [
    {
      "code": 65580,
      "message": "File is too big."
    }
  ]
}
```

**Example** (`Using the file with incorrect file type`)

```json
{
  "errors": [
    {
      "code": 65578,
      "message": "Invalid file type."
    }
  ]
}
```

**Example** (`Something wrong with generating document dimensions`)

```json
{
  "errors": [
    {
      "code": 21001101,
      "message": "PdfProcessor. Couldn't get dimensions"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/import/document-templates" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## POST /template — Create template

This endpoint allows API users to create a template by flattening an existing document.

**Template** - an entity that holds the structure of a document and serves for generating its copies.

SignNow users cannot make a template without uploading a document first. They can generate (clone) a new instance of a document from it. 
 
Recipients always sign a document generated from the template, never the template itself. Each generated document can be customized for its recipient, for example prefilled with account info. Templates can be shared within a team and edited only by the owner.

For the full flow, from creating the template to sending the generated document for signature, see [Documents, doc groups, and templates](/docs/entities).

For more information, check out our video tutorial.

<details open>

**<summary>Video tutorial</summary>**

<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>

[Video tutorial](https://www.youtube.com/watch?v=WjohB0P5S8M)

</details>

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "document_id"
  ],
  "properties": {
    "document_id": {
      "type": "string",
      "description": "ID of the document to create the template from."
    },
    "document_name": {
      "type": "string",
      "description": "Name of the template. Max: `255` characters; longer names are cut to `255`. Default: the name of the source document."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "document_id": "88d2d61271749230ce2b8c4d834c0ca5348aec0f",
  "document_name": "Sample template"
}
```

## Responses

### 200

The template was created from the document.

**Example** (`Successful response`)

```json
{
  "id": "c627ad81502c287a2849d924e4e9738c70471a2b"
}
```

### 400

* Wrong, expired, or missing token.
* `document_id` is missing.
* The document doesn't exist.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document not found"
    }
  ]
}
```

**Example** (`Missing document_id`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document ID is required."
    }
  ]
}
```

### 422

The document belongs to another user.

**Example** (`Not the owner`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "Could not copy document"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/template" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"document_id": "88d2d61271749230ce2b8c4d834c0ca5348aec0f", "document_name": "Sample template"}'
```

---

## POST /template/{document_id}/bulkinvite — Bulk invite

This endpoint allows API users to create multiple invites to different signers from one template. A new document is generated for each signer and stored in the needed folder.

To create a bulk invite, you need a CSV file with signers' roles, emails, and document names. The format is the following:

**For one role**

```json

Recipient 1|signer1@email.com,document_name
Recipient 1|signer2@email.com,document_name

```

**For multiple roles**

```json

Recipient 1|signer1@email.com,Recipient 2|signer2@email.com,document_name1
Recipient 1|signer3@email.com,Recipient 2|signer4@email.com,document_name2

```

All the roles in the CSV must be assigned to at least one field in the template, and all the roles that exist in the template must be in the CSV.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | Unique ID of the template. |

## Form Data Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `file` | file | Yes | A CSV file with a list of roles, email addresses, and document names. |
| `folder_id` | string | Yes | ID of the folder to store the documents in. To find the ID, use [`GET /user/folder`](/docs/folder/operations/get-all-folders). |
| `subject` | string | No | Custom email subject for all signers. |
| `email_message` | string | No | Custom email message for all signers. |
| `client_timestamp` | integer | No | The timestamp in UNIX code. |
| `signature_type` | string | No | Type of QES signature requested from signers. Possible values: `eideasy`, `eideasy-pdf`, `nom151`. Available to members of an organization with QES settings enabled. For more information, see the [QES user guide](/docs/qualified-electronic-signature). |

## Responses

### 200

The bulk invite was queued. Documents are created and invites are sent in the background.

**Example** (`Successful response`)

```json
{
  "status": "job queued"
}
```

### 400

* Incorrect file type (must be a CSV).
* Missing CSV file.
* Missing `folder_id`.
* Missing or extra recipients in the CSV file.
* Document name in the CSV file is missing or incorrect.
* QES is not set for this user's organization.
* User cannot use QES if not in organization.
* Incorrect `signature_type`. Allowed values: `eideasy`,`eideasy-pdf`, `nom151`.


**Example** (`Missing CSV file`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Must upload one file"
    }
  ]
}
```

**Example** (`Missing folder_id`)

```json
{
  "errors": [
    {
      "code": 65544,
      "message": "The folder_id field is required."
    }
  ]
}
```

**Example** (`Incorrect file type`)

```json
{
  "errors": [
    {
      "code": 65578,
      "message": "Invalid file type."
    }
  ]
}
```

**Example** (`Incorrect signature type`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The signature_type should have one of the following values: \"eideasy\", \"nom151\", \"eideasy-pdf\"."
    }
  ]
}
```

**Example** (`User not in organization`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Organization required to send invite with advanced signing"
    }
  ]
}
```

**Example** (`Missing or extra recipients`)

```json
{
  "errors": [
    {
      "code": 65581,
      "message": "CSV file,line no 1 - missing required Actor's information. Required Actors = 2 and CSV provided information for Actors = 1"
    }
  ]
}
```

**Example** (`QES not set for organization`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Invalid advanced sign provider for sender organization"
    }
  ]
}
```

**Example** (`Document name missing or incorrect`)

```json
{
  "errors": [
    {
      "code": 65581,
      "message": "CSV file, line no 2 - document name is missing or invalid "
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/template/{document_id}/bulkinvite" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## POST /template/{template_id}/copy — Create document from template

This endpoint allows API users to create a new document from a template. If a name is not supplied, the document takes the name of the template.

The new document is a signable copy: the template stays untouched as the master version. The response returns the new document's `id`. The copy has its own document, field, and role IDs, all different from the template's, so read the current roles and fields from [Get document](/docs/document/operations/get-document) for the new document rather than reusing the template's. For the full flow, from preparing the document to sending the copy for signature, see [Documents, doc groups, and templates](/docs/entities). To let recipients sign the copy inside your own site or app, see [Embedded signing](/docs/guides-embedded-signing). To copy the template itself instead of generating a signable document, use [Duplicate template](/docs/template/operations/post-v2-templates-template-id-copy).

For more information, check out our video tutorial.

<details open>

**<summary>Video tutorial</summary>**

<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>

[Video tutorial](https://www.youtube.com/watch?v=WjohB0P5S8M)

</details>

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `template_id` | string | Yes | ID of the template. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "document_name": {
      "type": "string",
      "description": "Name of the new document."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "document_name": "New document"
}
```

## Responses

### 200

The document was created from the template.

**Example** (`Successful response`)

```json
{
  "id": "7a8043995fdf81759d389c9049ca56437331a929",
  "name": "New document"
}
```

### 400

* Wrong, expired, or missing token.
* The template doesn't exist.
* The template belongs to another user.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Not the owner`)

```json
{
  "errors": [
    {
      "code": 65610,
      "message": "not readable"
    }
  ]
}
```

**Example** (`Template not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/template/{template_id}/copy" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"document_name": "New document"}'
```

---

## GET /v2/templates/{template_id}/copies — Get list of documents from template

This endpoint allows API users to retrieve all documents created from a template. 

**Example of a request with query parameters**

```json

/v2/templates/{template_id}/copies?sort_by=created&sort_order=desc&per_page=20&filters[signing_status]=pending`

```

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `template_id` | string | Yes | The ID of the template. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `sort_by` | string | No | Field to sort documents by. Possible values: `updated`, `created`, `document_name`. |
| `sort_order` | string | No | Sort the list in ascending or descending order. Possible values: `asc`, `desc`. |
| `page` | integer | No | Page number to view. |
| `per_page` | integer | No | Number of documents per page. |
| `filters[signing_status]` | string | No | Signing status to filter documents by. Possible values: `waiting-for-me`, `waiting-for-others`, `signed`, `pending`, `has-invites`, `expired`. |
| `filters[entity_labels]` | string | No | Label to filter documents by. Possible values: `declined` (the invite was declined), `undelivered` (the invite email wasn't delivered). You can use both values together. |
| `search_key` | string | No | Search by a key word, part of word, or phrase. |
| `search_by` | string | No | Field to search by. Possible values: `document-name`, `signer-email`, `inviter-email`, `document-text`, `document-id`. |
| `exclude` | string | No | Entities to exclude from the response. Possible value: `doc-from-dg` (documents that are in document groups). |

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Responses

### 200

Successful response. Returns the documents created from the template, with pagination details. Use the query parameters to filter, sort, and paginate the results.

**Example** (`Request with declined invite`)

```json
{
  "data": [
    {
      "id": "5bc38ea7d03dee19130aea73b7ce0162ac1c6f60",
      "owner": "sender@email.com",
      "roles": [
        {
          "name": "Recipient 1",
          "unique_id": "d86edc7656c042a00e26b8db272f903adf0af0dc",
          "signing_order": 1
        }
      ],
      "seals": [],
      "texts": [],
      "checks": [],
      "fields": [
        {
          "id": "13d9b0c320388ca37d1ddb11d6d27e2c46b60e33",
          "role": "Recipient 1",
          "type": "signature",
          "role_id": "d86edc7656c042a00e26b8db272f903adf0af0dc",
          "field_id": "8b58572b704e286a0d4cd3750e033d9141f646d2",
          "fulfiller": "signer@email.com",
          "element_id": null,
          "originator": "owner@email.com",
          "json_attributes": {
            "x": 68,
            "y": 664,
            "name": "Signature 1",
            "width": 83,
            "height": 21,
            "required": true,
            "page_number": 0,
            "allowed_types": [
              "type",
              "draw",
              "upload"
            ]
          },
          "field_request_id": "8b58572b704e286a0d4cd3750e033d9141f646d2",
          "template_field_id": "be760476008681cd776cbe4ba465c1562b6182ea",
          "field_request_canceled": null
        }
      ],
      "created": 1716320167,
      "inserts": [],
      "updated": 1716320169,
      "user_id": "fc37cdecda422c8ad953d5d286be1b551d23db1e",
      "requests": [],
      "settings": {
        "allow_qes": false,
        "enable_mfa": false,
        "enable_pki": false,
        "enable_qes": false,
        "copy_export": false,
        "date_format": false,
        "upload_limit": false,
        "document_guide": false,
        "signing_reason": false,
        "sso-only-login": false,
        "run_experiments": false,
        "mobileweb_option": false,
        "cloud_auto_export": false,
        "default_workspace": false,
        "logout_on_signing": false,
        "restrict_download": false,
        "common_experiments": false,
        "add_signature_stamp": false,
        "disable_form_search": false,
        "email_logo_position": false,
        "cfr_title_21_part_11": false,
        "email_btn_bkgd_color": false,
        "email_btn_text_color": false,
        "email_custom_message": false,
        "email_custom_subject": false,
        "email_footer_enabled": false,
        "advanced_signing_flow": false,
        "enable_eu_date_format": false,
        "flatten_before_aspose": false,
        "require_email_subject": false,
        "use_team_generic_data": false,
        "enable_hyperlink_field": false,
        "invite_expiration_days": false,
        "no_document_attachment": false,
        "workspace_organization": false,
        "agree_to_be_beta_tester": false,
        "electronic_consent_text": false,
        "org_allowed_team_admins": false,
        "disable_email_recipients": false,
        "document_schema_extended": false,
        "enable_document_comments": false,
        "front_end_session_length": false,
        "no_user_signature_return": false,
        "require_drawn_signatures": false,
        "signature_stamp_position": false,
        "allow_big_attachment_file": false,
        "cloud_export_with_history": false,
        "enable_full_story_tracker": false,
        "enable_team_generic_email": false,
        "require_login_for_signing": false,
        "allow_download_certificate": false,
        "default_workspace_assigned": false,
        "do_no_consent_redirect_url": false,
        "disable_email_notifications": false,
        "electronic_consent_required": false,
        "email_admin_on_banned_login": false,
        "enable_hyperlink_protection": false,
        "enable_team_admin_move_docs": false,
        "invite_decline_redirect_url": false,
        "parse_only_signature_fields": false,
        "allow_team_admin_rename_docs": false,
        "emailed_docs_include_history": false,
        "lock_signing_date_by_default": false,
        "no_document_file_attachments": false,
        "add_signature_stamp_with_name": false,
        "attach_doc_on_all_cc_messages": false,
        "digitally_sign_dowloaded_docs": false,
        "watermark_downloaded_document": false,
        "invite_completion_redirect_url": false,
        "required_preset_signature_name": false,
        "signing_link_document_download": false,
        "block_login_via_social_networks": false,
        "completed_document_name_formula": false,
        "hide_upgrade_subscription_button": false,
        "allow_edit_document_after_signing": false,
        "default_field_invite_remind_after": false,
        "disable_download_action_in_editor": false,
        "enable_advanced_threat_protection": false,
        "have_merged_document_group_option": false,
        "default_field_invite_remind_before": false,
        "default_field_invite_remind_repeat": false,
        "document_completion_retention_days": false,
        "require_authentication_for_invites": false,
        "save_signer_signature_and_initials": false,
        "document_attachment_only_for_signer": false,
        "default_field_invite_expiration_time": false,
        "unsuccessful_logout_attempts_allowed": false,
        "audit_trail_completion_retention_days": false,
        "block_organization_selfleave_by_member": false,
        "enable_render_pages_in_editor_as_images": false,
        "allow_document_copying_to_other_accounts": false,
        "allow_embedded_extended_token_expiration": false,
        "pending_invite_document_view_notification": false,
        "disable_problem_invite_email_notifications": false,
        "guide_signers_only_through_required_fields": false,
        "redirect_to_registration_when_fields_saved": false,
        "hide_decline_to_sign_option_in_signing_session": false,
        "only_administrator_is_able_to_invite_to_the_team": false,
        "allow_big_count_of_attachment_fields_per_document": false,
        "agreement_to_test_new_functionality_in_organization": false,
        "document_prefill_disable_fields_existing_validation": false,
        "auto_apply_signatures_and_initials_to_document_fields": false,
        "allow_team_admin_create_csv_report_for_shared_template": false,
        "block_export_options_when_credit_card_validation_is_used": false,
        "receive_signer_email_after_sent_field_invite_to_yourself": false,
        "enable_document_download_link_for_invite_completion_mails": false,
        "cc_completion_email_contain_only_downloading_document_link": false,
        "invite_update_notifications_for_all_invites_at_invite_create": false,
        "every_signature_and_initials_field_requires_user_authentication": false
      },
      "parent_id": "67eb16e19979bb859d6638ec0bde2489da6fb4cd",
      "thumbnail": {
        "large": "https://api-eval.signnow.com/document/5bc38ea7d03dee19130aea73b7ce0162ac1c6f60/thumbnail?size=large",
        "small": "https://api-eval.signnow.com/document/5bc38ea7d03dee19130aea73b7ce0162ac1c6f60/thumbnail?size=small",
        "medium": "https://api-eval.signnow.com/document/5bc38ea7d03dee19130aea73b7ce0162ac1c6f60/thumbnail?size=medium"
      },
      "page_count": 1,
      "signatures": [],
      "attachments": [],
      "radiobuttons": [],
      "viewer_roles": [],
      "document_name": "Request two signatures",
      "entity_labels": [
        {
          "updated": 1716320189,
          "is_system": true,
          "label_name": "declined"
        }
      ],
      "field_invites": [
        {
          "id": "d5f29e32f01cf7d339219b143e622d27b078e2d7",
          "role": "Recipient 1",
          "email": "signer@email.com",
          "status": "pending",
          "created": 1716320169,
          "role_id": "d86edc7656c042a00e26b8db272f903adf0af0dc",
          "updated": 1716320169,
          "declined": [
            {
              "declined_text": "The document contains incorrect data"
            }
          ],
          "reassign": false,
          "reminder": false,
          "id_verified": "UNVERIFIED",
          "is_embedded": false,
          "delivery_type": "email",
          "password_type": "",
          "signer_user_id": "509ce5ff0239cf3eb07c15a0175f1ba20a882aa2",
          "expiration_time": 1718912169,
          "is_draft_exists": false,
          "password_method": "",
          "payment_request": null,
          "is_full_declined": false,
          "is_document_locked": false,
          "password_protected": false,
          "email_sent_statuses": [
            {
              "status": "sent",
              "created_at": 1716320171,
              "last_reaction_at": 1716320171
            },
            {
              "status": "mail_open",
              "created_at": 1716320176,
              "last_reaction_at": 1716320175
            },
            {
              "status": "mail_click",
              "created_at": 1716320177,
              "last_reaction_at": 1716320175
            }
          ],
          "force_new_signature": null,
          "signer_phone_invite": null,
          "decline_by_signature": "0",
          "signing_instructions": null,
          "electronic_consent_id": "2abc34ef987b9084e258e09e3811be405f814c6b",
          "prefill_signature_name": null,
          "id_verification_required": "NO",
          "electronic_consent_required": 1,
          "required_preset_signature_name": null
        }
      ],
      "recently_used": 1716320189,
      "notary_invites": [],
      "origin_user_id": "fc37cdecda422c8ad953d5d286be1b551d23db1e",
      "routing_details": [
        {
          "cc": [],
          "id": "e2af2c74acfba30c1a86073784cdf854e9200cc3",
          "data": [
            {
              "name": "Recipient 1",
              "role_id": "d86edc7656c042a00e26b8db272f903adf0af0dc",
              "reassign": false,
              "reminder": {
                "remind_after": 0,
                "remind_before": 0,
                "remind_repeat": 0
              },
              "inviter_role": false,
              "default_email": "signer@email.com",
              "delivery_type": "email",
              "signing_order": 1,
              "expiration_days": 30,
              "decline_by_signature": false
            }
          ],
          "cc_step": [],
          "created": 1716320168,
          "updated": 1716320168,
          "viewers": [],
          "invite_link_instructions": ""
        }
      ],
      "field_validators": [],
      "original_filename": "Request two signatures.pdf",
      "origin_document_id": "3e30d7d2b8757ccf30a2934109a048d9fd580758",
      "document_group_info": null,
      "enumeration_options": [],
      "viewer_field_invites": []
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

**Example** (`Request with sort and ordering`)

```json
{
  "data": [
    {
      "id": "77a93b5a88f7d2e068041610dd5d0ecc35224860",
      "owner": "owner@email.com",
      "roles": [
        {
          "name": "Recipient 1",
          "unique_id": "9b97211bbbffb76368a8287e8b3ba11d01c3bcbd",
          "signing_order": 1
        }
      ],
      "fields": [
        {
          "id": "51dc3f42a409efe9b7457575def660850b27f5bc",
          "role": "Recipient 1",
          "type": "signature",
          "role_id": "9b97211bbbffb76368a8287e8b3ba11d01c3bcbd",
          "field_id": "f14409eefbed3e2af7481339e63f0e2b1aae677b",
          "fulfiller": "signer@email.com",
          "element_id": null,
          "originator": "sender@email.com",
          "json_attributes": {
            "x": 114,
            "y": 122,
            "name": "Signature_1",
            "width": 80,
            "height": 20,
            "required": true,
            "page_number": 0,
            "allowed_types": [
              "type",
              "draw",
              "upload"
            ]
          },
          "field_request_id": "f14409eefbed3e2af7481339e63f0e2b1aae677b",
          "template_field_id": "4285e2830b40c868ee7e6d1190361796ec35ad2c",
          "field_request_canceled": null
        }
      ],
      "created": 1652070929,
      "updated": 1652070931,
      "user_id": "fc37cdecda422c8ad953d5d286be1b551d23db1e",
      "requests": [],
      "settings": {
        "ololo": false,
        "mytext": false,
        "mytext1": false,
        "enable_mfa": false,
        "enable_pki": false,
        "copy_export": false,
        "date_format": false,
        "enable_qwer": false,
        "upload_limit": false,
        "document_guide": false,
        "sso-only-login": false,
        "mobileweb_option": false,
        "cloud_auto_export": false,
        "logout_on_signing": false,
        "restrict_download": false,
        "common_experiments": false,
        "enable_experiments": false,
        "add_signature_stamp": false,
        "email_logo_position": false,
        "cfr_title_21_part_11": false,
        "email_btn_bkgd_color": false,
        "email_btn_text_color": false,
        "email_custom_message": false,
        "email_custom_subject": false,
        "email_footer_enabled": false,
        "enable_eu_date_format": false,
        "require_email_subject": false,
        "enable_hyperlink_field": false,
        "invite_expiration_days": false,
        "no_document_attachment": false,
        "agree_to_be_beta_tester": false,
        "electronic_consent_text": false,
        "flatten_document_fields": false,
        "org_allowed_team_admins": false,
        "document_schema_extended": false,
        "enable_document_comments": false,
        "front_end_session_length": false,
        "no_user_signature_return": false,
        "require_drawn_signatures": false,
        "signature_stamp_position": false,
        "allow_big_attachment_file": false,
        "cloud_export_with_history": false,
        "enable_full_story_tracker": false,
        "require_login_for_signing": false,
        "allow_download_certificate": false,
        "do_no_consent_redirect_url": false,
        "disable_email_notifications": false,
        "electronic_consent_required": false,
        "email_admin_on_banned_login": false,
        "enable_hyperlink_protection": false,
        "enable_team_admin_move_docs": false,
        "invite_decline_redirect_url": false,
        "allow_team_admin_rename_docs": false,
        "emailed_docs_include_history": false,
        "lock_signing_date_by_default": false,
        "no_document_file_attachments": false,
        "add_signature_stamp_with_name": false,
        "digitally_sign_dowloaded_docs": false,
        "watermark_downloaded_document": false,
        "invite_completion_redirect_url": false,
        "required_preset_signature_name": false,
        "signing_link_document_download": false,
        "block_login_via_social_networks": false,
        "hide_upgrade_subscription_button": false,
        "allow_edit_document_after_signing": false,
        "default_field_invite_remind_after": false,
        "disable_download_action_in_editor": false,
        "enable_advanced_threat_protection": false,
        "have_merged_document_group_option": false,
        "auto_deletion_documents_from_trash": false,
        "default_field_invite_remind_before": false,
        "default_field_invite_remind_repeat": false,
        "document_completion_retention_days": false,
        "require_authentication_for_invites": false,
        "save_signer_signature_and_initials": false,
        "signing_link_document_name_formula": false,
        "disable_recipients_list_from_editor": false,
        "document_attachment_only_for_signer": false,
        "default_field_invite_expiration_time": false,
        "unsuccessful_logout_attempts_allowed": false,
        "audit_trail_completion_retention_days": false,
        "block_organization_selfleave_by_member": false,
        "enable_render_pages_in_editor_as_images": false,
        "allow_document_copying_to_other_accounts": false,
        "allow_embedded_extended_token_expiration": false,
        "pending_invite_document_view_notification": false,
        "guide_signers_only_through_required_fields": false,
        "redirect_to_registration_when_fields_saved": false,
        "hide_decline_to_sign_option_in_signing_session": false,
        "max_attachments_for_signnow_fields_per_document": false,
        "only_administrator_is_able_to_invite_to_the_team": false,
        "allow_big_count_of_attachment_fields_per_document": false,
        "agreement_to_test_new_functionality_in_organization": false,
        "auto_apply_signatures_and_initials_to_document_fields": false,
        "block_export_options_when_credit_card_validation_is_used": false,
        "receive_signer_email_after_sent_field_invite_to_yourself": false,
        "enable_document_download_link_for_invite_completion_mails": false,
        "cc_completion_email_contain_only_downloading_document_link": false,
        "invite_update_notifications_for_all_invites_at_invite_create": false,
        "every_signature_and_initials_field_requires_user_authentication": false
      },
      "parent_id": "eb10ec31575a4977ce189fdda1c12b03c4619552",
      "thumbnail": {
        "large": "https://example.com/thumbnail?size=large",
        "small": "https://example.com/thumbnail?size=small",
        "medium": "https://example.com/thumbnail?size=medium"
      },
      "page_count": 1,
      "signatures": [],
      "attachments": [],
      "viewer_roles": [],
      "document_name": "sample copy 5",
      "field_invites": [
        {
          "id": "77a93b5a88f7d2e068041610dd5d0ecc35224860",
          "role": "Recipient 1",
          "email": "signer@email.com",
          "status": "pending",
          "created": 1652070930,
          "role_id": "9b97211bbbffb76368a8287e8b3ba11d01c3bcbd",
          "updated": 1652070931,
          "declined": [],
          "reassign": false,
          "reminder": true,
          "id_verified": "UNVERIFIED",
          "is_embedded": false,
          "delivery_type": "email",
          "password_type": "",
          "signer_user_id": "a721bab6ac8baac0ad2de0d716469e0597e7687d",
          "expiration_time": 1654662931,
          "is_draft_exists": false,
          "password_method": "",
          "payment_request": null,
          "is_full_declined": false,
          "is_document_locked": false,
          "password_protected": false,
          "email_sent_statuses": [
            {
              "status": "sent",
              "created_at": 1652070932,
              "last_reaction_at": 1652070932
            }
          ],
          "force_new_signature": null,
          "signer_phone_invite": null,
          "decline_by_signature": "0",
          "signing_instructions": null,
          "electronic_consent_id": null,
          "prefill_signature_name": null,
          "id_verification_required": "NO",
          "electronic_consent_required": 0,
          "required_preset_signature_name": null
        }
      ],
      "origin_user_id": "fc37cdecda422c8ad953d5d286be1b551d23db1e",
      "routing_details": [
        {
          "cc": [],
          "id": "9950b245aa7f7632c5f2bccefd37bf02b7149be2",
          "data": [
            {
              "name": "Recipient 1",
              "role_id": "9b97211bbbffb76368a8287e8b3ba11d01c3bcbd",
              "reassign": false,
              "reminder": {
                "remind_after": 10,
                "remind_before": 11,
                "remind_repeat": 7
              },
              "inviter_role": false,
              "default_email": "",
              "delivery_type": "email",
              "signing_order": 1,
              "expiration_days": 30,
              "decline_by_signature": false
            }
          ],
          "cc_step": [],
          "created": 1652070929,
          "updated": 1652070929,
          "viewers": [],
          "invite_link_instructions": ""
        }
      ],
      "original_filename": "sample copy 5.pdf",
      "origin_document_id": "6a7e72bd69b279bb97764e3bd72b19348a619797",
      "document_group_info": null,
      "enumeration_options": [],
      "viewer_field_invites": []
    },
    {
      "id": "785e43f19b0de1f35f1c86dcbf0dedf57639253a",
      "owner": "owner@email.com",
      "roles": [
        {
          "name": "Recipient 1",
          "unique_id": "e7a1205fe3b33f42956963def680399b8b6a98a9",
          "signing_order": 1
        }
      ],
      "fields": [
        {
          "id": "4054e3121c333c7e895ca6b6d8ab9650cfb26486",
          "role": "Recipient 1",
          "type": "signature",
          "role_id": "e7a1205fe3b33f42956963def680399b8b6a98a9",
          "field_id": "fb92a1d7a7c5ced6983c4e953e31f33dc99634cf",
          "fulfiller": "signer@email.com",
          "element_id": null,
          "originator": "sender@email.com",
          "json_attributes": {
            "x": 114,
            "y": 122,
            "name": "Signature_1",
            "width": 80,
            "height": 20,
            "required": true,
            "page_number": 0,
            "allowed_types": [
              "type",
              "draw",
              "upload"
            ]
          },
          "field_request_id": "fb92a1d7a7c5ced6983c4e953e31f33dc99634cf",
          "template_field_id": "4285e2830b40c868ee7e6d1190361796ec35ad2c",
          "field_request_canceled": null
        }
      ],
      "created": 1652070809,
      "updated": 1652070811,
      "user_id": "fc37cdecda422c8ad953d5d286be1b551d23db1e",
      "requests": [],
      "settings": {
        "mytext": false,
        "mytext1": false,
        "enable_mfa": false,
        "enable_pki": false,
        "copy_export": false,
        "date_format": false,
        "enable_qwer": false,
        "upload_limit": false,
        "document_guide": false,
        "sso-only-login": false,
        "mobileweb_option": false,
        "cloud_auto_export": false,
        "logout_on_signing": false,
        "restrict_download": false,
        "common_experiments": false,
        "enable_experiments": false,
        "add_signature_stamp": false,
        "email_logo_position": false,
        "cfr_title_21_part_11": false,
        "email_btn_bkgd_color": false,
        "email_btn_text_color": false,
        "email_custom_message": false,
        "email_custom_subject": false,
        "email_footer_enabled": false,
        "enable_eu_date_format": false,
        "require_email_subject": false,
        "enable_hyperlink_field": false,
        "invite_expiration_days": false,
        "no_document_attachment": false,
        "agree_to_be_beta_tester": false,
        "electronic_consent_text": false,
        "flatten_document_fields": false,
        "org_allowed_team_admins": false,
        "document_schema_extended": false,
        "enable_document_comments": false,
        "front_end_session_length": false,
        "no_user_signature_return": false,
        "require_drawn_signatures": false,
        "signature_stamp_position": false,
        "allow_big_attachment_file": false,
        "cloud_export_with_history": false,
        "enable_full_story_tracker": false,
        "require_login_for_signing": false,
        "allow_download_certificate": false,
        "do_no_consent_redirect_url": false,
        "disable_email_notifications": false,
        "electronic_consent_required": false,
        "email_admin_on_banned_login": false,
        "enable_hyperlink_protection": false,
        "enable_team_admin_move_docs": false,
        "invite_decline_redirect_url": false,
        "allow_team_admin_rename_docs": false,
        "emailed_docs_include_history": false,
        "lock_signing_date_by_default": false,
        "no_document_file_attachments": false,
        "add_signature_stamp_with_name": false,
        "digitally_sign_dowloaded_docs": false,
        "watermark_downloaded_document": false,
        "invite_completion_redirect_url": false,
        "required_preset_signature_name": false,
        "signing_link_document_download": false,
        "block_login_via_social_networks": false,
        "hide_upgrade_subscription_button": false,
        "allow_edit_document_after_signing": false,
        "default_field_invite_remind_after": false,
        "disable_download_action_in_editor": false,
        "enable_advanced_threat_protection": false,
        "have_merged_document_group_option": false,
        "auto_deletion_documents_from_trash": false,
        "default_field_invite_remind_before": false,
        "default_field_invite_remind_repeat": false,
        "document_completion_retention_days": false,
        "require_authentication_for_invites": false,
        "save_signer_signature_and_initials": false,
        "signing_link_document_name_formula": false,
        "disable_recipients_list_from_editor": false,
        "document_attachment_only_for_signer": false,
        "default_field_invite_expiration_time": false,
        "unsuccessful_logout_attempts_allowed": false,
        "audit_trail_completion_retention_days": false,
        "block_organization_selfleave_by_member": false,
        "enable_render_pages_in_editor_as_images": false,
        "allow_document_copying_to_other_accounts": false,
        "allow_embedded_extended_token_expiration": false,
        "pending_invite_document_view_notification": false,
        "guide_signers_only_through_required_fields": false,
        "redirect_to_registration_when_fields_saved": false,
        "hide_decline_to_sign_option_in_signing_session": false,
        "max_attachments_for_signnow_fields_per_document": false,
        "only_administrator_is_able_to_invite_to_the_team": false,
        "allow_big_count_of_attachment_fields_per_document": false,
        "agreement_to_test_new_functionality_in_organization": false,
        "auto_apply_signatures_and_initials_to_document_fields": false,
        "block_export_options_when_credit_card_validation_is_used": false,
        "receive_signer_email_after_sent_field_invite_to_yourself": false,
        "enable_document_download_link_for_invite_completion_mails": false,
        "cc_completion_email_contain_only_downloading_document_link": false,
        "invite_update_notifications_for_all_invites_at_invite_create": false,
        "every_signature_and_initials_field_requires_user_authentication": false
      },
      "parent_id": "eb10ec31575a4977ce189fdda1c12b03c4619552",
      "thumbnail": {
        "large": "https://example.com/thumbnail?size=large",
        "small": "https://example.com/thumbnail?size=small",
        "medium": "https://example.com/thumbnail?size=medium"
      },
      "page_count": 1,
      "signatures": [],
      "attachments": [],
      "viewer_roles": [],
      "document_name": "sample copy 5",
      "entity_labels": [],
      "field_invites": [
        {
          "id": "d4501295a7d62cdc5719af8946e6c574a8a8f9a9",
          "role": "Recipient 1",
          "email": "signer@email.com",
          "status": "pending",
          "created": 1652070811,
          "role_id": "e7a1205fe3b33f42956963def680399b8b6a98a9",
          "updated": 1652070811,
          "declined": [],
          "reassign": false,
          "reminder": true,
          "id_verified": "UNVERIFIED",
          "is_embedded": false,
          "delivery_type": "email",
          "password_type": "",
          "signer_user_id": "fb92a1d7a7c5ced6983c4e953e31f33dc99634cf",
          "expiration_time": 1654662811,
          "is_draft_exists": false,
          "password_method": "",
          "payment_request": null,
          "is_full_declined": false,
          "is_document_locked": false,
          "password_protected": false,
          "email_sent_statuses": [
            {
              "status": "sent",
              "created_at": 1652070812,
              "last_reaction_at": 1652070812
            }
          ],
          "force_new_signature": null,
          "signer_phone_invite": null,
          "decline_by_signature": "0",
          "signing_instructions": null,
          "electronic_consent_id": null,
          "prefill_signature_name": null,
          "id_verification_required": "NO",
          "electronic_consent_required": 0,
          "required_preset_signature_name": null
        }
      ],
      "origin_user_id": "fc37cdecda422c8ad953d5d286be1b551d23db1e",
      "routing_details": [
        {
          "cc": [],
          "id": "54c415349a9b4cec7d989107e3ab3ed0c5f4f2e1",
          "data": [
            {
              "name": "Recipient 1",
              "role_id": "e7a1205fe3b33f42956963def680399b8b6a98a9",
              "reassign": false,
              "reminder": {
                "remind_after": 10,
                "remind_before": 11,
                "remind_repeat": 7
              },
              "inviter_role": false,
              "default_email": "",
              "delivery_type": "email",
              "signing_order": 1,
              "expiration_days": 30,
              "decline_by_signature": false
            }
          ],
          "cc_step": [],
          "created": 1652070809,
          "updated": 1652070809,
          "viewers": [],
          "invite_link_instructions": ""
        }
      ],
      "original_filename": "sample copy 5.pdf",
      "origin_document_id": "6a7e72bd69b279bb97764e3bd72b19348a619797",
      "document_group_info": null,
      "enumeration_options": [],
      "viewer_field_invites": []
    }
  ],
  "meta": {
    "pagination": {
      "count": 2,
      "links": [],
      "total": 2,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

**Example** (`Request without query parameters`)

```json
{
  "data": [
    {
      "id": "5bc38ea7d03dee19130aea73b7ce0162ac1c6f60",
      "owner": "owner@email.com",
      "roles": [
        {
          "name": "Recipient 1",
          "unique_id": "d86edc7656c042a00e26b8db272f903adf0af0dc",
          "signing_order": 1
        }
      ],
      "fields": [
        {
          "id": "13d9b0c320388ca37d1ddb11d6d27e2c46b60e33",
          "role": "Recipient 1",
          "type": "signature",
          "role_id": "d86edc7656c042a00e26b8db272f903adf0af0dc",
          "field_id": "67eb16e19979bb859d6638ec0bde2489da6fb4cd",
          "fulfiller": "signer@email.com",
          "element_id": null,
          "originator": "sender@email.com",
          "json_attributes": {
            "x": 131,
            "y": 119,
            "name": "Signature_1",
            "width": 80,
            "height": 20,
            "required": true,
            "page_number": 0,
            "allowed_types": [
              "type",
              "draw",
              "upload"
            ]
          },
          "field_request_id": "67eb16e19979bb859d6638ec0bde2489da6fb4cd",
          "template_field_id": "be760476008681cd776cbe4ba465c1562b6182ea",
          "field_request_canceled": null
        }
      ],
      "created": 1651820262,
      "updated": 1651820264,
      "user_id": "fc37cdecda422c8ad953d5d286be1b551d23db1e",
      "requests": [],
      "settings": {
        "mytext": false,
        "mytext1": false,
        "enable_mfa": false,
        "enable_pki": false,
        "copy_export": false,
        "date_format": false,
        "enable_qwer": false,
        "upload_limit": false,
        "document_guide": false,
        "sso-only-login": false,
        "mobileweb_option": false,
        "cloud_auto_export": false,
        "logout_on_signing": false,
        "restrict_download": false,
        "common_experiments": false,
        "enable_experiments": false,
        "add_signature_stamp": false,
        "email_logo_position": false,
        "cfr_title_21_part_11": false,
        "email_btn_bkgd_color": false,
        "email_btn_text_color": false,
        "email_custom_message": false,
        "email_custom_subject": false,
        "email_footer_enabled": false,
        "enable_eu_date_format": false,
        "require_email_subject": false,
        "enable_hyperlink_field": false,
        "invite_expiration_days": false,
        "no_document_attachment": false,
        "agree_to_be_beta_tester": false,
        "electronic_consent_text": false,
        "flatten_document_fields": false,
        "org_allowed_team_admins": false,
        "document_schema_extended": false,
        "enable_document_comments": false,
        "front_end_session_length": false,
        "no_user_signature_return": false,
        "require_drawn_signatures": false,
        "signature_stamp_position": false,
        "allow_big_attachment_file": false,
        "cloud_export_with_history": false,
        "enable_full_story_tracker": false,
        "require_login_for_signing": false,
        "allow_download_certificate": false,
        "do_no_consent_redirect_url": false,
        "disable_email_notifications": false,
        "electronic_consent_required": false,
        "email_admin_on_banned_login": false,
        "enable_hyperlink_protection": false,
        "enable_team_admin_move_docs": false,
        "invite_decline_redirect_url": false,
        "allow_team_admin_rename_docs": false,
        "emailed_docs_include_history": false,
        "lock_signing_date_by_default": false,
        "no_document_file_attachments": false,
        "add_signature_stamp_with_name": false,
        "digitally_sign_dowloaded_docs": false,
        "watermark_downloaded_document": false,
        "invite_completion_redirect_url": false,
        "required_preset_signature_name": false,
        "signing_link_document_download": false,
        "block_login_via_social_networks": false,
        "hide_upgrade_subscription_button": false,
        "allow_edit_document_after_signing": false,
        "default_field_invite_remind_after": false,
        "disable_download_action_in_editor": false,
        "enable_advanced_threat_protection": false,
        "have_merged_document_group_option": false,
        "auto_deletion_documents_from_trash": false,
        "default_field_invite_remind_before": false,
        "default_field_invite_remind_repeat": false,
        "document_completion_retention_days": false,
        "require_authentication_for_invites": false,
        "save_signer_signature_and_initials": false,
        "signing_link_document_name_formula": false,
        "disable_recipients_list_from_editor": false,
        "document_attachment_only_for_signer": false,
        "default_field_invite_expiration_time": false,
        "unsuccessful_logout_attempts_allowed": false,
        "audit_trail_completion_retention_days": false,
        "block_organization_selfleave_by_member": false,
        "enable_render_pages_in_editor_as_images": false,
        "allow_document_copying_to_other_accounts": false,
        "allow_embedded_extended_token_expiration": false,
        "pending_invite_document_view_notification": false,
        "guide_signers_only_through_required_fields": false,
        "redirect_to_registration_when_fields_saved": false,
        "hide_decline_to_sign_option_in_signing_session": false,
        "max_attachments_for_signnow_fields_per_document": false,
        "only_administrator_is_able_to_invite_to_the_team": false,
        "allow_big_count_of_attachment_fields_per_document": false,
        "agreement_to_test_new_functionality_in_organization": false,
        "auto_apply_signatures_and_initials_to_document_fields": false,
        "block_export_options_when_credit_card_validation_is_used": false,
        "receive_signer_email_after_sent_field_invite_to_yourself": false,
        "enable_document_download_link_for_invite_completion_mails": false,
        "cc_completion_email_contain_only_downloading_document_link": false,
        "invite_update_notifications_for_all_invites_at_invite_create": false,
        "every_signature_and_initials_field_requires_user_authentication": false
      },
      "parent_id": "eb10ec31575a4977ce189fdda1c12b03c4619552",
      "thumbnail": {
        "large": "https://example.com/thumbnail?size=large",
        "small": "https://example.com/thumbnail?size=small",
        "medium": "https://example.com/thumbnail?size=medium"
      },
      "page_count": 1,
      "signatures": [],
      "attachments": [],
      "viewer_roles": [],
      "document_name": "sample copy 11",
      "entity_labels": [],
      "field_invites": [
        {
          "id": "d5f29e32f01cf7d339219b143e622d27b078e2d7",
          "role": "Recipient 1",
          "email": "signer@email.com",
          "status": "pending",
          "created": 1651820263,
          "role_id": "d86edc7656c042a00e26b8db272f903adf0af0dc",
          "updated": 1651820264,
          "declined": [],
          "reassign": false,
          "reminder": true,
          "id_verified": "UNVERIFIED",
          "is_embedded": false,
          "delivery_type": "email",
          "password_type": "",
          "signer_user_id": "509ce5ff0239cf3eb07c15a0175f1ba20a882aa2",
          "expiration_time": 1654412264,
          "is_draft_exists": false,
          "password_method": "",
          "payment_request": null,
          "is_full_declined": false,
          "is_document_locked": false,
          "password_protected": false,
          "email_sent_statuses": [
            {
              "status": "sent",
              "created_at": 1651820264,
              "last_reaction_at": 1651820264
            }
          ],
          "force_new_signature": null,
          "signer_phone_invite": null,
          "decline_by_signature": "0",
          "signing_instructions": null,
          "electronic_consent_id": null,
          "prefill_signature_name": null,
          "id_verification_required": "NO",
          "electronic_consent_required": 0,
          "required_preset_signature_name": null
        }
      ],
      "origin_user_id": "fc37cdecda422c8ad953d5d286be1b551d23db1e",
      "routing_details": [
        {
          "cc": [],
          "id": "e2af2c74acfba30c1a86073784cdf854e9200cc3",
          "data": [
            {
              "name": "Recipient 1",
              "role_id": "d86edc7656c042a00e26b8db272f903adf0af0dc",
              "reassign": false,
              "reminder": {
                "remind_after": 10,
                "remind_before": 11,
                "remind_repeat": 7
              },
              "inviter_role": false,
              "default_email": "",
              "delivery_type": "email",
              "signing_order": 1,
              "expiration_days": 30,
              "decline_by_signature": false
            }
          ],
          "cc_step": [],
          "created": 1651820263,
          "updated": 1651820263,
          "viewers": [],
          "invite_link_instructions": ""
        }
      ],
      "original_filename": "sample copy 11.pdf",
      "origin_document_id": "3e30d7d2b8757ccf30a2934109a048d9fd580758",
      "document_group_info": null,
      "enumeration_options": [],
      "viewer_field_invites": []
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* Wrong, expired, or missing token.
* Request with incorrect {template_id}.
* Request with {template_id} where the user is not owner of the template.
* Wrong sort_by format, incorrect value.
* Wrong sort_order format, incorrect value.
* Wrong per_page format, incorrect value.
* Wrong page format, incorrect value.
* Wrong filters[signing_status] format, incorrect value.

**Example** (`Wrong token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

**Example** (`Wrong page value`)

```json
{
  "errors": [
    {
      "code": 13003004,
      "message": "Query parameter `page` must be a digit"
    },
    {
      "code": 13003005,
      "message": "Query parameter `page` must be more than 0"
    }
  ]
}
```

**Example** (`Wrong sort_by value`)

```json
{
  "errors": [
    {
      "code": 13003008,
      "message": "Query parameter `sort_by` must be a value of (`updated`, `created` or `document_name`)."
    }
  ]
}
```

**Example** (`Wrong per_page value`)

```json
{
  "errors": [
    {
      "code": 13003001,
      "message": "Query parameter `per_page` must be a digit"
    },
    {
      "code": 13003002,
      "message": "Query parameter `per_page` must be more than 0"
    }
  ]
}
```

**Example** (`Incorrect template_id`)

```json
{
  "errors": [
    {
      "code": 13034001,
      "message": "Document template `{template_id}` is not found."
    }
  ]
}
```

**Example** (`Wrong sort_order value`)

```json
{
  "errors": [
    {
      "code": 13003009,
      "message": "Query parameter `sort_order` must be a value of (`desc` or `asc`)."
    }
  ]
}
```

**Example** (`Incorrect or missing token`)

```json
{
  "errors": [
    {
      "code": 1537,
      "error": "invalid_token"
    }
  ]
}
```

**Example** (`User is not owner of the template`)

```json
{
  "errors": [
    {
      "code": 13049001,
      "message": "The user is not owner of the template `{template_id}`."
    }
  ]
}
```

**Example** (`Wrong filters[signing_status] value`)

```json
{
  "errors": [
    {
      "code": 13051001,
      "message": "The `filters.signing_status` field value must be `waiting-for-me`, `has-invites`, `waiting-for-others`, `pending`, `signed`, `expired`."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/templates/{template_id}/copies" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /v2/templates/{template_id}/copy — Duplicate a template

This endpoint allows API users to create a new template by making a copy of an existing template and editing the copy.

The result is another template. To collect signatures, generate a document from it with [Create document from template](/docs/template/operations/get-template-copy) and send that document, or reach many signers at once with [Bulk invite](/docs/template/operations/bulk-invite).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `template_id` | string | Yes | ID of the source template. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "template_name"
  ],
  "properties": {
    "folder_id": {
      "type": "string",
      "description": "ID of the folder where the new template copy must be saved. If not specified, the new template will be saved to a Template folder."
    },
    "template_name": {
      "type": "string",
      "description": "The new template name."
    },
    "clear_recipient_details": {
      "type": "boolean",
      "description": "Whether or not to overwrite the recipients roles and actions in the template. `True` - yes, delete the recipients details from the template copy, `false` - no overwriting, use the recipients' details from the source template."
    }
  },
  "x-examples": {
    "Example 1": {
      "folder_id": "586ef233a1f9ec860bb0221e58ee5c57f760e39e",
      "template_name": "new template",
      "clear_recipient_details": false
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "folder_id": "586ef233a1f9ec860bb0221e58ee5c57f760e39e",
  "template_name": "new template",
  "clear_recipient_details": false
}
```

## Responses

### 201

The template was copied.

**Example** (`Successful response`)

```json
{
  "data": {
    "id": "04256d432fd8b1fd2fadfc1134bf5c93d72ccb25",
    "name": "New template"
  }
}
```

### 400

* Request with any of cases: invalid token, expired token, empty header, authorization = null, authorization without value.
* The `template_name` field must be a string.
* The `template_name` field is required and must not be empty.
* The `template_name` field must be a valid string.
* The `folder_id` field must be a string.
* The `folder_id` field must be a valid unique id.
* Cannot copy a deleted template.
* Folder of Templates only available.
* The `clear_recipient_details` field must be a boolean.

**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

**Example** (`Cannot copy a deleted template.`)

```json
{
  "errors": [
    {
      "code": 13021009,
      "message": "Copy deleted template is not possible."
    }
  ]
}
```

**Example** (`Folder of Templates only available.`)

```json
{
  "errors": [
    {
      "code": 13021005,
      "message": "Folder of Templates only available."
    }
  ]
}
```

**Example** (`The `folder_id` field must be a string.`)

```json
{
  "errors": [
    {
      "code": 13021002,
      "message": "The `folder_id` field must be a string."
    }
  ]
}
```

**Example** (`The `template_name` field must be a string.`)

```json
{
  "errors": [
    {
      "code": 13021001,
      "message": "The `template_name` field must be a string."
    }
  ]
}
```

**Example** (`The `folder_id` field must be a valid unique id.`)

```json
{
  "errors": [
    {
      "code": 13021003,
      "message": "The `folder_id` field must be a valid unique id."
    }
  ]
}
```

**Example** (`The `template_name` field must be a valid string.`)

```json
{
  "errors": [
    {
      "code": 13021011,
      "message": "The `template_name` field must be a valid string."
    }
  ]
}
```

**Example** (`The `clear_recipient_details` field must be a boolean.`)

```json
{
  "errors": [
    {
      "code": 13021012,
      "message": "The `clear_recipient_details` field must be a boolean."
    }
  ]
}
```

**Example** (`The `template_name` field is required and must not be empty.`)

```json
{
  "errors": [
    {
      "code": 13021010,
      "message": "The `template_name` field is required and must not be empty."
    }
  ]
}
```

### 403

* Access denied to specific template.
* Access denied to specific folder.

**Example** (`Access denied to specific folder.`)

```json
{
  "errors": [
    {
      "code": 13021004,
      "message": "Access denied to {unique_id} folder."
    }
  ]
}
```

**Example** (`Access denied to specific template.`)

```json
{
  "errors": [
    {
      "code": 13021008,
      "message": "Access denied to {unique_id} template."
    }
  ]
}
```

### 404

Template is not found.

**Example** (`Template is not found.`)

```json
{
  "errors": [
    {
      "code": 13021006,
      "message": "Template {unique_id} is not found."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/templates/{template_id}/copy" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"folder_id": "586ef233a1f9ec860bb0221e58ee5c57f760e39e", "template_name": "new template", "clear_recipient_details": false}'
```

---

## POST /v2/templates/{template_id}/roles — Share template

This endpoint allows an owner of a template to share it with other users (as a `viewer`, `sender`, or `editor`). An **editor** has all sender permissions and can also edit the template.

**Note**: A template can be shared only once with the same user. The user will receive an email notification about the shared template.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `template_id` | string | Yes | ID of the template. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "email",
    "role"
  ],
  "properties": {
    "role": {
      "enum": [
        "viewer",
        "sender",
        "editor"
      ],
      "type": "string",
      "example": "sender",
      "description": "The role assigned to the user. Allowed values: `viewer`, `sender`, `editor`."
    },
    "email": {
      "type": "string",
      "example": "user@mail.com",
      "description": "The email address of the user you want to share the template with."
    }
  },
  "x-examples": {
    "Example 1": {
      "role": "sender",
      "email": "user@email.com"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "role": "sender",
  "email": "user@email.com"
}
```

## Responses

### 200

Success.

**Example** (`Successful request`)

```json
{
  "id": "a04ad1791f20a3388654e2ad2465a26d5e5b3440",
  "role": "sender",
  "email": "user@mail.com"
}
```

**Example** (`Successful response`)

```json
{
  "id": "a04ad1791f20a3388654e2ad2465a26d5e5b3440",
  "role": "sender",
  "email": "user@email.com"
}
```

### 400

- The template has already been shared with this user.
- You are not a template owner.
- Trial users can share up to 10 entities.
- The user email is not valid.
- `email` is not a string.
- `email` is required.
- `role` must be one of: `viewer`, `sender`, `editor`.
- `role` is not a string.

**Example** (`Invalid role`)

```json
{
  "errors": [
    {
      "code": 12030014,
      "message": "Field `role` value should be one of [\"viewer\", \"sender\", \"editor\"], value: [\"admin\"] given."
    }
  ]
}
```

**Example** (`Invalid email`)

```json
{
  "errors": [
    {
      "code": 12029003,
      "message": "Email is not valid."
    }
  ]
}
```

**Example** (`Limit exceeded`)

```json
{
  "errors": [
    {
      "code": 12029018,
      "message": "Shared entities limit exceeded."
    }
  ]
}
```

**Example** (`Multiple sharing`)

```json
{
  "errors": [
    {
      "code": 12029008,
      "message": "Entity can only be shared once."
    }
  ]
}
```

**Example** (`email is required`)

```json
{
  "errors": [
    {
      "code": 12029002,
      "message": "Email is required"
    }
  ]
}
```

**Example** (`role not a string`)

```json
{
  "errors": [
    {
      "code": 12029005,
      "message": "Role must be a string."
    }
  ]
}
```

**Example** (`Not template owner`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Accessor is not a document owner."
    }
  ]
}
```

**Example** (`email not a string`)

```json
{
  "errors": [
    {
      "code": 12029001,
      "message": "Email must be a string"
    }
  ]
}
```

### 404

Incorrect `template_id`.

**Example** (`Incorrect template_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/templates/inc/roles/39656a89512a42e6b156b4f5558f3c73c5dc15d5"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/v2/templates/{template_id}/roles" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"role": "sender", "email": "user@email.com"}'
```

---

## PUT /v2/templates/{template_id}/roles/{user_id} — Update role for template

This endpoint allows API users to change a user's role for a shared template. 

**Note**: Only the template owner can make role changes.


## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `template_id` | string | Yes | ID of the template. |
| `user_id` | string | Yes | ID of the user. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "role"
  ],
  "properties": {
    "role": {
      "enum": [
        "viewer",
        "sender",
        "editor"
      ],
      "type": "string",
      "example": "viewer",
      "description": "The role assigned to the user. Allowed values: `viewer`, `sender`, `editor`."
    }
  },
  "x-examples": {
    "Example 1": {
      "role": "viewer"
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "role": "viewer"
}
```

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "id": "a0bba5f9686e446c60f933245043a7e0f02b4001",
  "role": "viewer",
  "email": "user@mail.com"
}
```

### 400

* Wrong, expired, or missing token.
* The template doesn't exist.
* You are not the template owner.
* The user with `user_id` doesn't have a role in the template.
* `role` must be one of: `viewer`, `sender`, `editor`.

**Example** (`Incorrect role`)

```json
{
  "errors": [
    {
      "code": 12030014,
      "message": "Field `role` value should be one of [\"viewer\", \"sender\", \"editor\"], value: [\"admin\"] given."
    }
  ]
}
```

**Example** (`Template not found`)

```json
{
  "errors": [
    {
      "code": 12029014,
      "message": "Template not found."
    }
  ]
}
```

**Example** (`User role not found`)

```json
{
  "errors": [
    {
      "code": 12029011,
      "message": "User role not found."
    }
  ]
}
```

**Example** (`Not a template owner`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Accessor is not a document owner."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/templates/{template_id}/roles/{user_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"role": "viewer"}'
```

---

## GET /v2/templates/{template_id}/roles/{user_id} — Get user role for template

This endpoint allows API users to retrieve a user's role for a shared template.

**Note**: This endpoint is accessible to the template owner and users with access (viewer, sender, or editor).


## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `template_id` | string | Yes | ID of the template. |
| `user_id` | string | Yes | ID of the user. |

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "data": {
    "role": "sender"
  }
}
```

### 400

* Wrong, expired, or missing token.
* The template doesn't exist.
* You are not the template owner.
* The user with `user_id` doesn't have a role in the template.

**Example** (`Template not found`)

```json
{
  "errors": [
    {
      "code": 12029014,
      "message": "Template not found."
    }
  ]
}
```

**Example** (`User role not found`)

```json
{
  "errors": [
    {
      "code": 12029011,
      "message": "User role not found."
    }
  ]
}
```

**Example** (`Not a template owner`)

```json
{
  "errors": [
    {
      "code": 12029012,
      "message": "You don't have access to the entity."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/templates/{template_id}/roles/{user_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /v2/templates/{template_id}/roles/{user_id} — Remove access to template

This endpoint allows a user to revoke access to a specific template. 

**Note**: The template owner can revoke access for all users with whom the template was shared. A user with whom the template was shared can only revoke their own access to the template.


## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `template_id` | string | Yes | ID of the template. |
| `user_id` | string | Yes | ID of the user. |

## Responses

### 204

Access removed.

### 400

- User with `user_id` doesn't have access to the template.
- You are not the template owner.
- The entity owners cannot remove access from themselves.

**Example** (`Entity owner`)

```json
{
  "errors": [
    {
      "code": 12029022,
      "message": "Entity owner can't unshare it from himself."
    }
  ]
}
```

**Example** (`Not a template owner`)

```json
{
  "errors": [
    {
      "code": 12029012,
      "message": "You don't have access to the entity."
    }
  ]
}
```

**Example** (`user_id doesn't have access`)

```json
{
  "errors": [
    {
      "code": 12029011,
      "message": "User role not found."
    }
  ]
}
```

### 404

- Incorrect `template_id`.
- Incorrect `user_id`.

**Example** (`Incorrect user_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/templates/8f050906ff0b40f8ae40eb9d82540d28ec86576d/roles/2274bf6278644e981584543275cdc0c88d67d45"
}
```

**Example** (`Incorrect template_id`)

```json
{
  "404": "Unable to find a route to match the URI: v2/templates/8f050906ff0b40f8ae40eb9d82540d28ec86576/roles/39656a89512a42e6b156b4f5558f3c73c5dc15d5"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/templates/{template_id}/roles/{user_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /document/{template_id}/template/routing/detail — Get template recipients

This endpoint allows API users to retrieve detailed routing information for a template, including signers, viewers, approvers, and CC recipients, along with their specific roles and signing order.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `template_id` | string | Yes | Template ID. |

## Responses

### 200

OK

**Example** (`Response with no routing details`)

```json
{}
```

**Example** (`Response with empty routing details`)

```json
{
  "cc": [],
  "cc_step": [],
  "viewers": [],
  "routing_details": [],
  "invite_link_instructions": ""
}
```

**Example** (`Successful response with routing details`)

```json
{
  "cc": [
    "manager@example.com",
    "hr.department@example.com"
  ],
  "cc_step": [
    {
      "name": "Compliance Team",
      "step": 1,
      "email": "compliance@example.com"
    },
    {
      "name": "Records Keeping",
      "step": 2,
      "email": "records@example.com"
    }
  ],
  "viewers": [
    {
      "name": "Legal Observer",
      "contact_id": "1234567890abcdef1234567890abcdef12345678",
      "inviter_role": false,
      "default_email": "legal.observer@example.com",
      "signing_order": 1
    },
    {
      "name": "External Auditor",
      "default_email": "auditor@example.com",
      "signing_order": 2
    }
  ],
  "approvers": [
    {
      "name": "Director of Sales",
      "inviter_role": false,
      "default_email": "director@example.com",
      "signing_order": 3,
      "authentication": null,
      "expiration_days": 15
    },
    {
      "name": "VP Finance",
      "default_email": "vp.finance@example.com",
      "signing_order": 4,
      "authentication": null
    }
  ],
  "attributes": {
    "brand_id": "99887766554433221100aabbccddeeff11223344",
    "on_complete": "redirect",
    "redirect_uri": "https://example.com/thank-you"
  },
  "routing_details": [
    {
      "name": "John Smith",
      "role_id": "a1b2c3d4e5f67890123456789abcdef012345678",
      "inviter_role": false,
      "default_email": "john.smith@example.com",
      "signing_order": 1
    },
    {
      "name": "Alice Johnson",
      "role_id": "f0e9d8c7b6a543210987654321fedcba09876543",
      "inviter_role": false,
      "default_email": "alice.johnson@example.com",
      "signing_order": 2
    }
  ],
  "invite_link_instructions": "Please review the attached contract details before signing."
}
```

### 400

- Document not found.


**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/document/{template_id}/template/routing/detail" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /document/{template_id}/template/routing/detail — Edit template recipients

This endpoint allows API users to update the routing details for a specific template, including assigning roles, setting signing orders, adding CC recipients, and configuring recipient settings.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `template_id` | string | Yes | Template ID. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "cc": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Valid email address."
      },
      "description": "A list of email addresses that will receive a carbon copy of the document."
    },
    "cc_step": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "example": "Recipient 1",
            "description": "The display name for the CC recipient."
          },
          "step": {
            "type": "integer",
            "example": 1,
            "description": "The specific step in the signing order when the email should be sent."
          },
          "email": {
            "type": "string",
            "example": "cc@email.com",
            "description": "The email address of the CC recipient."
          }
        }
      },
      "description": "A list of CC recipients assigned to specific steps in the signing order."
    },
    "viewers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "example": "Viewer",
            "maxLength": 255,
            "description": "The display name of the recipient role."
          },
          "contact_id": {
            "type": "string",
            "example": "55519de93089e889ab9f5283db9b7c39ad667e43",
            "description": "The unique identifier of the contact (from Contacts) linked to the document."
          },
          "inviter_role": {
            "type": "boolean",
            "description": "If set to `true`, designates the document owner (current API user) as the recipient for this role. This corresponds to the 'I am recipient' setting in the UI."
          },
          "default_email": {
            "type": "string",
            "example": "viewer@email.com",
            "maxLength": 250,
            "description": "The email address of the viewer. Note: If `inviter_role` is `true`, this defaults to the document owner's email (retrieved from `GET /user`) and the email input will be locked in the UI."
          },
          "signing_order": {
            "type": "integer",
            "example": 1,
            "maximum": 127,
            "minimum": 1,
            "description": "The step order for the viewer."
          }
        }
      },
      "description": "A list of users with view-only permissions."
    },
    "approvers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "example": "Approver",
            "maxLength": 255,
            "description": "The display name of the recipient role."
          },
          "inviter_role": {
            "type": "boolean",
            "description": "If set to `true`, designates the document owner (current API user) as the recipient for this role. This corresponds to the 'I am recipient' setting in the UI."
          },
          "default_email": {
            "type": "string",
            "example": "approver@email.com",
            "maxLength": 250,
            "description": "The email address of the recipient. Note: If `inviter_role` is `true`, this defaults to the document owner's email (retrieved from `GET /user`) and the email input will be locked in the UI."
          },
          "signing_order": {
            "type": "integer",
            "example": 1,
            "maximum": 127,
            "minimum": 1,
            "description": "The step order for the approver."
          },
          "expiration_days": {
            "type": "integer",
            "example": 30,
            "maximum": 180,
            "minimum": 3,
            "description": "Number of days before the approval request expires."
          }
        }
      },
      "description": "A list of users required to approve the document."
    },
    "attributes": {
      "type": "object",
      "properties": {
        "brand_id": {
          "type": "string",
          "example": "d7fcf72b4bbc47b0cc629ffe8b24421c66fec6a0",
          "description": "The unique identifier of the brand to apply."
        },
        "on_complete": {
          "enum": [
            "none",
            "document_only",
            "document_and_attachments",
            "document_attachment_only_for_signer"
          ],
          "type": "string",
          "example": "none",
          "description": "The action to take when the document is completed."
        },
        "redirect_uri": {
          "type": "string",
          "example": "https://signnow.com/",
          "maxLength": 2048,
          "description": "The URL to redirect users to after signing (max 2048 chars)."
        }
      },
      "description": "General attributes regarding the document's completion settings and branding."
    },
    "template_data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "example": "Manager",
            "maxLength": 250,
            "description": "The display name of the recipient role."
          },
          "role_id": {
            "type": "string",
            "example": "14819de93089e889ab9f5283db9b7c39ad667e43",
            "description": "The unique identifier of the role being updated."
          },
          "inviter_role": {
            "type": "boolean",
            "description": "If set to `true`, designates the document owner (current API user) as the recipient for this role. This corresponds to the 'I am recipient' setting in the UI."
          },
          "default_email": {
            "type": "string",
            "example": "signer@email.com",
            "maxLength": 250,
            "description": "The email address of the recipient. Note: If `inviter_role` is `true`, this defaults to the document owner's email (retrieved from `GET /user`) and the email input will be locked in the UI."
          },
          "signing_order": {
            "type": "integer",
            "example": 1,
            "maximum": 127,
            "minimum": 1,
            "description": "The order in the signing workflow."
          }
        }
      },
      "description": "A list of signers and their role configurations."
    },
    "invite_link_instructions": {
      "type": "string",
      "description": "Custom instructions to be displayed when the invite link is accessed."
    }
  },
  "x-examples": {
    "Example 1": {
      "cc": [
        "observer1@example.com",
        "observer2@example.com"
      ],
      "cc_step": [
        {
          "name": "CC 1",
          "step": 1,
          "email": "step1@example.com"
        },
        {
          "name": "CC 2",
          "step": 2,
          "email": "step2@example.com"
        }
      ],
      "viewers": [
        {
          "name": "Viewer 1",
          "contact_id": "38528aa9c323463c9563b3608c18467d9d569e09",
          "inviter_role": false,
          "default_email": "viewer@example.com",
          "signing_order": 1
        }
      ],
      "approvers": [
        {
          "name": "Approver 1",
          "inviter_role": false,
          "default_email": "approver@example.com",
          "signing_order": 3,
          "expiration_days": 15
        }
      ],
      "attributes": {
        "brand_id": "d7fcf72b4bbc47b0cc629ffe8b24421c66fec6a0",
        "on_complete": "none",
        "redirect_uri": "https://signnow.com"
      },
      "template_data": [
        {
          "name": "Signer 1",
          "role_id": "d7fcf72b4bbc47b0cc629ffe8b24421c66fec6a0",
          "inviter_role": false,
          "default_email": "",
          "signing_order": 1
        },
        {
          "name": "Signer 2",
          "role_id": "14819de93089e889ab9f5283db9b7c39ad667e43",
          "inviter_role": false,
          "default_email": "signer2@example.com",
          "signing_order": 2
        }
      ],
      "invite_link_instructions": "Please sign strictly before the deadline."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "cc": [
    "observer1@example.com",
    "observer2@example.com"
  ],
  "cc_step": [
    {
      "name": "CC 1",
      "step": 1,
      "email": "step1@example.com"
    },
    {
      "name": "CC 2",
      "step": 2,
      "email": "step2@example.com"
    }
  ],
  "viewers": [
    {
      "name": "Viewer 1",
      "contact_id": "38528aa9c323463c9563b3608c18467d9d569e09",
      "inviter_role": false,
      "default_email": "viewer@example.com",
      "signing_order": 1
    }
  ],
  "approvers": [
    {
      "name": "Approver 1",
      "inviter_role": false,
      "default_email": "approver@example.com",
      "signing_order": 3,
      "expiration_days": 15
    }
  ],
  "attributes": {
    "brand_id": "d7fcf72b4bbc47b0cc629ffe8b24421c66fec6a0",
    "on_complete": "none",
    "redirect_uri": "https://signnow.com"
  },
  "template_data": [
    {
      "name": "Signer 1",
      "role_id": "d7fcf72b4bbc47b0cc629ffe8b24421c66fec6a0",
      "inviter_role": false,
      "default_email": "",
      "signing_order": 1
    },
    {
      "name": "Signer 2",
      "role_id": "14819de93089e889ab9f5283db9b7c39ad667e43",
      "inviter_role": false,
      "default_email": "signer2@example.com",
      "signing_order": 2
    }
  ],
  "invite_link_instructions": "Please sign strictly before the deadline."
}
```

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "cc": [
    "manager@example.com",
    "records@example.com"
  ],
  "id": "c81e728d9d4c2f63a5b9e0f1a2b3c4d5e6f7a8b9",
  "data": [
    {
      "name": "Signer 1",
      "role_id": "a1b2c3d4e5f67890123456789abcdef012345678",
      "inviter_role": true,
      "default_email": "",
      "signing_order": 1
    },
    {
      "name": "Signer 2",
      "role_id": "b2c3d4e5f67890123456789abcdef0123456789",
      "inviter_role": false,
      "default_email": "jane.smith@example.com",
      "signing_order": 1,
      "decline_by_signature": true
    },
    {
      "name": "Signer 3",
      "role_id": "c3d4e5f67890123456789abcdef01234567890",
      "inviter_role": false,
      "default_email": "bob.jones@example.com",
      "signing_order": 2
    }
  ],
  "cc_step": [
    {
      "name": "HR Team",
      "step": 1,
      "email": "hr.team@example.com"
    },
    {
      "name": "Legal Team",
      "step": 2,
      "email": "legal.team@example.com"
    }
  ],
  "viewers": [
    {
      "name": "External Auditor",
      "contact_id": "d4e5f67890123456789abcdef012345678901",
      "inviter_role": false,
      "default_email": "auditor@example.com",
      "signing_order": 1
    }
  ],
  "approvers": [
    {
      "name": "Director of Operations",
      "inviter_role": false,
      "default_email": "director@example.com",
      "signing_order": 3,
      "expiration_days": 15
    }
  ],
  "attributes": {
    "brand_id": "e5f67890123456789abcdef0123456789012",
    "on_complete": "document_only",
    "redirect_uri": "https://example.com/success"
  },
  "document_id": "3f4e5d6c7b8a901234567890abcdef1234567890",
  "invite_link_instructions": "Please review the document carefully before signing."
}
```

### 400

- Incorrect payload.
- User is not document owner.
- Document not found.
- The `viewers` value length is incorrect.
- The `approvers` value length is incorrect.
- The payment request name is missing.
- The payment request name format is incorrect.
- The payment request type is missing.
- The payment request type format is incorrect.
- The payment request type value is incorrect.
- The `template_data.name` format is incorrect.
- The `template_data.name` length is incorrect.
- The `template_data.name` contains unsupported characters.
- The `template_data.role_id` format is incorrect.
- The `template_data.role_id` value is incorrect.
- The `cc` format is incorrect.
- The `cc` value format is incorrect.
- The `cc_step` format is incorrect.
- The `cc_step` item format is incorrect.
- The `cc_step.email` format is incorrect.
- The `viewers` format is incorrect.
- The `viewers` item format is incorrect.
- The `viewers.default_email` format is incorrect.
- The `viewers.default_email` is missing.
- The `viewers.default_email` length is incorrect.
- The `viewers.default_email` contains unsupported characters.
- The `viewers.default_email` value format is incorrect.
- The `viewers.name` format is incorrect.
- The `viewers.name` is missing.
- The `viewers.name` length is incorrect.
- The `viewers.name` contains unsupported characters.
- The `viewers.signing_order` format is incorrect.
- The `viewers.signing_order` is missing.
- The `viewers.signing_order` value is incorrect.
- The `viewers.inviter_role` format is incorrect.
- The `viewers.contact_id` format is incorrect.
- The `viewers.contact_id` value is incorrect.
- The `approvers` format is incorrect.
- The `approvers` item format is incorrect.
- The `approvers.default_email` format is incorrect.
- The `approvers.default_email` is missing.
- The `approvers.default_email` length is incorrect.
- The `approvers.default_email` contains unsupported characters.
- The `approvers.default_email` value format is incorrect.
- The `approvers.name` format is incorrect.
- The `approvers.name` is missing.
- The `approvers.name` length is incorrect.
- The `approvers.name` contains unsupported characters.
- The `approvers.signing_order` format is incorrect.
- The `approvers.signing_order` is missing.
- The `approvers.signing_order` value is incorrect.
- The `approvers.inviter_role` format is incorrect.
- The `approvers.expiration_days` format is incorrect.
- The `approvers.expiration_days` value is incorrect.
- The `attributes` format is incorrect.
- The `attributes.brand_id` value is incorrect.
- The `attributes.on_complete` value is incorrect.
- The `attributes.redirect_uri` format is incorrect.
- The `attributes.redirect_uri` is missing.
- The `attributes.redirect_uri` url format is incorrect.
- The `attributes.redirect_uri` length is incorrect.
- Payment request configuration is incorrect (multi-role).
- Payment request configuration is incorrect (existing field).
- The `role_id` configuration is incorrect (mismatch).
- The `role_id` is incorrect (not in doc).
- The `role_id` is incorrect (not active signer).
- Recipient configuration is incorrect (fulfilled).
- Recipient configuration is incorrect (signed).
- Recipient configuration is incorrect (forbidden).

**Example** (`Incorrect payload`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid payload"
    }
  ]
}
```

**Example** (`Document not found`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Document not found"
    }
  ]
}
```

**Example** (`User is not document owner`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "User is not document owner"
    }
  ]
}
```

**Example** (`The `cc` format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "cc must be array"
    }
  ]
}
```

**Example** (`The `approvers.name` is missing`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The name value should not be blank."
    }
  ]
}
```

**Example** (`The `cc_step` format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "cc_step must be array"
    }
  ]
}
```

**Example** (`The `viewers` format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Viewer value should be of type array."
    }
  ]
}
```

**Example** (`The `approvers` format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Approvers value should be of type array."
    }
  ]
}
```

**Example** (`The payment request name is missing`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The field name for the payment request is required"
    }
  ]
}
```

**Example** (`The payment request type is missing`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The field type for the payment request is required"
    }
  ]
}
```

**Example** (`The `attributes` format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Attributes value should be of type array."
    }
  ]
}
```

**Example** (`The `cc_step` item format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "all cc_steps must be arrays"
    }
  ]
}
```

**Example** (`The `viewers` item format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "All viewer value should be of type array."
    }
  ]
}
```

**Example** (`The `cc_step.email` format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Email must be a valid email."
    }
  ]
}
```

**Example** (`The `role_id` is incorrect (not in doc)`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The role id {$roleId} is not belongs to the document"
    }
  ]
}
```

**Example** (`The `viewers` value length is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The viewers value is too long. It should have 65535 characters or less in json string format."
    }
  ]
}
```

**Example** (`The `approvers.default_email` is missing`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The default_email value should not be null."
    }
  ]
}
```

**Example** (`The `approvers.name` format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The name value should be of type string."
    }
  ]
}
```

**Example** (`The `approvers.name` length is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The name value is too long. It should have 255 characters or less."
    }
  ]
}
```

**Example** (`The `approvers.signing_order` is missing`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The signing_order value should not be blank."
    }
  ]
}
```

**Example** (`The `approvers` item format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "All approvers value should be of type array."
    }
  ]
}
```

**Example** (`The `attributes.redirect_uri` is missing`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The redirect_uri attribute format is invalid."
    }
  ]
}
```

**Example** (`The `approvers` value length is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The approvers value is too long. It should have 65535 characters or less in json string format."
    }
  ]
}
```

**Example** (`The `viewers.contact_id` value is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The contact_id should be valid unique id."
    }
  ]
}
```

**Example** (`The payment request type value is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Not allowed field type for the payment request"
    }
  ]
}
```

**Example** (`The `attributes.brand_id` value is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The brand_id attribute should be valid unique id"
    }
  ]
}
```

**Example** (`The `viewers.contact_id` format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The contact_id value should be of type string."
    }
  ]
}
```

**Example** (`The payment request name format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The field name for the payment request must be a string"
    }
  ]
}
```

**Example** (`The payment request type format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The field type for the payment request must be a string"
    }
  ]
}
```

**Example** (`Recipient configuration is incorrect (signed)`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Actor {$roleName} not allowed to edit, because he has some signed fields."
    }
  ]
}
```

**Example** (`The `role_id` is incorrect (not active signer)`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The role id {$roleId} is not active signer actor."
    }
  ]
}
```

**Example** (`The `template_data.role_id` value is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Field role_id should be valid unique id"
    }
  ]
}
```

**Example** (`The `attributes.on_complete` value is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The on_complete attribute value is invalid."
    }
  ]
}
```

**Example** (`The `template_data.role_id` format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The role_id value should be of type string."
    }
  ]
}
```

**Example** (`Recipient configuration is incorrect (forbidden)`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Actor {$roleName} not allowed to edit, forbidden after correction."
    }
  ]
}
```

**Example** (`Recipient configuration is incorrect (fulfilled)`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Actor {$roleName} not allowed to edit, because he has fulfilled invite."
    }
  ]
}
```

**Example** (`The `approvers.inviter_role` format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The inviter_role value should be of type bool."
    }
  ]
}
```

**Example** (`The `approvers.signing_order` value is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The signing_order value should be between 1 and 127."
    }
  ]
}
```

**Example** (`The `approvers.default_email` format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The default_email value should be of type string."
    }
  ]
}
```

**Example** (`The `approvers.default_email` length is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The default_email value is too long. It should have 250 characters or less."
    }
  ]
}
```

**Example** (`The `approvers.signing_order` format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The signing_order value should be of type integer."
    }
  ]
}
```

**Example** (`The `attributes.redirect_uri` format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The redirect_uri attribute must be a string."
    }
  ]
}
```

**Example** (`The `approvers.expiration_days` value is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The expiration_days value should be between 3 and 180."
    }
  ]
}
```

**Example** (`The `approvers.expiration_days` format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The expiration_days value should be of type integer."
    }
  ]
}
```

**Example** (`The `role_id` configuration is incorrect (mismatch)`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The role_id do not belongs to the role name. Role id: {$roleId} . Role name: {$roleName}"
    }
  ]
}
```

**Example** (`The `approvers.name` contains unsupported characters`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "4-byte characters in name are not supported."
    }
  ]
}
```

**Example** (`Payment request configuration is incorrect (multi-role)`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Adding a payment requesting on the field with several actors is disallowed"
    }
  ]
}
```

**Example** (`The `approvers.default_email` value format is incorrect`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "The default_email value is not a valid email address."
    }
  ]
}
```

**Example** (`Payment request configuration is incorrect (existing field)`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Adding a payment requesting on the document with payment field is disallowed"
    }
  ]
}
```

**Example** (`The `approvers.default_email` contains unsupported characters`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "4-byte characters in default_email are not supported."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/document/{template_id}/template/routing/detail" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"cc": ["observer1@example.com", "observer2@example.com"], "cc_step": [{"name": "CC 1", "step": 1, "email": "step1@example.com"}, {"name": "CC 2", "step": 2, "email": "step2@example.com"}], "viewers": [{"name": "Viewer 1", "contact_id": "38528aa9c323463c9563b3608c18467d9d569e09", "inviter_role": false, "default_email": "viewer@example.com", "signing_order": 1}], "approvers": [{"name": "Approver 1", "inviter_role": false, "default_email": "approver@example.com", "signing_order": 3, "expiration_days": 15}], "attributes": {"brand_id": "d7fcf72b4bbc47b0cc629ffe8b24421c66fec6a0", "on_complete": "none", "redirect_uri": "https://signnow.com"}, "template_data": [{"name": "Signer 1", "role_id": "d7fcf72b4bbc47b0cc629ffe8b24421c66fec6a0", "inviter_role": false, "default_email": "", "signing_order": 1}, {"name": "Signer 2", "role_id": "14819de93089e889ab9f5283db9b7c39ad667e43", "inviter_role": false, "default_email": "signer2@example.com", "signing_order": 2}], "invite_link_instructions": "Please sign strictly before the deadline."}'
```

---

## POST /user — Create user

This endpoint allows API users to create a SignNow user account.

`user` object in SignNow allows you to track the `invite`s, `document`s and `template`s associated with one user. Using API you can create, update and delete users, retrieve their info, verify their emails, reset passwords, track changes with user's documents, templates, document groups, folders and teams, add them to or remove from organizations. The `user` object is also crucial to event subscriptions: SignNow enables you to trigger callbacks by an event of a specific user.

> [!NOTE]
> An address that's already registered returns `66330` (verified) or `66396` (not verified).

## Authorization

basic

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "email",
    "password"
  ],
  "properties": {
    "email": {
      "type": "string",
      "description": "User's email address."
    },
    "number": {
      "type": "string",
      "description": "User's phone number."
    },
    "password": {
      "type": "string",
      "description": "User's password: 6 characters minimum."
    },
    "last_name": {
      "type": "string",
      "description": "User's last name."
    },
    "first_name": {
      "type": "string",
      "description": "User's first name."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "email": "user@example.com",
  "number": "+12025550123",
  "password": "Str0ngPassw0rd",
  "last_name": "Doe",
  "first_name": "John"
}
```

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "id": "aad13814e8f369089ee2f12b533545f9534e6cf8",
  "email": "user@signnow.com",
  "verified": 0
}
```

### 400

* "unverified_email" - email has been registered on site before, but not verified.
* "internal api error" - request without a required field in body. 
* "User with email exists" - email has been registered and verified on site before.
* "Invalid payload" - request without body.

**Example** (`email exists`)

```json
{
  "errors": [
    {
      "code": 66330,
      "message": "User with email exists"
    }
  ]
}
```

**Example** (`invalid payload`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Invalid payload"
    }
  ]
}
```

**Example** (`unverified email`)

```json
{
  "errors": [
    {
      "code": 66396,
      "message": "unverified_email"
    }
  ]
}
```

**Example** (`internal api error`)

```json
{
  "errors": [
    {
      "code": 65544,
      "message": "internal api error"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/user" \
  -H "Authorization: Basic $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email": "user@example.com", "number": "+12025550123", "password": "Str0ngPassw0rd", "last_name": "Doe", "first_name": "John"}'
```

---

## PUT /user — Change user details

This endpoint allows API users to update the user's first and last name.

## Authorization

bearer

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-Type` | string | No | Media type of the request body: `application/json`. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "properties": {
    "password": {
      "type": "string",
      "description": "New password of the user."
    },
    "last_name": {
      "type": "string",
      "description": "New last name of the user."
    },
    "first_name": {
      "type": "string",
      "description": "New first name of the user."
    },
    "logout_all": {
      "type": "string",
      "description": "Defines which user tokens expire. Must be a string.\n\n* `\"true\"`: all user tokens with `scope=*` expire.\n* `\"false\"`: all user tokens except the current one expire.\n\nDefault: `\"true\"`."
    },
    "old_password": {
      "type": "string",
      "description": "Current password of the user. Required if `password` is in the request body."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "password": "evenstongerone",
  "last_name": "last_name",
  "first_name": "first_name",
  "logout_all": "true",
  "old_password": "verystrongpassword"
}
```

## Responses

### 200

Successful response. Returns the user ID with the current first and last name. A name that contains only a space is saved as an empty string. Names longer than 64 characters are cut to 64 characters.

**Example** (`Old password is empty`)

```json
{
  "id": "unique_id",
  "last_name": "last_name",
  "first_name": "fist_name"
}
```

**Example** (`Correct change password`)

```json
{
  "id": "unique_id",
  "last_name": "last_name",
  "first_name": "first_name"
}
```

**Example** (`First\last name is a space`)

```json
{
  "id": "unique_id",
  "last_name": "",
  "first_name": ""
}
```

**Example** (`Correct change of the first and last name`)

```json
{
  "id": "unique_id",
  "last_name": "new_last_name",
  "first_name": "new_first_name"
}
```

**Example** (`Too long last name more than 64 chars is cut to 64 chars`)

```json
{
  "id": "262601458e1929a2f4dc309401435896287006a8",
  "last_name": "New last name",
  "first_name": "123456789_123456789_123456789_123456789_123456789_123456789_1234"
}
```

### 400

* Too long first name (first name more than 64 characters).
* Incorrect old password.
* The value of "old_password" is a space.
* New password is empty.
* The value of "password" is a space.
* User password which doesn't respect the rules added to "password_creation_rules" if there are any.

**Example** (`New password is empty`)

```json
{
  "errors": [
    {
      "code": 65563,
      "message": "Must provide password"
    }
  ]
}
```

**Example** (`Incorrect old password`)

```json
{
  "errors": [
    {
      "code": 65563,
      "message": "Incorrect old password"
    }
  ]
}
```

**Example** (`Too long first name (first name more than 64 characters)`)

```json
{
  "errors": [
    {
      "code": 65564,
      "message": "First name is too long"
    }
  ]
}
```

**Example** (`User password which doesn't respect the rules added to "password_creation_rules" if there are any`)

```json
{
  "errors": [
    {
      "code": 65662,
      "message": "Password must contain at least one letter. Password Policy: Passwords must contain one letter, one number and one special character. Passwords must be at minimum 8 characters long. When updating passwords, reusing a password form the last 12 passwords is not allowed."
    }
  ]
}
```

### 500

The user can't be updated right now because of a temporary server error. Try again later.

**Example** (`Temporary server error`)

```json
{
  "error": [
    {
      "code": 5001,
      "message": "Temporary unable to process this request. Please try again later."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/user" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"password": "evenstongerone", "last_name": "last_name", "first_name": "first_name", "logout_all": "true", "old_password": "verystrongpassword"}'
```

---

## GET /user — Get user info

This endpoint allows API users to get information about the current user.

## Authorization

bearer

## Responses

### 200

Details of the user account.

**Example** (`Successful response`)

```json
{
  "id": "c2fbe5919b42cc30f418c031665450d203c081a1",
  "pro": 0,
  "type": 1,
  "teams": [
    {
      "id": "afdac983ea7fc7c24974ce15d1441533daf2b3b7",
      "role": "member",
      "team": "Sales",
      "type": "VIEWABLE",
      "admins": [
        {
          "id": "10000001",
          "email": "user@example.com",
          "billing": 1,
          "primary": true,
          "is_secondary": "0",
          "document_access": 1
        }
      ],
      "team_options": {
        "support_template_sl": true,
        "hide_doc_copy_options": false,
        "team_default_document_folder": ""
      },
      "workspace_id": null,
      "created_since": "1741947297",
      "document_count": 0,
      "team_owner_full_name": "user@example.com"
    }
  ],
  "active": "1",
  "emails": [
    "user@example.com"
  ],
  "locale": "en",
  "status": {
    "bad_copy_token": false,
    "has_copy_token": false,
    "has_salesforce_token": false,
    "bad_cloud_export_token": false,
    "has_cloud_export_token": false
  },
  "created": "1736874847",
  "credits": 0,
  "settings": {
    "copy_export": false,
    "mobileweb_option": false,
    "no_document_attachment": false,
    "no_user_signature_return": false,
    "no_document_file_attachments": false
  },
  "verified": true,
  "appleapps": false,
  "companies": [],
  "last_name": "Doe",
  "avatar_url": null,
  "first_name": "John",
  "googleapps": true,
  "facebookapps": false,
  "is_logged_in": true,
  "organization": {
    "id": "d675d64269db12538aa971ad2dfe1697164bc614",
    "name": "Example Inc.",
    "logos": [],
    "teams": [
      {
        "id": "59eeb3667e53cc4a548da3950730111bd92528bd",
        "name": "Example Inc. Team"
      }
    ],
    "active": true,
    "created": "1741696752",
    "deleted": "0",
    "domains": [],
    "updated": "1773919396",
    "is_admin": true,
    "has_admin": true,
    "active_logo": [],
    "is_workspace": true,
    "is_superadmin": true,
    "has_active_sso_configuration": false
  },
  "microsoftapps": false,
  "primary_email": "user@example.com",
  "subscriptions": [
    {
      "id": "303b41533ac49bf151068c5584c29cd6f61a0e3bce991501fea3f5a47d6790ac",
      "name": "hybrid_1000000calls_500000dollars_snapa99",
      "plan": "enterprise",
      "term": 12,
      "seats": 100,
      "trial": false,
      "addons": [],
      "created": 1781086310,
      "expired": 1812671999,
      "updated": 1792504754,
      "seat_role": "super_admin",
      "used_seats": 2,
      "credit_card": false,
      "is_freemium": false,
      "plan_version": 2,
      "billing_cycle": 12,
      "is_usage_based": false,
      "subscription_id": "303b41533ac49bf151068c5584c29cd6f61a0e3bce991501fea3f5a47d6790ac",
      "mobile_plan_type": "",
      "seat_admin_email": "user@example.com",
      "gateway_subscription": {
        "gateway": null,
        "auto_renew": false
      },
      "is_usage_based_seat_free": false,
      "is_seat_free_subscription": true
    }
  ],
  "billing_period": {
    "end_date": "11/10/2026",
    "start_date": "10/10/2026",
    "end_timestamp": 1794268800,
    "start_timestamp": 1791590400
  },
  "document_count": 0,
  "premium_access": {
    "api": {
      "key": "303b41533ac49bf151068c5584c29cd6f61a0e3bce991501fea3f5a47d6790ac",
      "level": "enterprise",
      "is_trial": false,
      "plan_name": "hybrid_1000000calls_500000dollars_snapa99",
      "created_at": 1781086310,
      "expired_at": 1812671999
    },
    "plan": "enterprise",
    "seat": {
      "role": "super_admin"
    },
    "user": {
      "admin": "user@example.com",
      "email": "user@example.com",
      "status": "Added",
      "username": "user@example.com",
      "last_name": null,
      "added_date": 1781086310,
      "first_name": null
    },
    "error": false,
    "trial": false,
    "active": true,
    "business": false,
    "credit_card": false,
    "subscription": {
      "key": "303b41533ac49bf151068c5584c29cd6f61a0e3bce991501fea3f5a47d6790ac",
      "name": "hybrid_1000000calls_500000dollars_snapa99",
      "plan": {
        "id": 333,
        "name": "Enterprise Site License",
        "type": "web",
        "level": "enterprise",
        "price": 500000,
        "groups": [
          "hybrid",
          "provision",
          "sales",
          "addons_available",
          "api_calls_addon_available",
          "hubspot_addon_available"
        ],
        "plan_id": "hybrid_1000000calls_500000dollars_snapa99",
        "is_trial": false,
        "billing_cycle": 12,
        "is_marketplace": false,
        "mobile_plan_type": null
      },
      "term": 12,
      "seats": 100,
      "addons": [],
      "status": "active",
      "version": 2,
      "corporate": false,
      "created_at": 1781086310,
      "expired_at": 1812671999,
      "updated_at": 1792504754,
      "used_seats": 2,
      "admin_email": "user@example.com",
      "marketplace": {
        "name": null
      },
      "cancelled_at": null,
      "trial_period": null,
      "serial_number": "303b41533ac49bf151068c5584c29cd6f61a0e3bce991501fea3f5a47d6790ac",
      "in_grace_period": false,
      "gateway_subscription": {
        "gateway": null,
        "auto_renew": false
      },
      "grace_period_expires_at": null
    },
    "has_delayed_subscription": false
  },
  "is_scim_managed": false,
  "password_changed": 1736874936,
  "merchant_accounts": [
    {
      "id": "e6ff7212cc00037e91c26ad676661c52d504ccd5",
      "scope": "user",
      "currency": "USD",
      "currencies": [
        "US Dollar"
      ],
      "currency_name": "US Dollar",
      "merchant_type": "SignnowSandbox",
      "merchant_account_name": "SignnowSandbox"
    }
  ],
  "has_atticus_access": false,
  "issue_notifications": [],
  "registration_source": null,
  "signer_phone_invite": null,
  "application_settings": {
    "embedded_sending_close_button_text": null,
    "embedded_sending_close_button_visible": null,
    "embedded_sending_continue_button_text": null,
    "embedded_sending_continue_button_visible": null,
    "embedded_editor_session_close_button_text": null
  },
  "organization_settings": [
    {
      "value": "0",
      "setting": "no_document_attachment"
    },
    {
      "value": "0",
      "setting": "no_document_file_attachments"
    },
    {
      "value": "0",
      "setting": "no_user_signature_return"
    }
  ],
  "modified_primary_email": "user@example.com",
  "monthly_document_count": "92",
  "lifetime_document_count": 1420,
  "cloud_export_account_details": null
}
```

### 400

Request with incorrect or missing token.

**Example** (`Incorrect or missing token`)

```json
{
  "code": 1537,
  "error": "invalid_token"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/user" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /user/forgotpassword — Reset password

This endpoint allows API users to send a password reset link to a user's email address.

## Authorization

basic

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-type` | string | No | application/json |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "email"
  ],
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "description": "Email address of the user that receives the password reset link."
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "email": "user@email.com"
}
```

## Responses

### 200

The password reset link was sent, if an account with this email address exists.

**Example** (`Successful response`)

```json
{
  "status": "success"
}
```

### 400

Request with incorrect or missing email. 

**Example** (`Invalid email`)

```json
{
  "errors": [
    {
      "code": 65544,
      "message": "Invalid email."
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/user/forgotpassword" \
  -H "Authorization: Basic $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email": "user@email.com"}'
```

---

## POST /user/verifyemail — Send verification email

This endpoint allows API users to send a verification email to a new user’s email address. Once the user clicks the link in the email, their account will be verified.

## Authorization

basic

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "email"
  ],
  "properties": {
    "email": {
      "type": "string",
      "description": "The user's email address where the verification email will be sent."
    }
  },
  "x-examples": {
    "Example 1": {
      "email": "user@email.com"
    }
  }
}
```

**Example** (`Request with user email`)

```json
{
  "email": "user@email.com"
}
```

## Responses

### 200

Successful response.

**Example** (`Successful response`)

```json
{
  "status": "success"
}
```

### 400

- The email address is incorrect.
- The email address is required.

**Example** (`Email required`)

```json
{
  "errors": [
    {
      "code": 65582,
      "message": "Email is required."
    }
  ]
}
```

**Example** (`Incorrect email`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "Could not send verification email"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/user/verifyemail" \
  -H "Authorization: Basic $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email": "user@email.com"}'
```

---

## GET /user/documents — Get user documents (deprecated)

This endpoint is deprecated. To get a user's documents, get the contents of a folder instead.

Returns information of user's documents that were not modified yet.

> [!WARNING]
> To retrieve a user's documents, fetch the contents of a folder with [`GET /folder/{folder_id}`](/docs/folder/operations/get-folder-by-id).

## Authorization

bearer

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `sortby=recently_used&order` | string | No | Sort templates by date of the last sending of the invite. Applies to system Template folders and custom Template folders. Allowed values: desc, asc |

## Responses

### 200

### 400

* Request without documents.
* Request with query param `per_page=0` or `page=0`.
* Request with query param `per_page/page`  as string or negative number.
* Request with query param `per_page` more than 100.

**Example** (`Request without documents`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "error: could not get document ids for user (user_id) api action id (api_action_id)"
    }
  ]
}
```

**Example** (`Request with query param `per_page=0` or `page=0``)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "Query parameter `per_page` must be more than 0"
    },
    {
      "code": 0,
      "message": "Query parameter `page` must be more than 0"
    }
  ]
}
```

**Example** (`Request with query param `per_page` more than 100`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "Query parameter `per_page` must be less than or equal 100"
    }
  ]
}
```

**Example** (`Request with query param  per_page/ page  as string  or negative number`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "Query parameter `per_page` must be a digit"
    },
    {
      "code": 0,
      "message": "Query parameter `page` must be a digit"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/user/documents" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /user/documentsv2 — Get modified documents (deprecated)

This endpoint is deprecated. To get a user's documents, get the contents of a folder instead.

Returns an array of user's documents that were modified (added fields, texts, signatures, etc.)

> [!WARNING]
> To retrieve a user's documents, fetch the contents of a folder with [`GET /folder/{folder_id}`](/docs/folder/operations/get-folder-by-id).

## Authorization

bearer

## Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Content-type` | string | No | application/json |

## Responses

### 200

### 400

* Request without documents.
* Request with query param `per_page=0` or `page=0`.
* Request with query param `per_page/page`  as string or negative number.
* Request with query param `per_page` more than 100.

**Example** (`Request without documents`)

```json
{
  "errors": [
    {
      "code": 65536,
      "message": "error: could not get document ids for user (user_id) api action id (api_action_id)"
    }
  ]
}
```

**Example** (`Request with query param `per_page=0` or `page=0``)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "Query parameter `per_page` must be more than 0"
    },
    {
      "code": 0,
      "message": "Query parameter `page` must be more than 0"
    }
  ]
}
```

**Example** (`Request with query param `per_page` more than 100`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "Query parameter `per_page` must be less than or equal 100"
    }
  ]
}
```

**Example** (`Request with query param  per_page/ page  as string  or negative number`)

```json
{
  "errors": [
    {
      "code": 0,
      "message": "Query parameter `per_page` must be a digit"
    },
    {
      "code": 0,
      "message": "Query parameter `page` must be a digit"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/user/documentsv2" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/crm/contacts/{contact_id}/users — Get users by contact

This endpoint allows API users to get the users who have access to a CRM contact.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `contact_id` | string | Yes | ID of the CRM contact. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `per_page` | string | No | How many search items to view per page. Allowed values: positive integers from 1 to 100. |
| `page` | integer | No | How many pages to fit the results in. Allowed values: any positive integer starting from 1. |

## Responses

### 200

List of users who have access to the contact.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "c2fbe5919b42cc30f418c031665450d203c081a1",
      "email": "user@example.com",
      "permission": {
        "created_at": 1792671820,
        "permission": "owner",
        "updated_at": 1792671820
      }
    },
    {
      "id": "6cfe15ef88f73f3d44baac3cbbfc4c4f1c52e14a",
      "email": "user@example.com",
      "permission": {
        "created_at": 1792671823,
        "permission": "view_only",
        "updated_at": 1792671823
      }
    }
  ],
  "meta": {
    "pagination": {
      "count": 2,
      "links": [],
      "total": 2,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

**Example** (`With include=contacts`)

```json
{
  "data": [
    {
      "id": "c2fbe5919b42cc30f418c031665450d203c081a1",
      "email": "user@example.com",
      "contacts": {
        "data": {
          "id": "6dbcc7271f8b2fe4a571c84ae87a1e396eb2c70c",
          "meta": {
            "created_at": 1778667639,
            "updated_at": 1792665967,
            "interacted_at": 1792665967
          },
          "email": "user@example.com",
          "phone": {
            "number": null,
            "country_code": null
          },
          "address": {
            "city": null,
            "state": null,
            "street": null,
            "country": null,
            "zip_code": null,
            "apartment": null
          },
          "company": {
            "name": null,
            "job_title": null
          },
          "last_name": "Doe",
          "first_name": "John",
          "description": null
        }
      },
      "permission": {
        "created_at": 1792671820,
        "permission": "owner",
        "updated_at": 1792671820
      }
    },
    {
      "id": "6cfe15ef88f73f3d44baac3cbbfc4c4f1c52e14a",
      "email": "user@example.com",
      "contacts": {
        "data": {
          "id": "cba9de6255b79a23ae3bf496bc064f335a37e68c",
          "meta": {
            "created_at": 1785845554,
            "updated_at": 1792575594,
            "interacted_at": 1792575594
          },
          "email": "user@example.com",
          "phone": {
            "number": null,
            "country_code": null
          },
          "address": {
            "city": null,
            "state": null,
            "street": null,
            "country": null,
            "zip_code": null,
            "apartment": null
          },
          "company": {
            "name": null,
            "job_title": null
          },
          "last_name": "Smith",
          "first_name": "Jane",
          "description": null
        }
      },
      "permission": {
        "created_at": 1792671823,
        "permission": "view_only",
        "updated_at": 1792671823
      }
    }
  ],
  "meta": {
    "pagination": {
      "count": 2,
      "links": [],
      "total": 2,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* Wrong, expired, or missing token.
* Request with incorrect per_page parameter type.
* Request with incorrect per_page parameter value.
* Request with incorrect page parameter type.
* Request with incorrect page parameter value.
* Request with incorrect include name.

**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

**Example** (`Incorrect include name`)

```json
{
  "code": 2740084,
  "message": "Include must be `contacts`"
}
```

**Example** (`Incorrect `page` parameter type`)

```json
{
  "code": 27400904,
  "message": "Query parameter `page` must be a digit"
}
```

**Example** (`Incorrect `page` parameter value`)

```json
{
  "code": 27400905,
  "message": "Query parameter `page` must be more than 0"
}
```

**Example** (`Incorrect `per_page` parameter type`)

```json
{
  "code": 27400901,
  "message": "Query parameter `per_page` must be a digit"
}
```

**Example** (`Incorrect `per_page` parameter value`)

```json
{
  "code": 27400902,
  "message": "Query parameter `per_page` must be more than 0"
}
```

**Example** (`Incorrect `per_page` parameter value 2`)

```json
{
  "code": 27400903,
  "message": "Query parameter `per_page` must be less than or equal 100"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/crm/contacts/{contact_id}/users" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## PUT /v2/crm/contacts/{contact_id}/users — Share contact with other users

This endpoint allows API users to share a CRM contact with other users.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `contact_id` | string | Yes | ID of the CRM contact. |

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "email",
          "permission"
        ],
        "properties": {
          "email": {
            "type": "string",
            "description": "Email address of the CRM contact that will be shared."
          },
          "permission": {
            "type": "string",
            "description": "Must be `view_only`."
          }
        }
      },
      "description": "The object that holds contact items to be shared. Maximum 100 items."
    }
  },
  "x-examples": {
    "Example 1": {
      "data": [
        {
          "email": "share_to_1@mail.com",
          "permission": "view_only"
        },
        {
          "email": "share_to_2@mail.com",
          "permission": "view_only"
        }
      ]
    }
  }
}
```

**Example** (`Request body`)

```json
{
  "data": [
    {
      "email": "user1@example.com",
      "permission": "view_only"
    },
    {
      "email": "user2@example.com",
      "permission": "view_only"
    }
  ]
}
```

## Responses

### 200

The contact was shared with the users.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "6cfe15ef88f73f3d44baac3cbbfc4c4f1c52e14a",
      "item": 0,
      "email": "user@example.com",
      "permission": "view_only",
      "requires_upsell": false
    }
  ]
}
```

### 400

* Request with any of cases: invalid token, expired token, empty header, authorization = null, authorization without value.
* Request with invalid body parameters, see examples.


**Example** (`Invalid email`)

```json
{
  "errors": {
    "code": 27400087,
    "item": 0,
    "message": "Invalid email"
  }
}
```

**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

**Example** (`The `data` field is required`)

```json
{
  "errors": {
    "code": 27400909,
    "item": 0,
    "message": "The `data` field is required"
  }
}
```

**Example** (`The `email` field is required`)

```json
{
  "errors": {
    "code": 27400086,
    "item": 0,
    "message": "The `email` field is required"
  }
}
```

**Example** (`The `permission` field is required`)

```json
{
  "errors": {
    "code": 27400089,
    "item": 0,
    "message": "The `permission` field is required"
  }
}
```

**Example** (`Duplicated emails in the `data` field`)

```json
{
  "errors": {
    "code": 27400912,
    "item": 0,
    "message": "There are duplicated emails in the `data` field: {duplicated@emaildomain.com}"
  }
}
```

**Example** (`The `permission` value should be "view_only"`)

```json
{
  "errors": {
    "code": 27400088,
    "item": 0,
    "message": "The `permission` value should be \"view_only\""
  }
}
```

**Example** (`The `data` field size must not be more than 100 items`)

```json
{
  "errors": {
    "code": 27400911,
    "item": 0,
    "message": "The `data` field size must not be more than 100 items"
  }
}
```

### 422

* Unable to share contact to yourself.
* Unable to share contact to itself.

**Example** (`Unable to share contact to itself`)

```json
{
  "code": 27422016,
  "message": "Unable to share contact to itself"
}
```

**Example** (`Unable to share contact to yourself`)

```json
{
  "code": 27422007,
  "message": "Unable to share contact to yourself"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X PUT \
  "https://api.signnow.com/v2/crm/contacts/{contact_id}/users" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"data": [{"email": "user1@example.com", "permission": "view_only"}, {"email": "user2@example.com", "permission": "view_only"}]}'
```

---

## DELETE /v2/crm/contacts/{contact_id}/users/{user_id} — Revoke access to shared contact

Remove shared contact permissions for a specific user.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `user_id` | string | Yes | The user ID to revoke access from. |
| `contact_id` | string | Yes | The shared CRM Contact ID. |

## Responses

### 204

User contact permission has been removed successfully

### 400

* Request with any of cases: invalid token, expired token, empty header, authorization = null, authorization without value.


**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

### 404

* Contact does not exist.
* User from path does not exist.

**Example** (`Contact does not exist`)

```json
{
  "code": 27404001,
  "message": "Contact 22408959ac935d74c20a1979ae46015728fed30d not found"
}
```

**Example** (`User from path does not exist`)

```json
{
  "code": 27404001,
  "message": "User `userUniqueId` not found"
}
```

### 422

* User from path does not have any permission to contact.
* User request from and user in the path are the same.

**Example** (`Path user does not have any permission to contact`)

```json
{
  "code": 27400092,
  "message": "User have no permission to contact"
}
```

**Example** (`User from request and user in the path are the same`)

```json
{
  "code": 27400093,
  "message": "Unable to revoke own contact"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/v2/crm/contacts/{contact_id}/users/{user_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## GET /v2/crm/users — Get the list of CRM users

This endpoint allows API users to get the list of users whose CRM contacts are available to the user.

## Authorization

bearer

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `per_page` | integer | No | How many search items to view per page. Allowed values: positive integers from 1 to 100. |
| `page` | integer | No | How many pages to fit the results in. Allowed values: any positive integer starting from 1. |

## Responses

### 200

List of users whose contacts are available to the current user.

**Example** (`Successful response`)

```json
{
  "data": [
    {
      "id": "c2fbe5919b42cc30f418c031665450d203c081a1",
      "email": "user@example.com",
      "contact_name": {
        "last_name": "Doe",
        "first_name": "John"
      }
    }
  ],
  "meta": {
    "pagination": {
      "count": 1,
      "links": [],
      "total": 1,
      "per_page": 15,
      "total_pages": 1,
      "current_page": 1
    }
  }
}
```

### 400

* Wrong, expired, or missing token.
* Request with incorrect per_page parameter type.
* Request with incorrect per_page parameter value.
* Request with incorrect page parameter type.
* Request with incorrect page parameter value.
* Request with incorrect include name.

**Example** (`Authorization issues`)

```json
{
  "code": 1537,
  "message": "invalid_token"
}
```

**Example** (`Incorrect include name`)

```json
{
  "code": 2740084,
  "message": "Include must be `contact_names`"
}
```

**Example** (`Incorrect `page` parameter type`)

```json
{
  "code": 27400904,
  "message": "Query parameter `page` must be a digit"
}
```

**Example** (`Incorrect `page` parameter value`)

```json
{
  "code": 27400905,
  "message": "Query parameter `page` must be more than 0"
}
```

**Example** (`Incorrect `per_page` parameter type`)

```json
{
  "code": 27400901,
  "message": "Query parameter `per_page` must be a digit"
}
```

**Example** (`Incorrect `per_page` parameter value`)

```json
{
  "code": 27400902,
  "message": "Query parameter `per_page` must be more than 0"
}
```

**Example** (`Incorrect `per_page` parameter value 2`)

```json
{
  "code": 27400903,
  "message": "Query parameter `per_page` must be less than or equal 100"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/v2/crm/users" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## POST /event_subscription — Create event subscription (deprecated)

This endpoint is deprecated. To create an event subscription, use the Webhooks 2.0 endpoint instead.

Creates a webhook that is triggered when the specified event takes place.

> [!WARNING]
> To create an event subscription, use [`POST /v2/event-subscriptions`](/docs/manage-event-subscriptions/operations/create-event-subscription-2).

We have recently released a new version of Webhooks. Find out more details [here](/docs/guides-webhooks).

## Authorization

bearer

## Request Body

**Schema**

```json
{
  "type": "object",
  "required": [
    "event",
    "callback_url"
  ],
  "properties": {
    "event": {
      "type": "string"
    },
    "use_tls_12": {
      "type": "boolean"
    },
    "callback_url": {
      "type": "string"
    }
  }
}
```

## Responses

### 200

**Example** (`Successful response`)

```json
{
  "id": "5a8123c4059a03f6eli47d66ef84694b9109845e",
  "created": 1414441545,
  "updated": 1414442202
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X POST \
  "https://api.signnow.com/event_subscription" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
```

---

## GET /event_subscription — Get event subscription (deprecated)

This endpoint is deprecated. To get event subscriptions, use the Webhooks 2.0 endpoint instead.

This endpoint returns the event subscriptions created by the user.

> [!WARNING]
> To get event subscriptions, use [`GET /v2/event-subscriptions`](/docs/manage-event-subscriptions/operations/get-v2-dashboard-event-subscriptions).


## Authorization

bearer

## Responses

### 200

**Example** (`Successful response`)

```json
{
  "subscriptions": [
    {
      "id": "event_id",
      "event": "document.update",
      "created": "1410301010"
    },
    {
      "id": "event_id",
      "event": "document.create",
      "created": "1410301010"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/event_subscription" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---

## DELETE /event_subscription/{event_subscription_id} — Delete event subscription (deprecated)

This endpoint is deprecated. To delete an event subscription, use the Webhooks 2.0 endpoint instead.

This endpoint deletes an event subscription created with Webhooks 1.0.

> [!WARNING]
> To delete an event subscription, use [`DELETE /v2/event-subscriptions/{subscription_id}`](/docs/manage-event-subscriptions/operations/delete-v2-event-subscriptions-subscription-id).

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `event_subscription_id` | string | Yes | ID of the event subscription. |

## Responses

### 200

**Example** (`Successful response`)

```json
{
  "id": "016f4ca9e5a002ea766d457d087df16f51536703",
  "status": "deleted"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/event_subscription/{event_subscription_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---
