Knowledge

Documents

Upload policies, price lists and guides.

POST https://aiagent1.skotechlabs.com/api/v1/documents as multipart/form-data with a file (PDF, DOCX, TXT, MD or CSV up to 20 MB) and a title — or send JSON with title and content for plain text.

curl https://aiagent1.skotechlabs.com/api/v1/documents \
  -H "Authorization: Bearer sk_live_your_key" \
  -F "title=Warranty policy" \
  -F "file=@warranty.pdf"

The text is extracted and split into passages the agent can search. Check status (ready or failed with an error).

Your plan limits both the number of documents and the total pages across all of them (1 page ≈ 1,000 tokens of text). A document that would go over the page allowance is saved with status: failed and an error that says how many pages are left.

Scanned PDFs and PDFs typed in Bijoy/SutonnyMJ fonts do not contain real Unicode text. Paste the text instead, or convert to Unicode first.

GET /documents, GET /documents/{id} and DELETE /documents/{id} work as you would expect.