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

# POST /document/public/sign

> Public or credential-gated document access; see route handler.



## OpenAPI

````yaml /api-reference/trust-accounting/openapi.json post /document/public/sign
openapi: 3.0.3
info:
  title: Stax API (stack, tpa, document)
  description: >-
    Routes under /stack, /tpa, and /document. Parameters and JSON bodies are
    inferred from Express handlers; multipart and streaming responses are called
    out explicitly. Session auth uses cookies userId + authToken or headers
    x-user-id + x-auth-token; API keys use Authorization.
  version: 1.0.0
servers:
  - url: /
    description: Relative to API host
security: []
tags:
  - name: stack
    description: Stack (workspace) operations
  - name: tpa
    description: Trust plan accounting (TPA)
  - name: document
    description: Document operations
paths:
  /document/public/sign:
    post:
      tags:
        - document
      summary: POST /document/public/sign
      description: Public or credential-gated document access; see route handler.
      operationId: post_document_public_sign
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                metadata:
                  type: object
                  additionalProperties: true
                signatures:
                  oneOf:
                    - type: string
                    - type: object
                      additionalProperties: true
                    - type: array
                from:
                  oneOf:
                    - type: string
                    - type: object
                      additionalProperties: true
                    - type: array
              additionalProperties: true
      responses:
        '200':
          description: >-
            JSON response (handler may use a variable payload; inspect route
            source)
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiResponseBase'
                  - type: object
                    additionalProperties: true
        '401':
          description: Not authorized
      security: []
components:
  schemas:
    ApiResponseBase:
      type: object
      properties:
        success:
          type: boolean
        error:
          type: string
        message:
          type: string
        authError:
          type: boolean

````

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