---
title: "POST /LessonFiles/GetTrainingDocumentFileID"
method: POST
path: "/LessonFiles/GetTrainingDocumentFileID"
tags: ["LessonFiles"]
---

# POST /LessonFiles/GetTrainingDocumentFileID

`POST /LessonFiles/GetTrainingDocumentFileID`

Attempts to get the OpenAIFileID and the EonFileID of the training document associated with the provided lessonID. 
TimeoutInSec is optional, if file is being uploaded into OpenAI cache, request will wait until either file has finished uploading or until timeout is reached.
Default timeout is 20 secs

## Headers

- `X-Version` string

## Request body

- TrainingDocumentFileIDRequest
  - `lessonID` integer
  - `timeoutInSecs` integer

## Response `200`

Success

---

[API](https://skmtc.dev/eon-xr/apis/eonxr-api.md) · [All operations](https://skmtc.dev/eon-xr/apis/eonxr-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eon-xr/eonxr-api/revisions/538c75161c64/schema)
