This example demonstrates an end-to-end document processing workflow using the Infersoft API.
- Authenticates with Auth0.
- Uploads 3 sample PDF documents (
docs/). - Creates a Project and assigns the uploaded documents.
- Classifies the documents (polls for completion).
- Extracts data using available prompts (polls for completion).
- Saves Results to
classifier_results.jsonandextraction_results.json. - Cleans up by deleting the processed documents (dry-run first, then actual delete).
- .NET 10.0 SDK
- Infersoft API Credentials (
Client IDandClient Secret)
- Create a
.envfile in the root directory:
AUTH0_CLIENT_ID=your_client_id_here
AUTH0_CLIENT_SECRET=your_client_secret_here- Restore dependencies:
dotnet restoredotnet runclassifier_results.json: Document classification details.extraction_results.json: Extracted data based on prompts.