JavaScript SDK: swarmhit.pendingVoiceNotes.reject(pendingVoiceNoteId)
Reject a generated note. The lead continues down the "no reply" branch without it. An unknown id is a 400 with code: warning-pending-voice-note-not-found, and a note that is no longer pending a 400 with code: warning-pending-voice-note-decided.
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/pending-voice-notes/string/reject"{ "data": { "id": "string", "campaignId": "string", "campaignLeadId": "string", "leadId": "string", "stepId": "string", "variantId": "string", "status": "pending", "script": "string", "voiceId": "string", "voiceName": "string", "audioUrl": "string", "audioMimeType": "string", "durationMs": 0, "firstName": "string", "lastName": "string", "headline": "string", "profileUrl": "string", "publicIdentifier": "string", "decidedAt": "2019-08-24T14:15:22Z", "sentAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}Reject a comment draft POST
**JavaScript SDK:** [`swarmhit.pendingComments.reject(pendingCommentId)`](/smart-api/sdk/methods#pendingComments) Reject a draft — the lead skips the comment step and continues. An unknown id is a 400 with `code: warning-pending-comment-not-found`, and a draft that is no longer `pending` a 400 with `code: warning-pending-comment-decided`.
Add to the blocklist POST
**JavaScript SDK:** [`swarmhit.blocklist.add(params)`](/smart-api/sdk/methods#blocklist) Adds up to 1000 values: `values` as typed, each read as an email address, a domain (`acme.com`, `@acme.com` or a link to the site) or a LinkedIn profile link, or `entries` with their `type` given. An address also blocks its +tag forms (`jane@acme.com` blocks `jane+news@acme.com`). A domain covers its subdomains and matches email addresses only, so a lead with no email (LinkedIn only) is matched by its profile link. A personal email provider's domain (`gmail.com`) or a public suffix (`co.uk`) is refused: it would block everyone there. A LinkedIn profile is matched by its public identifier or its member id, whichever the lead is known by; a Sales Navigator link or id is refused (no profile read gives it back), as is an internationalized domain name for now. A value already on the list counts as `alreadyBlocked`; one that reads as none of these, or is refused, is returned in `invalid` with why. The leads in campaigns that the new entries match stop at once: up to 500 before the response (`stopped`), any more right after it, in the background (`stopping`).