I’m uploading documents one-by-one using the web UI, but I don’t know what’s already uploaded. It’d be useful to get a list of documents that are already in there to know whether I’m just inputting duplicates.
It would also help to preview a document in the corpus to see if it is out of date and needs replacing.
Our indexing API is idempotent, so submitting the same document multiple times won’t cause it to be indexed multiple times, or consume additional quota.
That said, I agree it would be useful to have an API to list existing documents, but, unfortunately, we don’t have one at the moment. It’s something we’re considering adding in the future.
If you submit a changed version of a document that already exists in the index, you will receive a CONFLICT (409) status code from the system. You’ll need to delete the document first and then index it again. We are planning to add an update API in the future.