import requests
result = requests.post(
"https://api.courtrules.app/api/v1/check",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"judge_slug": "gary-r-brown",
"district_id": "edny",
"document_scope": "brief_support",
"motion_type": "Rule_56",
"pmc_completed": True,
"document": {
"page_count": 18,
"word_count": 7200,
"caption": {
"present": True,
"has_court_name": True,
"has_case_title": True,
"has_docket_number": True,
"has_document_designation": True,
},
"signature_block": {
"present": True,
"has_attorney_name": True,
"has_firm_name": True,
"has_address": True,
"has_email": True,
"has_phone": True,
"is_electronic_signature": True,
},
"sections": {
"has_toc": True,
"has_toa": True,
"has_certificate_of_compliance": True,
"certificate_word_count": 7200,
"has_certificate_of_service": True,
"has_numbered_paragraphs": True,
"has_56_1_statement": True,
"has_56_1_counterstatement": False,
"has_proposed_amended_pleading": False,
"has_verbatim_discovery_text": False,
"has_conferral_certification": False,
"has_notice_of_motion": True,
"has_memorandum_of_law": True,
"has_supporting_affidavits": True,
"has_pro_se_sj_notice": False,
},
"format": {
"primary_font_size_pt": 12,
"footnote_font_size_pt": 10,
"margin_inches": 1.0,
"line_spacing": "double",
},
"privacy": {
"contains_full_ssn": False,
"contains_full_dob": False,
"contains_minor_full_name": False,
"contains_full_financial_account": False,
},
},
},
).json()
# Show results to user
for r in result["results"]:
icon = {"FAIL": "X", "PASS": "OK", "ACTION_REQUIRED": "!"}[r["status"]]
print(f"[{icon}] {r['message']} ({r['source']})")