> For the complete documentation index, see [llms.txt](https://docs.chatbees.ai/chatbees/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chatbees.ai/chatbees/api-references/ingest-data-sources/get-ingestion.md).

# Get Ingestion

Check the ingestion status to see when the ingestion completes.

{% tabs %}
{% tab title="HTTP" %}

```
POST /docs/get_ingestion HTTP/1.1
Api-Key: my_api_key
Content-Type: application/json
Host: my_account_id.us-west-2.aws.chatbees.ai

{
  "namespace_name": "string",
  "collection_name": "string",
  "ingestion_id": "string"
}

Response:
{
  // ingestion_status: 1 = RUNNING, 2 = SUCCEEDED, 3 = FAILED
  "ingestion_status": int
}

```

{% endtab %}

{% tab title="Python" %}

```
import chatbees as cb

# Configure API key
cb.init(api_key="my_api_key", account_id="my_account_id")

col = cb.collection('llm_research')

# check the ingestion status
max_waits = 100
waits = 0 
while waits < max_waits:
    status = col.get_ingestion(ingestion_id)
    if status != cb.IngestionStatus.RUNNING:
        break
    time.sleep(5)
```

{% endtab %}
{% endtabs %}
