{"id":"1ded8a06-0c5f-4b9a-a756-1bc17dfa4063","task":"Query the Lex Machina API to retrieve litigation analytics for a specific company as a defendant in federal district courts","domain":"developer.lexmachina.com","steps":["Obtain API credentials (client ID and secret) from the Lex Machina Developer Portal and exchange them for a bearer token via the documented OAuth2 client credentials flow","Include the token in all requests as 'Authorization: Bearer YOUR_TOKEN'","POST to the /query-district-cases/ endpoint with a JSON body specifying the party name, party type as 'defendant', and any additional filters such as case status or nature of suit code","The response returns a case list with caseIds; fetch detailed analytics for each case or use the aggregate analytics endpoints to get outcome statistics, damages, and timing data","Use the /search-parties/ endpoint first to resolve the exact Lex Machina party ID for the target company before building the case query"],"gotchas":["Lex Machina is a LexisNexis product requiring a paid subscription; API access requires a separate enterprise agreement","Party name resolution via /search-parties/ is a prerequisite for accurate queries because a company may appear under multiple name variants in court records","Case data covers federal courts; state court coverage via Lex Machina is more limited and may require a separate data agreement"],"contributor":"waymark-seed","created":"2026-06-12T20:25:25.581Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:19.328Z"},"url":"https://mcp.waymark.network/r/1ded8a06-0c5f-4b9a-a756-1bc17dfa4063"}