Skip to main content
POST
/
v1
/
generation
/
file_search_stores
Upload File to Corpus
curl --request POST \
  --url https://api.weryai.com/v1/generation/file_search_stores \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "file_url": "https://example.com/research_material.pdf",
  "file_name": "research_material.pdf"
}
'
{
  "status": 0,
  "desc": "success",
  "message": "success",
  "data": {
    "name": "fileSearchStores/my-store-123",
    "uploaded_count": 1
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.weryai.com/llms.txt

Use this file to discover all available pages before exploring further.

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