Developer Documentation

Integrate the Recon Agent engine directly into your CI/CD pipelines, cron jobs, and custom applications using our official Python CLI or REST API.

Interactive API Docs

Our backend provides a fully interactive Swagger UI for you to explore all available endpoints, required parameters, and response schemas.

Generate API Tokens

You need a Personal Access Token (PAT) to authenticate API requests or use the CLI. Tokens inherit your tier limits and organizational roles.


Recon Agent CLI Reference

1. Installation

The CLI is published on the Python Package Index (PyPI). You can install it globally using standard Python tools. Requirements: Python ≥ 3.10.

Using standard Pip
pip install recon-agent
Using UV (Recommended)
uv tool install recon-agent

2. Authentication

Before running commands, you must authenticate the CLI with your backend environment using a Personal Access Token.

# Interactive Login
$ recon login
API Base URL (https://recon-agent-i8mo.onrender.com): [ENTER]
Personal Access Token (ra_live_...): ra_live_xxxxx...
✓ Token saved securely in OS keychain.

Core Commands

recon reconcile

Executes a reconciliation job between two files and immediately begins processing in the cloud.

$ recon reconcile source.csv target.csv --tolerance 0.05 --provider openai --mapping my_preset
FlagDescription
--tolerance, -tAllowable float difference in amounts (default: 0.0)
--date-window, -dAllowable integer difference in days (default: 0)
--providerAI provider for fuzzy matching: groq, openai, none
--mapping, -mID of the Saved Mapping Preset to use for column extraction

recon history

List your recent reconciliation runs, or fetch the detailed exceptions of a specific run.

# List the 5 most recent runs
$ recon history --limit 5
# Fetch specific run details
$ recon history RUN_ID_12345

recon explain

Triggers the AI CFO engine to analyze the exceptions of a completed run and generate a human-readable executive summary.

$ recon explain RUN_ID_12345

recon export

Downloads the detailed results of a reconciliation run to your local machine.

$ recon export RUN_ID_12345 --format csv