API Documentation
This is the reference for the FinAegis REST API. Each endpoint has a short description and a sample request.
OpenAPI 3.0 Specification
You can import it into Postman, Insomnia or any tool that reads OpenAPI.
Getting Started
The FinAegis API gives programs access to the platform. The platform has 61 domain modules and more than 1,000 API routes. The API follows REST conventions, so each resource has its own predictable address.
The API covers core banking, cross-chain transfers, decentralised finance, reporting modules, mobile payments, the Partner API, ISO 20022, open banking, United States payment rails and AI queries.
Base URL
Core banking endpoints live under /api/v2. Newer modules live under /api/v1 or under their own prefix, as each section below shows.
https://finaegis.org/api/v2
Response Format
Every response is JSON. Most responses use this structure.
{
"data": { ... }, // Main response data
"meta": { ... }, // Metadata (pagination, etc.)
"links": { ... }, // Related links
"errors": [ ... ] // Error details (if any)
}
Authentication
The FinAegis API checks an API key on each request. You create and manage your API keys in your dashboard.
Creating API Keys
- Sign in to your FinAegis account.
- Navigate to API Keys in your dashboard.
- Click "Create New Key" and choose its permissions.
- Copy the key right away, because it is shown only once.
API Key Authentication
Send your API key in the Authorization header.
curl -H "Authorization: Bearer fak_your_api_key_here" \
-H "Content-Type: application/json" \
https://finaegis.org/api/v2/accounts
API Key Security
- Permissions: Give a key only the permissions it needs, from read, write and delete.
- Allowed addresses: Limit a key to the network addresses you name.
- Expiry: Set an expiry date for a temporary key.
- Rotation: Replace your keys at regular intervals.
- Storage: Never commit an API key to version control.
Demo and Self-Hosted Servers
https://finaegis.org/api/v2
Each deployment has its own base URL. The public demo uses test data only. API keys start with fak_.
Accounts
List Accounts
This endpoint lists the accounts of the signed-in user.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v2/accounts
Get Account Details
This endpoint returns one account.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v2/accounts/acct_1234567890
Get Account Balances
This endpoint returns the balance of each asset in an account.
{
"data": {
"account_uuid": "acct_1234567890",
"balances": [
{
"asset_code": "USD",
"available_balance": "1500.00",
"reserved_balance": "0.00",
"total_balance": "1500.00"
},
{
"asset_code": "EUR",
"available_balance": "1200.50",
"reserved_balance": "50.00",
"total_balance": "1250.50"
}
],
"summary": {
"total_assets": 2,
"total_usd_equivalent": "2,850.75"
}
}
}
Transactions
List Transactions
This endpoint lists transactions, one page at a time.
Query Parameters:
page- Page number (default: 1)per_page- Items per page (default: 20, max: 100)asset_code- Filter by asset codestatus- Filter by status
curl -H "Authorization: Bearer your_api_key" \
"https://finaegis.org/api/v2/transactions?page=1&per_page=20"
Deposit Funds
This endpoint adds funds to an account.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"amount": "500.00",
"asset_code": "USD",
"reference": "Initial deposit"
}' \
https://finaegis.org/api/v2/accounts/acct_1234567890/deposit
Withdraw Funds
This endpoint takes funds out of an account.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"amount": "100.00",
"asset_code": "USD",
"reference": "ATM withdrawal"
}' \
https://finaegis.org/api/v2/accounts/acct_1234567890/withdraw
Transfers
Create Transfer
This endpoint creates a transfer between two accounts.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"from_account": "acct_1234567890",
"to_account": "acct_0987654321",
"amount": "100.00",
"asset_code": "USD",
"reference": "Payment for services",
"workflow_enabled": true
}' \
https://finaegis.org/api/v2/transfers
Get Transfer History
This endpoint returns the transfer history of one account.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v2/accounts/acct_1234567890/transfers
Global Currency Unit (GCU)
The GCU endpoints return data about the Global Currency Unit demo. They cover its composition, its value history and its simulated governance. The GCU is a software demonstration. The values, balances and votes these endpoints return are simulated and have no monetary value.
Get GCU Information
This endpoint returns the current composition and value of the GCU demo.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v2/gcu
Get GCU Composition
This endpoint returns each component asset of the demo basket. It shows the current weight, the value and recent changes.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v2/gcu/composition
Response Example:
{
"data": {
"basket_code": "GCU",
"last_updated": "2024-01-15T10:30:00Z",
"total_value_usd": 1.0975,
"composition": [
{
"asset_code": "USD",
"asset_name": "US Dollar",
"asset_type": "fiat",
"weight": 0.35,
"current_price_usd": 1.0000,
"value_contribution_usd": 0.3500,
"percentage_of_basket": 31.89,
"24h_change": 0.00,
"7d_change": 0.00
},
{
"asset_code": "EUR",
"asset_name": "Euro",
"asset_type": "fiat",
"weight": 0.30,
"current_price_usd": 1.0850,
"value_contribution_usd": 0.3255,
"percentage_of_basket": 29.68,
"24h_change": 0.15,
"7d_change": -0.23
}
],
"rebalancing": {
"frequency": "quarterly",
"last_rebalanced": "2024-01-01T00:00:00Z",
"next_rebalance": "2024-04-01T00:00:00Z",
"automatic": true
},
"performance": {
"24h_change_usd": 0.0025,
"24h_change_percent": 0.23,
"7d_change_usd": -0.0050,
"7d_change_percent": -0.45,
"30d_change_usd": 0.0175,
"30d_change_percent": 1.62
}
}
}
Get GCU Value History
This endpoint returns the value history of the GCU demo.
Query Parameters:
period- Time period: 24h, 7d, 30d, 90d, 1y, all (default: 30d)interval- Data interval: hourly, daily, weekly, monthly (default: daily)
curl -H "Authorization: Bearer your_api_key" \
"https://finaegis.org/api/v2/gcu/value-history?period=7d&interval=hourly"
Basket Voting (Simulated)
The voting endpoints of the GCU demo simulate monthly basket "votes".
List Voting Proposals
This endpoint lists the voting proposals. You can filter them by status.
Query Parameters:
status- Filter by status: active, upcoming, past (optional)
curl -H "Authorization: Bearer your_api_key" \
"https://finaegis.org/api/v2/gcu/voting/proposals?status=active"
Get Proposal Details
This endpoint returns one voting proposal.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v2/gcu/voting/proposals/123
Cast Vote
This endpoint casts a vote on a proposal. The voting weight comes from simulated demo balances.
Request Body:
{
"vote": "for" // Options: "for", "against", "abstain"
}
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{"vote": "for"}' \
https://finaegis.org/api/v2/gcu/voting/proposals/123/vote
Get My Voting History
This endpoint returns your votes on all proposals.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v2/gcu/voting/my-votes
Baskets
A basket is a unit made of several assets. You can compose a basket from its assets and decompose it back. The GCU demo is the reference basket.
List Baskets
This endpoint lists the available baskets.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v2/baskets
Get Basket Details
This endpoint returns one basket.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v2/baskets/GCU
Compose Basket
This endpoint turns individual assets into basket units.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"basket_code": "GCU",
"amount": "100.00"
}' \
https://finaegis.org/api/v2/accounts/acct_123/baskets/compose
Decompose Basket
This endpoint turns basket units back into individual assets.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"basket_code": "GCU",
"amount": "50.00"
}' \
https://finaegis.org/api/v2/accounts/acct_123/baskets/decompose
Webhooks
A webhook sends a notification to your server when an event happens on the platform. Only platform administrators can manage webhooks, because a webhook receives every subscribed event.
List Webhook Events
This endpoint lists the event types you can subscribe to.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v2/webhooks/events
Create Webhook
This endpoint creates a webhook. The address must use HTTPS.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/webhook",
"events": ["transaction.created", "transfer.completed"],
"description": "Main webhook endpoint"
}' \
https://finaegis.org/api/v2/webhooks
List Webhooks
This endpoint lists the configured webhooks.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v2/webhooks
Get Webhook Deliveries
This endpoint returns the delivery history of one webhook.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v2/webhooks/webhook_123/deliveries
CrossChain API
The cross-chain API moves tokens between networks. It quotes and starts bridge transfers through adapters for Wormhole, LayerZero and Axelar, and it quotes and runs swaps between networks. Integration adapters for third-party APIs; no partnership or endorsement implied.
6 routes · View in Swagger UI
Bridge Quote
This endpoint asks every available bridge adapter for a quote. You can compare their fees and times.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"from_chain": "ethereum",
"to_chain": "arbitrum",
"token": "USDC",
"amount": "5000.00"
}' \
https://finaegis.org/api/v1/crosschain/bridge/quote
Start a Bridge Transfer
This endpoint starts a bridge transfer from one network to another.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"from_chain": "ethereum",
"to_chain": "polygon",
"token": "USDC",
"amount": "1000.00",
"sender_address": "0x...",
"recipient_address": "0x..."
}' \
https://finaegis.org/api/v1/crosschain/bridge/initiate
Bridge Transfer Status
This endpoint returns the status of a bridge transfer.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v1/crosschain/bridge/{id}/status
Cross-Chain Swap
This endpoint bridges a token and swaps it on the destination network. Ask for a quote first at /v1/crosschain/swap/quote.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"from_chain": "ethereum",
"to_chain": "polygon",
"from_token": "USDC",
"to_token": "WETH",
"amount": "1500.00",
"wallet_address": "0x..."
}' \
https://finaegis.org/api/v1/crosschain/swap/execute
Supported Networks
This endpoint lists the supported networks and the bridges available for each.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v1/crosschain/chains
Decentralised Finance API
The decentralised finance API quotes and runs token swaps across decentralised exchanges. It also lists lending markets, staking positions and protocol rates through adapters for Uniswap, Curve, Aave and Lido. Integration adapters for third-party APIs; no partnership or endorsement implied.
8 routes · View in Swagger UI
Get Swap Quote
This endpoint returns the best swap quote across the supported decentralised exchanges.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{"chain": "ethereum", "from_token": "WETH", "to_token": "USDC", "amount": "2.0"}' \
https://finaegis.org/api/v1/defi/swap/quote
Execute Swap
This endpoint runs a swap through the best route it found.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"chain": "ethereum",
"from_token": "WETH",
"to_token": "USDC",
"amount": "2.0",
"wallet_address": "0x...",
"slippage": 0.5
}' \
https://finaegis.org/api/v1/defi/swap/execute
Decentralised Finance Portfolio
This endpoint returns your decentralised finance positions across networks. It covers lending, staking and pool positions.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v1/defi/portfolio
Lending Markets
This endpoint lists the lending markets the adapters can read.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v1/defi/lending/markets
RegTech API
The RegTech API holds reporting and data-exchange modules. They are modelled on the European markets in financial instruments rules, the European markets in crypto-assets rules and the Travel Rule, and each jurisdiction has its own adapter settings. They do not by themselves make a deployment compliant.
11 routes · View in Swagger UI
Submit a Report
This endpoint builds a report for a jurisdiction and sends it to the configured reporting adapter. The supported jurisdictions are the United States, the European Union, the United Kingdom and Singapore. The request uses the codes US, EU, UK and SG.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"report_type": "transaction_report",
"jurisdiction": "EU",
"report_data": {"transactions": []}
}' \
https://finaegis.org/api/regtech/reports
Check a Crypto-Asset White Paper
This endpoint checks a crypto-asset white paper against a list modelled on the European markets in crypto-assets rules.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"issuer_legal_name": "Example Issuer",
"publication_date": "2026-01-15",
"sections": ["issuer", "rights", "risks"]
}' \
https://finaegis.org/api/regtech/mica/whitepaper/validate
Travel Rule Check
This endpoint tells you which sender and recipient details a transfer needs. The data-exchange module is modelled on the Travel Rule of the Financial Action Task Force.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"amount": 2500,
"currency": "EUR",
"originator": {"name": "Alice Example"},
"beneficiary": {"name": "Bob Example"}
}' \
https://finaegis.org/api/regtech/travel-rule/check
Compliance Summary
This endpoint returns the status of the configured reporting modules and adapters.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/regtech/compliance/summary
Mobile Payment API
The mobile payment API serves the Zelta mobile wallet. It covers payment intents, receipts, the activity feed, receive addresses, non-custodial wallet sends and passkey sign-in.
More than 25 routes · View in Swagger UI
Create Payment Intent
This endpoint creates a payment intent for a merchant payment in USDC or USDT.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"merchantId": "merchant_123",
"amount": 25.00,
"asset": "USDC",
"preferredNetwork": "SOLANA"
}' \
https://finaegis.org/api/v1/payments/intents
Activity Feed
This endpoint returns the wallet activity feed with payments and transfers.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v1/activity
Prepare a Wallet Send
This endpoint returns an unsigned transaction. The device signs it and sends it to /v1/wallet/transactions/submit. The server never sees the private key.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 5f0c..." \
-d '{"quote_id": "..."}' \
https://finaegis.org/api/v1/wallet/transactions/prepare
Passkey Sign-In
This endpoint checks a passkey assertion and signs the user in without a password. Ask for a challenge first at /v1/auth/passkey/challenge.
Partner API
The Partner API serves institutions that build on the platform. It covers the partner profile, usage and billing, branding, embeddable widgets, the integration marketplace and the SDK generator. Each request carries the partner client ID and client secret in the X-Partner-Client-Id and X-Partner-Client-Secret headers.
27 routes · View in Swagger UI
Partner Profile
This endpoint returns the partner profile and its tier.
curl -H "X-Partner-Client-Id: your_client_id" \
-H "X-Partner-Client-Secret: your_client_secret" \
https://finaegis.org/api/partner/v1/profile
Generate a Starter SDK
This endpoint builds a starter client in one language from templates. It needs the Growth or Enterprise tier.
curl -X POST \
-H "X-Partner-Client-Id: your_client_id" \
-H "X-Partner-Client-Secret: your_client_secret" \
-H "Content-Type: application/json" \
-d '{"language": "typescript"}' \
https://finaegis.org/api/partner/v1/sdk/generate
Update Branding
This endpoint updates the colours, logo and company name used in the partner widgets.
curl -X PUT \
-H "X-Partner-Client-Id: your_client_id" \
-H "X-Partner-Client-Secret: your_client_secret" \
-H "Content-Type: application/json" \
-d '{"company_name": "Acme Finance", "primary_color": "#1E40AF"}' \
https://finaegis.org/api/partner/v1/branding
Usage Summary
This endpoint returns the API usage for the current billing period.
curl -H "X-Partner-Client-Id: your_client_id" \
-H "X-Partner-Client-Secret: your_client_secret" \
https://finaegis.org/api/partner/v1/usage
SMS API
The SMS API sends text messages through VertexSMS. Each message is paid for separately through the Machine Payments Protocol, so you need no prepaid credit and no invoice. The protocol offers several payment rails, such as USDC, Stripe and Lightning. Integration adapters for third-party APIs; no partnership or endorsement implied.
4 routes · View in Swagger UI
Send SMS (Payment-Gated)
This endpoint sends a text message to a phone number. The first request returns 402 Payment Required with the payment rails and the price. After you pay, the message is sent and you get a receipt.
# Step 1: Get payment challenge (returns 402)
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"to": "+37069912345",
"from": "Zelta",
"message": "Hello from Zelta!"
}' \
https://finaegis.org/api/v1/sms/send
# Step 2: Pay via chosen rail, then resend with payment proof
curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Payment ..." \
-d '{
"to": "+37069912345",
"from": "Zelta",
"message": "Hello from Zelta!"
}' \
https://finaegis.org/api/v1/sms/send
# Response:
# {
# "success": true,
# "data": {
# "message_id": "1281532560",
# "status": "sent",
# "parts": 1,
# "destination": "+37069912345",
# "price_usdc": "48000"
# }
# }
Check SMS Rates
This endpoint returns the price of one message to a country, given as a two-letter ISO 3166-1 country code. The rate comes from VertexSMS in euros. It is converted to USDC in its smallest unit, with six decimals, so 48000 means $0.048.
curl "https://finaegis.org/api/v1/sms/rates?country=LT"
# Response:
# {
# "data": {
# "country": "Lithuania",
# "country_code": "LT",
# "rate_eur": "0.0390",
# "rate_usdc": "48438"
# }
# }
Check Delivery Status
This endpoint returns the delivery status of a message you sent. You must be signed in. The status is pending, sent, delivered or failed.
curl -H "Authorization: Bearer your_api_key" \
"https://finaegis.org/api/v1/sms/status/1281532560"
# Response:
# {
# "success": true,
# "data": {
# "message_id": "1281532560",
# "status": "delivered",
# "delivered_at": "2026-04-17T12:01:05+00:00",
# "payment_status": "settled"
# }
# }
Service Info
This endpoint returns the service status, the active provider, whether test mode is on and the supported payment networks.
curl "https://finaegis.org/api/v1/sms/info"
# Response:
# {
# "data": {
# "provider": "vertexsms",
# "enabled": true,
# "test_mode": false,
# "networks": ["eip155:8453", "eip155:1"]
# }
# }
MCP Tool: sms.send
AI agents can send text messages through the Model Context Protocol server. The sms.send tool costs a fixed amount per message, and that amount counts against the daily spending limit that the user set when they approved the app. The tool is off by default outside demo and test environments.
{
"tool": "sms.send",
"input": {
"to": "+37069912345",
"from": "Zelta",
"message": "Hello from AI"
}
}
AI Query API
The AI query API answers questions about your transactions. You ask in plain language, and the API turns the question into filters and returns the matching transactions.
2 routes · View in Swagger UI
Transaction Query
This endpoint takes a question in plain language about your transactions.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{"query": "What were my largest transactions last month?"}' \
https://finaegis.org/api/ai/query/transactions
Spending Analysis
This endpoint groups your spending by category, merchant and time.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{}' \
https://finaegis.org/api/ai/query/spending-analysis
GraphQL API
The GraphQL API is built with Lighthouse PHP from a written schema. It offers queries and mutations for 43 domains. Subscriptions send live updates over WebSocket, and DataLoaders batch the database reads.
45 schema files for 43 domains · Queries, Mutations, Subscriptions
Execute GraphQL Query / Mutation
This endpoint runs a GraphQL query or mutation against the combined schema. The schema files are listed in graphql/schema.graphql.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"query": "{ accounts(first: 10) { data { id name currency balance { available total } } } }"
}' \
https://finaegis.org/api/graphql
Example Query:
query {
accounts(first: 10) {
data {
id
name
currency
balance {
available
total
}
}
paginatorInfo {
total
currentPage
lastPage
}
}
}
Exploring the Schema
The server does not host a GraphQL playground. You can send an introspection query from any GraphQL client to see the types, queries, mutations and subscriptions.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{"query": "{ __schema { types { name } } }"}' \
https://finaegis.org/graphql
Available Subscriptions
These subscriptions send live updates over WebSocket.
orderBookUpdated(pair: String!)sends order book changes for a trading pair.tradeExecuted(pair: String!)sends each trade on a trading pair.orderMatched(pair: String)sends matched orders.walletBalanceUpdated(wallet_id: ID!)sends wallet balance changes.portfolioRebalanced(portfolio_id: String)sends treasury portfolio rebalancing.paymentStatusChanged(payment_id: ID)sends payment status changes.bridgeTransferCompleted(transfer_id: ID)sends completed bridge transfers.
Event Streaming and Live Dashboard
Event streaming publishes domain events to Redis Streams. The live dashboard endpoints report on domain health, event throughput, stream status and how far each projector lags behind.
5 endpoints · Redis Streams
Dashboard Overview
This endpoint returns all dashboard figures in one response.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v1/monitoring/live-dashboard
Domain Health
This endpoint returns the health of each event-sourced domain.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v1/monitoring/live-dashboard/domain-health
Event Throughput
This endpoint returns how many events each domain processes.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v1/monitoring/live-dashboard/event-throughput
Stream Status
This endpoint returns the state of the Redis Streams and their consumer groups.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v1/monitoring/live-dashboard/stream-status
Projector Lag
This endpoint shows how far each read model projector is behind the latest events.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v1/monitoring/live-dashboard/projector-lag
ISO 20022 API
The ISO 20022 module reads, writes and checks ISO 20022 payment messages. It supports eight message types: pain.001, pain.008, pacs.008, pacs.002, pacs.003, pacs.004, camt.053 and camt.054. The checks cover well-formed XML and the required fields of each type. These modules are reference implementations at the message and logic layer. They run in demo mode, are switched off on the production site and have no live scheme connection or settlement.
Parse Message
This endpoint reads an ISO 20022 XML message and returns it as structured JSON.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{"xml": "<Document>...</Document>"}' \
https://finaegis.org/api/v1/iso20022/parse
Generate Message
This endpoint builds an ISO 20022 XML message from JSON data.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{"message_type":"pacs.008","data":{"amount":"1000.00","currency":"EUR","debtor":"...","creditor":"..."}}' \
https://finaegis.org/api/v1/iso20022/generate
Validate Message
This endpoint checks that an ISO 20022 XML message is well formed and has the required fields for its type.
Open Banking API
The open banking module manages consents for account information and payment initiation services. It is modelled on the European Union's second Payment Services Directive. It has adapters for the Berlin Group NextGenPSD2 standard and for the United Kingdom Open Banking standard. It also stores the certificates that third-party providers register with and checks that they are well formed. These modules are reference implementations at the message and logic layer. They run in demo mode, are switched off on the production site and have no live bank connections.
Create Consent
This endpoint creates a consent request for account access or payment initiation.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{"tpp_id":"tpp_123","permissions":["ReadAccountsBasic","ReadBalances","ReadTransactionsBasic"]}' \
https://finaegis.org/api/v1/open-banking/consents
Get Account Information
This endpoint lists the accounts covered by an active account information consent.
Initiate Payment
This endpoint starts a payment under an active payment initiation consent.
Payment Rails API
The payment rails module holds message formats and routing logic for United States and European rails. It covers Automated Clearing House files in the NACHA format, Fedwire, Real-Time Payments, FedNow, SEPA Direct Debit and SEPA Instant Credit Transfer. The router picks a rail from the amount, the currency, the country and the urgency. These modules are reference implementations at the message and logic layer. They run in demo mode, are switched off on the production site and have no live scheme connection or settlement.
Send a Payment
This endpoint sends a payment through the rail the router picks.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"amount": "500.00",
"currency": "USD",
"country": "US",
"urgency": "normal",
"beneficiary": {"name": "Acme Inc", "account_number": "...", "routing_number": "..."}
}' \
https://finaegis.org/api/v1/payment-rails/send
Supported Rails
This endpoint lists the rails available for a country.
Payment Status
This endpoint returns the status of a payment.
Interledger API
The Interledger module moves value between networks. It includes an Interledger connector, Open Payments with authorisation through the Grant Negotiation and Authorization Protocol, and quotes between currencies. Only platform operators can use the quote, payment and connection endpoints. These modules are reference implementations at the message and logic layer. They run in demo mode, are switched off on the production site and have no live scheme connection or settlement.
Get Quote
This endpoint returns a quote between two currencies, including fees and the exchange rate.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{"send_asset": "USD", "receive_asset": "EUR", "send_amount": 100.00}' \
https://finaegis.org/api/v1/interledger/quotes
Send Payment
This endpoint sends an Interledger payment with a quote you got earlier. Incoming payments use /api/v1/interledger/payments/incoming.
Ledger API
The ledger module does double-entry accounting. It keeps a chart of accounts, posts journal entries, produces trial balances and applies posting rules to the general ledger. An optional TigerBeetle driver handles very high volumes.
Chart of Accounts
This endpoint returns the chart of accounts.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v1/ledger/accounts
Post Journal Entry
This endpoint posts a journal entry with at least two lines. The debits must equal the credits.
Trial Balance
This endpoint returns a trial balance.
Microfinance API
The microfinance module supports lending to small groups. It covers groups with joint liability, loan provisioning by days overdue, cooperative share accounts, teller cash work, field officer tools and savings products that track dormant accounts. These modules are reference implementations at the message and logic layer. They run in demo mode, are switched off on the production site and have no live scheme connection or settlement.
Create Loan Group
This endpoint creates a lending group. Members are added afterwards at /api/v1/microfinance/groups/{id}/members.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{"name": "Village Savings Group A", "frequency": "weekly", "meeting_day": "Tuesday"}' \
https://finaegis.org/api/v1/microfinance/groups
Loan Provisioning
This endpoint returns the loan loss provisions. Each loan falls into a category by how many days it is overdue, and each category has its own rate.
Share Accounts
This endpoint opens a cooperative share account for a member. Members buy and redeem shares through the purchase and redeem endpoints.
x402 Protocol API
The x402 protocol lets an API charge small payments in USDC over plain HTTP. A paid endpoint answers an unpaid request with HTTP 402 and the payment terms. AI agents can pay on their own within spending limits, and payments can settle on several networks.
15 endpoints · View in Swagger UI
Protocol Status
This endpoint returns the x402 status, the supported networks and assets, and whether the facilitator is reachable.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v2/x402/status
Supported Networks
This endpoint lists the networks and assets that x402 payments can settle on.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v2/x402/supported
Monetized Endpoints
This endpoint registers an API endpoint as paid and sets its price.
curl -X POST \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"path": "/v2/premium/data",
"price_usd_cents": 100,
"network": "eip155:8453",
"asset": "USDC",
"description": "Premium market data"
}' \
https://finaegis.org/api/v2/x402/endpoints
Payment History
This endpoint returns the x402 payment history and the settlement status of each payment.
curl -H "Authorization: Bearer your_api_key" \
"https://finaegis.org/api/v2/x402/payments?page=1&per_page=20"
Spending Limits
This endpoint shows and manages the spending limits for automatic x402 payments, including AI agent budgets.
curl -H "Authorization: Bearer your_api_key" \
https://finaegis.org/api/v2/x402/spending-limits
Handling 402 Responses
A client that calls a paid endpoint without paying gets HTTP 402. The PAYMENT-REQUIRED header holds the payment terms, encoded in base64. The client signs a payment and sends it back in the PAYMENT-SIGNATURE header. After settlement, the response carries a PAYMENT-RESPONSE header.
HTTP/1.1 402 Payment Required
PAYMENT-REQUIRED: eyJ4NDAyVmVyc2lvbiI6Mi... (base64-encoded payment terms)
X-Payment-Protocol: x402
X-Payment-Version: 2
JavaScript Client Example:
// /api/v1/paid/data stands for any endpoint you registered as paid
const response = await fetch('https://finaegis.org/api/v1/paid/data', {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
if (response.status === 402) {
// Decode the payment terms
const terms = JSON.parse(atob(response.headers.get('PAYMENT-REQUIRED')));
// Sign a payment that matches the terms, then retry with it
const signed = await signPayment(terms);
const paid = await fetch('https://finaegis.org/api/v1/paid/data', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'PAYMENT-SIGNATURE': signed
}
});
const data = await paid.json(); // 200 and the data
}
Rate Limits
Every API request is rate limited. Each type of endpoint has its own limit per user in a 60-second window. These are the default values, and an operator can change them.
| Endpoint Type | Limit |
|---|---|
| Read requests | 100 requests/minute |
| Transactions | 30 requests/minute |
| Sign-in | 3 requests/minute |
| Public endpoints | 60 requests/minute |
| Administration | 200 requests/minute |
| Incoming webhooks | 1,000 requests/minute |
| GraphQL, signed in | 120 queries/minute |
| GraphQL, guest | 30 queries/minute |
Rate-limited responses carry these headers.
X-RateLimit-Limit is the number of requests allowed in the window.X-RateLimit-Remaining is the number of requests left in the current window.X-RateLimit-Reset is the Unix time when the window starts again.Quick Links
Platform API Areas
- CrossChain6 routes
- Decentralised Finance8 routes
- RegTech11 routes
- Mobile PaymentMore than 25 routes
- Partner API27 routes
- AI Query2 routes
- GraphQL43 domains
- Event Streaming5 endpoints
- x402 Protocol15 endpoints
- ISO 200228 msg types
- Open BankingConsents and payments
- Payment RailsACH/Fedwire/SEPA
- InterledgerQuotes and payments
- LedgerDouble-entry
- MicrofinanceGroup lending
OpenAPI Specification
You can download the OpenAPI specification or open it in the interactive explorer.
You can import the JSON file into Postman, Insomnia or any tool that reads OpenAPI.