v4

latestOpenAPI 3.1.02026-08-08278476614.0 KB
enrichment

Cancel Enrichment Workflow

Cancel an in-flight DBOS enrichment workflow + refund any unsettled credits [MAIA-1468].

Returns 204 on success (idempotent on terminal states). 404 if the workflow has no reservation row (Celery-routed enrichment or unknown ID) or if the user doesn't own the workspace it belongs to. Cross-workspace access is 404 not 403 to avoid leaking workflow existence.

The _current_user Depends enforces authn; workspace authz is resolved inside the service via the request-scoped UserService (already bound to the current user via DI).

post/api/v1/enrichment/cancel/{workflow_id}

Path parameters

workflow_idstring required

Response

Successful Response