Skip to main content
POST
Cancel scheduled outbound activities

Cancel Search Activities

Cancels all pending/scheduled outbound activities (email, voice, fax) for a search — pending outbound jobs, scheduled contact attempts, and existing activity records are cancelled or marked cancelled. Identify the search by internal searchId or externalSearchId, and optionally restrict cancellation to a single contactDestination.

Request

searchId
string
Internal search identifier (UUID). Provide exactly one of searchId or externalSearchId.
externalSearchId
string
External search identifier. Provide exactly one of searchId or externalSearchId.
contactDestination
string
Optional. Only cancel activities directed at this specific contact destination (email address or phone number). When omitted, all pending activities for the search are cancelled. When provided, it cannot be empty or whitespace-only.

Response

success
boolean
Whether cancellation succeeded.
searchId
string
Resolved internal search identifier. On failure paths this may instead echo the searchId or externalSearchId you sent, before resolution.
externalSearchId
string
External search identifier for the resolved search. Present on success and on some failure paths; may be null.
cancelledCount
number
Total number of pending outbound jobs and scheduled contact attempts cancelled. Present only on success.
cancelledActivities
number
Number of existing activity records marked as cancelled. Present only on success.
message
string
Human-readable summary of what was cancelled. Present only on success.
error
string
Reason cancellation did not succeed. Present only when success is false.
Failures such as “search not found” are represented in the response body with success: false and HTTP 200 — they are not surfaced as 404. Only request validation failures (missing/duplicate identifiers, blank contactDestination) return a 400.

Example Request

Example Response

Search not found (200, success: false):

Error Responses

Use Cases

  • Stop outreach after resolution outside the system: Cancel remaining scheduled attempts once a search is resolved through another channel.
  • Contact-specific suppression: Cancel only the activities targeting a contact who has asked not to be contacted further, via contactDestination.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
searchId
string

The internal search ID (UUID) to cancel activities for

Example:

"123e4567-e89b-12d3-a456-426614174000"

externalSearchId
string

The external search ID (client reference ID) to cancel activities for

Example:

"12345678"

contactDestination
string

Optional: Only cancel activities to this specific contact destination (email/phone)

Example:

"contact@example.com"

Response

201 - application/json

The response is of type object.