Create file source
Sources
Create file source
Upload a file as a knowledge source for an agent. Accepts PDF, DOC, DOCX, and TXT files up to 20 MB.
Base URL: https://files.chatbase.co/api/v2 — this endpoint uses a different host from all other Sources endpoints.
POST
Create file source
Authorizations
API key from your account settings
Path Parameters
The agent ID
Minimum string length:
1Example:
"5QHA6VB-DIAbBhxwqxfdi"
Body
multipart/form-data
Response
File source created. Status is untrained until the agent is retrained.
Source ID
Source type
Available options:
link, file, qna, notionPage, text Source name or URL
Source size in bytes
ISO 8601 creation timestamp
Training status of the source
Available options:
untrained, trained, toBeDeleted, updated Link-specific metadata. Present only for type="link".
- Option 1
- Option 2