POST
/
datasources
/
{source_id}
/
documents
Upload a new file into a extraction source
curl --request POST \
  --url https://api.cloudsquid.io/api/datasources/{source_id}/documents \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "mimetype": "application/pdf",
  "filename": "<string>",
  "file_type": "uri",
  "zero_retention_mode": true,
  "file": "<string>"
}'
{
  "file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

source_id
string<uuid>
required

The ID of the datasource

Body

application/json

Response

200
application/json

Uploaded file successfully

The response is of type object.