LexQ API

LexQ API as documented publicly: 9 operations. Contract generated from the documentation by API Evangelist (2026-11-15); not the provider's own document.

GitHub OpenAPI

Operations 9

POST /api/v1/execution/composite POST /api/v1/execution/composite #
POST /api/v1/execution/groups/{groupid} POST /api/v1/execution/groups/{groupid} #
POST /api/v1/execution/groups/{groupid}/batch POST /api/v1/execution/groups/{groupid}/batch #
GET /api/v1/execution/groups/{groupid}/requirements GET /api/v1/execution/groups/{groupid}/requirements #
POST /api/v1/partners/analytics/dry-run/compare POST /api/v1/partners/analytics/dry-run/compare #
POST /api/v1/partners/analytics/dry-run/versions/{versionid} POST /api/v1/partners/analytics/dry-run/versions/{versionid} #
GET /api/v1/partners/provenance/{traceid} GET /api/v1/partners/provenance/{traceid} #
POST /api/v1/partners/replay/decisions POST /api/v1/partners/replay/decisions #
POST /api/v1/partners/replay/jobs POST /api/v1/partners/replay/jobs #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/lexq-io:lexq-io-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

lexq-io-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: LexQ API
  version: '2026-11-15'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-15: 9 operation(s) read from 17 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; LexQ has published no machine-readable contract that the pipeline
    could find. Engine: anthropic.'
  x-evidence-tiers:
    code-example: 12
    documentation: -3
    pages-with-code: 11
    pages-read: 17
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-15'
  x-generator: generate-contract-from-docs.py
  x-engine: anthropic
  x-sources:
  - https://docs.lexq.io/api/errors
  - https://docs.lexq.io/api/errors.md
  - https://docs.lexq.io/api/execution
  - https://docs.lexq.io/api/provenance
  - https://docs.lexq.io/api/execution.md
  - https://docs.lexq.io/api/provenance.md
  - https://docs.lexq.io/api/authentication
  - https://docs.lexq.io/api/authentication.md
  - https://docs.lexq.io/quickstart.md
  - https://docs.lexq.io/quickstart
  - https://docs.lexq.io/guides/fact-definitions
  - https://docs.lexq.io/guides/dry-run
  - https://docs.lexq.io/guides/simulation
  - https://docs.lexq.io/guides/ab-testing
  - https://docs.lexq.io/guides/decision-replay
  - https://docs.lexq.io/guides/decision-provenance
  - https://docs.lexq.io/guides/performance-profiling
servers:
- url: https://api.lexq.io
paths:
  /api/v1/execution/composite:
    post:
      operationId: post_api_v1_execution_composite
      tags:
      - Api
      summary: POST /api/v1/execution/composite
      x-source: https://docs.lexq.io/api/execution
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1ExecutionCompositeRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.lexq.io/api/v1/execution/composite  -H \"x-api-key: YOUR_API_KEY\"  -H \"Content-Type: application/json\"\
          \  -H \"Idempotency-Key: order-12345-composite\"  -d '{ \n \"targetGroupIds\": [\"group-discount-id\", \"group-coupon-id\", \"group-shipping-id\"\
          ], \n \"facts\": { \n \"userId\": \"user_abc\", \n \"paymentAmount\": 250000, \n \"customerTier\": \"VIP\" \n }, \n \"contexts\": {\
          \ \n \"channel\": \"checkout\" \n } \n"
  /api/v1/execution/groups/{groupid}:
    post:
      operationId: post_api_v1_execution_groups_groupid
      tags:
      - Api
      summary: POST /api/v1/execution/groups/{groupid}
      x-source: https://docs.lexq.io/api/execution
      parameters:
      - name: groupid
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1ExecutionGroupsGroupidRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.lexq.io/api/v1/execution/groups/{groupId}  -H \"x-api-key: YOUR_API_KEY\"  -H \"Content-Type: application/json\"\
          \  -H \"Idempotency-Key: order-12345\"  -d '{ \n \"facts\": { \n \"userId\": \"user_abc\", \n \"paymentAmount\": 150000, \n \"customerTier\"\
          : \"VIP\" \n }, \n \"contexts\": { \n \"channel\": \"mobile-app\" \n } \n }' \n Field Type Required Description facts object ✅ Input\
          \ variables for rule evalua"
  /api/v1/execution/groups/{groupid}/batch:
    post:
      operationId: post_api_v1_execution_groups_groupid_batch
      tags:
      - Api
      summary: POST /api/v1/execution/groups/{groupid}/batch
      x-source: https://docs.lexq.io/api/execution
      parameters:
      - name: groupid
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1ExecutionGroupsGroupidBatchRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1ExecutionGroupsGroupidBatchResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.lexq.io/api/v1/execution/groups/{groupId}/batch  -H \"x-api-key: YOUR_API_KEY\"  -H \"Content-Type:\
          \ application/json\"  -d '{ \n \"requests\": [ \n { \"facts\": { \"userId\": \"user_1\", \"paymentAmount\": 50000, \"customerTier\"\
          : \"STANDARD\" } }, \n { \"facts\": { \"userId\": \"user_2\", \"paymentAmount\": 150000, \"customerTier\": \"VIP\" } }, \n { \"facts\"\
          : { \"userId\": \"user_3\", \"paymentAmount\": 300000,"
  /api/v1/execution/groups/{groupid}/requirements:
    get:
      operationId: get_api_v1_execution_groups_groupid_requirements
      tags:
      - Api
      summary: GET /api/v1/execution/groups/{groupid}/requirements
      x-source: https://docs.lexq.io/api/execution
      parameters:
      - name: groupid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1ExecutionGroupsGroupidRequirementsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://api.lexq.io/api/v1/execution/groups/{groupId}/requirements  -H \"x-api-key: YOUR_API_KEY\"  -H \"Accept-Language:\
          \ en\" \n The Accept-Language header controls the language of the usedBy descriptions ( en or ko ). \n Response \n { \n \"result\" :\
          \ \"SUCCESS\" , \n \"data\" : { \n \"groupId\" : \"01f2b274-...\" , \n \"versionId\" : \"a6062090-...\" , \n \"versionNo\" : 5 , \n\
          \ \"requiredFacts\" : [ \n { \n \"key\" : \"paymen"
  /api/v1/partners/analytics/dry-run/compare:
    post:
      operationId: post_api_v1_partners_analytics_dry_run_compare
      tags:
      - Api
      summary: POST /api/v1/partners/analytics/dry-run/compare
      x-source: https://docs.lexq.io/guides/dry-run
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1PartnersAnalyticsDryRunCompareRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1PartnersAnalyticsDryRunCompareResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.lexq.io/api/v1/partners/analytics/dry-run/compare  -H \"x-api-key: YOUR_API_KEY\"  -H \"Content-Type:\
          \ application/json\"  -d '{ \n \"versionIdA\": \"<version-a>\", \n \"versionIdB\": \"<version-b>\", \n \"facts\": { \"paymentAmount\"\
          : 200000, \"customerTier\": \"GOLD\" } \n }' \n The response holds the full dry run result for each version, traces included, and a\
          \ diff of their outputs: \n { \n \"resul"
  /api/v1/partners/analytics/dry-run/versions/{versionid}:
    post:
      operationId: post_api_v1_partners_analytics_dry_run_versions_versionid
      tags:
      - Api
      summary: POST /api/v1/partners/analytics/dry-run/versions/{versionid}
      x-source: https://docs.lexq.io/quickstart.md
      parameters:
      - name: versionid
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1PartnersAnalyticsDryRunVersionsVersionidRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.lexq.io/api/v1/partners/analytics/dry-run/versions/{versionId}  -H \"x-api-key: YOUR_API_KEY\"  -H\
          \ \"Content-Type: application/json\"  -d '{\n    \"facts\": {\n        \"paymentAmount\": 150000,\n        \"userId\": \"user-001\"\n\
          \    },\n    \"includeDebugInfo\": true\n}'\n```"
  /api/v1/partners/provenance/{traceid}:
    get:
      operationId: get_api_v1_partners_provenance_traceid
      tags:
      - Api
      summary: GET /api/v1/partners/provenance/{traceid}
      x-source: https://docs.lexq.io/guides/decision-provenance
      parameters:
      - name: traceid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1PartnersProvenanceTraceidResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl \"https://api.lexq.io/api/v1/partners/provenance/<traceId>\"  -H \"x-api-key: YOUR_API_KEY\" \n Response \n Abridged —\
          \ PII facts arrive masked, and maskedKeys names them: \n { \n \"result\" : \"SUCCESS\" , \n \"data\" : { \n \"traceId\" : \"8f3c1a2e-1d44-4c1b-9a3e-0f5b7c2d9e10\"\
          \ , \n \"requestFacts\" : { \n \"customerSegment\" : \"••••••\" , \n \"purchaseSubtotalUsd\" : 129.9 \n }, \n \"maskedKeys\" : [ \"\
          customerSegment\" ], \n "
  /api/v1/partners/replay/decisions:
    post:
      operationId: post_api_v1_partners_replay_decisions
      tags:
      - Api
      summary: POST /api/v1/partners/replay/decisions
      x-source: https://docs.lexq.io/guides/decision-replay
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1PartnersReplayDecisionsRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1PartnersReplayDecisionsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST \"https://api.lexq.io/api/v1/partners/replay/decisions\"  -H \"x-api-key: YOUR_API_KEY\"  -H \"Content-Type: application/json\"\
          \  -d '{ \n \"traceId\": \"8f3c1a2e-1d44-4c1b-9a3e-0f5b7c2d9e10\", \n \"candidateVersionId\": \"b2ba29d8-c5b2-400c-a6a1-26d3a5840f7c\"\
          \ \n }' \n Response \n { \n \"result\" : \"SUCCESS\" , \n \"data\" : { \n \"traceId\" : \"8f3c1a2e-1d44-4c1b-9a3e-0f5b7c2d9e10\" , \n\
          \ \"decisionChanged\" : true , "
  /api/v1/partners/replay/jobs:
    post:
      operationId: post_api_v1_partners_replay_jobs
      tags:
      - Api
      summary: POST /api/v1/partners/replay/jobs
      x-source: https://docs.lexq.io/guides/decision-replay
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1PartnersReplayJobsRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST \"https://api.lexq.io/api/v1/partners/replay/jobs\"  -H \"x-api-key: YOUR_API_KEY\"  -H \"Content-Type: application/json\"\
          \  -d '{ \n \"candidateVersionId\": \"b2ba29d8-c5b2-400c-a6a1-26d3a5840f7c\", \n \"from\": \"2026-07-01\", \n \"to\": \"2026-07-07\"\
          , \n \"maxRecords\": 1000 \n }' \n Poll \n lexq replay get --id < jobI d > \n While the job is RUNNING , progress climbs to 100. On\
          \ COMPLETED , the response carri"
components:
  schemas:
    PostApiV1ExecutionCompositeRequest:
      type: object
      properties:
        targetGroupIds:
          type: array
          items:
            type: string
        facts:
          type: object
          properties:
            userId:
              type: string
            paymentAmount:
              type: integer
            customerTier:
              type: string
        contexts:
          type: object
          properties:
            channel:
              type: string
    PostApiV1ExecutionGroupsGroupidRequest:
      type: object
      properties:
        facts:
          type: object
          properties:
            userId:
              type: string
            paymentAmount:
              type: integer
            customerTier:
              type: string
        contexts:
          type: object
          properties:
            channel:
              type: string
    PostApiV1ExecutionGroupsGroupidBatchRequest:
      type: object
      properties:
        requests:
          type: array
          items:
            type: object
            properties:
              facts:
                type: object
                properties:
                  userId:
                    type: string
                  paymentAmount:
                    type: integer
                  customerTier:
                    type: string
        contexts:
          type: object
          properties:
            channel:
              type: string
    PostApiV1ExecutionGroupsGroupidBatchResponse:
      type: object
      properties:
        userId:
          type: string
        paymentAmount:
          type: integer
        customerTier:
          type: string
    GetApiV1ExecutionGroupsGroupidRequirementsResponse:
      type: object
      properties:
        groupId:
          type: string
        versionId:
          type: string
        versionNo:
          type: integer
        requiredFacts:
          type: array
          items:
            type: object
            properties:
              key:
                type: string
              type:
                type: string
              displayName:
                type: string
              usedBy:
                type: array
                items:
                  type: string
        exampleRequest:
          type: object
          properties:
            facts:
              type: object
              properties:
                paymentAmount:
                  type: integer
                customerTier:
                  type: string
            contexts:
              type: object
              properties:
                reqTime:
                  type: string
                  format: date-time
    PostApiV1PartnersAnalyticsDryRunCompareRequest:
      type: object
      properties:
        versionIdA:
          type: string
        versionIdB:
          type: string
        facts:
          type: object
          properties:
            paymentAmount:
              type: integer
            customerTier:
              type: string
    PostApiV1PartnersAnalyticsDryRunCompareResponse:
      type: object
      properties:
        versionNo:
          type: integer
        latencyMs:
          type: integer
        inputFacts:
          type: object
        inputContexts:
          type: object
        mutatedFacts:
          type: object
        generatedVariables:
          type: object
        executionTraces:
          type: array
          items: {}
        decisionTraces:
          type: array
          items: {}
    PostApiV1PartnersAnalyticsDryRunVersionsVersionidRequest:
      type: object
      properties:
        facts:
          type: object
          properties:
            paymentAmount:
              type: integer
            userId:
              type: string
        includeDebugInfo:
          type: boolean
    GetApiV1PartnersProvenanceTraceidResponse:
      type: object
      properties:
        traceId:
          type: string
        requestFacts:
          type: object
          properties:
            customerSegment:
              type: string
            purchaseSubtotalUsd:
              type: number
        maskedKeys:
          type: array
          items:
            type: string
        lineage:
          type: object
          properties:
            authored:
              type: object
              properties:
                name:
                  type: string
                at:
                  type: string
                  format: date-time
            published:
              type: object
              properties:
                name:
                  type: string
                at:
                  type: string
                  format: date-time
            deployed:
              type: object
              properties:
                name:
                  type: string
                at:
                  type: string
                  format: date-time
            unavailableReason:
              type:
              - string
              - 'null'
    PostApiV1PartnersReplayDecisionsRequest:
      type: object
      properties:
        traceId:
          type: string
        candidateVersionId:
          type: string
    PostApiV1PartnersReplayDecisionsResponse:
      type: object
      properties:
        result:
          type: string
        data:
          type: object
          properties:
            traceId:
              type: string
            decisionChanged:
              type: boolean
            determinism:
              type: string
            effectChanges:
              type: array
              items:
                type: string
            baselineFired:
              type: array
              items:
                type: string
            candidateFired:
              type: array
              items:
                type: string
    PostApiV1PartnersReplayJobsRequest:
      type: object
      properties:
        candidateVersionId:
          type: string
        from:
          type: string
          format: date
        to:
          type: string
          format: date
        maxRecords:
          type: integer
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
security:
- apiKey: []
tags:
- name: Api