# accurLex - Legal QA - Free Deep Mode

Get accurLex - Legal QA - Deep Mode data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Accurlex, pass parameters such as mode, question, and retrieve structured data including text, returned type field, returned answer field, returned citations field, and returned generation id field for document research and entity reference, and integration reference.

Documentation: https://openany.si/market/apis/accurlex/accurlex-legal-qa-free-deep-mode/?offering=b7f8b7f9-6782-469c-81f2-5463d2a2bf71
API ID: b7f8b7f9-6782-469c-81f2-5463d2a2bf71
Provider: accurlex
Contract revision: 6
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/accurlex/qa-deep/accurlex_legal_qa
Page update time: 2026-12-03T02:53:13.574Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:53:13.179Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "accurLex - Legal QA - Free Deep Mode request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "additionalProperties": false,
      "properties": {
        "context_text": {
          "description": "Optional background material or case facts, prepended to the question.",
          "type": "string"
        },
        "history": {
          "description": "Previous user and assistant messages for a multi-turn conversation.",
          "items": {
            "properties": {
              "content": {
                "type": "string"
              },
              "role": {
                "enum": [
                  "user",
                  "assistant"
                ],
                "type": "string"
              }
            },
            "required": [
              "role",
              "content"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "mode": {
          "const": "deep",
          "default": "deep",
          "description": "Fixed by this free-only catalog profile; paid overrides are not permitted.",
          "enum": [
            "deep"
          ],
          "type": "string"
        },
        "question": {
          "description": "The legal question to analyze.",
          "maxLength": 10000,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "question",
        "mode"
      ],
      "type": "object",
      "description": "Analyze a question about Chinese law using retrieved statutory material."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "content": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        }
      }
    },
    "isError": {
      "type": "boolean"
    },
    "resultType": {
      "type": "string"
    },
    "structuredContent": {
      "type": "object",
      "properties": {
        "answer": {
          "type": "string"
        },
        "citations": {
          "type": "array",
          "items": {}
        },
        "generation_id": {
          "type": "string"
        },
        "mode": {
          "type": "string"
        },
        "original_content": {
          "type": "string"
        },
        "request_id": {
          "type": "string"
        },
        "warnings": {
          "type": "array",
          "items": {}
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/accurlex/qa-deep/accurlex_legal_qa' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  --data-raw '{
  "mode": "deep",
  "question": "Please briefly explain the duty to perform a contract in good faith under Chinese law. Answer in English."
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "content": [
    {
      "text": "Under Chinese law, the duty to perform a contract in good faith is a statutory standard, mainly set out in **Article 509 of the Civil Code of the People's Republic of China (Civil Code of the PRC)**.\n\n1. **Full performance according to the agreement.** Article 509(1) provides that the parties shall fully perform their obligations as agreed.\n\n2. **Good-faith ancillary duties.** Article 509(2) provides that the parties shall follow the principle of good faith and, in light of the **nature, purpose and trade usage** of the contract, perform ancillary duties such as **notice, assistance and confidentiality**. Article 509(3) further requires parties to avoid wasting resources, polluting the environment and damaging the ecology during performance.\n\n[Reference statutory text]\nCivil Code of the People's Republic of China\nArticle 509. The parties shall fully perform their obligations as agreed.\nThe parties shall follow the principle of good faith and, in light of the nature and purpose of the contract and trade usage, perform duties such as notification, assistance and confidentiality.\nDuring performance, the parties shall avoid wasting resources, polluting the environment and damaging ecosystems.",
      "type": "text"
    }
  ],
  "isError": false,
  "resultType": "complete",
  "structuredContent": {
    "answer": "Under Chinese law, the duty to perform a contract in good faith is a statutory standard, mainly set out in **Article 509 of the Civil Code of the People's Republic of China (Civil Code of the PRC)**.\n\n1. **Full performance according to the agreement.** Article 509(1) provides that the parties shall fully perform their obligations as agreed.\n\n2. **Good-faith ancillary duties.** Article 509(2) provides that the parties shall follow the principle of good faith and, in light of the **nature, purpose and trade usage** of the contract, perform ancillary duties such as **notice, assistance and confidentiality**. Article 509(3) further requires parties to avoid wasting resources, polluting the environment and damaging the ecology during performance.",
    "citations": [],
    "generation_id": "b90001ea-06c9-4c7b-a0b9-c29eadb9a18b",
    "mode": "deep",
    "original_content": "Civil Code of the People's Republic of China\nArticle 509. The parties shall fully perform their obligations as agreed.\nThe parties shall follow the principle of good faith and, in light of the nature and purpose of the contract and trade usage, perform duties such as notification, assistance and confidentiality.\nDuring performance, the parties shall avoid wasting resources, polluting the environment and damaging ecosystems.",
    "request_id": "f22163d17066ee7c9d866e47de15a9d9",
    "warnings": []
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- accurlex: https://openany.si/market/apis/accurlex/accurlex-legal-qa-free-deep-mode/?offering=b7f8b7f9-6782-469c-81f2-5463d2a2bf71

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
