GET
/
list-documents
curl --location 'https://document-query.pyqai.com/list-documents?account_id=ExampleIndexId&index_name=ExampleIndexName&input_sequence=ExampleQuery&document_source=ExampleDocumentSource' \
--header 'Authorization: ExampleToken' \
--data ''
{
    "response": [
        "DocumentSource1",
        "DocumentSource2",
        "DocumentSource3",
        "DocumentSource4"
    ]
}

Query Parameters

index_name
string

This is the name of the index you wish get a list of documents from. This parameter is optional - if left blank will use auto indexing.

account_id
int
required

This is your account ID.

Headers

Authorization
string
required

This is your API token associated with your account.

Response

response
list

List of all documents inside the specified index.