Skip to main content
POST
Upload File to Corpus

Authorizations

Authorization
string
header
required

Authenticate using Bearer token. Get your API Key from the WeryAI Console.

Example: Authorization: Bearer sk-xxxxxxxxxxxxxxxx

Body

application/json

Request parameters for uploading a file to the research corpus.

file_url
string<uri>
required

Publicly accessible URL of the file to upload. Supported types: txt, pdf, md, csv, json, docx, xlsx, pptx. Max size: 100 MB.

Example:

"https://example.com/research_material.pdf"

file_name
string

Display name for the file. Defaults to the filename extracted from the URL.

Example:

"research_material.pdf"

Response

File uploaded successfully

status
integer

Business status code (0 indicates success)

Example:

0

desc
string

Status description

Example:

"success"

message
string

Multi-language message

Example:

"success"

data
object