Skip to main content
POST
/
api
/
v1
/
add
Add
curl --request POST \
  --url https://api.cognee.ai/api/v1/add \
  --header 'Content-Type: multipart/form-data' \
  --form 'data=<string>' \
  --form 'datasetName=<string>' \
  --form datasetId= \
  --form data.items='@example-file'
{}

Body

multipart/form-data
data
file[]

List of files to upload (max 10MB per file, max 10 files)

Maximum array length: 10
Maximum string length: 10485760
datasetName
string | null
datasetId
Example:

""

Response

Successful Response

The response is of type Response Add Api V1 Add Post · object.