1. File upload during chat
Storm OpenAPI(en)
  • Welcome to STORM
    • Introduction
  • Quickstart
    • Getting Started
      • Account Creation
      • Creating an Agent
    • Core Scenario
      • Document Upload
      • Workflow Design
      • Test
      • Deployment
      • Channel Integration
  • Feature Guide
    • Console
      • Agent Management
      • Dashboard
      • Permission Management
    • Agent Template
      • Deep Knowledge Exploration
      • Explore knowledge
      • Free Chat
      • Create reports
      • FAQ Chatbot
      • Resume Screening
      • Character Conversation
      • Analyze chat history
      • Write articles
      • Write SQL queries
    • Agent Builder
      • Knowledge
        • Documents
        • Folders
        • Feedback
      • Workflow
        • Node Description
          • LLM
          • Search(RAG)
          • Agentic RAG
          • API
          • IF ELSE
          • Variable Declaration and Assignment
          • Postprocessing
          • Response
          • Loop
          • Document Generation
      • Test
      • Log
      • Dashboard
    • Admin Tools
      • Deployment Management
      • Channel Integration
      • Model Fine-Tuning
      • Training Data Quality Management
      • Other Settings
      • Teams Channel Integration
  • Apis
    • Agent
      • Deploy Agent
      • View Agent Deployment History
      • View Agent
    • Bucket
      • Create Bucket
      • View Bucket
    • Document
      • Document Training Request by file
      • Document Training Request by URL
      • View Documents
      • Delete Document
    • Chat
      • File upload during chat
        • File creation and presigned URL issuance
          POST
        • File upload completion handling
          POST
        • File status lookup
          GET
      • Chat Sending (OpenAI Compatible)
        POST
      • Send Chat (non-stream)
        POST
      • Send Chat (stream)
        POST
      • Search Context
        POST
    • STORM Parse
      • /convert/md
    • Instance Agent
      • Add Instance Session
      • Upload Instance Document
      • Request RAG Source For Query
      • Delete Instance Session
  • Learn More
    • FAQ
    • Pricing
    • Error Code Guide
      • AgentRag
      • ApiCall
      • DocGen
      • Function
      • IfElse
      • Loop
      • OpenLLM
      • Post
      • Rag
      • Response
      • Variable
  1. File upload during chat

File creation and presigned URL issuance

Developing
POST
/api/v2/temp-files
This API is called before starting a file upload. When this API is invoked, a temporary file record is created and a presigned URL is issued, allowing the file to be uploaded directly to S3.
The presigned URL is valid only for a limited time. After uploading the file using this URL, you must call the “File Upload Completion” API to start the file parsing process.
Presigned URL upload example

Request

Authorization
Add parameter in header
storm-api-key
Example:
storm-api-key: ********************
Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/v2/temp-files' \
--header 'storm-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "name": "quarterly_report.pdf",
    "size": 103760,
    "contentType": "application/pdf",
    "agentId": "agent_abc123def456"
}'
Response Response Example
{
    "status": "success",
    "data": {
        "id": "0806790591403921408",
        "uploadUrl": "https://s3.amazonaws.com/bucket/key?X-Amz-Signature=...",
        "expiresAt": "2024-01-15T10:30:00.000Z"
    }
}
Modified at 2026-03-03 05:08:39
Previous
File upload during chat
Next
File upload completion handling
Built with