Skip to content

MaintenanceThe former company search endpoint goes into maintenance on November 9Migration guide

Endpoints // Lists

Cancel a List operation

New

Last verified

Available inAPIMCPSDK

Stop an import for good, whichever key of the workspace started it. Lines not started are never charged.

POST/v2/lists/:listId/operations/:operationId/cancel

Credits

Free.

Lines that had not started are never charged.

Introduction

The Cancel a List operation endpoint stops an import for good. Lines already in flight finish and are charged as usual; lines that had not started are never charged and read not_reached in the per-line results. Members already added stay on the List.

Any key of the workspace with the lists permission can cancel an import, whichever key started it: a rotated key can still stop an import its predecessor queued.

Cancelling is free (0 credits) and final: sending the import again with the same operationId returns the cancelled operation, and a new run needs a new operationId. Cancelling an operation already cancelled answers it again, and an operation already stopped by a List limit or a lack of credits is answered with its own stopReason (list_member_limit, list_pending_intake_limit or insufficient_credits). When the import has a webhookUrl, that URL receives the cancelled state.

Authorization

NameTypeRequiredDescription
apikeystringYesYour API key from the developer dashboard. Pass it via Authorization: Bearer YOUR_API_KEY header.

Request

The route is POST /v2/lists/:listId/operations/:operationId/cancel.

Path parameters

NameTypeRequiredDescription
listIdstringYesList id (UUID)
operationIdstringYesThe operationId of the import acknowledgement

The request has no body.

Response structure

FieldTypeDescription
successbooleantrue if the operation was cancelled
errornullAlways null on success

data is the cancelled operation, with the fields of Read a List operation: status is cancelled, clientAction is done and stopReason is cancelled, or the reason of an earlier stop. Its progress and creditsConsumed can still move while the lines in flight finish: read the operation again to see the final counts.

quotas and metadata are the blocks of every V2 response: see Usage.

Errors

StatusCodeMeaning
404LIST_OPERATION_NOT_FOUNDNo operation with this id on this List of your workspace
409LIST_OPERATION_NOT_CANCELLABLEThe operation already ended: there is nothing left to cancel

Code examples

Code Examples

curl -X POST https://api.reversecontact.com/v2/lists/3f6c2a8e-1b4d-4f0a-9c7e-5d2b8a1e6f40/operations/c4d5e6f7-8a9b-4c0d-9e1f-2a3b4c5d6e7f/cancel \
  -H "Authorization: Bearer YOUR_API_KEY"

Example response

Example Response

{
  "success": true,
  "data": {
    "operationId": "c4d5e6f7-8a9b-4c0d-9e1f-2a3b4c5d6e7f",
    "listId": "3f6c2a8e-1b4d-4f0a-9c7e-5d2b8a1e6f40",
    "kind": "list_intake_persons",
    "status": "cancelled",
    "clientAction": "done",
    "progress": {
      "processed": 120,
      "total": 500,
      "succeeded": 114,
      "failed": 6,
      "skipped": 0,
      "remaining": 380,
      "unknownCount": 0
    },
    "creditsConsumed": 456,
    "creditsPending": 0,
    "creditsEstimated": 0,
    "maxCredits": 2000,
    "estimatedSeconds": 0,
    "estimateBlockedUntil": null,
    "pollAfterSeconds": 0,
    "pollUrl": "/v2/lists/3f6c2a8e-1b4d-4f0a-9c7e-5d2b8a1e6f40/operations/c4d5e6f7-8a9b-4c0d-9e1f-2a3b4c5d6e7f/progress",
    "followUp": {
      "tool": "get_list_operation",
      "arguments": {
        "listId": "3f6c2a8e-1b4d-4f0a-9c7e-5d2b8a1e6f40",
        "operationId": "c4d5e6f7-8a9b-4c0d-9e1f-2a3b4c5d6e7f"
      },
      "pollAfterSeconds": 0
    },
    "replay": { "reuseOperationId": true, "startNewWork": false, "debitAgain": false },
    "stopReason": "cancelled",
    "nextStep": {
      "action": "none",
      "message": "Cancelled. Rows that had not started were not charged."
    },
    "errorMessage": null,
    "startedAt": "2026-10-28T09:16:00.000Z",
    "completedAt": "2026-10-28T09:18:12.000Z",
    "createdAt": "2026-10-28T09:15:58.000Z",
    "updatedAt": "2026-10-28T09:18:12.000Z"
  },
  "error": null,
  "quotas": {
    "creditsConsumed": 0,
    "workspace": {
      "id": "ws_abc123",
      "credits": { "total": 10000, "used": 4978, "left": 5022 }
    }
  },
  "metadata": {
    "requestId": "req_c1a2n3c4e5l6",
    "executionTimeMs": 40
  }
}