Companies and status

List companies, check sync freshness and see whether Tally is reachable.


Start here. These calls give you the company names and GUIDs every other call needs, and tell you how current your data is. For authentication and conventions, read the API overview.

Companies

List companies

GET /v1/companies

Returns every company in the workspace, on every Tally connection. Reads take the company name. Writes take its guid. The response is a plain array with no paging.

Response fields

Field Type Description
[].name string Name.
[].guid string Guid.
[].startingFrom date Starting from.
[].booksFrom date Start of the accounts.
[].endDate date End date.
[].formalName string Formal name.
[].address string Registered address, as one string.
[].state string State.
[].country string Country.
[].pincode string Pincode.
[].phoneNumber string Phone number.
[].mobileNumber string Mobile number.
[].faxNumber string Fax number.
[].email string Email address.
[].website string Website.
[].pan string PAN.
[].cin string CIN.
[].tanNumber string TAN number.
[].tanRegNumber string TAN reg number.
[].tdsDeductorType string TDS deductor type.
[].tdsDeductorBranch string TDS deductor branch.
[].isGSTOn boolean GST is on.
[].isInventoryOn boolean Inventory is on.
[].isPayrollOn boolean Payroll is on.
[].isBillWiseOn boolean Bill-wise accounting is on.
[].isCostCentresOn boolean Cost centres are on.
[].isTDSOn boolean TDS is on.
[].isTCSOn boolean TCS is on.
[].isInterestOn boolean Interest is on.
[].integrateAccountsWithInventory boolean Accounts are integrated with inventory.
[].features object The same switches as one object.
[].features.inventory boolean Inventory.
[].features.integrateAccountsWithInventory boolean Accounts are integrated with inventory.
[].features.billWise boolean Bill wise.
[].features.costCentres boolean Cost centres.
[].features.tds boolean TDS.
[].features.tcs boolean TCS.
[].features.gst boolean GST.
[].features.payroll boolean Payroll.
[].features.interest boolean Interest.

Status codes

Status Error Meaning
200 Success.
401 unauthorized The key is missing, invalid or revoked.

Example request

curl -s "https://relay.autotally.ai/v1/companies" \
  -H "authorization: Bearer $AUTOTALLY_TOKEN"

Example response

[
  {
    "name": "Sharma Traders Pvt Ltd",
    "guid": "9f3a1c52-7b1e-4d60-a2f4-6c1e8d0b7a11",
    "startingFrom": "2026-04-01",
    "booksFrom": "2026-04-01",
    "state": "Maharashtra",
    "country": "India",
    "isGSTOn": true,
    "isInventoryOn": true
  }
]

Get record counts

GET /v1/statistics

Counts of each kind of master and each voucher type in one company, from the synced copy.

Parameters

Name In Type Required Description
company Query string No Company name, exactly as GET /v1/companies returns it. Case-sensitive. Optional only when the workspace has one company.
fresh Query boolean No Set to true to ask for a sooner refresh of this company. Needs company. The response is still the synced copy, and this never reads Tally. Default false.

Response fields

Field Type Description
masters[] array of object Masters.
masters[].name string Name.
masters[].count integer Count.
vouchers[] array of object Vouchers.
vouchers[].name string Name.
vouchers[].count integer Count.
vouchers[].cancelledCount integer Cancelled count.
vouchers[].totalCount integer Total count.
vouchers[].optionalCount integer Optional count.

Status codes

Status Error Meaning
200 Success.
400 bad_request The workspace has several companies and you sent no company, or a parameter is malformed.
401 unauthorized The key is missing, invalid or revoked.
404 not_found No company with that name.

Example request

curl -sG "https://relay.autotally.ai/v1/statistics" \
  -H "authorization: Bearer $AUTOTALLY_TOKEN" \
  --data-urlencode "company=Sharma Traders Pvt Ltd"

Status and health

Get sync status

GET /v1/status

Shows, for each company and each kind of data, when it last changed and when it was last compared with Tally. Use this to tell how fresh your reads are. Connection fields describe your key's Tally connection.

Response fields

Field Type Description
bridgeOnline boolean true while the browser extension is sending heartbeats, even with Tally shut.
tallyReachable boolean true when Tally itself answered recently. This is the one to read.
boxState string Which of the four connection states applies. One of: live, tally-closed, offline, none.
lastSeenAt date-time Last heartbeat from the browser extension.
companies[] array of object Every company in the workspace.
companies[].companyGuid string Company GUID.
companies[].name string Company name.
companies[].entities[] array of object One entry per kind of data.
companies[].entities[].entityType string Kind of data.
companies[].entities[].lastSyncedAt date-time When rows of this kind last changed here. It stays put when Tally has nothing new.
companies[].entities[].rowCount integer Rows held.
companies[].entities[].lastCheckedAt date-time When this kind was last compared with Tally. Absent on some kinds.
companies[].entities[].upToDate boolean true when that comparison found nothing outstanding.

Status codes

Status Error Meaning
200 Success.
401 unauthorized The key is missing, invalid or revoked.

Example request

curl -s "https://relay.autotally.ai/v1/status" \
  -H "authorization: Bearer $AUTOTALLY_TOKEN"

Check whether Tally is reachable

GET /v1/bridges/live

Answers one question: can your key's Tally connection reach Tally right now? Reads work either way. Writes wait in the queue until it can.

Response fields

Field Type Description
status string ok: the API answered.
tallyReachable boolean true when Tally itself answered recently.
boxState string Which of the four connection states applies. One of: live, tally-closed, offline, none.
connectedBridges integer How many of your connections are reachable.
lastSeenAt date-time Last heartbeat from the browser extension.
boxName string Name of the connection.

Status codes

Status Error Meaning
200 Success.
401 unauthorized The key is missing, invalid or revoked.

Example request

curl -s "https://relay.autotally.ai/v1/bridges/live" \
  -H "authorization: Bearer $AUTOTALLY_TOKEN"

Example response

{
  "status": "ok",
  "tallyReachable": true,
  "boxState": "live",
  "connectedBridges": 1,
  "lastSeenAt": "2026-11-01T06:42:10Z",
  "boxName": "Office PC"
}

Check the API is up

GET /health

Needs no key. It says the API is running. It says nothing about your Tally, so use GET /v1/bridges/live for that.

Response fields

Field Type Description
status string ok when the API is up.

Status codes

Status Error Meaning
200 Success.

Example request

curl -s "https://relay.autotally.ai/health"

Example response

{
  "status": "ok"
}