This is a demo. Its data may be reset from time to time.
Sandbox
Documentation for v7.18.1, with 61 domain modules and more than 1,000 API routes

Build with More Than 1,000 API Routes

You can use REST, GraphQL, WebSockets and a command-line tool. They give you access to payments, lending, compliance tooling and the other modules.

Version 7.18.1 is out. Asset transfers, wallet currency conversions and Global Currency Unit demo trades now book the right amounts. The daily spending limit a person sets when connecting an AI assistant is now saved. The identity check in the closed card pilot now starts, and adding money to a card stays switched off. Version 7.18.0 added the provider-neutral card layer. It also removed the liquidity add, remove and rebalance flow and the saved bank accounts on the withdrawal page, because they never worked.

Quick Start Guide

You can run FinAegis on your own computer in three steps.

1

Clone Repository

Get the source code from GitHub.

Terminal
$ git clone https://github.com/FinAegis/core-banking-prototype-laravel.git
$ cd core-banking-prototype-laravel
2

Install & Configure

Set up your development environment.

Terminal
$ composer install
$ cp .env.example .env
$ php artisan key:generate
$ php artisan migrate
3

Start Building

Check that the API is running, then make your first request.

cURL
# Verify the API is running (no auth needed)
$ curl http://localhost:8000/api/health
# {"status":"healthy","checks":{"database":true,"cache":true,"app":true},...}
# Make an authenticated request
$ curl -H "Authorization: Bearer YOUR_API_KEY" \
http://localhost:8000/api/v2/accounts

API Overview

The REST API follows common conventions and is described in an OpenAPI reference.

Authentication

The API uses bearer tokens for authentication. You can create an API key in the dashboard after you register.

JavaScript
const headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
'Accept': 'application/json'
};
// Example API call
fetch('https://finaegis.org/api/v2/accounts', {
method: 'GET',
headers: headers
})
.then(response => response.json())
.then(data => console.log(data));

Rate Limiting

Each type of request has its own limit per minute. The limits keep the platform fair and stable.

Queries 100/min
Transactions 30/min
Sign-in attempts 3/min

Responses carry rate limit headers, so you can see how many requests remain. Operators can change each limit in the configuration.

API Versioning

Most endpoints carry a version in the path, such as v1 or v2. A new version can change an endpoint without breaking older clients.

Webhooks

Webhooks notify your systems about transactions, account changes and system events as they happen.

Official Client Libraries

Official client libraries exist for JavaScript, Python and PHP.

JavaScript Python PHP

Platform API Areas

These cards show the main API areas of the 61 domain modules. Integration adapters for third-party APIs; no partnership or endorsement implied.

Cross-Chain

6 routes

Bridge adapters for Wormhole, LayerZero and Axelar compare fees and run cross-chain swaps. The API also tracks portfolios across chains.

View endpoints →

Decentralised Finance

8 routes

Swaps run through Uniswap and Curve, lending through Aave and staking through Lido. The API also covers flash loans and portfolio management.

View endpoints →

Regulatory Reporting

11 routes

These endpoints build reports in the formats of the Markets in Financial Instruments Directive, the Markets in Crypto-Assets Regulation and the Travel Rule. Each jurisdiction has its own adapter.

View endpoints →

Mobile Payment

15+ routes

The mobile endpoints handle payment intents, receipts, the activity feed, receive addresses and peer-to-peer transfers. People sign in with passkeys or biometrics.

View endpoints →

Partner API

28 routes

Banking-as-a-service partners can generate client libraries, set their own branding and embed widgets. They can also see their usage and bills.

View endpoints →

AI Query

2 routes

You can ask about transactions in plain language. The query endpoint answers with financial insights.

View endpoints →

GraphQL API

43 domains

The schema-first GraphQL API is built with Lighthouse PHP. It has queries, mutations and subscriptions across 43 domains, and it batches database queries.

View endpoints →

Event Streaming

5 endpoints

Domain events are published to Redis Streams and read by consumer groups. A live dashboard shows projector lag and throughput.

View endpoints →

SMS

4 endpoints · paid per message

You can send SMS messages through VertexSMS and pay for each one with USDC, Stripe or Lightning. The API tracks delivery and shows the rate for each country. A Model Context Protocol tool can send messages too.

View endpoints →

x402 Protocol

15+ endpoints

An API can ask for a small USDC payment before it answers, so you can charge for your own APIs. REST and GraphQL endpoints manage it, and AI agents can pay on their own.

View endpoints →

ISO 20022

8 message types

The API reads, builds and validates eight ISO 20022 message types from the pacs, pain and camt families. It works at the message layer and does not connect to a live scheme.

View endpoints →

Open Banking

Consents · Accounts · Payments

The API manages consents, account access and payment initiation under the European Union's second Payment Services Directive. It includes adapters for the Berlin Group standard and the United Kingdom Open Banking standard, and it runs in demo mode.

View endpoints →

Payment Rails

ACH · Fedwire · SEPA · RTP · FedNow

These modules build messages for the Automated Clearing House network, Fedwire, Real-Time Payments, FedNow and SEPA. Routing logic picks a rail for each payment. They do not settle real payments.

View endpoints →

Interledger

Connector · Open Payments · Quotes

The Interledger connector moves value between networks and quotes across currencies. It supports Open Payments with its own authorisation protocol.

View endpoints →

Ledger

Double-entry accounting

The ledger keeps double-entry books with a chart of accounts and journal entries. It posts to the general ledger and produces a trial balance. An optional TigerBeetle driver handles high volumes.

View endpoints →

Microfinance

Group lending · Provisions · Tellers

The API supports group loans, loan-loss provisions by days overdue, share accounts, teller work and savings accounts.

View endpoints →

Explore payment features: x402 Protocol · Machine Payments · Zelta CLI · SMS API

1,000+

API Routes

61

Domain Modules

3

Official Libraries

Apache-2.0

Open Source

43

GraphQL Domains

Partner API Authentication

Banking-as-a-service partners use their own client credentials. These credentials work only on the partner API.

Partner Credentials

Each partner gets a client ID and a client secret during onboarding. They give access to the partner endpoints for client library generation, branding, widgets, usage and billing.

Base Path /api/partner/v1
Areas Client libraries, branding, widgets, usage and billing
Rate Limit 60 to 1,000 requests per minute by tier
Address Allowlist Applied when set

Partner Request Example

Send the client ID in the X-Partner-Client-Id header and the secret in the X-Partner-Client-Secret header.

cURL
$ curl "https://finaegis.org/api/partner/v1/profile" \
-H "X-Partner-Client-Id: YOUR_CLIENT_ID" \
-H "X-Partner-Client-Secret: YOUR_CLIENT_SECRET" \
-H "Accept: application/json"

Get an API Key

Create a sandbox account to get an API key. The source code and the issue tracker are on GitHub.

Code Examples

These examples show common requests.

Create a New Account

Open a new account with an initial balance.

JavaScript
const createAccount = async () => {
    const response = await fetch('https://finaegis.org/api/v2/accounts', {
        method: 'POST',
        headers: {
            'Authorization': 'Bearer YOUR_API_KEY',
            'Content-Type': 'application/json'
        },
        body: JSON.stringify({
            customer_id: 'cust_123456',
            currency: 'USD',
            initial_balance: 1000.00,
            account_type: 'checking'
        })
    });
    
    const account = await response.json();
    console.log('Account created:', account);
};

Transfer Funds

Move money between two accounts.

Python
import requests

def transfer_funds(from_account, to_account, amount):
    url = "https://finaegis.org/api/v2/transfers"
    headers = {
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json"
    }
    
    payload = {
        "from_account_id": from_account,
        "to_account_id": to_account,
        "amount": amount,
        "currency": "USD",
        "description": "Payment transfer"
    }
    
    response = requests.post(url, json=payload, headers=headers)
    return response.json()

# Execute transfer
result = transfer_funds("acc_123", "acc_456", 250.00)
print(f"Transfer ID: {result['transfer_id']}")

Read the Global Currency Unit Demo Basket

This request reads the simulated basket of the Global Currency Unit demo. The unit has no monetary value and is not issued or sold.

PHP
<?php
$endpoint = 'https://finaegis.org/api/v2/gcu/composition';

$ch = curl_init($endpoint);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Accept: application/json']);

$response = curl_exec($ch);
$result = json_decode($response, true);

foreach ($result['data']['composition'] as $component) {
    echo $component['asset_code'] . ': ' . $component['weight'] . "\n";
}

Handle Webhooks

Check the signature, then handle each transaction event.

Node.js
const express = require('express');
const crypto = require('crypto');

const app = express();
app.use(express.json());

app.post('/webhooks', (req, res) => {
    // Verify webhook signature
    const signature = req.headers['x-webhook-signature'];
    const payload = JSON.stringify(req.body);
    const secret = process.env.WEBHOOK_SECRET;
    
    const expectedSignature = crypto
        .createHmac('sha256', secret)
        .update(payload)
        .digest('hex');
    
    if (signature !== expectedSignature) {
        return res.status(401).send('Invalid signature');
    }
    
    // Process the webhook
    const { event, data } = req.body;
    
    switch (event) {
        case 'transaction.completed':
            console.log(`Transaction ${data.id} completed`);
            // Handle completed transaction
            break;
        case 'account.created':
            console.log(`New account created: ${data.account_id}`);
            // Handle new account
            break;
    }
    
    res.status(200).send('OK');
});