---
title: "Envelope metadata"
description: "Attach custom key-value data to envelopes for internal reference IDs and tracking"
canonical: "https://signatureapi.com/docs/api/resources/envelopes/metadata"
source: "https://signatureapi.com/docs/api/resources/envelopes/metadata.md"
last_verified_api_version: "1.18.1"
last_modified: "2026-11-18T12:07:52Z"
---

# Envelope metadata

Attach custom key-value data to envelopes for internal reference IDs and tracking

_Last verified against API version 1.18.1._

The `metadata` property lets you attach custom key-value pairs to an envelope. Use it to link envelopes to records in your own systems, such as internal reference IDs, account numbers, or transaction identifiers.

Metadata is included in all API responses that return an envelope and in all [webhook](https://signatureapi.com/docs/api/webhooks) payloads in the `data.envelope_metadata` field.

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

## Limits

- Up to 10 key-value pairs per envelope.
- Keys: up to 32 characters (letters, digits, and underscores).
- Values: up to 1,000 characters.

## Using metadata

Add a `metadata` object when creating an envelope:

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

{
  "title": "Service Agreement",
  "metadata": {
    "user_id": "100200",
    "contract_number": "CNT-2026-001"
  },
  "documents": [
    {
      "url": "https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/docs-samples/acme-service-agreement.pdf",
      "places": [
        { "key": "client_signs_here", "type": "signature", "recipient_key": "client" },
        { "key": "provider_signs_here", "type": "signature", "recipient_key": "provider" }
      ]
    }
  ],
  "recipients": [
    { "type": "signer", "key": "client", "name": "Jane Doe", "email": "jane.doe@example.com" },
    { "type": "signer", "key": "provider", "name": "John Smith", "email": "john.smith@example.com" }
  ]
}
```

When a recipient signs, SignatureAPI sends a `recipient.completed` webhook that includes your metadata:

```json recipient.completed {9-12}
{
  "id": "evt_4GpGD1cNnrkemsTLAvPW9G",
  "type": "recipient.completed",
  "timestamp": "2026-11-02T15:21:40.000Z",
  "data": {
    "envelope_id": "eb4cf433-a8af-4161-b37b-7ef57d423e56",
    "object_type": "recipient",
    "object_id": "re_49r1R2jpPDz8hSpP75ZkPp",
    "envelope_metadata": {
      "user_id": "100200",
      "contract_number": "CNT-2026-001"
    },
    "recipient_type": "signer",
    "recipient_key": "client",
    "session_id": "ses_1chIEkLOtmUMSdo0aL8p9A"
  }
}
```

Use the metadata in webhook handlers to update records, trigger workflows, or route notifications in your system.

## Examples

#### Multiple keys

```json
{
  "metadata": {
    "deal_id": "DEAL-2026-0042",
    "investor_id": "INV-88421",
    "round": "Series A",
    "amount": "500000"
  }
}
```

#### Webhook correlation

```json
{
  "metadata": {
    "application_id": "APP-78542",
    "correlation_id": "corr_a1b2c3d4",
    "source_system": "loan-origination"
  }
}
```

#### Customer reference

```json
{
  "metadata": {
    "customer_id": "CUST-12345",
    "contract_number": "CNT-2026-001",
    "sales_rep": "jsmith"
  }
}
```

## Metadata vs. topics

Use [topics](https://signatureapi.com/docs/api/resources/envelopes/topics) to categorize and filter envelopes within SignatureAPI. Use metadata to store information that connects envelopes to records in your own systems.
