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

# Fetch mapped signing data

> Fetches the saved, tested template API Data Source without exposing its credentials. Body limit is 20,000 bytes, with up to 20 named lookup parameters. No invitation or signing package is created. Pass lookup_token to the signing preview within 10 minutes. Production returns only mapped supported variables and requires enabled data-source capability and current paid app authority.



## OpenAPI

````yaml /openapi.json post /api/v1/signature-packages/data-fetch
openapi: 3.0.3
info:
  title: DekaSign integration and session API
  version: '2026-10-28'
  description: >-
    Production APIs require an active paid plan, Production app/key, allowed
    scopes and enabled capabilities. Some design-management operations remain
    sandbox-only. Template authoring and human approval decisions are not
    delegated to API keys. Session routes use separate identity. This
    specification grants no access or capability activation.
servers:
  - url: https://{workspace}.dekasign.com
    description: Use the organization workspace authorized for your integration app.
    variables:
      workspace:
        default: your-workspace
security: []
paths:
  /api/v1/signature-packages/data-fetch:
    post:
      tags:
        - signature-packages
      summary: Fetch mapped signing data
      description: >-
        Fetches the saved, tested template API Data Source without exposing its
        credentials. Body limit is 20,000 bytes, with up to 20 named lookup
        parameters. No invitation or signing package is created. Pass
        lookup_token to the signing preview within 10 minutes. Production
        returns only mapped supported variables and requires enabled data-source
        capability and current paid app authority.
      operationId: post_signature_packages_data_fetch
      parameters:
        - name: X-Dekasign-Environment
          in: header
          required: true
          schema:
            type: string
            enum:
              - sandbox
              - production
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                template_id:
                  type: string
                  minLength: 1
                  maxLength: 100
                parameters:
                  type: object
                  maxProperties: 20
                  additionalProperties:
                    type: string
                    minLength: 1
                    maxLength: 500
                  description: >-
                    Names start with a letter, followed by
                    letters/numbers/underscores, up to 64 characters. Use an
                    empty object when no parameters are configured.
                  default: {}
              required:
                - template_id
              additionalProperties: false
      responses:
        '200':
          description: Current authorized result.
          content:
            application/json:
              schema:
                type: object
                properties:
                  template_id:
                    type: string
                  template_version_id:
                    type: string
                  lookup_token:
                    type: string
                    description: >-
                      Secret lookup receipt, bound to the issuing integration
                      key; expires after 10 minutes. Do not log.
                  valid_until:
                    type: string
                    format: date-time
                  variables:
                    type: object
                    additionalProperties:
                      oneOf:
                        - type: string
                        - type: number
                        - type: boolean
                required:
                  - template_id
                  - template_version_id
                  - lookup_token
                  - valid_until
                  - variables
                additionalProperties: false
        '400':
          description: Invalid operation or layout.
        '401':
          description: Invalid or expired credential/session.
        '403':
          description: Scope, environment, tenant or authority denied.
        '404':
          description: Not found or outside app scope.
        '409':
          description: >-
            Result not ready, integrity failure, changed version, or unavailable
            data-source configuration.
        '422':
          description: Invalid schema or required idempotency key.
        '429':
          description: Rate limited.
        '503':
          description: Environment capability disabled or service temporarily unavailable.
      security:
        - SandboxBearer: []
        - ProductionBearer: []
components:
  securitySchemes:
    SandboxBearer:
      type: http
      scheme: bearer
      description: Sandbox dks_test_ key, server-side only.
    ProductionBearer:
      type: http
      scheme: bearer
      description: Production dks_live_ key, server-side only.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.