Documentation

Import API

Send data from your own systems into a company workspace. Each company creates its own keys.

1. Create a key

Sign in to a company account, open Workspace, then Integrations, and create a key. The key is shown once. Copy it. You can have 5 active keys and revoke any of them.

2. Send records as JSON

curl -X POST "https://calerio.wazayef-callcenter.workers.dev/api/ingest?name=Daily%20sales&dept=Finance" \
  -H "Authorization: Bearer cal_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"records":[{"date":"2026-11-20","kind":"revenue","item":"cement","party":"Nile Shop","qty":10,"amount":5000,"currency":"EGP","terms":"cash"}]}'

3. Or send a CSV file

curl -X POST "https://calerio.wazayef-callcenter.workers.dev/api/ingest?name=November" \
  -H "Authorization: Bearer cal_YOUR_KEY" \
  -H "Content-Type: text/csv" \
  --data-binary @sales.csv

4. Or send plain text

Content-Type text/plain, or JSON with a text field. The AI reads it, so it uses the free daily allowance.

Pull from your server on a schedule

In Workspace, Integrations, add a source: an https link to a CSV or JSON file on your own server, an optional Authorization header (stored encrypted), and an interval of 3, 6 or 24 hours. Calerio fetches it, saves a new analysis with no AI, and skips content identical to the last run. Limits: https and public host names only (no IP addresses, no localhost, no private networks, no custom ports), 600 KB per file, 10 seconds per fetch, 3 sources per company. Runs happen on a 3-hour cycle, so the chosen interval is a minimum, not an exact time. Use Run now to test a link at any time.

Push from a server with the script

Download calerio_push.py (Python 3, no packages). Run python3 calerio_push.py sales.csv cal_YOUR_KEY Sales from cron on Linux or Mac, or from Task Scheduler on Windows. It uses the import API, so the same 100 requests per key per day apply.

Not available

  • Ready-made connectors for QuickBooks, Odoo, SAP or similar systems.
  • Direct database connections.
  • Reading a company mailbox.

The Windows and Mac apps open the same web app, so all connection methods work the same in them.

Record fields

FieldMeaning
kindRequired. revenue, expense, collection, return or other.
amountRequired. A number above zero.
dateOptional. YYYY-MM-DD. Also read: DD/MM/YYYY, YYYY/MM/DD and Excel date numbers.
item, partyOptional. Product and customer or supplier.
qty, currencyOptional.
termsOptional. cash or credit. Needed for receivables aging.

CSV column names are matched in English or Arabic, for example date, kind, item, party, qty, amount, currency, terms.

Responses

CodeMeaning
200Saved. Returns analysis_id and the number of records.
202The free AI allowance is used up. The text is queued and runs after 00:00 UTC.
400Bad JSON, no valid records, or CSV without kind and amount columns.
401Missing, wrong or revoked key.
413 / 415Body too large, or unsupported content type.
429Daily limit reached for this key, or the queue is full.

Limits

  • 100 requests per key per day. Resets at 00:00 UTC.
  • Up to 600,000 bytes per request and 2,000 records per request.
  • Up to 5 active keys per company.
  • Excel files are not accepted by the API. Import them from the Integrations tab, or save them as CSV.
  • There are no ready-made connectors to named accounting systems. Any system that can send an HTTP request can use the API.

Get a key.

Company accounts only.

Create a company account
© 2026 Osama Mohamed. All rights reserved.