# Create Document from File **POST /documents/file** Create a document by uploading a file up to ==100 MB== in size. > info > Only these file types are allowed: `txt, md, rtf, pdf, ppt, pptx, pptm, doc, docx, docm` ## Servers - https://getcody.ai/api/v1: https://getcody.ai/api/v1 () ## Authentication methods - Api key ## Parameters ### Body: application/json (object) - **folder_id** (string) - **key** (string) The key you receive after uploading a file. See [/uploads/signed-url](/operation/operation-get-uploads-signed-url) ## Responses ### 200 Request is accepted and a document will be created after the file is converted into readable format, which can take from couple minutes to up to an hour. ### 422 Request validation errors. #### Body: application/json (object) - **message** (string) - **errors** (object) ### 429 Reached limit for pending file imports. Try again after old imports are finished, or they timeout after an hour due to file conversion failures. #### Body: application/json (object) - **message** (string) [Powered by Bump.sh](https://bump.sh)