POST/api/v1/personas/{persona_id}/link-file
Link an uploaded file to persona
Upload a file (deck, doc, notes) and link it to a persona as a grounding<br/>source. The file is ingested into a per-persona "Linked Files"<br/>knowledgebase that is attached via linked_knowledgebase_ids, so its<br/>content grounds the persona and feeds persona refresh like watched<br/>web/social sources do.
PARAMETERS
- persona_idpath · stringREQUIRED
- Persona id, as returned by GET /api/v1/personas.e.g. string
REQUEST
curl -X POST "https://gateway.kumkuat.ai/api/v1/personas/string/link-file" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.post("https://gateway.kumkuat.ai/api/v1/personas/string/link-file", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://gateway.kumkuat.ai/api/v1/personas/string/link-file", {
method: "POST",
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
