processing at first and ready a few seconds later, once read; agents answer from it from then on. Files are uploaded to POST /v1/agents/knowledge/files instead.
Needs the
agents.knowledge:write scope.Body
For an article or an FAQ:
For a website:
Request
Response
201 Created — the source, processing. A source has its id, kind (article, faq, file or website), title (an FAQ’s question), its collection, whether agents use it (active) and when it last changed. status is processing while it is read, then ready — or failed, with the reason in error. An article or FAQ has its body; a website its url, how often it is checked for changes (refresh) and how many pages it reads; a file its file type and size in bytes.
"kind": "website", "url": "https://help.sharmaelectronics.in/returns", three pages and "refresh": "weekly", answers:
Errors
Every refusal is{"error": {"code", "message", "field"}}; field is there when one input is at fault.
Any request can also be refused for its key, its account or its rate (
key_required, invalid_key, account_suspended, plan_excludes_api, address_not_allowed, rate_limited); see the overview.