Skip to main content
POST
/
open
/
agentic_engine
/
laiye
/
files
/
upload
Upload file
const form = new FormData();
form.append('chunk', '<string>');
form.append('application_id', '<string>');

const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};

options.body = form;

fetch('https://adp-global.laiye.com/open/agentic_engine/laiye/files/upload', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "code": "<string>",
  "message": "<string>",
  "tips": "<string>",
  "data": {}
}

Authorizations

X-API-Key
string
header
required

Body

multipart/form-data
chunk
file
required
application_id
string
sharing_scope
enum<string>
Available options:
user,
application

Response

File information.

code
message
string
tips
string | null
data
object