Watches
PATCH /darkcrawl/v1/watches/{watch_id}
Copy page
Change a watch: its name, terms, channels or state.
PATCH /
Authentication: your key as a bearer token.
Path parameters
| Field | Type | Required | Default |
|---|---|---|---|
watch_id | string | Required |
Body
| Field | Type | Required | Default |
|---|---|---|---|
channelIds | string[] | null | Optional | |
name | string | null | Optional | |
state | string | null Values: active, paused | Optional | |
terms | object[] | null | Optional | |
terms[]. | string Values: phrase, domain, email, pattern | Required | |
terms[]. | string | Required |
Request
curl -X PATCH https://api.darkcrawl.dev/darkcrawl/v1/watches/WATCH_ID \
-H "Authorization: Bearer $DARKCRAWL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"state":"paused"}'import os
import requests
resp = requests.patch(
"https://api.darkcrawl.dev/darkcrawl/v1/watches/WATCH_ID",
headers={"Authorization": "Bearer " + os.environ["DARKCRAWL_API_KEY"]},
json={
"state": "paused",
},
timeout=330,
)
print(resp.json())const resp = await fetch("https://api.darkcrawl.dev/darkcrawl/v1/watches/WATCH_ID", {
method: "PATCH",
headers: {
Authorization: "Bearer " + process.env.DARKCRAWL_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"state": "paused"
}),
signal: AbortSignal.timeout(330000),
});
console.log(await resp.json());Response
Status 200.
{
"id": "01K0EXAMPLEWATCH00000000A0",
"name": "Acme Example Ltd",
"state": "paused",
"terms": [
{
"kind": "phrase",
"value": "Acme Example Ltd"
},
{
"kind": "domain",
"value": "acme.example"
}
],
"channelIds": [
"01K0EXAMPLECHANNEL0000000A"
],
"backfill": {
"state": "done",
"scanned": 120,
"hits": 1
},
"createdAt": "2026-11-26T10:00:00+00:00",
"updatedAt": "2026-11-26T10:00:00+00:00"
}Errors
| Code | Status |
|---|---|
BAD_REQUEST | 400 |
NOT_FOUND | 404 |
BLOCKLIST_UNAVAILABLE | 503 |
What each code means, and what to do about it: Errors.
Notes
- Send at least one field. A list you send replaces the list. Terms that differ from the stored ones put
backfillback topending. stateisactiveorpaused. A paused watch matches nothing.- A term is
{kind, value}.phraseis a run of words, matched whatever its case.domainis a DNS name and also matches its subdomains.emailislocal@domain, or@domainfor any address there.patternis an RE2 regular expression. - A term that is refused answers
400 BAD_REQUESTand names its place, such asterms[2], never its value. A term that names a blocked onion is refused too. - An unknown id, and another company's watch, answer
404 NOT_FOUND.