cURL
curl --request POST \ --url https://prod.featherhq.com/api/v1/knowledge-base/file \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "fileId": "<string>", "prompt": "<string>" }'
{ "id": "<string>", "fileName": "<string>", "key": "<string>", "status": "PENDING", "createdAt": "<string>", "updatedAt": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Knowledge base file created successfully
PENDING
UPLOADED
INGESTED
FAILED