# KlearStack API Documentation

## KlearStack API Documentation

- [Welcome to KlearStack's API Documentation](https://klearstack.gitbook.io/klearstack-api-documentation/welcome-to-klearstacks-api-documentation.md): KlearStack is a leading Document Intelligence SaaS platform. It leverages Artificial Intelligence to interpret, capture, validate, transform, and reconcile data from unstructured documents.
- [Get Access Token](https://klearstack.gitbook.io/klearstack-api-documentation/authentication-and-user-details/get-access-token.md)
- [Get User ID](https://klearstack.gitbook.io/klearstack-api-documentation/authentication-and-user-details/get-user-id.md)
- [Get Access Token From UserID](https://klearstack.gitbook.io/klearstack-api-documentation/authentication-and-user-details/get-access-token-from-userid.md)
- [Get New Access Token Using Existing Refresh Token](https://klearstack.gitbook.io/klearstack-api-documentation/authentication-and-user-details/get-new-access-token-using-existing-refresh-token.md)
- [Upload A Single Document And Get Batch ID](https://klearstack.gitbook.io/klearstack-api-documentation/upload-documents/upload-a-single-document-and-get-batch-id.md)
- [Upload Multiple Documents In A Zip Folder And Get Batch Id](https://klearstack.gitbook.io/klearstack-api-documentation/upload-documents/upload-multiple-documents-in-a-zip-folder-and-get-batch-id.md)
- [Get Extracted Results For Invoices In a Batch Id](https://klearstack.gitbook.io/klearstack-api-documentation/fetch-documents/get-extracted-results-for-invoices-in-a-batch-id.md)
- [Get Extracted Results For Invoices In Between Date Range](https://klearstack.gitbook.io/klearstack-api-documentation/fetch-documents/get-extracted-results-for-invoices-in-between-date-range.md)
- [Get Extracted Results For Invoices In a Set](https://klearstack.gitbook.io/klearstack-api-documentation/fetch-documents/get-extracted-results-for-invoices-in-a-set.md)
- [Get Results of Invoices Accessible By A Specific User](https://klearstack.gitbook.io/klearstack-api-documentation/fetch-documents/get-results-of-invoices-accessible-by-a-specific-user.md)
- [Get Results of Modified Invoices since the last pull](https://klearstack.gitbook.io/klearstack-api-documentation/fetch-documents/get-results-of-modified-invoices-since-the-last-pull.md)
- [Get Results of Approved Invoices Using Date Filter](https://klearstack.gitbook.io/klearstack-api-documentation/fetch-documents/get-results-of-approved-invoices-using-date-filter.md)
- [Get details of a Document](https://klearstack.gitbook.io/klearstack-api-documentation/fetch-documents/get-details-of-a-document.md)
- [Update Document](https://klearstack.gitbook.io/klearstack-api-documentation/update-documents/update-document.md)
- [Update Results of Approved Invoices with QuickBooks Enterprise Response](https://klearstack.gitbook.io/klearstack-api-documentation/update-documents/update-results-of-approved-invoices-with-quickbooks-enterprise-response.md)
- [Approve or Reject a Document](https://klearstack.gitbook.io/klearstack-api-documentation/update-documents/approve-or-reject-a-document.md)
- [Push Annotated Text for a Document to KlearStack](https://klearstack.gitbook.io/klearstack-api-documentation/update-documents/push-annotated-text-for-a-document-to-klearstack.md)
- [Get Image of Document](https://klearstack.gitbook.io/klearstack-api-documentation/document-images/get-image-of-document.md)
- [PUSH API Structure](https://klearstack.gitbook.io/klearstack-api-documentation/push-api/push-api-structure.md)
- [Retry Push API](https://klearstack.gitbook.io/klearstack-api-documentation/push-api/retry-push-api.md)
- [Create New Datasource](https://klearstack.gitbook.io/klearstack-api-documentation/datasources/create-new-datasource.md)
- [List of all Datasources](https://klearstack.gitbook.io/klearstack-api-documentation/datasources/list-of-all-datasources.md)
- [Get data of a Datasource](https://klearstack.gitbook.io/klearstack-api-documentation/datasources/get-data-of-a-datasource.md)
- [Append in Datasource](https://klearstack.gitbook.io/klearstack-api-documentation/datasources/append-in-datasource.md)
- [Update Record of a Datasource](https://klearstack.gitbook.io/klearstack-api-documentation/datasources/update-record-of-a-datasource.md)
- [Delete Record of a Datasource](https://klearstack.gitbook.io/klearstack-api-documentation/datasources/delete-record-of-a-datasource.md)
- [Delete Datasource](https://klearstack.gitbook.io/klearstack-api-documentation/datasources/delete-datasource.md)
- [Get Documents of a Set](https://klearstack.gitbook.io/klearstack-api-documentation/documents-set/get-documents-of-a-set.md)
- [Get Uploaded Status of Documents in a Document Set](https://klearstack.gitbook.io/klearstack-api-documentation/documents-set/get-uploaded-status-of-documents-in-a-document-set.md)
- [Get Set Reference Numbers List](https://klearstack.gitbook.io/klearstack-api-documentation/documents-set/get-set-reference-numbers-list.md)
- [Update Field Mapping](https://klearstack.gitbook.io/klearstack-api-documentation/fields-setting/update-field-mapping.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on a page URL with the `ask` query parameter:
```
GET https://klearstack.gitbook.io/klearstack-api-documentation/welcome-to-klearstacks-api-documentation.md?ask=<question>
```
The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.
Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
