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:
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.
Idempotency
For execution endpoints, you can include anIdempotency-Key header to prevent duplicate processing:
Pagination
List endpoints return paginated results: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.

