Skip to main content

Base URLs

LexQ exposes two separate APIs with different base URLs:
Do not mix the two base URLs. Management endpoints return 404 on the Execution base URL and vice versa.

Authentication

LexQ uses API Key authentication. Include your key in every request:
API keys are created and managed in the Console under Management → API Keys.
An API key acts on behalf of your organization within its scope. Never expose one in client-side code or public repositories.

Request Format

All request and response bodies use JSON. Set the Content-Type header:

Response Format

Every response follows a consistent envelope:
The top-level field is result (value: "SUCCESS" or "ERROR"), not success: true/false. Always check result === "SUCCESS" in your integration code.

Error Codes

Error codes follow a prefix convention: See the full error reference for details.

Rate Limits

Rate limits apply per organization (across all API keys for the same tenant), based on your plan’s Max TPS setting: Requests over your plan’s Max TPS receive HTTP 429 Too Many Requests with code C-007. Wait a second and retry. For execution endpoints, a batch or composite call counts as one request against TPS, however many fact sets or groups it holds. Billing still counts each one. Dry runs, Dry Run Compare, and single decision replays don’t count against TPS. They have their own per-minute and daily limits; see Dry Run Limits.
Issuing additional API keys does not raise your limit: every key in your organization shares it. Upgrade your plan to raise the limit.

Idempotency

For execution endpoints, you can include an Idempotency-Key header to prevent duplicate processing:
Duplicate requests with the same key return the original response without re-executing the policy.

Pagination

List endpoints return paginated results:
Use the page (0-indexed) and size query parameters to navigate pages. The response reports them back as pageNo and pageSize.

Next Steps

Authentication

API key management and security best practices.

Policy Execution

Execute policies against live traffic.