# Ingest Documents via File

A file can contain either sale documents or purchase documents. Each document can contain one or more document line items. Each document line item represents one row in the file.

A file can contain documents belonging to one or more GSTINs belonging to the same PAN.

To upload a file, the following 4 APIs are to be used in the same order:

{% content-ref url="/pages/VHi1hdNho6ECHxxVosZ2" %}
[Get Pre-signed URL](/cleartax-docs/clear-finance-cloud/cfc-api-reference/ingestion-api/ingest-documents-via-file/get-pre-signed-url.md)
{% endcontent-ref %}

{% content-ref url="/pages/tkVhu4yaoUVTZWb2zjeI" %}
[Upload File to Storage](/cleartax-docs/clear-finance-cloud/cfc-api-reference/ingestion-api/ingest-documents-via-file/upload-file-to-storage.md)
{% endcontent-ref %}

{% content-ref url="/pages/Pfs0Pp691nmfeZeWhmmc" %}
[Trigger File Ingestion](/cleartax-docs/clear-finance-cloud/cfc-api-reference/ingestion-api/ingest-documents-via-file/trigger-file-ingestion.md)
{% endcontent-ref %}

{% content-ref url="/pages/Bg75BXjUuGXPtfjg6nUE" %}
[Get File Ingestion Status](/cleartax-docs/clear-finance-cloud/cfc-api-reference/ingestion-api/ingest-documents-via-file/get-file-ingestion-status.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cleartax.in/cleartax-docs/clear-finance-cloud/cfc-api-reference/ingestion-api/ingest-documents-via-file.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.
