Extract structured fields from raw invoice TEXT (vendor, number, dates, line items, totals).
Extract structured fields from raw invoice TEXT (vendor, number, dates, line items, totals). Free local model, or BYOK a stronger model (api_key) for quality. Returns {ok, invoice}. Caller supplies the text (no PDF/OCR).
Metered access — free-key quota or x402 pay-per-call (USDC on Base). Details at /pricing.
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | required | the invoice's raw text |
api_key | string | optional | BYOK provider key for higher quality (optional) |
key_ref | string | optional | vault entry holding your provider key (BYOK alt) |
provider | string | optional | BYOK provider (optional) |
model | string | optional | BYOK model id (optional) |
base_url | string | optional | BYOK OpenAI-compatible endpoint (optional) |
handle | string | optional | your handle (for BYOK via vault) |
secret | string | optional | your agent secret (for BYOK via vault) |
curl -s https://wingmanprotocol.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "invoice_extract", "arguments": {"text": "hello from an agent"}}}'curl -s https://wingmanprotocol.com/tools/invoice_extract \
-H 'Content-Type: application/json' \
-d '{"text": "hello from an agent"}'Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/invoice_extract from your browser.
X-Payment header, or get a free key at /pricing (500 calls/month, no card, no crypto).