---
updatedAt: 2026-04-22T09:48:12.000Z
agentTools:
  projectIndex: https://developers.modusign.co.kr/llms.txt
---

# 문서 파일 병합

문서 파일을 병합하기 위한 API 입니다. 파일 업로드 API 를 통해 얻은 fileId, token을 요청 바디에 담아 요청합니다. (지원 파일 형식: PDF)

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/files/merge": {
      "post": {
        "description": "문서 파일을 병합하기 위한 API 입니다. 파일 업로드 API 를 통해 얻은 fileId, token을 요청 바디에 담아 요청합니다. (지원 파일 형식: PDF)",
        "operationId": "FileController_mergeFiles",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MergeFilesRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "병합 된 파일 정보",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MergeFilesResponseDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Basic": []
          },
          {
            "Bearer": []
          }
        ],
        "summary": "문서 파일 병합",
        "tags": [
          "USER API"
        ]
      }
    }
  },
  "info": {
    "title": "MODUSIGN API",
    "description": "",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://api.modusign.co.kr",
      "description": "production"
    }
  ],
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "Basic": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "schemas": {
      "MergeFilesRequestFile": {
        "type": "object",
        "properties": {
          "fileId": {
            "type": "string",
            "description": "파일 ID"
          },
          "token": {
            "type": "string",
            "description": "파일 토큰"
          }
        },
        "required": [
          "fileId",
          "token"
        ]
      },
      "MergeFilesRequestDto": {
        "type": "object",
        "properties": {
          "files": {
            "description": "병합 할 파일 목록(병합 할 순서대로 전달), 병합 될 파일을 총 용량은 10MB 이하여야 합니다.",
            "maxItems": 10,
            "minItems": 2,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MergeFilesRequestFile"
            }
          }
        },
        "required": [
          "files"
        ]
      },
      "MergeFilesResponseDto": {
        "type": "object",
        "properties": {
          "fileId": {
            "type": "string",
            "description": "파일 ID"
          },
          "token": {
            "type": "string",
            "description": "파일 토큰(유효시간: 2시간)"
          }
        },
        "required": [
          "fileId",
          "token"
        ]
      }
    }
  }
}
```