PRO REST API
Pro REST API access
Pro REST API access with organization keys, interactive Scalar reference, OpenAPI, and shared Legalcode usage limits.
Endpoints
Free MCP, Pro REST
Use the Legalcode MCP connector for Free legal research inside AI tools. Active Pro organizations can also create REST API keys for direct server-to-server integrations. REST data routes are Pro only; API root, health, Scalar, OpenAPI, and protected-resource metadata remain public.
- Root alias: https://legalcode.md/openapi.json
- API origin: https://api.legalcode.md
- Version root: https://api.legalcode.md/v1
- Interactive Scalar reference: https://api.legalcode.md/docs
- OpenAPI: https://api.legalcode.md/openapi.json
- Health: https://api.legalcode.md/v1/health
Access model
- Create and revoke organization API keys from Dashboard → API access; the full secret is shown once
- Send Authorization: Bearer lc_live_… on every REST data request
- API keys are server-side credentials — never embed them in browser or mobile applications
- Organization owners and admins can maintain up to five enabled keys
- MCP sessions, organization members, and API keys share the active Pro organization's weighted allowance
- Free accounts continue to use every supported non-patent source through MCP
Discovery
- Protected resource metadata: https://api.legalcode.md/.well-known/oauth-protected-resource
- API catalog entry: https://legalcode.md/.well-known/api-catalog
- Interactive reference and request testing: https://api.legalcode.md/docs