Skip to main content
POST
/
organization
/
rag
/
sources
/
files
Add file to the AI store
curl --request POST \
  --url https://api.getfernand.com/organization/rag/sources/files \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "files": [
    {
      "name": "documentation.pdf",
      "type": "application/pdf",
      "content": "JVBERi0xLjQKJeLjz9MK..."
    }
  ]
}
'
{}
Uploads one or more files to the AI store. Supports PDF, DOC, DOCX, and TXT formats. Files must be base64 encoded and cannot exceed the organization’s vector store size limit. All files are processed asynchronously.

Authorizations

X-API-Key
string
header
required

Authenticate your account by including your secret key in API requests. You can manage your API keys in the Dashboard.

Authentication to the API is performed by using the HTTP Header X-API-Key.

Body

application/json
files
object[]
required

Array of files to upload (max 10MB per file).

Response

Files queued for processing.

The response is of type object.