vlex

tcapelle's avatarfrom tcapelle

Interacts with vLex legal APIs for document search, anonymization, citation extraction, and classification. Use when needing international legal documents, PII removal, or legal text analysis. Requires VLEX_API_KEY environment variable.

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 29, 2025

When & Why to Use This Skill

The vLex API skill empowers Claude to perform advanced legal research and automated document management. By integrating with the vLex global legal database, it enables users to search international jurisdictions, remove personally identifiable information (PII) for privacy compliance, and extract legal citations or key phrases. This skill is designed to streamline legal workflows, enhance data privacy, and provide intelligent classification for complex legal texts.

Use Cases

  • Global Legal Research: Conduct comprehensive searches for statutes, case law, and legal documents across multiple international jurisdictions using the vLex database.
  • Privacy & Redaction: Automatically identify and anonymize sensitive PII (Personally Identifiable Information) in legal contracts or court filings to ensure GDPR and data protection compliance.
  • Automated Citation Extraction: Quickly identify and extract legal citations from lengthy documents to verify references or build bibliographies for legal drafting.
  • Legal Document Classification: Automatically categorize large volumes of legal texts by document type and jurisdiction to improve organizational indexing and retrieval.
  • Key Phrase Analysis: Extract core legal concepts and key phrases from complex documents to summarize legal arguments or identify critical themes.
namevlex
descriptionInteracts with vLex legal APIs for document search, anonymization, citation extraction, and classification. Use when needing international legal documents, PII removal, or legal text analysis. Requires VLEX_API_KEY environment variable.

vLex API Skill

Use this skill to interact with the vLex legal document APIs.

Setup

Before using this skill, ensure the following environment variables are set:

  • VLEX_API_KEY - Your vLex subscription key from the Developer Portal

Available Operations

1. Anonymise Text

Remove personally identifiable information (PII) from legal text.

curl -X POST "https://api.vlex.com/anonymisation/analyse" \
  -H "Content-Type: application/json" \
  -H "Ocp-Apim-Subscription-Key: $VLEX_API_KEY" \
  -d '{
    "text": "The contract between John Smith and Acme Corp was signed on January 15, 2024."
  }'

Search the vLex legal document database.

curl -X GET "https://api.vlex.com/search" \
  -H "Ocp-Apim-Subscription-Key: $VLEX_API_KEY" \
  -G \
  --data-urlencode "query=class action COVID-19" \
  --data-urlencode "jurisdiction=US" \
  --data-urlencode "document_type=statute"

3. Get Document by ID

Retrieve a specific legal document.

curl -X GET "https://api.vlex.com/documents/{document_id}" \
  -H "Ocp-Apim-Subscription-Key: $VLEX_API_KEY"

4. Extract Citations

Extract legal citations from text.

curl -X POST "https://api.vlex.com/citations/extract" \
  -H "Content-Type: application/json" \
  -H "Ocp-Apim-Subscription-Key: $VLEX_API_KEY" \
  -d '{
    "text": "As established in Brown v. Board of Education, 347 U.S. 483 (1954)..."
  }'

5. Classify Document

Classify a legal document by type and jurisdiction.

curl -X POST "https://api.vlex.com/classification/analyse" \
  -H "Content-Type: application/json" \
  -H "Ocp-Apim-Subscription-Key: $VLEX_API_KEY" \
  -d '{
    "text": "Your legal document text here..."
  }'

6. Extract Key Phrases

Extract key legal phrases and concepts from text.

curl -X POST "https://api.vlex.com/keyphrases/extract" \
  -H "Content-Type: application/json" \
  -H "Ocp-Apim-Subscription-Key: $VLEX_API_KEY" \
  -d '{
    "text": "Your legal document text here..."
  }'

Response Format

All APIs return JSON responses. Example anonymisation response:

{
  "original_text": "The contract between John Smith and Acme Corp...",
  "anonymised_text": "The contract between [PERSON] and [ORGANIZATION]...",
  "entities": [
    {"type": "PERSON", "value": "John Smith", "start": 21, "end": 31},
    {"type": "ORGANIZATION", "value": "Acme Corp", "start": 36, "end": 45}
  ]
}

Notes

  • API base URL: https://api.vlex.com
  • Authentication: Uses Ocp-Apim-Subscription-Key header (Azure API Management style)
  • Get your API key from: https://developer.vlex.com
  • Rate limits and quotas depend on your subscription tier
  • Supported output formats: JSON, XML, LDML

Reference