$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "sourceText": "Dr. Clara Müller signed Service Agreement SA-2026-04 on 15 March 2026 in München for EUR 48,500.",
< "promptDescription": "Extract person names, agreement identifiers, dates, locations, and monetary amounts using exact verbatim text from the document.",
< "exampleText": "Max Weber executed Contract C-101 on 2 January 2025 in Berlin for USD 12,000.",
< "exampleExtractions": [
< {
< "key": "person",
< "value": "Max Weber"
< },
< {
< "key": "agreement_id",
< "value": "Contract C-101"
< },
< {
< "key": "date",
< "value": "2 January 2025"
< },
< {
< "key": "location",
< "value": "Berlin"
< },
< {
< "key": "amount",
< "value": "USD 12,000"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/solutionssmart~langextract-grounded-extractor/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'