> ## 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.

# Get document details for one specific document ID

> Fetch detailed information for a specific document by its ID. Includes document metadata, recipient information, and a temporary URL to the final signed PDF if the document has been completed.



## OpenAPI

````yaml GET /getDocumentDetails
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:
  /getDocumentDetails:
    get:
      summary: Retrieve a single document's details
      description: >-
        Fetch detailed information for a specific document by its ID. Includes
        document metadata, recipient information, and a temporary URL to the
        final signed PDF if the document has been completed.
      operationId: getDocumentDetails
      parameters:
        - name: pdf_id
          in: query
          required: true
          description: The unique identifier of the document to retrieve.
          schema:
            type: string
      responses:
        '200':
          description: Document details retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetDocumentDetailsResponse'
        '400':
          description: Bad Request - Missing or invalid 'pdf_id' query parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized - API key is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden - You do not have permission to access this document.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not Found - The requested document does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKeyAuth: []
components:
  schemas:
    GetDocumentDetailsResponse:
      type: object
      properties:
        message:
          type: string
          description: Status message
        document:
          $ref: '#/components/schemas/DocumentDetails'
      required:
        - message
        - document
    Error:
      type: object
      required:
        - message
      properties:
        error:
          type: integer
          format: int32
          description: Optional error code.
        message:
          type: string
          description: A human-readable error message.
    DocumentDetails:
      type: object
      properties:
        id:
          type: string
          description: Unique document identifier
        name:
          type: string
          description: Name or title of the document
        status:
          type: string
          description: Current status of the document (e.g., draft, signed, etc.)
        finalUrl:
          type:
            - string
            - 'null'
          description: >-
            A temporary, presigned URL to the final signed PDF. Only available
            when the document status is 'signed'.
        recipients:
          type: array
          description: List of recipients for this document
          items:
            $ref: '#/components/schemas/DocumentRecipient'
      required:
        - id
        - name
        - status
        - recipients
    DocumentRecipient:
      type: object
      properties:
        name:
          type: string
          description: Recipient's name
        email:
          type: string
          format: email
          description: Recipient's email address
      required:
        - name
        - email
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````