Skip to content
mercenta.Docs

Documentation

Build & integrate

Endpoints

Implemented portal, integration, Aomi agent, and liquidity settlement APIs.

API Endpoints

Mercenta provides a tiered API architecture for portal operations, machine integrations, autonomous AI agents, and cross-chain liquidity.


1. Aomi Agent & Autonomous Skill APIs

Public programmatic interfaces for autonomous AI agents, Claude Code, Cursor, OpenCode, Hermes, and build.aomi.dev:

MethodEndpointDescription
GET/api/aomi/manifestReturns Aomi App manifest, contract addresses, and tool schemas
POST/api/aomi/toolsDispatches autonomous tool execution (mercenta_catalog, mercenta_quote, mercenta_checkout, mercenta_treasury_sweep, mercenta_crosschain_topup)

2. Treasury & Liquidity Routing APIs

Programmatic liquidity management, cross-chain deposit routing, and automated yield sweeps:

MethodEndpointDescription
POST/api/treasury/sweepExecutes autonomous yield sweeps of idle revenue into Morpho Blue Arc Vault with reserve floor protection
GET/api/liquidity/crosschain-quoteCalculates zero-slippage Circle CCTP V2 deposit quotes (Base, Solana, Arbitrum, Polygon, Ethereum → Arc)

3. Telegram Commerce APIs

APIs powering @mercentabot and the mobile Telegram Web App storefront:

MethodEndpointDescription
POST/api/telegram/botTelegram Webhook handler for bot commands, language toggle, and deep-linking
GET/api/telegram/ordersRetrieves authenticated mobile order history and delivery verification status

4. Integration API (Scoped API Keys)

Protected by HMAC and API keys configured in the merchant portal:

MethodEndpointScope
GET/api/v1/accountaccount:read
GET/api/v1/dashboard?period=30daccount:read
GET/api/v1/orders?period=all&page=1&pageSize=25orders:read
POST/api/v1/ordersorders:create

Example test order body:

{
  "requestId": "00000000-0000-4000-8000-000000000001",
  "productId": "test-creator",
  "quantity": 1,
  "reference": "my-test-1"
}

Generate a new UUID for each distinct request. Retrying the same request uses the same UUID and unchanged body.


5. Portal API

Wallet session and same-origin request protection are required:

MethodEndpoint
GET/api/account/summary
GET/api/account/dashboard
GET / POST/api/account/orders
GET/api/account/funds
GET/api/account/transactions
GET/api/account/catalog
POST/api/account/deposits
POST/api/account/deposits/:id/verify
GET / POST/api/account/keys
POST/api/account/keys/:id/revoke