API Documentation
Build powerful legal tech applications with the Citizen Justice Portal API.
Quick Start
Get up and running with the Citizen Justice Portal API in minutes.
Guides
Step-by-step guides for common use cases.
Quick Example
Generate legal documents with just a few lines of code.
example.ts
// Initialize the CJP client
import { CJPClient } from '@cjp/sdk';
const client = new CJPClient({
apiKey: process.env.CJP_API_KEY,
});
// Generate a legal document
const document = await client.documents.create({
type: 'legal_notice',
params: {
recipient: 'ABC Corp',
subject: 'Contract Breach',
language: 'en',
},
});
console.log(document.url);Official SDKs
Use our official libraries in your preferred language.
JS
JavaScript/TypeScript
v2.1.0
PY
Python
v1.8.0
PHP
PHP
v1.5.0