# Create envelope

Creates a new envelope in draft status within the specified organization.

Endpoint: POST /api/v1/organizations/{organizationId}/envelopes
Version: v1
Security: Bearer, PersonalAccessToken

## Security:

  - `Bearer` (unknown)
    http bearer JWT

  - `PersonalAccessToken` (unknown)
    apiKey in header Personal-Access-Token

## Path parameters:

  - `organizationId` (string, required)
    Unique identifier of the organization

## Request fields (application/json):

  - `name` (string)
    The envelope name.
    Example: Contract for Mario Rossi

  - `expiration` (any)
    The expiration settings.

  - `expiration.expiresAt` (string)
    The exact expiration date and time.
    Example: 2025-12-31T23:59:59Z

  - `expiration.mode` (string, required)
    Enum: "Absolute"

  - `expiration.afterSendInSeconds` (integer)
    Seconds after sending before the envelope expires.
    Example: 604800

  - `expiration.mode` (string, required)
    Enum: "Relative"

  - `reminder` (object)
    Reminder configuration.

  - `reminder.enabled` (boolean, required)
    Whether reminders are enabled.
    Example: true

  - `reminder.firstReminderInDays` (integer, required)
    Days after sending before the first reminder.
    Example: 5

  - `reminder.resendIntervalInDays` (integer, required)
    Days between subsequent reminders.
    Example: 3

  - `reminder.beforeExpirationInDays` (integer, required)
    Days before expiration to send the last reminder.
    Example: 2

  - `qualifiedTimeStamp` (boolean)
    Whether all signatures in the envelope must use a qualified timestamp server.
    Example: true

  - `signatureReason` (string)
    The signature reason persisted on the envelope.
    Example: Approved by Mario Rossi

  - `signatureFormat` (string)
    The signature format for an envelope or template.
    Enum: "Pades", "Cades"

  - `agreements` (array)
    The agreements per language. Null means no change (keep existing); empty list clears all agreements.

  - `agreements.language` (string, required)
    The BCP-47 language code for this agreement.
    Example: en

  - `agreements.title` (string)
    The agreement title, or null when not set.
    Example: Please review the agreement

  - `agreements.body` (string, required)
    The agreement body.
    Example: Please read and accept the agreement.

  - `afterSendRedirectUrl` (string)
    The URL to redirect to after sending the envelope.
    Example: https://example.com/envelope-sent

## Request examples:

  - `PAdES, absolute expiration (default)` (unknown)

  - `PAdES, relative expiration` (unknown)

  - `CAdES` (unknown)

## Response 201:

  - `201` (unknown)
    Created

## Response 201 fields (application/json):

  - `id` (string, required)
    The ID of the created envelope.
    Example: 00000000-0000-0000-0000-000000000001

## Response 400:

  - `400` (unknown)
    Bad Request

## Response 400 fields (application/json):

  - `errors` (array, required)

  - `errors.errorId` (string, required)

  - `errors.field` (string)

  - `errors.message` (any, required)

  - `errors.messageEn` (any, required)

  - `errors.additionalData` (object)

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `errors` (array, required)

  - `errors.errorId` (string, required)

  - `errors.field` (string)

  - `errors.message` (any, required)

  - `errors.messageEn` (any, required)

  - `errors.additionalData` (object)

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `errors` (array, required)

  - `errors.errorId` (string, required)

  - `errors.field` (string)

  - `errors.message` (any, required)

  - `errors.messageEn` (any, required)

  - `errors.additionalData` (object)

## Response 404:

  - `404` (unknown)
    Not Found

## Response 404 fields (application/json):

  - `errors` (array, required)

  - `errors.errorId` (string, required)

  - `errors.field` (string)

  - `errors.message` (any, required)

  - `errors.messageEn` (any, required)

  - `errors.additionalData` (object)

## Response 422:

  - `422` (unknown)
    Unprocessable Content

## Response 422 fields (application/json):

  - `errors` (array, required)

  - `errors.errorId` (string, required)

  - `errors.field` (string)

  - `errors.message` (any, required)

  - `errors.messageEn` (any, required)

  - `errors.additionalData` (object)

## Response 500:

  - `500` (unknown)
    Internal Server Error

## Response 500 fields (application/json):

  - `errors` (array, required)

  - `errors.errorId` (string, required)

  - `errors.field` (string)

  - `errors.message` (any, required)

  - `errors.messageEn` (any, required)

  - `errors.additionalData` (object)

