API reference · Alerts
Create a watch on a source; webhook and/or email
POST /api/v1/watches
Parameters
| Name | In | Description |
|---|---|---|
corpusType | body | Source to watch |
state | body | For state sources |
channel | body | email, webhook or both |
Example request
curl (illustrative)
curl -X POST https://api.lexbharat.example/api/v1/watches \ -H "Authorization: Bearer lb_key_..."
Example response
JSON (mock record)
{
"_mock": true,
"actId": "MOCK_USC_T42_S1983",
"citation": "42 U.S.C. § 1983",
"title": "Civil action for deprivation of rights",
"actStatus": "in_force",
"currentThrough": "2026-09-18"
}Credits: free. Try this call in the Playground.