Skip to main content

API & Execution

Three conditions return 429 with code C-007.Your plan’s TPS limit. Check your current plan under Management → Billing and consider upgrading. See Rate Limits for the per-plan table.The per-minute dry-run limit. Dry runs, Dry Run Compare, and single decision replays share a per-minute limit for your organization, separate from TPS. Wait a minute before trying again. See Dry Run Limits.Edge protection. Very high request rates from a single IP are throttled, independent of your plan. Upgrading does not raise this ceiling, and normal application traffic does not reach it. Contact support if you see this consistently.The daily dry-run limit returns 429 with code AN-041 instead. Try again after 00:00 UTC. See Dry Run Limits.
The resource ID doesn’t exist or belongs to a different tenant. Verify the ID by running the corresponding list command. UUIDs are case-sensitive — copy them exactly from API responses.
You’re trying to edit a non-DRAFT version. Published versions are permanently locked. Clone the version to create a new DRAFT: use lexq versions clone --group-id <gid> --id <vid>.
A version must have at least one rule before publishing. Add rules with lexq rules create, then try publishing again.
Run lexq analytics requirements to see which facts the version expects. Then run a Dry Run with --debug to inspect execution traces and decision traces for each rule.
The split is decided by contexts.trafficKey on each execution request. If your requests do not carry it, or carry it inside facts instead of contexts, no request is ever assigned to the test version. The test still reports as running and logs keep accumulating, so nothing in the response says anything is wrong.Batch calls read the same contexts.trafficKey at the top level of the body, once for the whole batch. A request that sends the old field names context or sharedContext fails with 400 (C-001) instead, even when the field is empty. See Traffic Identity Key.
The policy group is in DISABLED status. Groups are usually disabled on purpose to stop bad decisions, so confirm the cause is fixed first. Then click Re-enable in the banner on the group page, save the status as Active under group settings, or run lexq groups update --id <gid> --json '{"status": "ACTIVE"}'.
The fact the condition compares now has a value domain, or a narrower one, and the condition uses a value outside it. A fact update that changes the domain lists such rules: in a dialog in the Console, on stderr in the CLI, and at the end of the tool result in MCP. See Rules outside a changed domain.Edit or remove the condition, or widen the value domain in Fact Definitions. Check what the condition was for before you swap in an allowed value: a negative condition such as NOT_EQUALS changes meaning when its value changes.

CLI

The CLI is not installed globally. Run npm install -g @lexq/cli or use npx @lexq/cli instead.
Run lexq auth login to store your API key. The key is persisted at ~/.lexq/config.json.

MCP Server — Cloud (Claude.ai)

Remove the LexQ connector in Settings → Connectors, then re-add https://mcp.lexq.io. Sign in and click Create a key and authorize. Re-adding uses one more API key unless you click Replace next to the key the old connection used.
Your organization has reached its limit of active API keys. The limit is the same on every plan and counts keys made in the console. On the connection page, click Replace next to an existing Manage key, or revoke a key you no longer use in Console → Management → API Keys and try again.
The email or password is wrong, or there is no LexQ account for that email. Sign up in the console, or sign in with Google, which creates an account the first time. If you forgot your password, click Forgot password?.
Open the link in the verification email, then sign in again. If you can’t find the email, click Resend verification email. You can request another one after a minute.
Your role is Operator or Viewer, and only an Admin can create API keys. Ask an admin for a key with Manage scope and paste it with Paste an API key, or ask them to change your role to Admin.
The pasted key can call only the execution API. Create a key with Manage scope in Console → Management → API Keys and paste that one. See Scope.
Check that you pasted the whole key. A revoked key cannot be used again. Create a new one in Console → Management → API Keys.
Your API Key may have been revoked or the account deactivated. Remove the connector and re-authorize with a valid key.

MCP Server — Local (stdio)

Restart your AI client (Claude Desktop, VS Code, etc.) after adding the MCP configuration. Some clients cache tool lists on startup.
Node.js 22+ is required. Run node --version to verify. If not installed, download from nodejs.org.
The local MCP server uses stdio transport — it reads from stdin and writes to stdout. It does not open network ports. If your AI client only supports HTTP/SSE transport, use the Cloud method instead.

Still stuck?

Visit Support to reach the LexQ team directly.