Skip to main content
POST
/
v0
/
documents
/
upload-csv
Upload documents via CSV file
curl --request POST \
  --url https://api.avidoai.com/v0/documents/upload-csv \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --header 'x-application-id: <api-key>' \
  --form 'file=<unknown>' \
  --form 'fileName=Knowledge Base Q1 2024' \
  --form documentType=KNOWLEDGE \
  --form quickstartId=456e7890-e89b-12d3-a456-426614174001
{
  "message": "Resource not found"
}

Authorizations

x-api-key
string
header
required

Your unique Avido API key

x-application-id
string
header
required

Your unique Avido Application ID

Body

multipart/form-data

Request for uploading documents via CSV file

file
any
required

CSV file containing documents

fileName
string
required

Name for this import

Example:

"Knowledge Base Q1 2024"

documentType
enum<string>
default:KNOWLEDGE

Type of the documents being uploaded. Defaults to KNOWLEDGE.

Available options:
KNOWLEDGE,
POLICY
Example:

"KNOWLEDGE"

quickstartId
string<uuid>

ID of the quickstart this upload belongs to. When provided, the documents will not be processed asynchronously.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Example:

"456e7890-e89b-12d3-a456-426614174001"

Response

CSV file uploaded and queued for processing successfully