Skip to main content

API Documentation

Complete reference for OMA-AI REST API

Base URL

https://oma-ai.com/api

Authentication

Most endpoints require authentication via Bearer token. Include the token in the Authorization header:

Authorization: Bearer YOUR_TOKEN_HERE

Rate Limiting

TierRequests/minDaily Limit
Free601,000
Pro30050,000
EnterpriseUnlimitedUnlimited

Response Format

// Success Response
{
  "success": true,
  "data": { ... },
  "pagination": { ... }
}

// Error Response
{
  "success": false,
  "error": "Error message",
  "code": "ERROR_CODE"
}

x402 Payments

OMA-AI uses x402 (EIP-3009) for payment authorization. Some MCP endpoints require payment before access.

  1. Call /api/x402/sign with amount and MCP ID
  2. Receive signed EIP-712 authorization
  3. Include in request header: X-Payment-Authorization
  4. MCP executes call and receives payment via transfer