API reference · 4 endpoints
Async operations
Track, retry, and cancel asynchronous work started by retain and other endpoints.
- GETList async operations
- GETGet operation status
- DELETECancel a pending async operation
- POSTRetry a failed async operation
/v1/default/namespaces/{namespace_id}/operationsList async operations
Get a list of async operations for a specific agent, with optional filtering by status and operation type. Results are sorted by most recent first.
Parameters
namespace_idstringpathrequiredstatusstring | nullqueryFilter by status: pending, processing, completed, failed, or cancelled
typestring | nullqueryFilter by operation type: retain, consolidation, refresh_automation, file_convert_retain, webhook_delivery
limitintegerqueryMaximum number of operations to return
offsetintegerqueryNumber of operations to skip
exclude_parentsbooleanqueryExclude parent batch operations from results
/v1/default/namespaces/{namespace_id}/operations/{operation_id}Get operation status
Get the status of a specific async operation. Returns 'pending', 'completed', or 'failed'. Completed operations are removed from storage, so 'completed' means the operation finished successfully.
Parameters
namespace_idstringpathrequiredoperation_idstringpathrequiredinclude_payloadbooleanqueryInclude the raw task payload (submission params) in the response. May be large.
/v1/default/namespaces/{namespace_id}/operations/{operation_id}Cancel a pending async operation
Cancel a pending async operation by removing it from the queue
Parameters
namespace_idstringpathrequiredoperation_idstringpathrequired/v1/default/namespaces/{namespace_id}/operations/{operation_id}/retryRetry a failed async operation
Re-queue a failed async operation so the worker picks it up again
Parameters
namespace_idstringpathrequiredoperation_idstringpathrequired