Skip to main content

Developer Portal & MCP Hub.

Connect Claude, ChatGPT, Cursor, and automated workflow pipelines directly to Erayaha's automated contract review and risk detection tools.

01 · Model Context Protocol

Streamable HTTP MCP Server

Erayaha implements an official Model Context Protocol (MCP) server using the Streamable HTTP transport standard. Connect your local Claude Desktop, Cursor, or cloud agent runtime in seconds.

// Add to your mcp_config.json
{
  "mcpServers": {
    "erayaha": {
      "url": "https://erayaha.ai/mcp"
    }
  }
}
02 · REST Quickstart

Scanning Your First Contract

// cURL Request
curl -X POST https://erayaha.ai/api/v1/scan \
  -H "Content-Type: application/json" \
  -d '{
    "contractText": "In the event of a breach, Provider shall indemnify Customer for all consequential, punitive, and incidental damages without limitation.",
    "documentType": "MSA",
    "jurisdiction": "US-Delaware"
  }'
03 · Agent Discovery

Well-Known Discovery Catalogs

Agent Skills Index (v0.2.0)

Standardized agent skill metadata with verified SHA-256 digests.

/.well-known/agent-skills/index.json →

AI & API Catalog (RFC 9727)

Unified machine discovery for autonomous agents and tools.

/.well-known/ai-catalog.json →
04 · REST API Reference

Endpoints & Specifications

Review the machine-readable OpenAPI contract for request and response schemas, authentication, and error details. The API supports OpenAPI 3.1.0, RFC 9457 problem details, and IETF RateLimit response headers.

Core REST operations

GET/api/v1/health

Returns API health status and reasoning compiler latency.

POST/api/v1/scanscanContractVulnerability

Scans contract text for structural risks, clause liabilities, circular obligations, indemnification loops, and missing caps.

POST/api/v1/playbook/analyzeanalyzeClausePlaybook

Evaluates contract clauses against corporate risk policies and suggests fallback language and redlines.

POST/api/v1/roi/calculatecalculateRoiSavings

Calculates operational ROI, legal hours saved, risk mitigation efficiency, and payback projections.

POST/api/v1/contracts/batch-scanbatchScanContracts

Bulk scans multiple contract documents in one request.

Example · Contract scan
curl -X POST https://erayaha.ai/api/v1/scan \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: c9a4b3d1-4e78-4392-8012-124982348ab1" \
  -d '{
    "contractText": "This Mutual Non-Disclosure Agreement...",
    "documentType": "NDA",
    "jurisdiction": "US-Delaware"
  }'

Rate limit headers

Responses include structured fields so automated clients can self-throttle. A rate-limited response includes Retry-After.

  • RateLimit-Policy: 120;w=60
  • RateLimit-Limit: 120
  • RateLimit-Remaining: 119
  • RateLimit-Reset: 60
  • Retry-After: 60 (HTTP 429)

RFC 9457 problem details

API errors use structured problem responses with machine-readable information and actionable guidance.

  • type: URI reference to the error documentation
  • title: Short human-readable summary
  • code: Stable machine-readable code
  • hint: Actionable resolution guidance