Skip to main content
This guide walks you through your first end-to-end call to Lexera. You will open an SSE stream, capture a session endpoint, and dispatch a free statutory audit against UAE law. No API key is required for this tool, so you can verify the connection and response format before moving to paid workflows.
1

Open the SSE stream

Send a GET request to https://lexera.dev/mcp-server/sse to establish a persistent Server-Sent Events connection. For the free statutory audit tool, the Authorization header is optional. For paid tools, it is required.
2

Capture the session endpoint

The server streams an event: endpoint containing your session URL. Extract the sessionId from the data line. The format is:
Append this path to https://lexera.dev to build your dispatch URL.
3

Dispatch a statutory audit

POST a JSON-RPC 2.0 payload to your session URL calling lexera_local_statutory_audit. Include the contract text and target jurisdiction.
4

Read the streamed result

The POST returns HTTP 202 Accepted. The actual result is streamed back over the open SSE connection. Parse the JSON-RPC response from the SSE payload to read the audit outcome.
lexera_local_statutory_audit is part of the anonymous PLG funnel. It is free, requires no authentication, and places no wallet hold. Use it to validate connectivity and response formats before moving to paid specialist routing.

Next steps

Authentication

Set up Bearer tokens for paid tools.

Route to a Specialist

Dispatch documents to human attorneys.

Tools Overview

Explore all MCP tools and invocation patterns.