Storm OpenAPI(en)
  1. Document
Storm OpenAPI(en)
  • Welcome to STORM
    • Introduction
  • Quickstart
    • Getting Started
      • Creating an Agent
      • Account Creation
    • Core Scenario
      • Document Upload
      • Workflow Design
      • Test
      • Deployment
      • Channel Integration
  • Feature Guide
    • Console
      • Agent Management
      • Dashboard
      • Permission Management
    • Agent Template
      • Knowledge Retrieval
      • Character Dialogue
      • Consultation Record Analysis
      • SQL Query
      • News Article
    • Agent Builder
      • Knowledge
        • Documents
        • Folders
        • Feedback
      • Workflow
        • Node Description
          • LLM
          • Search(RAG)
          • API
          • IF ELSE
          • Variable Declaration and Assignment
          • Postprocessing
      • Test
      • Log
      • Dashboard
    • Admin Tools
      • Deployment Management
      • Channel Integration
      • Model Fine-Tuning
      • Training Data Quality Management
      • Other Settings
  • Apis
    • Agent
      • Deploy Agent
      • View Agent Deployment History
      • View Agent
    • Bucket
      • Create Bucket
      • View Bucket
    • Document
      • Document Training Request by file
        POST
      • Document Training Request by URL
        POST
      • View Documents
        GET
      • Delete Document
        DELETE
    • Chat
      • Send Chat (non-stream)
      • Send Chat (stream)
      • Search Context
    • STORM Parse
      • /convert/md
    • Instance Agent
      • Add Instance Session
      • Upload Instance Document
      • Request RAG Source For Query
      • Delete Instance Session
  • Learn More
    • FAQ
    • Pricing
  1. Document

Document Training Request by file

POST
/api/v2/documents/by-file
It generally takes about 10 seconds to 1 minute per document, and may take longer when parserType=STORM_PARSE.
This API responds when the document learning โ€œrequestโ€ is completed. To receive the result at the time of actual learning โ€œcompletionโ€, please specify the webhookUrl parameter.

Request

Authorization
Add parameter in header
storm-api-key
Example:
storm-api-key: ********************
Body Params multipart/form-data

Responses

๐ŸŸข200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v2/documents/by-file' \
--header 'storm-api-key: <api-key>' \
--form 'bucketId=""' \
--form 'file=@""' \
--form 'parserType=""' \
--form 'webhookUrl=""' \
--form 'fileName=""'
Response Response Example
{
    "status": "success",
    "data": {
        "id": "7336212821593927680",
        "parserType": "STORM_PARSE",
        "dorigin": "file",
        "dtype": "pdf",
        "name": "v15.pdf",
        "description": null,
        "source": null,
        "status": "progress",
        "characters": null,
        "createdAt": "2025-06-05T02:10:36.911Z",
        "updatedAt": "2025-06-05T02:10:36.911Z",
        "bucketName": "test_agent",
        "creatorName": "์™ธ๋ถ€ํ…Œ์ŠคํŠธ๊ณ„์ •",
        "lastEditorName": "์™ธ๋ถ€ํ…Œ์ŠคํŠธ๊ณ„์ •"
    }
}
Modified atย 2025-06-05 06:34:10
Previous
View Bucket
Next
Document Training Request by URL
Built with