---
title: "Organize with Topics and Metadata"
description: "Use topics to filter envelopes and webhook deliveries, and metadata to link each envelope to a record in your own systems, such as a CRM deal."
canonical: "https://signatureapi.com/docs/api/guides/how-to/organize-topics-metadata"
source: "https://signatureapi.com/docs/api/guides/how-to/organize-topics-metadata.md"
last_verified_api_version: "1.18.1"
last_modified: "2026-11-18T12:01:51Z"
---

# Organize with Topics and Metadata

Use topics to filter envelopes and webhook deliveries, and metadata to link each envelope to a record in your own systems, such as a CRM deal.

_Last verified against API version 1.18.1._

Topics and metadata are two complementary tools for organizing envelopes. Topics categorize envelopes within SignatureAPI, enabling webhook filtering and targeted queries. Metadata stores custom key-value data, such as internal reference IDs or account numbers, that connects envelopes to records in your own systems.

Used together, they give you precise control over how envelopes are routed and tracked across both SignatureAPI and your external systems.

## Create an Envelope with Topics and Metadata

Set `topics` and `metadata` when creating an envelope:

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

{
  "title": "Service Agreement",
  "topics": ["sales", "q4_2026"],
  "metadata": {
    "crm_opportunity_id": "OPP-20261102",
    "account_id": "ACC-88421",
    "sales_rep": "jsmith"
  },
  "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"
    }
  ]
}
```

Topics and metadata limits:

- **Topics:** up to 10 per envelope, lowercase letters, numbers, and underscores only, maximum 32 characters each, must start with a lowercase letter.
- **Metadata:** up to 10 key-value pairs, keys up to 32 characters, values up to 1,000 characters.

## Using Topics

### Filter Webhook Notifications

Configure a webhook endpoint in the dashboard to receive events only for envelopes that match specific topics. This lets you route different envelope types to separate endpoints or trigger different workflows without building custom routing logic in your backend.

For example, a company with separate sales and finance workflows can:

1. Tag sales envelopes with `sales` and finance envelopes with `finance`.
2. Configure one webhook endpoint to receive only `sales` events and another for `finance` events.
3. Each endpoint receives only the notifications relevant to its workflow.

A webhook endpoint with no topic filter receives events for all envelopes.

### Query Envelopes by Topic

Use the `topic` query parameter on the [List Envelopes](https://signatureapi.com/docs/api/resources/envelopes/list) endpoint to retrieve envelopes for a specific topic:

```http
GET /v1/envelopes?topic=sales HTTP/1.1
Host: api.signatureapi.com
X-API-Key: YOUR_API_KEY
```

This returns all envelopes tagged with `sales`, making it easy to pull a focused list for reporting, auditing, or processing.

## Using Metadata

Metadata is included in all API responses that return an envelope and in every webhook payload under `data.envelope_metadata`. This means you can access your custom data wherever you interact with envelope events, without making additional API calls to look up related records.

When a recipient signs, SignatureAPI sends a `recipient.completed` webhook that includes the envelope's metadata:

```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": {
      "crm_opportunity_id": "OPP-20261102",
      "account_id": "ACC-88421",
      "sales_rep": "jsmith"
    },
    "recipient_type": "signer",
    "recipient_key": "client"
  }
}
```

Use the metadata values in your webhook handler to update the corresponding record in your CRM, trigger a downstream workflow, or route the notification to the right service.

> **Warning:** Do not store sensitive information (such as bank account numbers, card details, or passwords) as metadata.

## Try It

Send the request with your [test API key](https://signatureapi.com/docs/api/test-mode) to create a free, non-binding test envelope, for example from the [API Playground](https://signatureapi.com/docs/api/playground). Then list it with `GET /v1/envelopes?topic=sales`.

## Keep Learning

- Learn more about [topics](https://signatureapi.com/docs/api/resources/envelopes/topics), including all formatting rules and webhook filter configuration.
- Learn more about [metadata](https://signatureapi.com/docs/api/resources/envelopes/metadata), including limits and additional usage examples.
- Set up [webhooks](https://signatureapi.com/docs/api/webhooks) to receive real-time envelope events in your backend.
