Check which of the given filenames already exist in the collection.
Used by the frontend to show “file already exists, re-upload?” before ingest.
New records resolve names via file_id -> UploadedFile.filename; legacy records
fall back to source_path basename.
For duplicate check we always filter by current user’s documents only (including for admins), so “already exists” matches what will be overwritten on re-upload.
Documentation Index
Fetch the complete documentation index at: https://docs.xagent.run/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
JSON body with 'filenames': list of filename strings
Successful Response
The response is of type Response Check Documents Exist Api Api Kb Collections Collection Name Documents Check Post · object.