Attachments

Create attachments array

post

Return contents of the files in plain string format

Authorizations
Path parameters
chatflowIdstringRequired

Chatflow ID

chatIdstringRequired

Chat ID

Body
filesstring · binary[]Required

Files to be uploaded

base64booleanOptional

Return contents of the files in base64 format

Default: false
Responses
200
Attachments created successfully
application/json
post
POST /attachments/{chatflowId}/{chatId} HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: multipart/form-data
Accept: */*
Content-Length: 35

{
  "files": [
    "binary"
  ],
  "base64": false
}
[
  {
    "name": "text",
    "mimeType": "text",
    "size": "text",
    "content": "text"
  }
]

Last updated