PulseAI-OpenAPI
  1. App
PulseAI-OpenAPI
  • App
    • README
    • Send Chat Message
      POST
    • File Upload
      POST
    • Stop Generate
      POST
    • Message Feedback
      POST
    • Next Suggested Questions
      GET
    • Get Conversation History Messages
      GET
    • Get Conversations
      GET
    • Delete Conversation
      DELETE
    • Conversation Rename
      POST
    • Speech to Text
      POST
    • Text to Audio
      POST
    • Text to Audio V2
      POST
    • Get Application Information
      GET
    • Get Application Parameters
      GET
    • Get Application Meta Information
      GET
    • Create Chat
      POST
  • Dataset
    • README
    • Create a Document from Text
      POST
    • Create a Document from a File
      POST
    • Create an Empty Knowledge Base
      POST
    • Get Knowledge Base List
      GET
    • Delete a Knowledge Base
      DELETE
    • Update a Document with Text
      POST
    • Update a Document with a File
      POST
    • Get Document Embedding Status (Progress)
      GET
    • Delete a Document
      DELETE
    • Get the Document List of a Knowledge Base
      GET
    • Add Chunks to a Document
      POST
    • Get Chunks from a Document
      GET
    • Update a Chunk in a Document
      POST
    • Delete a Chunk in a Document
      DELETE
    • Retrieve Chunks from a Knowledge Base
      POST
  • Tenant
    • README
    • Get a List of Tenant Space Charactar
    • Figure txt2img
    • Get a List of Tenant Space Plot
    • Get a List of Tenant Space Audio
  • OpenAPI
    GET
  1. App

File Upload

POST
https://api-platform.digitpulse.ai/v1/files/upload
Last modified:2025-03-03 03:39:16
Upload a file (currently only images are supported) for use when sending messages, enabling multimodal understanding of images and text. Supports png, jpg, jpeg, webp, gif formats. Uploaded files are for use by the current end-user only.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params multipart/form-data

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-platform.digitpulse.ai/v1/files/upload' \
--header 'X-Timestamp: 1739933362' \
--header 'X-Signature: 1739933362' \
--header 'Authorization: Bearer <token>' \
--form 'file=@""' \
--form 'user=""'

Responses

🟢200Success
application/json

Errors

400, no_file_uploaded, a file must be provided
400, too_many_files, currently only one file is accepted
400, unsupported_preview, the file does not support preview
400, unsupported_estimate, the file does not support estimation
413, file_too_large, the file is too large
415, unsupported_file_type, unsupported extension, currently only document files are accepted
503, s3_connection_failed, unable to connect to S3 service
503, s3_permission_denied, no permission to upload files to S3
503, s3_file_too_large, file exceeds S3 size limit
500, internal server error
Body

Example
{
  "id": "72fa9618-8f89-4a37-9b33-7e1178a24a67",
  "name": "example.png",
  "size": 1024,
  "extension": "png",
  "mime_type": "image/png",
  "created_by": 123,
  "created_at": 1577836800
}
Modified at 2025-03-03 03:39:16
Previous
Send Chat Message
Next
Stop Generate
Built with