This guide takes you from zero to your first ledger read and your first dry run. You need TallyPrime running with a company open, and an AutoTally workspace.
1. Connect Tally
Open Bridges in your workspace and follow Connect your Tally. You install the AutoTally
browser extension on the machine (or cloud desktop) where Tally runs. It talks to Tally on
localhost:9000 and connects out to AutoTally, so you never open an inbound port. Once it pairs, your
companies start syncing and appear under Bridges.
2. Issue an API key
Open API keys and choose Issue key. Name the key, pick the bridge, and decide:
- Allow writes. Leave it off for a read-only key.
- Require approval (write keys only, on by default). Committed writes wait on the Agent activity page until someone approves them.
The key starts with tapi_ and is shown once. Copy it somewhere safe. Issuing a key needs a paid seat
on that bridge. See API keys.
3. Make a call
Every call goes to https://relay.autotally.ai with the key as a bearer token. Call it from a server
or your terminal, never from a browser. List your companies, then read ledgers from one of them by
name:
export AUTOTALLY_TOKEN=tapi_...
curl -s https://relay.autotally.ai/v1/companies \
-H "authorization: Bearer $AUTOTALLY_TOKEN"
curl -s "https://relay.autotally.ai/v1/ledgers?company=Sharma%20Traders&search=bank" \
-H "authorization: Bearer $AUTOTALLY_TOKEN"
?company= is the exact, case-sensitive company name from /v1/companies.
Reads come from the synced copy of your books, so they work even when Tally is off. The
X-Tally-Synced-At response header tells you when that data last changed. To see it, add -i to the
curl command. Read Synced data and freshness before you rely on a figure.
4. Draft a write
You need a key with Allow writes on. Writes are dry runs unless you ask to commit. Use the guid
from /v1/companies as companyGuid, and ledger names from your own books:
curl -s -X POST "https://relay.autotally.ai/v1/vouchers" \
-H "authorization: Bearer $AUTOTALLY_TOKEN" \
-H "content-type: application/json" \
-H "idempotency-key: quickstart-sale-1" \
-d '{
"companyGuid": "<guid from /v1/companies>",
"voucher": {
"voucherType": "Sales",
"date": "2026-10-15",
"voucherNumber": "QS-1",
"ledgerEntries": [
{ "ledger": "Mehta Retail", "amount": 118000 },
{ "ledger": "Sales", "amount": -100000 },
{ "ledger": "Output IGST 18%", "amount": -18000 }
]
}
}'
A 200 with "valid": true means the voucher passed its checks. Nothing reached Tally. Look for gates
in the same response: a voucher with gates is refused at commit.
Add ?commit=true to the URL to send it for real. You get 202 and an intentId. With Require
approval on, it waits on Agent activity until a person approves it. Follow it with
GET /v1/intents/<intentId>.
Read Write safety before you post to production, and Integrate a CRM or SaaS for the full flow in working code.
