---
title: "Create a ceremony"
description: "Create a new signing ceremony for a recipient with custom authentication options."
canonical: "https://signatureapi.com/docs/api/resources/ceremonies/create"
source: "https://signatureapi.com/docs/api/resources/ceremonies/create.md"
last_verified_api_version: "1.18.0"
last_modified: "2026-11-18T12:10:02Z"
---

# Create a ceremony

Create a new signing ceremony for a recipient with custom authentication options.

_Last verified against API version 1.18.0._

Creates a new [ceremony](https://signatureapi.com/docs/api/resources/ceremonies/object) for a [recipient](https://signatureapi.com/docs/api/resources/recipients/object). Any previous active ceremony for the recipient is automatically revoked.

The `authentication` array specifies which authentication methods the recipient must complete to access the ceremony. You can configure multiple methods. Recipients complete them in sequence. Learn more in [Recipient Authentication](https://signatureapi.com/docs/api/resources/ceremonies/authentication/overview).

## When you can create a ceremony

Create Ceremony succeeds only when both the envelope and the recipient allow it:

- **Envelope:** its status is `in_progress`.
- **Recipient:** its status is `pending`, `awaiting`, `sent` or `soft_bounced`. A recipient who is `completed`, `rejected`, `hard_bounced`, `failed` or `replaced` can't get a new ceremony. [Replace](https://signatureapi.com/docs/api/resources/recipients/replace) a bounced or failed recipient first.
- **Recipient type:** automatic signers have no ceremony.

A recipient also shows `pending` while their invitation email is still being sent. Create Ceremony returns the same error until the email goes out, so retry after a few seconds.

Otherwise the API returns `409` with the [Could Not Create Ceremony](https://signatureapi.com/docs/v1/errors/cannot-create-ceremony) error. For authentication, rate limit and server errors, see [Errors](https://signatureapi.com/docs/api/errors).

Creating an active ceremony whose first authentication method is `email_code` or `custom` moves a `pending` recipient to `sent` and emits `recipient.sent`, because you deliver the URL.

## Path Parameters

#### `recipient_id` (string, path, required)

The unique identifier of the recipient. Recipient IDs use the `re_` prefix.

## Body Parameters

#### `authentication` (array of authentication object, required)

**Email Link Authentication**

With **email link authentication**, the recipient receives an email with a direct link to the ceremony. Clicking the link authenticates the recipient and opens the signing session.

#### `type` (enum, required)

The type of authentication. Available values: `email_link`, `email_code`, and `custom`.

For email link authentication, set `type` to `email_link`.

#### `subject_override` (string)

A custom subject line for the invitation email sent to this recipient. When not set, the subject defaults to the [envelope title](https://signatureapi.com/docs/api/resources/envelopes/object#title).

Maximum 500 characters.

#### `message_override` (string)

A custom message body for the invitation email sent to this recipient. When not set, the message defaults to the [envelope message](https://signatureapi.com/docs/api/resources/envelopes/object#message).

Supports Markdown formatting: `**bold**`, `*italic*`, and `\n\n` for paragraph breaks. Maximum 2000 characters.

**Email Code Authentication**

With **email code authentication**, the recipient receives an email from SignatureAPI containing a 9-digit code. The recipient must enter this code to authenticate and access the ceremony.

#### `type` (enum, required)

The type of authentication. Available values: `email_link`, `email_code`, and `custom`.

For email code authentication, set `type` to `email_code`.

**Custom Authentication**

With **custom authentication**, your application authenticates the recipient. SignatureAPI provides a ceremony URL that you share or embed in your application to give the recipient access.

#### `type` (enum, required)

The type of authentication. Available values: `email_link`, `email_code`, and `custom`.

For custom authentication, set `type` to `custom`.

#### `provider` (string, required)

The name of your company or application that authenticated the recipient. This value appears in the envelope audit log as the authentication provider. It can't be empty.

#### `data` (object, required)

Key-value pairs with metadata about the authentication event, such as timestamps, session IDs, and user identifiers. These values appear in the envelope audit log. The object can't be empty and every value must be a string. See [Authentication data](https://signatureapi.com/docs/api/resources/ceremonies/authentication/custom#authentication-data).

> **Warning:** The values in `data` must be sufficient to verify how the recipient was authenticated. You must retain all records needed to prove the recipient's authentication, such as session information. In cases such as legal proceedings, you may need to provide these records to confirm identity.
>
> Review our [Terms & Conditions](https://signatureapi.com/docs/legal/terms/terms) for details.

#### `redirect_url` (string)

An HTTPS URL to redirect the recipient to after they complete or decline the ceremony. Embedded ceremonies ignore it.

Learn more in [Redirect URL](https://signatureapi.com/docs/api/resources/ceremonies/redirect-url).

#### `redirect_delay` (integer)

The delay in seconds before the ceremony redirects to `redirect_url` (standalone ceremonies) or emits completion events (embedded ceremonies).

Defaults to `3`. Allowed range: `0` to `20`.

Learn more in [Redirect URL](https://signatureapi.com/docs/api/resources/ceremonies/redirect-url).

#### `url_variant` (enum)

The format of the ceremony URL.

Available options:

- `standard` (default): Full-length URL. Works for most use cases.
- `short`: Shortened URL. Use this when sharing through space-constrained channels such as SMS or push notifications.

#### `embeddable_in` (array of strings)

Origins allowed to embed this ceremony in an iframe.

These values set the `frame-ancestors` directive in the ceremony's Content Security Policy (CSP) header. Sources typically take the form of a scheme and host (for example, `https://app.example.com`). Wildcards are supported (for example, `https://*.example.com`). For all available options, see the [frame-ancestors documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors#sources).

Defaults to an empty list (`[]`), which means embedding is not allowed. To allow embedding from all origins (not recommended for production), use `["*"]`.

> **Note:** Only the origin (scheme and host) is used. Paths are ignored.

## Returns

Returns a `201 Created` status code with [a ceremony object](https://signatureapi.com/docs/api/resources/ceremonies/object) on success, or an [error](https://signatureapi.com/docs/api/errors) otherwise.

### Example: Email link

SignatureAPI emails the signing link to the recipient.

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

{
  "authentication": [
    {
      "type": "email_link",
      "subject_override": "Please sign the Service Agreement",
      "message_override": "Please review and sign the attached agreement."
    }
  ]
}
```

Response 201 Created:

```json
{
  "authentication": [
    {
      "type": "email_link",
      "subject_override": "Please sign the Service Agreement",
      "message_override": "Please review and sign the attached agreement."
    }
  ],
  "embeddable_in": [],
  "redirect_url": null,
  "redirect_delay": 3,
  "url_variant": "standard",
  "url": null
}
```

Response 404 Not Found:

```json
{
  "type": "https://signatureapi.com/docs/v1/errors/not-found",
  "title": "Not Found",
  "status": 404,
  "detail": "Could not find Recipient re_49r1R2jpPDz8hSpP75ZkPp."
}
```

Response 409 Conflict:

```json
{
  "type": "https://signatureapi.com/docs/v1/errors/cannot-create-ceremony",
  "title": "Could Not Create Ceremony",
  "status": 409,
  "detail": "This recipient has already completed, so a new ceremony can't be created. Ceremonies can only be created for recipients whose status is sent, soft_bounced, pending or awaiting."
}
```

Response 422 Unprocessable Content:

```json
{
  "type": "https://signatureapi.com/docs/v1/errors/validation-error",
  "title": "Validation Error",
  "status": 422,
  "errors": [
    "authentication array cannot be empty."
  ]
}
```

### Example: Email code

The recipient enters a code sent to their email.

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

{
  "authentication": [
    {
      "type": "email_code"
    }
  ]
}
```

Response 201 Created:

```json
{
  "authentication": [
    {
      "type": "email_code"
    }
  ],
  "embeddable_in": [],
  "redirect_url": null,
  "redirect_delay": 3,
  "url_variant": "standard",
  "url": "https://sign.signatureapi.com/en/start?token=eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZXMiOiJzZXNfMWNoSUVrTE9tdFVNRG9hTDhwOUEifQ.c2lnbmF0dXJl"
}
```

### Example: Custom authentication

Your app authenticates the recipient and records how.

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

{
  "authentication": [
    {
      "type": "custom",
      "provider": "Acme Portal",
      "data": {
        "Session ID": "se_88620999344",
        "Authenticated At": "2026-11-02T14:03:11Z"
      }
    }
  ],
  "embeddable_in": [
    "https://app.acme.example"
  ]
}
```

Response 201 Created:

```json
{
  "authentication": [
    {
      "type": "custom",
      "provider": "Acme Portal",
      "data": {
        "Session ID": "se_88620999344",
        "Authenticated At": "2026-11-02T14:03:11Z"
      }
    }
  ],
  "embeddable_in": [
    "https://app.acme.example"
  ],
  "redirect_url": null,
  "redirect_delay": 3,
  "url_variant": "standard",
  "url": "https://sign.signatureapi.com/en/start?token=eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZXMiOiJzZXNfMWNoSUVrTE9tdFVNRG9hTDhwOUEifQ.c2lnbmF0dXJl"
}
```

### Example: Redirect URL

Send the recipient to your site after they finish.

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

{
  "authentication": [
    {
      "type": "email_link"
    }
  ],
  "redirect_url": "https://acme.example/signing-complete",
  "redirect_delay": 5
}
```

Response 201 Created:

```json
{
  "authentication": [
    {
      "type": "email_link",
      "subject_override": null,
      "message_override": null
    }
  ],
  "embeddable_in": [],
  "redirect_url": "https://acme.example/signing-complete",
  "redirect_delay": 5,
  "url_variant": "standard",
  "url": null
}
```

### Example: Embedded

Embed the ceremony in an iframe on your origins.

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

{
  "authentication": [
    {
      "type": "custom",
      "provider": "Acme Portal",
      "data": {
        "User ID": "usr_12345"
      }
    }
  ],
  "embeddable_in": [
    "https://app.acme.example",
    "https://staging.acme.example"
  ]
}
```

Response 201 Created:

```json
{
  "authentication": [
    {
      "type": "custom",
      "provider": "Acme Portal",
      "data": {
        "User ID": "usr_12345"
      }
    }
  ],
  "embeddable_in": [
    "https://app.acme.example",
    "https://staging.acme.example"
  ],
  "redirect_url": null,
  "redirect_delay": 3,
  "url_variant": "standard",
  "url": "https://sign.signatureapi.com/en/start?token=eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZXMiOiJzZXNfMWNoSUVrTE9tdFVNRG9hTDhwOUEifQ.c2lnbmF0dXJl"
}
```

Errors that any request can return (authentication, rate limits, server errors) are on the [Errors](https://signatureapi.com/docs/api/errors) and [Authentication](https://signatureapi.com/docs/api/authentication) pages.
