# Unira Unira is a reconciliation API and console in free beta. ## Pages - [Home](https://unira.dev/) - [Docs](https://unira.dev/docs) - [Pricing](https://unira.dev/pricing) - [Terms](https://unira.dev/terms) - [Privacy](https://unira.dev/privacy) - [Refunds](https://unira.dev/refunds) - [Contact](https://unira.dev/contact) - [Sign up](https://unira.dev/sign-up) - [Sign in](https://unira.dev/sign-in) ## API and examples - [OpenAPI](https://unira.dev/api/openapi.json) - [Postman collection](https://unira.dev/api/postman.json) - [Example bank CSV](https://unira.dev/api/examples/bank-books/bank.csv) - [Example books CSV](https://unira.dev/api/examples/bank-books/books.csv) - [Example ruleset](https://unira.dev/api/examples/bank-books/ruleset.json) - [MCP endpoint](https://unira.dev/api/mcp) - [MCP connection guide](https://unira.dev/docs#mcp) ## Quickstart Unira is a reconciliation API in free beta. Create an account at https://unira.dev/sign-up. The first development API key is created on first console load and shown once. Export it as UNIRA_API_KEY. 1. POST https://unira.dev/api/v1/datasets twice. Body fields: name, id_field, and records or csv. Optional idempotency_key. Headers: Authorization: Bearer $UNIRA_API_KEY and Content-Type: application/json. 2. POST https://unira.dev/api/v1/rulesets with name and rules. Each rule has id, name, priority, and conditions (field_a, field_b, operator exact, amount, or date). 3. POST https://unira.dev/api/v1/reconciliations with name, dataset_a_id, dataset_b_id, ruleset_id, ruleset_version, idempotency_key, and use_case. use_case is bank_vs_ledger, invoice_vs_payment, payout_settlement, or other. The response is HTTP 202. 4. GET https://unira.dev/api/v1/reconciliations/{id} until status is completed. 5. GET https://unira.dev/api/v1/reconciliations/{id}/exceptions for items other than confirmed matches, and GET https://unira.dev/api/v1/reconciliations/{id}/export?format=csv for the CSV download. summary.missing_books counts dataset A rows with no counterpart. summary.missing_bank counts dataset B rows with no counterpart. Those names stay the same for every use_case. POST https://unira.dev/api/v1/examples/bank-books takes no body and starts or reuses the official bank-versus-books sample (use_case bank_vs_ledger). ## MCP tools Streamable HTTP endpoint: https://unira.dev/api/mcp. Authenticate with Authorization: Bearer $UNIRA_API_KEY. Call tools with JSON-RPC method tools/call. These are the registered tool names and arguments: - ping — Authenticated organization and API-key environment. No arguments. Changes and bills nothing. - reconcile_files — Upload two CSVs and run reconciliation. Required: side_a_csv, side_b_csv. Optional: side_a_name, side_b_name, preset (only bank-books), ruleset_id, use_case, idempotency_key. Send preset or ruleset_id, not both. preset defaults to bank-books. use_case defaults to bank_vs_ledger. - upload_dataset — Store CSV text or JSON records with REST dataset validation. Required: name and exactly one of csv or records. Optional: id_field, idempotency_key. - list_rulesets — Bank-books preset plus the organization's latest custom rulesets. Optional: limit from 1 to 100, default 20. - create_ruleset — One of preset bank-books, rules (exact REST rule format), or match_fields. match_fields may include amount_tolerance, date_window, amount_field_a, amount_field_b, date_field_a, date_field_b. Custom rules require name. Creation is not idempotent. - start_reconciliation — Start a job from stored datasets and return immediately. Required: dataset_a_id, dataset_b_id, use_case, and exactly one of ruleset_id or preset bank-books. Optional: ruleset_version, name, idempotency_key. - get_reconciliation — Job status by job_id, or a confirmed saved setup by reconciliation_id or exact name. Send exactly one selector. - get_exceptions — Page compact review groups, including suggested splits. Required: job_id. Optional: category (need_review, missing_from_books, unmatched_a, missing_from_bank, unmatched_b, suggested), limit (1–100, default 20), and cursor or offset, not both. - export_results — Private 15-minute CSV download link. Required: job_id. - get_usage — Current-period beta allowance or paid usage, using the REST calculation. No arguments. - propose_mapping — Free deterministic bank/GL mapping preview. Never saves or runs. Arguments: sides (optional a and b, each with filename, optional role bank or ledger, csv or dataset_id, optional mapping) and default_currency (default USD). - save_reconciliation — Save validated bank/GL mappings. Required: both sides with explicit mappings, and name. Optional: label_a, label_b, default_currency. Creates no job. - list_reconciliations — Confirmed saved bank/GL setups for the current user. No arguments. - validate_reconciliation — Validate new files with a saved setup. Arguments: sides, default_currency, and reconciliation_id or exact name. Creates no dataset, job, or usage. - run_reconciliation — Validate and enqueue new files with a saved setup. Arguments: sides, default_currency, reconciliation_id or exact name, and idempotency_key. - report_problem — Send a support report only when the user asks. Required: tried, expected, actual, impact. Do not include keys, tokens, or file contents. ## Recipes - [Recipes](https://unira.dev/recipes) - [Bank to Stripe payout matching](https://unira.dev/recipes/bank-to-stripe-payout-matching) - [Bank to books GL tie-out](https://unira.dev/recipes/bank-to-books-gl-tie-out) - [Marketplace settlement reconciliation](https://unira.dev/recipes/marketplace-settlement-reconciliation) - [Invoice to payment AR matching](https://unira.dev/recipes/invoice-to-payment-ar-matching) - [OpenAPI](https://unira.dev/api/openapi.json) - [Sign up](https://unira.dev/sign-up)