On this page
Start here
Send records to Datara
Datara fetches them
AI tools
Read Datara elsewhere
Datara tells you
For partners
Reference
The business's Owner makes the keys and sets up pulls in Settings → Integrations. Requests and answers are JSON unless a section says otherwise.
Start here
Choose a way in
There are two directions. Your system sends records to Datara (push), or Datara fetches them from your system on a schedule (pull).
| Your system can… | Use | Good for |
|---|---|---|
| Send a list of records now and then | A batch: POST /api/v1/imports | Nightly or hourly jobs, scripts, integration tools |
| Produce CSV or Excel files | A file: POST /api/v1/imports/files | Systems that already export reports |
| Send records as they happen, many at once | A stream: POST /api/v1/imports/stream | Busy systems catching up, or replaying history |
| Call a URL for each event (a webhook) | Webhook events: POST /api/v1/imports/events | "Order created", "complaint closed" notifications |
| Answer requests on its own API | A pull, set up in Settings | Systems you can read but not change |
| Publish a file at a link | An export link, set up in Settings | Published Google Sheets, scheduled report links |
| Keep its records in a private Google Sheet | Google Sheets, set up in Settings | Sheets a team fills in by hand and doesn't want to publish |
| Keep its books in Zoho Books | Zoho Books, set up in Settings | Invoices, payments, bills and expenses without any export |
| Call a URL for each event, but only sign it with a secret | Signed webhooks, set up in Settings | Senders that can't add an Authorization header |
| Is an AI tool or agent | Datara's MCP server: /api/v1/mcp | Claude, Cursor and other MCP clients reading figures or sending records |
| Offers an MCP server | An MCP pull, set up in Settings | Systems that expose their records as an MCP tool |
Every way in ends in the same place: each delivery becomes one batch, shown on "Your data" like an uploaded file, with its result and any rows that were rejected.
API keys
Pushes (batches, files, streams and events) need an API key. Pulls don't, because Datara makes those requests itself.
- Making one: the Owner opens Settings → Integrations, names the key after the system that uses it (for example "Internal tool"), and copies it. A key starts with
dtr_and is shown once. Datara keeps only a hash of it, so a lost key can't be shown again. Make a new one instead. - Sending it: in either header,
Authorization: Bearer dtr_…orX-Api-Key: dtr_…. Never put it in the address, where logs and browsers keep it. - What it can do: only send records to its own business, on the import routes in this guide. It can't sign in to Datara, read figures, or reach another business. A browser session can't use the import routes either.
- Whose records: batches are recorded as the Owner's who made the key. The Owner's email must be confirmed and the business must have an active plan (or be in its free trial).
- Revoking: on the same page, at once. The next request with that key gets
401. Give each system its own key, so you can stop one without the others.
Check a key
curl https://datara.ng/api/v1/imports/check \
-H "Authorization: Bearer dtr_your_key"The answer names the business the key sends to:
{
"business": "Swift Haul",
"keyName": "Internal tool",
"scope": "import"
}Channels and matching columns
Every push names a channel: where the records come from, such as Internal tool or POS. A name is up to 80 characters and isn't case-sensitive (Internal tool and internal tool are the same channel). In an address, write a space as %20. The first time a name is used, Datara makes the channel and a data source of the same name, within the plan's number of data sources.
- The first batch waits. Its status is
waiting_for_columns. The Owner opens it on "Your data" and matches each column once: to one of Datara's fields, kept as one of the business's own fields, or left out on purpose. They also say what the records are: sales and expenses, complaints, or a staff list. - Later batches import on their own when their columns still fit the matched ones. Their status is
importing. - Columns keep their places. A field a later batch adds goes after the known ones, so the saved matching keeps working. A record without a field gets an empty cell, never a made-up value.
| Status in an answer | What it means |
|---|---|
waiting_for_columns | Received. The Owner matches the channel's columns once on "Your data". |
importing | Received, and being imported with the columns matched before. |
needs_date_order | Received. The dates could be day-first or month-first; the Owner chooses once. |
already_imported | Received. Every record in it was imported before, so nothing new was added. |
Fields Datara understands
- Sales and expenses: date, amount (or debit and credit), type (sale, expense or refund), category, description, customer, product, quantity, branch, currency and reference.
- Complaints and staff lists: also end date (resolved or left), person, role, branch, status and reason.
- Anything else can be kept as one of the business's own fields (a number, a group or a date, with a unit) and measured in Ask Datara, for example delivery times or weights.
Name your fields plainly (date, amount, customer): Datara suggests matches from the names, and the Owner confirms.
How records become rows
JSON records are turned into a table so they go through the same matching and checks as a spreadsheet:
- A nested object becomes dotted columns:
customer.name,customer.city. - A list of plain values becomes one cell joined with "; ":
express; fragile. - A list of objects is refused, because one record must be one row. Send those as separate records.
- At most 5 levels of nesting and 200 fields across a batch.
- Values are kept exactly as sent and read later, like a file's cells. Send amounts as numbers or plain text (
15000,"15,000.00"), dates as2026-10-01where you can. - Every figure is in your business's currency (naira by default). A record in another currency Datara converts (NGN, GHS, KES, ZAR, USD, GBP, EUR) is converted at the rate for the record's own date, and keeps the amount as written and the rate used. Say which currency with a currency field (
USD) or a mark beside the amount ($200). If there is no rate for that date the record is held, never guessed: set your own rate for the month in Settings → Exchange rates. Any other currency is rejected with a reason.
This record:
{
"date": "2026-10-01",
"customer": {
"name": "Kemi Bakeries",
"city": "Lagos"
},
"tags": [
"express",
"fragile"
]
}becomes the columns date, customer.name, customer.city and tags.
Datara also keeps the raw JSON of every batch beside its table, so every value can be traced back to what was sent.
Send records to Datara
Send a batch (JSON)
POST /api/v1/imports with a channel and a list of records. Up to 100,000 records, and no more than 10 MB once laid out as a table.
curl https://datara.ng/api/v1/imports \
-H "Authorization: Bearer dtr_your_key" \
-H "Content-Type: application/json" \
-d @batch.jsonbatch.json:
{
"channel": "Internal tool",
"records": [
{
"date": "2026-10-01",
"type": "sale",
"amount": 15000,
"description": "Waybill 1001",
"customer": {
"name": "Kemi Bakeries"
}
},
{
"date": "2026-10-01",
"type": "expense",
"amount": 4000.5,
"description": "Diesel",
"customer": {
"name": ""
}
}
]
}Answer, 202 Accepted:
{
"datasetId": "0192c1d4-7b2e-7c1a-9f3e-2b8a51d0c111",
"channel": "Internal tool",
"records": 2,
"status": "waiting_for_columns",
"message": "Received. The Owner matches this channel’s columns once on \"Your data\"; later batches with the same fields import on their own."
}The import itself runs in the background. Its result shows on "Your data", and the Owner is emailed if it fails.
Send a file
POST /api/v1/imports/files as a form (multipart/form-data) with channel and file. A .csv or .xlsx file of up to 10 MB and 100,000 rows. It is checked exactly like a file someone drops on "Your data": the type by its content, the header row found, the sheet chosen.
curl https://datara.ng/api/v1/imports/files \
-H "Authorization: Bearer dtr_your_key" \
-F channel=POS \
-F [email protected]The answer is the same as a batch's, 202 Accepted. The first file of a channel waits for its columns; a later file with the same columns imports on its own.
Stream records
POST /api/v1/imports/stream?channel=… with Content-Type: application/x-ndjson: one JSON object per line, sent as it happens. Datara reads the lines as they arrive and puts them in as batches of 500, or whatever has arrived when no new line has come for 10 seconds. Each batch is saved before the next line is read.
curl https://datara.ng/api/v1/imports/stream?channel=Internal%20tool \
-H "Authorization: Bearer dtr_your_key" \
-H "Content-Type: application/x-ndjson" \
--data-binary @records.ndjsonrecords.ndjson, one record per line (blank lines are skipped, Windows line ends are fine):
{"date":"2026-10-01","type":"sale","amount":15000,"description":"Waybill 1001"}
{"date":"2026-10-01","type":"sale","amount":9000,"description":"Waybill 1002"}
{"date":"2026-10-02","type":"expense","amount":4000,"description":"Diesel"}When the stream ends, the answer (200 OK) lists every batch with the lines it holds:
{
"channel": "Internal tool",
"records": 4,
"batches": [
{
"fromLine": 1,
"toLine": 3,
"batch": {
"datasetId": "…",
"channel": "Internal tool",
"records": 3,
"status": "importing",
"message": "…"
}
},
{
"fromLine": 4,
"toLine": 4,
"batch": {
"datasetId": "…",
"channel": "Internal tool",
"records": 1,
"status": "importing",
"message": "…"
}
}
],
"stoppedAtLine": 5,
"problem": "Line 5: this isn't JSON. Send one JSON object per line."
}- When a line can't be used (not JSON, not one object, longer than 256 KB, or a list of objects inside), the stream stops there.
stoppedAtLineandproblemsay where and why. Every batch listed before it is saved. Fix the line and send again from there. - One connection carries at most 50 MB. Past that, the answer says which line to start the next connection from.
- Keep each connection under about 90 seconds, then open a new one. Datara's network edge ends a request whose answer hasn't started within 100 seconds. Nothing already in a batch is lost when a connection drops.
- Sending a stream again is safe: rows already imported are skipped (Duplicates and retries).
Webhook events
Point a webhook at POST /api/v1/imports/events?channel=…, with the key in the Authorization or X-Api-Key header. Each call carries one event (a JSON object) or a list of up to 500.
curl "https://datara.ng/api/v1/imports/events?channel=Orders" \
-H "Authorization: Bearer dtr_your_key" \
-H "Content-Type: application/json" \
-d '{"date":"2026-10-01","type":"sale","amount":15000,"description":"Order 551"}'Answer, 202 Accepted:
{
"channel": "Orders",
"received": 1,
"waiting": 7,
"nextBatchAt": "2026-10-29T08:01:00+00:00"
}- Checked at once: an event that can't be one row (not an object, a list of objects inside, or more fields than the channel can take) is refused with
400, so your system knows straight away. - Gathered into batches: good events wait and go in together as one batch of the channel, within a minute of the oldest one (
nextBatchAt), or as soon as 500 are waiting. A dataset per event would bury "Your data". - Never lost or doubled: an event leaves the waiting list in the same save that makes its batch.
- A full waiting list (100,000 events for one channel) refuses more with
409until the batch goes in. Wait a minute and send again. - Busy systems get 1,200 event calls a minute per key. For more, send lists, or use a stream.
- The Owner can see waiting events on the channel in Settings → Integrations, send them in now, or drop them.
Signed webhooks
Some senders can't add an Authorization header, only sign each call with a shared secret. For those, the Owner turns on Receive signed webhooks on the channel. Datara gives an address of its own and a signing secret, shown once. Point the sender at that address. No API key is needed: the signature is the sign-in.
- The signature: HMAC-SHA256 of the raw request body, keyed by the secret, in the
X-Signature-256header (or another header you choose), as hex or base64, with or without a leadingsha256=. GitHub-style senders work as they are. - A wrong or missing signature gets
401, and nothing is taken. - The body is the same as for
/api/v1/imports/events: one event or a list. The channel comes from the address, so leave?channel=out. - A new secret also makes a new address, so an old address and secret stop working at once. Stop turns signing off.
- Replays: a call sent twice is harmless, because rows already imported are skipped (Duplicates and retries).
To check your sender signs the way Datara expects:
body='{"date":"2026-10-01","amount":15000}'
printf '%s' "$body" | openssl dgst -sha256 -hmac "your-signing-secret"
# Send the hex it prints as: X-Signature-256: sha256=<hex>Datara fetches them
Pull from your API
When your system has an API Datara can read, the Owner sets up a pull in Settings → Integrations → Channels, and Datara fetches new records on a schedule. Nothing has to change on your side.
| Setting | What to enter |
|---|---|
| Address | The HTTPS address that lists records, for example https://cems.example.com/api/records. |
| Sign-in | None, a bearer token, a key in a named header (such as X-Api-Key), or a user name and password. The secret is encrypted and never shown again, not even to the Owner. |
| Where the records are | The dotted path to the list in the answer, such as data or data.items. Empty when the answer is the list itself. |
| Where the next page's address is | The dotted path to the next page's link, such as links.next. Datara follows up to 20 pages, only on the same host. |
| "Changed since" parameter | The query parameter your API takes to list only records changed since a time, such as updated_since. |
| Field with when a record changed | The field in each record holding that time, such as updatedAt. Datara keeps the largest value it has seen and sends it in the parameter next time. |
| How often | From every 15 minutes to once a week. |
For the settings above, an answer like this works:
{
"data": [
{
"date": "2026-10-01",
"type": "sale",
"amount": 15000,
"description": "Waybill 1001",
"updatedAt": "2026-10-01T09:00:00Z"
},
{
"date": "2026-10-01",
"type": "expense",
"amount": 4000,
"description": "Diesel",
"updatedAt": "2026-10-01T18:00:00Z"
}
],
"links": {
"next": "/api/records?page=2"
}
}- Test fetches the first page with the settings and shows its columns, never its values, and saves nothing. Pull now runs a pull straight away.
- The records go in exactly like a pushed batch: the first waits for its columns, later ones import on their own. A pull takes at most 100,000 new records; pull more often if you have more.
- When a pull fails, the reason shows on the channel in plain words, and Datara waits twice as long before each new try (at most a day). After 3 failures in a row the Owner is emailed once. A good pull resets this.
- What Datara connects to: only the address entered, over HTTPS, and only public internet addresses (never a private or local network). It doesn't follow redirects, so enter the final address. An answer must come within 30 seconds and be at most 10 MB.
Export links
The pull address can also be a link to a CSV or Excel file, such as a Google Sheet published as CSV, or a report your system saves at a fixed link. Leave the path and "changed since" settings empty. Datara knows a file from its content.
- Datara takes the whole file at each pull, but adds a batch only when the file has changed since the last pull.
- Rows imported from an earlier version are skipped, so a file that grows imports only its new rows. If the file is the full record, you can have it replace earlier rows instead (If a record changes).
- A link that answers with a web page (for example a sign-in page) fails with a plain reason. Use the link to the file itself.
- The file is checked like an upload: at most 10 MB and 100,000 rows.
Google Sheets
A sheet that stays private doesn't need a published link. On a channel in Settings → Integrations, the Owner chooses Connect a Google Sheet, signs in with Google, and picks the sheet in Google's own file picker. If it has several tabs, they choose the one that holds the records.
- What Datara can reach: only sheets the Owner picks (Google's
drive.fileaccess). It can't see the rest of their Drive, and it never changes a sheet. - How it comes in: Datara reads the tab on the schedule and takes it only when it changed, replacing what came before unless you turn that off (If a record changes). The first batch waits for its columns.
- The first row should be the column names. Cells are read as they show in the sheet.
- Disconnect on the channel ends Datara's access and the pull. The Owner can also end it from their Google account; pulls then say so in plain words until Google is connected again.
Zoho Books and Zoho Inventory
On a channel in Settings → Integrations, the Owner chooses Connect Zoho Books, signs in with Zoho, and picks the organization, Books or Inventory, what counts as a sale, and how often to pull. Datara only reads; it never changes anything in Zoho. From Zoho Inventory, a sale is an invoice (with credit notes as refunds) or a sales order, never both, and purchase bills are costs; purchase orders aren't money spent, so they aren't read.
| What counts as a sale | Datara reads | Means |
|---|---|---|
| Invoices | Invoices as sales, credit notes as refunds, bills and expenses | A sale counts when it's invoiced, even if the money hasn't arrived. Product and customer detail is fuller. |
| Payments | Customer payments as sales, bills and expenses | A sale counts when the money arrives. Closer to cash in hand. |
- It is one or the other, never both, because both would count the same sale twice.
- Drafts and voided records are left out. Other currencies are reported and refused, never converted.
- Datara takes the records only when something changed, and each time replaces what came before, so an edited or voided invoice shows correctly. The first batch waits for its columns.
- Zoho limits calls per day (1,000 on its free plan), so pulls run every 6 hours at most. An organization with more than 20,000 records in one list is refused in plain words for now.
Use your own keys
Most businesses just sign in, through Datara's app. A company that needs the connection to run through an app in its own account can use that instead, under Use your own Google or Zoho app in Settings → Integrations. Its keys are kept encrypted, never shown again, and used only for that business.
- Google: in Google Cloud, turn on the Sheets, Drive and Picker APIs, make a web OAuth client with the redirect address Datara shows, and an API key limited to the Picker. Enter the client ID, secret, Picker key and project number.
- Zoho: in Zoho's API Console, make a Server-based application with the redirect address Datara shows, and turn on multi-DC if your people are in several regions. Enter the client ID and secret.
- New connections then use your app. A different client ID ends connections made with your old app; connections on Datara's app keep working until you connect them again.
AI tools
MCP: AI tools and MCP servers
Datara speaks the Model Context Protocol both ways. AI tools and agents can connect to Datara to read a business's figures or send it records. Datara can also pull records from your own MCP server.
Connect an AI tool to Datara
Datara's MCP server is at https://datara.ng/api/v1/mcp (Streamable HTTP). It signs in with an API key in the Authorization: Bearer dtr_… header, and each key sees only the tools of its kind. An app that can't be given a header (such as a hosted assistant) signs in with OAuth instead: it finds Datara's sign-in from the server's answer, the business's Owner allows it once, choosing read or send, and it appears under Connected apps on Settings → Integrations, where it can be disconnected:
| Key | Tools |
|---|---|
| Read figures | get_overview (what the records cover), then the same lookups Ask Datara uses: period summaries, expenses, monthly totals, products, customers, profit by product, busy days, what changed, growth, targets, money opportunities, complaints, staff movement, the business's own fields, and the tax estimate. |
| Send records | send_records: a channel and a list of records, exactly like a batch. |
In a client that lets you add a remote server with a header, for example Claude Code:
claude mcp add --transport http datara https://datara.ng/api/v1/mcp \
--header "Authorization: Bearer dtr_your_read_key"- What a read key sees: the summarised figures Datara works out, the same ones Ask Datara's own AI sees: totals, changes, rankings, customer and product names. Never single records or raw files, never staff names. Figures come as Datara wrote them; the tool descriptions ask the AI to quote them as given.
- Only its own business: a key reads and sends for the business that made it, whatever the AI asks.
- Make a read key only for an AI tool you trust, and revoke it when you stop using it. Every tool call is recorded by its name, never its arguments or answer.
- A business whose free trial has ended can still read; sending needs an active plan, like everywhere else.
- Clients that can only sign in with OAuth, without a header, can't connect yet.
Datara pulls from your MCP server
If your system offers an MCP server with a tool that lists records, set up a pull and choose A tool on an MCP server. Datara calls that tool on the schedule, like an API pull.
- Address: the server's Streamable HTTP address over HTTPS, often ending in
/mcp. Sign-in is none, a bearer token or a key in a header. - Tool and arguments: the tool's name (for example
list_complaints) and, if it needs them, fixed arguments as a JSON object ({"status": "closed"}). - The answer: the tool's structured result, or else its text read as JSON. Say where the list of records is in it, for example
items. - Only what changed: name the argument the tool takes for "changed since" and the record field with the change time. Datara sends the largest time it has seen.
- One call is one pull: MCP tools have no pages, so have the tool return at most 100,000 records per call.
- The same rules as API pulls apply: public addresses only, no redirects, 30 seconds per call, failures shown in plain words with longer waits, and an email to the Owner after 3 in a row.
Read Datara elsewhere
Power BI and Excel
Power BI, Excel and other tools that read an OData feed can load a business's records and daily totals straight from Datara and refresh them on their own schedule. The feed is read-only and is at https://datara.ng/api/v1/odata/.
Connect Power BI
- The Owner opens Settings → Integrations and makes a key for Power BI / Excel feed, then copies it.
- In Power BI Desktop choose Get data → OData feed (in Excel: Data → Get Data → From Other Sources → From OData Feed) and enter the address above.
- When asked how to sign in, choose Basic. Type any user name, for example
powerbi, and paste the key as the password. - Tick the tables you want and load them. Publish to the Power BI Service and set a scheduled refresh with the same Basic sign-in.
| Table | What's in it |
|---|---|
DailyTotals | Sales, expenses and refunds per day, dataset and branch: the same totals the dashboard adds up. |
Transactions | Every imported record: date, type, amount, category, product, customer, branch, description and data source. Amount is always in your business's currency; a record written in another currency also has OriginalCurrency, OriginalAmount and ExchangeRate. Never the raw file cells. |
Products, Customers, Branches, DataSources | Names and ids, to join to the records. |
Complaints, Staff | Complaint and staff-list records, from their uploads. |
curl -u "powerbi:dtr_your_feed_key" \
"https://datara.ng/api/v1/odata/DailyTotals?$filter=Date%20ge%202026-10-01%20and%20Date%20lt%202026-11-01"- What a feed key sees: every record of its own business, including customers' and staff names. Make one only for reports your business owns, and revoke it when they stop being used. It can't change anything or reach another business.
- Large tables: pages of 50,000 rows, followed through
@odata.nextLinkautomatically. - Incremental refresh:
$filteronDatewitheq,gt,ge,ltandlejoined byand, onTransactions,DailyTotals,ComplaintsandStaff.$selectand$topwork too. - Anything else is refused, never ignored: other filters answer
400and other options such as$orderbyor$expandanswer501, so a report never shows figures a filter was meant to narrow. Sort and join in Power BI after loading. - A business whose free trial has ended can still read the feed.
Activity log for security tools
A business's security tools (Splunk, Microsoft Sentinel, Elastic and others) can collect its activity log: who did what and when, in the same words as the Activity page, never the business's records. Each entry carries its seal number and hash, so a copy outside Datara shows if an entry later changed.
- Read it: make an audit key on Settings → Integrations, then call
GET https://datara.ng/api/v1/activity/feedwith it. Entries come oldest first, up to 500 a page; pass the answer'snextas?after=to continue. The key opens nothing else. - Or have it sent: on Settings → Business security, give an HTTPS address. Datara sends each new entry within about a minute, as a JSON list signed
X-Datara-Signature: sha256=…(HMAC-SHA256 of the body with your secret), or to Splunk's HTTP Event Collector with its token.
Datara tells you
Referral webhook
An Owner or Admin can give Datara an address under Settings, Referrals. Datara posts to it when a business signs up with your referral ID, when one starts paying, or both, as you choose. Send a test posts a referral.test event straight away.
{
"event": "referral.signed_up",
"deliveryId": "01a2b3c4-0000-7000-8000-000000000001",
"occurredAt": "2026-11-14T09:00:00Z",
"referralCode": "ADE-PHARMA",
"totals": {
"signedUp": 4,
"paying": 2,
"monthsEarned": 2
}
}- Events:
referral.signed_up,referral.started_payingandreferral.test, also in theX-Datara-Eventheader. - What's in it: your referral ID and your running totals. Never the other business's name, people or data.
- The signature: HMAC-SHA256 of the raw body, keyed by the signing secret, as
X-Datara-Signature: sha256=<hex>. Datara shows the secret once, when you save the address or ask for a new one. - Retries: anything but a
2xxanswer within 10 seconds is tried again later, up to 5 times, with the sameX-Datara-Deliveryid, so you can skip one you've already handled. The settings page shows the last answer. - Where:
https://addresses on the public internet only. Datara doesn't follow redirects.
# Check the X-Datara-Signature header against the raw body, with the secret Datara showed you once:
printf '%s' "$body" | openssl dgst -sha256 -hmac "drw_your_signing_secret"
# It matches when the header is sha256=<the hex it prints>For partners
Referral API
Approved partners who resell Datara can read their referral numbers from their own systems: for each referral ID, how many businesses registered with it, and for each month how many registered, started paying and were paying. Counts only, never names or data.
- Your links: add
?ref=YOUR-IDto any Datara page, for examplehttps://datara.ng/pricing?ref=YOUR-ID. The ID is kept for 30 days while the visitor looks around, and waits in the sign-up form's Referral ID field, where people told your ID can also type it. - Who: an Owner or Admin who is an approved Datara partner makes the key under Settings, Referrals, Referral API. Anyone else doesn't see the section, and the API refuses them.
- Addresses: each key lists the IP addresses or ranges it may be used from (at least one). Calls from anywhere else get
403withApiKeys.AddressNotAllowed. - Rate: each key has its own limit, 10 to 600 requests a minute (60 unless you choose). Over it,
429withRetry-Afterin seconds. - Sending the key:
Authorization: Bearer dtr_…orX-Api-Key. A referrals key can't do anything else. - Months:
fromandtoasyyyy-MM, at most 36 months. Without them, the last 12 months to this one. Months follow the business's timezone.
curl -H "Authorization: Bearer dtr_your_referrals_key" \
"https://datara.ng/api/v1/referral-stats?from=2026-06&to=2026-11"{
"from": "2026-06",
"to": "2026-11",
"payingMeasuredFrom": "2026-11-17",
"codes": [
{
"code": "ADA-ACCOUNTS",
"active": true,
"registered": 14,
"payingNow": 6,
"months": [
{
"month": "2026-11",
"registered": 3,
"startedPaying": 2,
"paying": 6
}
]
}
]
}registered: businesses that signed up with that ID.startedPaying: businesses whose first payment fell in the month.paying: businesses with paid time in the month, renewals and invoices included.payingMeasuredFrom: monthly paying counts are recorded from this day; earlier months show 0 paying.- An ID you replaced with your own shows as
"active": falseand keeps its counts. - The key stops working if the partner who made it is no longer approved or leaves the business (
403,Partner.NotApproved). Revoked keys get401.
Reference
If a record changes
When a source gives Datara its full record each time, a new batch replaces the channel's earlier batches, so edited and deleted records match the source. The swap is one step: the figures are never empty or doubled, and if the import fails the old rows stay.
| Source | Replaces? |
|---|---|
| Zoho Books | Always. Datara reads the whole organization each time. |
| Google Sheets | On by default. Turn it off if your team clears old rows from the tab, or they'd leave Datara too. |
| Export links | Off by default. Turn it on with "This file is the full record" only if the file always holds everything, not just recent rows. |
| Batches, files, streams, webhook events, MCP and JSON pulls | Never: they send what's new, not a full record. A corrected record sent this way comes in as another row. |
- A sudden drop is held. If a new batch has less than half the rows it would replace, and that was at least 20 rows, Datara keeps what it had and emails the Owner, in case a sheet was emptied by mistake. Replace anyway on the channel lets it through.
- Rows that came in another way stay, and are still compared, so a sale that also arrived by upload isn't counted twice.
- Batches pushed to the same channel are never replaced.
- Without replacing, an edited row comes in beside the old one, and a deleted row stays. To correct one, delete the batch that holds the old row on "Your data". Its other rows come back the next time the source changes.
Duplicates and retries
Every imported row gets a fingerprint within its business, made from its date, amount, type, description, customer and product. A row that matches one imported in an earlier batch is skipped, so sending the same records again never doubles them, whichever way they arrived. When in doubt after a timeout or a dropped connection, send again.
- Rows are only compared within one business, never across businesses.
- Two identical rows in the same batch are both kept. Two genuinely identical sales sent in different batches look like one sale sent twice, so the later one is skipped. Put the order or waybill number in the description (
Waybill 1001) so each sale stays its own. - A batch that waits for its columns hasn't been imported yet, so sending it again makes a second waiting batch. Once one is imported, the other's rows are skipped as already imported.
Errors
Errors are problem details JSON, with a plain-English title you can show to people and a stable code your code can check:
{
"type": "https://datara.app/errors/plan.trial-ended",
"title": "Your 30-day free trial has ended. Your records are safe and you can still see them. Choose the Starter plan to add records, upload files and ask Datara again.",
"status": 403,
"code": "Plan.TrialEnded"
}| Status | When | What to do |
|---|---|---|
400 | The request can't be read: no channel, not a list of objects, a list of objects inside a record, too many records, a bad file. The title says which. | Fix the request. Retrying it unchanged fails the same way. |
401 | No key, a mistyped key, or a revoked key; or a signed webhook whose signature doesn't match. | Check the header or the signing secret; ask the Owner for a new key. |
403 | Identity.EmailNotVerified: the Owner hasn't confirmed their email. Plan.TrialEnded: the free trial ended without a plan. Plan.DataSourceLimit: a new channel would pass the plan's data sources. | The Owner fixes it in Datara; then send again. |
409 | Imports.TooManyWaiting: 100,000 events already waiting for the channel. | Wait a minute and send again. |
429 | Too many requests for this key in a minute. | Wait a minute, then slow down or send bigger batches. |
5xx | Something went wrong on Datara's side. | Retry with a growing wait. Retries are safe. |
Rows that can't be imported (a date Datara can't read, an amount that isn't a number, a currency with no rate for the record's date) don't fail the request. The batch imports without them, and each one is listed with its reason on "Your data".
Limits
| What | Limit |
|---|---|
| Requests per key | 120 a minute for batches, files, streams, checks and MCP; 1,200 a minute for webhook events (and per signed webhook address) |
| One batch, one file, one pull | 100,000 records or rows, and 10 MB |
| Fields in a batch | 200, at most 5 levels deep |
| One stream line | 256 KB |
| One stream connection | 50 MB, and under about 90 seconds |
| Stream batches | 500 records, or what arrived before a 10-second pause |
| Webhook events | 500 per call; batches within a minute or at 500 waiting; 100,000 waiting per channel |
| Pulls | Every 15 minutes to every week; 20 pages; 30 seconds and 10 MB per answer |
| Channel names | 80 characters |
Security and privacy
- Everything goes over HTTPS. Keys are stored only as hashes; pull passwords and tokens are encrypted and never sent back.
- A key belongs to one business. Records always go to the key's business, whatever a request contains, and each business's records are kept apart in the database itself.
- Datara never writes the contents of records into its logs, only counts and IDs. Each batch is audited.
- Send only what the business needs analysed. Leave out personal details Datara doesn't need, such as phone numbers or home addresses. Staff names in a staff list are never shown to Datara's AI.
- More in the privacy policy.
Troubleshooting
| You see | Likely reason |
|---|---|
Every batch stays waiting_for_columns | The first batch's columns were never matched, or each batch has a different set of fields. Ask the Owner to match one on "Your data", and send the same fields each time. |
already_imported though you sent new records | The records match ones already imported. Put an order or waybill number in each record's description. |
A stream ends early with no problem | The connection was open too long. Keep each one under about 90 seconds. |
| A pull fails with "redirect" | The address forwards elsewhere. Enter the final address. |
| A pull fails with "private or local network" | The address points inside a company network. Datara can only reach public addresses; push from inside instead. |
| A pull fails with "web page" | The export link needs a sign-in or isn't the file itself. Publish the file at a direct link. |
| Your requests are challenged or blocked before reaching Datara | Contact us: the import routes must be allowed through Datara's network edge. |
Questions about connecting a system: use "Give feedback" in Datara.