Skip to content

Integration patterns

Multi-Tenant Applications

Serve every tenant of your SaaS platform from one SignatureAPI account, with tenant IDs in metadata, per-tenant branding and senders, and webhook routing.

If you are building a SaaS platform where multiple tenants (customers, organizations, or accounts) need to send documents for signature, this guide explains how to structure your integration with SignatureAPI.

How tenancy works

SignatureAPI does not provide scoped API keys, separate projects, or tenant isolation at the API level. Your application uses a single API key and manages tenancy on your side.

This means:

  • One SignatureAPI account serves all your tenants.
  • Your application decides which tenant each envelope belongs to.
  • Your application controls which tenants can see which envelopes and deliverables.
  • Your end users do not need SignatureAPI accounts. They interact with your application, which calls SignatureAPI on their behalf.

Use metadata to identify tenants

Attach your tenant identifier to each envelope using metadata. This lets you correlate envelopes with tenants in webhook handlers and when listing envelopes.

HTTP
POST /v1/envelopes HTTP/1.1
Host: api.signatureapi.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json

{
  "title": "Service Agreement",
  "metadata": {
    "tenant_id": "tenant_northwind",
    "tenant_name": "Northwind Studio"
  },
  "documents": [
    {
      "url": "https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/privacy-placeholder.pdf",
      "format": "pdf",
      "places": [
        {
          "key": "signer_signs_here",
          "type": "signature",
          "recipient_key": "client"
        }
      ]
    }
  ],
  "recipients": [
    {
      "type": "signer",
      "key": "client",
      "name": "Jane Doe",
      "email": "jane.doe@example.com"
    }
  ]
}

When SignatureAPI sends webhook events, the envelope_metadata is included in every payload. Use it to route the event to the correct tenant in your system:

JSON
{
  "id": "evt_4GpGD1cNnrkemsTLAvPW9G",
  "type": "recipient.completed",
  "timestamp": "2026-11-02T15:21:40.000Z",
  "data": {
    "object_id": "re_49r1R2jpPDz8hSpP75ZkPp",
    "object_type": "recipient",
    "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
    "envelope_metadata": {
      "tenant_id": "tenant_northwind",
      "tenant_name": "Northwind Studio"
    },
    "recipient_type": "signer",
    "recipient_key": "client"
  }
}

Use topics to filter webhooks per tenant

If different tenants require different webhook handling, use topics to tag envelopes and configure separate webhook endpoints for each topic. Add the topic next to the metadata in the create request:

JSON
{
  "topics": ["tenant_northwind"],
  "metadata": {
    "tenant_id": "tenant_northwind"
  }
}

Per-tenant branding

Customize the signing experience for each tenant using the branding property on each envelope. Set a different logo, accent color, and email footer per tenant. Each logo must be a permanent upload (see Customize Branding):

JSON
{
  "branding": {
    "logo": "https://api.signatureapi.com/v1/uploads/upl_3JJz6t1o8A5YjX5VpnX27Z",
    "accent_color": "#1a73e8",
    "email": {
      "footer": "Sent by Northwind Studio"
    }
  }
}

Per-tenant senders

Each tenant can have their own sender email address. Create and verify a sender for each tenant, then specify it on the envelope:

JSON
{
  "sender": {
    "name": "Northwind Studio",
    "email": "contracts@northwind.example",
    "organization": "Northwind Studio"
  }
}

The sender’s email appears as the Reply-To address in signing request emails.

Architecture overview

A typical multi-tenant integration looks like this:

One SignatureAPI account serving many tenants
One SignatureAPI account serving many tenants6 parts: Your server, Webhook handler, Tenant A records, Tenant B records, Envelopes, Events. Connections: Your server to Envelopes (POST /v1/envelopes); Envelopes to Events (status changes); Events to Webhook handler (webhooks); Webhook handler to Tenant A records; Webhook handler to Tenant B records.Your platformSignatureAPI (one account, one API key)Your serverWebhook handlerTenant A recordsTenant B recordsEnvelopesEventsPOST /v1/envelopesstatus changeswebhooks
Your platformSignatureAPI (one account, one API key)Your platform (continued)Your serverEnvelopesEventsWebhook handlerTenant A recordsTenant B recordsPOST /v1/envelopesstatus changeswebhooks
Diagram as text

Parts

  • Your server: Holds the API key. Creates each envelope with the tenant's ID in `metadata` and the tenant's branding and sender.
  • Webhook handler: Reads `data.envelope_metadata.tenant_id` from each event and routes it.
  • Tenant A records: Envelope status and signed documents for tenant A.
  • Tenant B records: Envelope status and signed documents for tenant B.
  • Envelopes: Every tenant's envelopes live in the same account, told apart by `metadata.tenant_id`.
  • Events: Each event carries the envelope's metadata as `envelope_metadata`.

Connections

  • Your server to Envelopes: POST /v1/envelopes
  • Envelopes to Events: status changes
  • Events to Webhook handler: webhooks
  • Webhook handler to Tenant A records
  • Webhook handler to Tenant B records
  1. Tenant creates a document in your application.
  2. Your server creates an envelope in SignatureAPI with the tenant’s metadata, branding, and sender.
  3. SignatureAPI handles the signing ceremony with the tenant’s recipients.
  4. Webhook events arrive at your server with the tenant metadata, so you can route them to the correct tenant.
  5. Your server downloads the deliverable and stores it in the tenant’s storage.

Your application is the control layer. SignatureAPI handles the signing infrastructure.

Keep Learning

  • Use metadata to link envelopes to your internal records.
  • Use topics to filter webhooks by tenant or category.
  • Customize the signing experience with branding.
  • Manage senders for per-tenant Reply-To addresses.