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

# EDINET Document Download

> Download an EDINET filing document by docID through AIsa.



## OpenAPI

````yaml openapi/edinet.json GET /edinet/documents/{docID}
openapi: 3.1.0
info:
  title: EDINET API
  version: draft-2026-07-28
  description: AIsa gateway endpoints for EDINET document list and document download.
servers:
  - url: https://api.aisa.one/apis/v1
security:
  - bearerAuth: []
paths:
  /edinet/documents/{docID}:
    get:
      tags:
        - EDINET
      summary: Download an EDINET document
      description: >-
        Download a specific EDINET document by docID. The returned file type is
        selected by the type query parameter and the actual success payload must
        be interpreted from Content-Type.
      operationId: getEdinetDocumentDownload
      parameters:
        - name: docID
          in: path
          required: true
          schema:
            type: string
            examples:
              - S1000000
          description: Document management identifier from the document list API.
        - name: type
          in: query
          required: true
          schema:
            type: integer
            enum:
              - 1
              - 2
              - 3
              - 4
              - 5
          description: >-
            File type to download: 1 for filing body and audit report ZIP, 2 for
            PDF, 3 for alternate document and attachments ZIP, 4 for English
            document ZIP, 5 for CSV ZIP converted from XBRL.
      responses:
        '200':
          description: >-
            Binary ZIP/PDF file content or JSON error payload depending on
            Content-Type.
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
            application/pdf:
              schema:
                type: string
                format: binary
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
        '400':
          description: Invalid request parameters.
        '401':
          description: Invalid or missing AIsa API key.
        '404':
          description: Document not found.
        '429':
          description: Rate limit exceeded.
        '500':
          description: Gateway or upstream failure.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````