This tool uses the Redbark REST API, which is in beta. Behaviour may change as the API evolves.
This is a self-hosted Docker tool. You run it on your own infrastructure alongside your Sure instance.
Prerequisites
- A running Sure instance
- Docker installed on your machine or server
- A Redbark account with connected bank accounts
- A Redbark API key
- A Sure API key with
read_writescope
Setup
1
Get a Redbark API key
Plan required: Developer or Professional. API access is not available on the Saver plan.
2
Get a Sure API key
Log into your Sure instance, go to Settings > Security > API Keys, and create a key with
read_write scope.3
Find your Redbark account IDs
Run the tool with
--list-redbark-accounts to see your connected accounts and their IDs:4
Find your Sure account IDs
Run with
--list-sure-accounts to see your Sure accounts:5
Create your account mapping
Map each Redbark account to a Sure account using the format
redbark_id:sure_id, comma-separated:6
Configure environment variables
Create a
.env file with your configuration:7
Dry run
Preview what would be imported without writing any changes:
8
Sync
Run the sync:
Configuration
Environment variables
Category mapping (optional)
Map Redbark transaction categories to Sure category UUIDs:
Not all transactions have a category. Categories are assigned by the bank via CDR enrichment and may vary by institution.
Run
--list-sure-categories to find your Sure category UUIDs. Categories that don’t match a mapping are included in the transaction notes for reference.
CLI flags
Running with Docker
Docker run
Docker Compose
Kubernetes CronJob
Scheduling
Use cron or your orchestrator’s scheduling to run syncs automatically:How deduplication works
Each synced transaction is tagged with a machine-readable marker in the Sure transaction notes:- Exact match: searches existing Sure transactions for
[redbark:<id>]in the notes field - Fingerprint match: compares date + amount + normalised name to catch manually imported transactions
Exit codes
Troubleshooting
Connection refused to Sure Make sure your Sure instance is running and reachable from the Docker container. If both services are in the same Docker Compose stack, use the service name (e.g.http://sure:3000) rather than localhost.
Invalid API key
Double-check your SURE_API_KEY has read_write scope. Read-only keys cannot create transactions.
Account not found
Verify your account mapping using --list-redbark-accounts and --list-sure-accounts. Redbark account IDs look like acc_abc123 and Sure account IDs are UUIDs.
Category mapping issues
Use --list-sure-categories to find the correct category UUIDs. Unmapped categories are included in the transaction notes rather than being lost.
Security
Your Redbark API key is only sent over HTTPS. Your Sure API key is sent to your own infrastructure. Never bake secrets into Docker images. Use
--env-file, Docker Secrets, or Kubernetes Secrets. The tool is stateless and stores no transaction data locally.