The Platform API
Flow: Document Context for Agent
Manage your videos, ask questions, and build applications with the Platform API. Explore the operations below for request details, responses, and examples.
No matching documentation. Try a different search.
Flow: Document Context for Agent
1
Upload reference document
POST /projects/:projectId/documents with status: "available"
2
Mark as "included" to inject into agent prompt
PUT /projects/:projectId/documents/:docId with { "status": "included" } — triggers auto-compilation
3
Agent now has document context
Included docs are always taken into account. Available docs are searchable on demand.
Document states and agent access:
| Status | Always Used | Looked Up When Needed | Use Case |
|---|---|---|---|
| available | No | Yes | Large reference docs, manuals — agent searches on demand |
| included | Yes | Yes | Policies, instructions — always visible to agent |
| archived | No | No | Disabled, not visible to agent at all |