/api/v1/healthReturns API health status and reasoning compiler latency.
Connect Claude, ChatGPT, Cursor, and automated workflow pipelines directly to Erayaha's automated contract review and risk detection tools.
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.
{
"mcpServers": {
"erayaha": {
"url": "https://erayaha.ai/mcp"
}
}
}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"
}'Standardized agent skill metadata with verified SHA-256 digests.
/.well-known/agent-skills/index.json →Unified machine discovery for autonomous agents and tools.
/.well-known/ai-catalog.json →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.
/api/v1/healthReturns API health status and reasoning compiler latency.
/api/v1/scanscanContractVulnerabilityScans contract text for structural risks, clause liabilities, circular obligations, indemnification loops, and missing caps.
/api/v1/playbook/analyzeanalyzeClausePlaybookEvaluates contract clauses against corporate risk policies and suggests fallback language and redlines.
/api/v1/roi/calculatecalculateRoiSavingsCalculates operational ROI, legal hours saved, risk mitigation efficiency, and payback projections.
/api/v1/contracts/batch-scanbatchScanContractsBulk scans multiple contract documents in one request.
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"
}'Responses include structured fields so automated clients can self-throttle. A rate-limited response includes Retry-After.
RateLimit-Policy: 120;w=60RateLimit-Limit: 120RateLimit-Remaining: 119RateLimit-Reset: 60Retry-After: 60 (HTTP 429)API errors use structured problem responses with machine-readable information and actionable guidance.
type: URI reference to the error documentationtitle: Short human-readable summarycode: Stable machine-readable codehint: Actionable resolution guidance