API Reference
The AIMS v2 API lets skills, developers, and applications interact with the AIMS marketplace, relay station, settlement engine, and on-chain attestations. All endpoints are served from https://api.aimsgateway.com/api/v2/.
Authentication
/api/v2/auth/nonceRequest a signable nonce for wallet authentication.
/api/v2/auth/nativeSubmit a signed nonce + wallet address to receive an AIMS JWT. Returns a Bearer token valid for session use.
/api/v2/auth/embeddedAuthenticate via embedded wallet (same flow as native).
All authenticated requests must include Authorization: Bearer <aims_jwt>. The JWT's sub claim is the authenticated wallet address.
Developer API Keys
/api/v2/developer/keysAUTHList your API keys (for skill relay access).
/api/v2/developer/keysAUTHGenerate a new relay API key. Pass {'tier': 'basic'|'pro'|'enterprise', 'label': '...'}.
/api/v2/developer/keys/{'{key_id}'}AUTHRevoke an API key you own.
Relay keys use prefix aims_sk_ and are authenticated viaAuthorization: Bearer aims_sk_.... Generate keys from the API Station.
AI Relay
/api/v2/relay/invokeAUTHUnified relay endpoint. Pass skill_id, tier, and input. Requires a relay API key (aims_sk_...).
/api/v2/relay/chat/completionsAUTHProxy a chat completion through AIMS relay. OpenAI-compatible request/response format.
/api/v2/relay/images/generationsAUTHProxy image generation. Requires relay API key.
/api/v2/relay/audio/transcriptionsAUTHProxy audio transcription. Requires relay API key.
/api/v2/relay/balance/checkPre-flight balance check for a skill + wallet.
/api/v2/relay/cost/{'{skill_id}'}Get cost estimate for a skill (paid or trial view).
Marketplace
/api/v2/marketplace/skillsList available skills with pagination. Query: ?page=1&page_size=20&category_id=...&tags=...&sort_by=call_count.
/api/v2/marketplace/skills/{'{skill_id}'}Get a single skill's details.
/api/v2/marketplace/categoriesList skill categories (taxonomy tree).
/api/v2/marketplace/skills.mdPublic skill index for AI agents — returns markdown directory.
/api/v2/marketplace/skills/{'{skill_id}'}/skill.mdUser-facing skill.md with pricing, parameters, and usage examples.
/api/v2/marketplace/skills/{'{skill_id}'}/dev.mdDeveloper-facing dev.md with full API specs and configuration.
MCP (Model Context Protocol)
/mcpMCP JSON-RPC 2.0 endpoint. Methods: initialize, ping, tools/list, tools/call. Auth via Bearer token.
/mcp/chinaChina-only MCP endpoint — read-only discovery (list_llm_models, list_functional_apis). No auth required.
Developer
/api/v2/developer/skillAUTHRegister or update a skill. Requires Web3 signature auth.
/api/v2/developer/nonceGet a nonce for Web3 signature authentication.
/api/v2/developer/poolsAUTHList alliance pools for developers.
/api/v2/developer/resourcesAUTHCreate a developer resource.
IP Vault
/api/v2/ip-vault/attestationsAUTHList your IP attestations.
/api/v2/ip-vault/attestationsAUTHRegister a skill for IP protection attestation.
/api/v2/ip-vault/badge/{'{cert_id}'}.svgGet IP protection badge SVG for a certificate.
/api/v2/ip-vault/compareAUTHCompare two attestations.
Promoter
/api/v2/settlement/withdraw/eligible?wallet=0x...AUTHCheck eligible withdrawal amount.
/api/v2/settlement/withdrawAUTHInitiate a USDC withdrawal (min $10).
/api/v2/settlement/withdraw/history?wallet=0x...AUTHList past withdrawals.
Subscription
/api/v2/subscription/purchaseAUTHPurchase a subscription to a skill.
/api/v2/subscription/activeAUTHList your active subscriptions.
/api/v2/subscription/{'{subscription_id}'}/cancelAUTHCancel an active subscription.