GET
/
document-exists
curl --location 'https://document-query.pyqai.com/document-exists?account_id=ExampleAccountId&index_name=ExampleIndexName&document_source=ExampleDocumentSource' \
--header 'Authorization: ExampleToken' \
--data ''
{
    "response": true
}

Query Parameters

account_id
int
required

This is your account ID.

document_source
string
required

This is the name of the documeht you want to see if exists.

index_name
string

This is the name of the index you want to search for the specifed document. This parameter is optional - if left blank will use auto indexing.

Headers

Authorization
string
required

This is your API token associated with your account.

Response

response
string

Indicates whether the call was successful. If this is not present, check “status_code” for the error.