DELETE /v1/watches/:id sets a watch to canceled. It does not hard-delete the row or its run history.
Watch id (
watch_...).Tenant scope
Writes are owner-scoped: another tenant’s watch id is404 WATCH_NOT_FOUND, never 403. Restricted (sk_*) keys always write to their own owner. Internal keys can act on behalf of one tenant for watch reads and writes with ?owner=<ownerId> or X-AISearch-On-Behalf-Of: <ownerId>; the query parameter wins when both are present. A restricted key’s override is ignored.
When an override is applied, the response adds a top-level owner field and an X-AISearch-Owner header containing the enforced owner id.
Internal keys only. Owner id to enforce for this write. Overrides the
X-AISearch-On-Behalf-Of header when both are sent.Request
This endpoint has no request body.Response
200 OK
The watch id.
Always
canceled after the soft delete.A canceled watch stops scheduling new runs. Existing run history stays
readable with
GET /v1/watches/:id/runs.Errors
No watch exists for that id, or it belongs to another tenant (reads and writes
are owner-scoped — another tenant’s id is a
404, never a 403).404
Related
Watches
Lifecycle, scheduling, billing, and auto-pause behavior.
Watch runs
Read preserved run history after cancellation.
Get a watch
Read the watch and its recent runs.
Create a watch
Create a new scheduled query.