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.
Quick Start Guide
You can run FinAegis on your own computer in three steps.
Clone Repository
Get the source code from GitHub.
Install & Configure
Set up your development environment.
Start Building
Check that the API is running, then make your first request.
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.
Rate Limiting
Each type of request has its own limit per minute. The limits keep the platform fair and stable.
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.
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 routesBridge 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 routesSwaps 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 routesThese 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+ routesThe 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 routesBanking-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 routesYou can ask about transactions in plain language. The query endpoint answers with financial insights.
View endpoints →GraphQL API
43 domainsThe 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 endpointsDomain 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 messageYou 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+ endpointsAn 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 typesThe 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 · PaymentsThe 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 · FedNowThese 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 · QuotesThe Interledger connector moves value between networks and quotes across currencies. It supports Open Payments with its own authorisation protocol.
View endpoints →Ledger
Double-entry accountingThe 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 · TellersThe 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
Developer Resources
These resources help you build on the platform.
Model Context Protocol Tools
13 tools and 4 resources behind an OAuth 2.1 sign-in. Any client that follows the specification can connect.
Explore the tools →API Documentation
The reference describes the API endpoints.
Explore API →Client Libraries
Official client libraries exist for JavaScript, Python and PHP.
View SDKs →Code Examples
Worked examples show common integrations.
See Examples →API Routes
Domain Modules
Official Libraries
Open Source
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.
/api/partner/v1
Partner Request Example
Send the client ID in the X-Partner-Client-Id header and the secret in the X-Partner-Client-Secret header.
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.
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.
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
$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.
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');
});