Ingest a learning source (YouTube, PDF, webpage, or lecture)
_id: MongoDB ObjectId of the created sourceorgId: Organisation IDuserId: User identifiersourceType: Type of the sourcecontent: Processed content from the sourcemetadata: Additional metadatacreatedAt: Timestamp of creationupdatedAt: Timestamp of last updatePOST/source/ingestSource201 Createdapi-key: <your-api-key>multipart/form-data with fields:
file: PDF filesource: JSON string, e.g. { "sourceType": "file", "userId": "user-123", "metadata": { "topic": "Calculus" } }application/json.multipart/form-data.