Leads

Remove leads, cancel an import or block companies

Changed on

The bounded undo. Uncontacted leads leave the queue; contacted leads keep their stage and milestones and get no further automated steps. Sent invitations and messages are never reversed. target companies also puts those employers on the do-not-contact list. 404 not_found (resource import) when batchId is not one of this workspace's imports.

post/leads/remove

Request

  • Base URL
    https://app.pumpgtm.com/api/v1
  • Auth
    HTTP bearer

Headers

X-PumpGTM-Clientstring uuid

Optional authorized Team workspace ID from GET /workspaces. Omit to use the key's home workspace.

X-PumpGTM-Userstring

Enterprise partners: act on one end user's workspace using the partner key (a workspace or Team owner key; a personal key gets 403 partner_key_required). Requires the outreach capability on the partner account (403 enterprise_required otherwise); the user must exist and be active (404 user_not_found, 403 user_disabled). Never send it together with X-PumpGTM-Client (400 invalid_request). Omit to use the key's own workspace, unless the partner account has rest.requireUserHeader on (PATCH /api/partner/v1/account): then any /api/v1 request without it is 400 user_header_required and nothing runs.

Request body

OR
OR

Response

Successful response. Read outcome fields; success does not imply delivery.

removalobject required

{ ok: true, selectedCount, removedBeforeContact, automationStoppedAfterContact, alreadyStopped, notFoundCount, importCancelled, excludedCompanies?, historyPreserved: true, sentActionsReversed: false, summary }

Changes

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      endpoint added