API v1AI bots
Remove a document from a bot's knowledge
deletehttps://api.whatsable.app/v1/ai-bots/{id}/knowledge-files/{file_id}
Build a request to copy
This page never sends a request. Fill in the fields, then copy the request and run it from your server.
Request
curl -X DELETE 'https://api.whatsable.app/v1/ai-bots/string/knowledge-files/string'
bearerAuthheader
AuthorizationBearer <nfy_live_<32 characters>>An API key from Settings > API keys, sent as Authorization: Bearer <key>.
id*stringThe bot id.
Length
1 <= length <= 64file_id*stringThe knowledge document id. It must belong to this bot.
Length
1 <= length <= 64The document was removed.
application/json- response
object*stringid*stringLength
1 <= length <= 64deleted*booleancurl -X DELETE 'https://api.whatsable.app/v1/ai-bots/string/knowledge-files/string'Example Response
{ "object": "knowledge_file", "id": "string", "deleted": true}Add a document to a bot's knowledge POST
Adds a document to the knowledge of an AI bot. Send a `multipart/form-data` body with one `file` part. The document starts as `processing`: read it again to see `ready` or `failed`. An `archived` bot takes no new documents.
List the files a bot may send GET
Next Page