Back to use cases

Compliance

Compliance and Risk Platforms

Ground compliance decisions in real regulatory text, enforcement actions, and case law instead of static checklists.

Built by: GRC platforms, RegTech startups, audit firms, in-house compliance teams

GDPRRegulatoryEnforcementRisk

The problem

Compliance teams operate on checklists, internal policies, and the advice of external counsel.

When a new question arises ("Can we process employee biometric data for access control in our Berlin office?"), the answer requires searching through GDPR provisions, relevant CJEU rulings, national data protection authority decisions, and local implementation laws.

Today, that research is manual: hours spent across multiple databases, each with its own interface, search syntax, and language. The result is slow decision-making, inconsistent risk assessments, and expensive reliance on external legal advice for questions that could be answered with the right data access.

How the API powers it

The Moonlit API turns compliance research into a structured, automatable process.

Use semantic search with reranking to match a business scenario to relevant regulations and enforcement decisions, even when your users do not know the exact legal terminology. Filter results by jurisdiction to scope answers to the countries where your organization operates. Use date filters with sort by newest (sort_type 1) to ensure you are working with current law, not superseded provisions.

Retrieve full document texts with AI-generated summaries to feed into your compliance logic or display to users. The fields of law filter lets you scope searches to specific legal domains like data protection law, competition law, or employment law, reducing noise and improving precision.

The integration pattern

A typical compliance platform integration works in three steps.

First, translate the user's business question into a semantic search query scoped to the relevant jurisdictions and fields of law. Second, retrieve the top results and fetch full document texts with summaries. Third, present the findings to the user with links to the original source documents, or feed the document texts into an LLM for a synthesized compliance assessment.

The facets feature adds a powerful dimension: enable facets on your search to get aggregate counts by jurisdiction, document type, and court, giving compliance officers an at-a-glance overview of the regulatory landscape for any given topic.

Key endpoints

Example request

curl -X POST "https://api.moonlit.ai/v1.1/search/semantic_search_reranked" \
  -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "Is biometric data processing for workplace access control lawful under GDPR?",
    "jurisdictions": ["European Union", "Germany"],
    "num_results": 10,
    "rerankerType": 1
  }'

Ready to build?

Talk to our team about getting API access.

Get in touch