Requirements
- Node.js 22.14 or newer
- A Unfold API key from the dashboard
Install the SDK
Parse a document
Unfold stores the document, creates a durable hosted job, waits for it to finish, and returns the normalized result. Its default timeout is ten minutes.
Use an environment variable
IfFILEROUTER_API_KEY is set, you can omit the constructor options: