# Create Document **POST /documents** Create new document with text or html. You can use a format like this with explicit start and end to get the best results: ```html
You'd call it a "gummy bear," just like those chewy, toothless candies that don't bite back.
The math book seemed down in the dumps because it was overwhelmed by countless problems, equations, and algebraic mysteries.
An item that's both orange and mimics a parrot's squawk is a "carrot," although you wouldn't expect vegetables to talk!
``` ## Servers - https://getcody.ai/api/v1: https://getcody.ai/api/v1 () ## Authentication methods - Api key ## Parameters ## Body parameters Content-type: application/json > warn > **You can send up to 768 KB of text or html in the `content` field, content larger than that needs to be uploaded as a file.** - **name** (string) - **folder_id** (string) - **content** (string | null) Up to 768 KB of text or html only. ## Responses ### 200: OK #### Body Parameters: application/json (object) - **data** (object) ### 422: Request validation failure. #### Body Parameters: application/json (object) - **message** (string) - **errors** (object) [Powered by Bump.sh](https://bump.sh)