---
title: "Multi-Tenant Applications"
description: "Serve every tenant of your SaaS platform from one SignatureAPI account, with tenant IDs in metadata, per-tenant branding and senders, and webhook routing."
canonical: "https://signatureapi.com/docs/api/guides/use-cases/multi-tenant"
source: "https://signatureapi.com/docs/api/guides/use-cases/multi-tenant.md"
last_verified_api_version: "1.18.1"
last_modified: "2026-11-18T11:49:54Z"
---

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

_Last verified against API version 1.18.1._

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](https://signatureapi.com/docs/api/resources/envelopes/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](https://signatureapi.com/docs/api/resources/envelopes/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](https://signatureapi.com/docs/api/resources/envelopes/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](https://signatureapi.com/docs/api/guides/how-to/customize-branding#upload-your-logo)):

```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](https://signatureapi.com/docs/api/resources/senders/object) 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**

Parts:

- **Your server** (Your platform): Holds the API key. Creates each envelope with the tenant's ID in `metadata` and the tenant's branding and sender.
- **Webhook handler** (Your platform): Reads `data.envelope_metadata.tenant_id` from each event and routes it.
- **Tenant A records** (Your platform): Envelope status and signed documents for tenant A.
- **Tenant B records** (Your platform): Envelope status and signed documents for tenant B.
- **Envelopes** (SignatureAPI (one account, one API key)): Every tenant's envelopes live in the same account, told apart by `metadata.tenant_id`.
- **Events** (SignatureAPI (one account, one API key)): 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](https://signatureapi.com/docs/api/resources/envelopes/metadata) to link envelopes to your internal records.
- Use [topics](https://signatureapi.com/docs/api/resources/envelopes/topics) to filter webhooks by tenant or category.
- Customize the signing experience with [branding](https://signatureapi.com/docs/api/resources/envelopes/branding).
- Manage [senders](https://signatureapi.com/docs/api/resources/senders/object) for per-tenant Reply-To addresses.
