Invoice Extract
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).
Pricing and limits: /pricing.
Parameters
| 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) |
Call it over MCP (JSON-RPC 2.0)
curl -s https://agent.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"}}}'Or plain HTTP
curl -s https://wingmanprotocol.com/tools/invoice_extract \
-H 'Content-Type: application/json' \
-d '{"text": "hello from an agent"}'Try it live
Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/invoice_extract from your browser.
This call needs a key or credits. The 402 response below says what it accepts. A free key adds 10,000 calls a month, no card, no crypto: get one at /pricing, which also has the current prices.