SIGN REQUEST API

API Docs for Fast, Secure Document Signing

Integrate templates, signer routing, and webhook automation in your app with a simple REST flow. Built for developers who want quick setup and reliable delivery.

Trusted workflow style: SaaS onboarding, HR offer letters, internal approvals.
First Request Example
cURL / HTTP
POST https://indigoesign.com/api/v1/sign-request
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "template_id": "tpl_123",
  "title": "Offer Letter",
  "signers": [
    {
      "role": "client",
      "email": "[email protected]"
    }
  ],
  "redirect_url": "https://yourapp.com/success",
  "webhook_url": "https://yourapp.com/webhook"
}

Why Teams Use This API

Clean endpoint design, predictable behavior, and template-first workflows.

Simple REST Integration

No SDK required. Use standard HTTPS calls from any backend.

Template-Based Sending

Create templates in panel, then reuse them by `template_id` in API calls.

Real-Time Webhooks

Track `request.sent`, `viewed`, `signed`, and `completed` instantly.

Getting Started

Follow these steps to prepare your account for API integration.

1
Authentication & API Keys

Accessing the API requires a Secret Key. You must have an active account to generate keys.

  • Sign Up / Login: If you haven't already, create an account or log in to your dashboard.
  • Navigate to API Keys: From the sidebar menu, click on "API Keys". This is located under your profile settings or developer tools.
  • Generate Key: Click the Generate New Key button.
  • Save Secret: Copy the secret key immediately. For security, it will only be shown to you once.
  Always keep your API keys secret. Never share them in client-side code or public repositories.
Api key image Api key image
Template Setup Template Setup

2
Preparing Sign Templates

The API works by referencing pre-configured templates. This allows you to design the document layout once and reuse it programmatically.

  • Access Templates: Go to the "Sign Templates" section in your dashboard sidebar.
  • Create New: Click "Create Template" and upload your base PDF document.
  • Configure Fields: Use the drag-and-drop editor to place signature, text, and date fields. Each field should be assigned to a specific Role (e.g., "Client", "Manager").
  • Save & Activate: Once finished, save the template to make it available for API requests.

3
Locating the Template ID

Once your template is created, you'll need its unique identifier for your code.

  • Find the ID: In the Sign Templates list, each template has a template ID (e.g., tpl_x8k2j9...).
  • Copy Utility: Use the copy icon next to the template ID to instantly copy it to your clipboard.
  • Verify Roles: Ensure the roles you use in your API call ("role": "client") exactly match the roles defined in your template's fields.
  If you use a template_id that doesn't exist or is inactive, the API will return a 404 error: {"detail": "Template not found or not owned by your company"}.
Locating Template ID Locating Template ID

Go Live in 3 Steps

1

Generate API Key

Create a key from your panel and use it in Bearer auth header.

2

Create Request

Call `POST /api/v1/sign-request` with template ID + signer list.

3

Handle Webhooks

Update your product logic when signing events are delivered.

API Reference

Use this endpoint to create sign requests from saved templates.

Main Endpoint REST

POST /api/v1/sign-request
Headers
Authorization: Bearer YOUR_API_KEY
      Content-Type: application/json
Request Body
{
        "template_id": "tpl_123",
        "title": "Offer Letter",
        "signers": [
          {
            "role": "client",
            "email": "[email protected]"
          }
        ],
        "redirect_url": "https://yourapp.com/success",
        "webhook_url": "https://yourapp.com/webhook"
      }

Request Parameters

Field Type Required Description
template_id string Yes Template created via panel
title string Yes Document name, shown to signers and in your dashboard
signers array Yes List of signers
signers[].role string Yes Must match a role in the template exactly (e.g. client, vendor)
signers[].email string Yes Signer email. Each signer needs a different email, and it cannot be your own account email
redirect_url string No Where signers go after they sign (http or https)
webhook_url string No Public URL that receives the webhook events for this request

Success Response (201 Created) JSON

{
        "request_id": "req_8f2c1a9b3d4e",
        "status": "sent",
        "signers": [
          {
            "role": "client",
            "email": "[email protected]",
            "signing_url": "https://indigoesign.com/documents/sign/6f1d2c3e-..."
          }
        ]
      }

Error Responses JSON

// 400: missing or invalid fields
{
  "errors": ["template_id is required"]
}
// 401: missing or invalid API key
{
  "detail": "Authentication required"
}
// 403: plan without API access, or a plan limit reached
{
  "error": "API access not allowed in your plan"
}
// 404: template not found
{
  "detail": "Template not found or not owned by your company"
}
// 429: more than 1 sign request per minute (Retry-After: 60)
{
  "detail": "Too many sign-request creations. Limit is 1 per minute."
}

Quick Start in 60 Seconds

Copy and run your first signing request

cURL

curl -X POST https://indigoesign.com/api/v1/sign-request \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "template_id": "tpl_your_template_id",
      "title": "Employment Contract",
      "signers": [
        {
          "role": "client",
          "email": "[email protected]"
        }
      ],
      "redirect_url": "https://yourapp.com/success",
      "webhook_url": "https://yourapp.com/webhook"
    }'

Python (requests)

import requests

url = "https://indigoesign.com/api/v1/sign-request"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}

payload = {
    "template_id": "tpl_your_template_id",
    "title": "Offer Letter",
    "signers": [
        {"role": "client", "email": "[email protected]"}
    ],
    "redirect_url": "https://yourapp.com/success",
    "webhook_url": "https://yourapp.com/webhook"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())

JavaScript (Node.js / Fetch)

const response = await fetch("https://indigoesign.com/api/v1/sign-request", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    template_id: "tpl_your_template_id",
    title: "Agreement",
    signers: [
      { role: "client", email: "[email protected]" }
    ],
    redirect_url: "https://yourapp.com/success",
    webhook_url: "https://yourapp.com/webhook"
  })
});

const data = await response.json();
console.log(data);

Webhook Events

Event occurs -> send webhook -> log result.

Event Description
request.sent Request created
request.viewed Signer opened link
request.signed One signer completed
request.completed All signers done

Client endpoint: POST https://your-app.com/webhooks/esign

Delivery

  • Sent as a JSON POST to the webhook_url of the request
  • Reply with any 2xx status within 10 seconds
  • No automatic retry: resend a failed delivery from Webhook Logs in your dashboard
  • Webhooks are not signed: confirm with GET /api/v1/sign-request/{request_id} before acting on one

Ready to Build with the Sign Request API?

Generate an API key, create a template, and send your first request in minutes.

Generate API Key