curl --request POST \
--url https://prod.featherhq.com/api/v1/knowledge-base/file \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"fileId": "<string>",
"prompt": "<string>"
}'
{
"id": "<string>",
"fileName": "<string>",
"key": "<string>",
"status": "PENDING",
"createdAt": "<string>",
"updatedAt": "<string>"
}
curl --request POST \
--url https://prod.featherhq.com/api/v1/knowledge-base/file \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"fileId": "<string>",
"prompt": "<string>"
}'
{
"id": "<string>",
"fileName": "<string>",
"key": "<string>",
"status": "PENDING",
"createdAt": "<string>",
"updatedAt": "<string>"
}
Knowledge base file created successfully
The response is of type object
.