> ## Documentation Index
> Fetch the complete documentation index at: https://docs.useinkless.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create New Document To Sign From a Template

> Sends a message using a predefined template to one or more recipients. We recommend selecting 'Auto-release signatures when complete' when creating your template on Inkless.



## OpenAPI

````yaml POST /createFromTemplate
openapi: 3.1.0
info:
  title: Inkless API
  description: >-
    API for the Inkless document signing service. Create documents from
    templates, manage webhooks, and retrieve document status.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.useinkless.com
security:
  - apiKeyAuth: []
paths:
  /createFromTemplate:
    post:
      summary: Create a message from a template
      description: >-
        Sends a message using a predefined template to one or more recipients.
        We recommend selecting 'Auto-release signatures when complete' when
        creating your template on Inkless.
      operationId: createFromTemplate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - templateId
                - recipients
              properties:
                templateId:
                  type: string
                  description: ID of the template to use
                emailSubject:
                  type: string
                  description: Optional custom subject for the email sent to recipients.
                recipients:
                  type: array
                  description: List of recipient objects
                  items:
                    type: object
                    required:
                      - email
                      - name
                    properties:
                      email:
                        type: string
                        format: email
                        description: Email address of the recipient
                      name:
                        type: string
                        description: Name of the recipient
      responses:
        '200':
          description: Successfully created message from template
          content:
            application/json:
              schema:
                type: object
                description: Response data
                properties:
                  message:
                    type: string
                    description: Status message
                  pdf_id:
                    type: string
                    description: Identifier of the created PDF
                  recipients:
                    type: array
                    description: List of recipient email addresses
                    items:
                      type: string
                      format: email
        '400':
          description: Invalid request or missing parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized (API key missing or invalid)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      required:
        - message
      properties:
        error:
          type: integer
          format: int32
          description: Optional error code.
        message:
          type: string
          description: A human-readable error message.
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````