Change a sendable file's name, description or switch
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.
curl -X PATCH 'https://api.whatsable.app/v1/ai-bots/string/files/string' \
-H 'Content-Type: application/json' \
-d '{
"description": "Our full catalog with prices. Send it only after the customer asks for prices."
}'Changes the name, description or active switch of a file that an AI bot may send. The change takes effect on the bot's next reply, also while the bot answers customers.
bearerAuthAuthorizationBearer <nfy_live_<32 characters>>An API key from Settings > API keys, sent as Authorization: Bearer <key>.
id*stringThe bot id.
1 <= length <= 64file_id*stringThe sendable file id. It must belong to this bot.
1 <= length <= 64application/json- body
The fields to change. Fields left out are kept; the file itself cannot be replaced.
display_name?stringThe name the bot knows the file by. Defaults to the filename.
1 <= length <= 120description?stringWhen the bot should send this file. The bot chooses files by this sentence and nothing else.
1 <= length <= 1000active?booleanWhether the bot may send it. An inactive file stays stored.
The updated file.
application/json- response
A file the bot may send to a customer, at most 10 per bot. The bot never reads it.
object*stringid*string1 <= length <= 64bot_id*string1 <= length <= 64filename*stringdisplay_name*stringThe name the bot knows the file by. Defaults to the filename.
kind*string"image""video""audio""document"mime_type*stringsize_bytes*integer0 <= value <= 9007199254740991description*stringWhen the bot should send this file. The bot chooses files by this sentence and nothing else.
active*booleanWhether the bot may send it. An inactive file stays stored.
created_at*stringdate-timecurl -X PATCH 'https://api.whatsable.app/v1/ai-bots/string/files/string' \ -H 'Content-Type: application/json' \ -d '{ "description": "Our full catalog with prices. Send it only after the customer asks for prices."}'{ "object": "ai_bot_file", "id": "cm2v8g1a00001qz8h1r2s3t4u", "bot_id": "cm2v8b1a00001qz8h3j4k5l6m", "filename": "catalog-2026.pdf", "display_name": "Catalog 2026", "kind": "document", "mime_type": "application/pdf", "size_bytes": 2483120, "description": "Our full catalog with prices. Send it when the customer asks what we sell.", "active": true, "created_at": "2026-10-20T19:51:21Z"}Add a file a bot may send POST
Adds a file that an AI bot may send to customers. Send a `multipart/form-data` body with one `file` part and a `description` field. The change takes effect on the bot's next reply, also while the bot answers customers. An `archived` bot takes no new files, and a bot holds at most ten.
Remove a file a bot may send DELETE
Next Page