Skip to main content
POST
/
rag
/
upload
/
{instance}
Upload documents to RAG bot
curl --request POST \
  --url https://api.zapthinker.com/rag/upload/{instance} \
  --header 'Content-Type: multipart/form-data' \
  --header 'apikey: <api-key>' \
  --form 'files=<string>' \
  --form 'ragId=<string>' \
  --form files.items='@example-file'
{
  "success": true,
  "results": [
    {
      "filename": "<string>",
      "size": 123,
      "mimetype": "<string>",
      "success": true
    }
  ]
}

Authorizations

apikey
string
header
required

Your authorization key header

Path Parameters

instance
string
required

Nome da instância

Body

multipart/form-data

Arquivos para upload e ID do bot RAG

files
file[]
required

Arquivos para upload (máx. 20)

ragId
string
required

ID do bot RAG

Response

201 - application/json

Documentos processados com sucesso

success
boolean
results
object[]