Base URLs
LexQ exposes two separate APIs with different base URLs:Authentication
LexQ uses API Key authentication. Include your key in every request:Request Format
All request and response bodies use JSON. Set theContent-Type header:
Response Format
Every response follows a consistent envelope: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:
Throttling uses a strict per-second window: the counter resets every epoch second. Requests exceeding the TPS limit in that second receive HTTP
429 Too Many Requests with code C-007.
For execution endpoints, batch and composite calls count as a single request against TPS, regardless of how many fact sets they contain. This makes batching the most direct way to handle burst traffic without upgrading.
Idempotency
For execution endpoints, you can include anIdempotency-Key header to prevent duplicate processing:
Pagination
List endpoints return paginated results:pageNo (0-indexed) and pageSize query parameters to navigate pages.
Next Steps
Authentication
API key management and security best practices.
Policy Execution
Execute policies against live traffic.

