# Create an embed session

Creates a new embed session for a given draft envelope.

Endpoint: POST /embed-sessions
Version: 1.0.0
Security: basicAuth

## Request fields (application/json):

  - `fingerprint` (string, required)
    Unique identifier for the resource.
    Example: "8ab4248168761318178b5c747c643a27"

  - `type` (string, required)
    Type of resource to create an embed session for. Currently, only envelope is supported.
    Enum: "envelope"

  - `config` (object, required)
    Configuration for the embed session, used to control which components are displayed and how they behave.

  - `config.components` (array, required)
    The components to display within the embed session.

  - `config.components.type` (string, required)
    The type of component to display. Currently, only document_setup is supported.
    Enum: "document_setup"

  - `config.components.version` (string, required)
    The version of the component to display. Currently, only 1 is supported.
    Example: "1"

## Response 201 fields (application/json):

  - `http` (integer, required)
    HTTP status code of the response.
    Example: 201

  - `uuid` (string, required)
    Unique identifier for the created embed session.
    Example: "86fc0eac-ba4b-49fd-b6b2-98b64e51063c"

  - `session_url` (string, required)
    URL used to access the newly created embed session. The session token embedded in the URL is valid for 2 minutes from creation. After the token expires, the URL can no longer be used.
    Example: "https://embed.signable.app/auth?session_token=9fec3d8c5fd2185e1f3d9ce7a64db570cc9a2e28"

  - `expires_at` (integer, required)
    Time at which the embed session token expires, expressed as the number of seconds since the Unix epoch.
    Example: 1765208503


