JavaScript SDK: swarmhit.pendingVoiceNotes.list(params?)
Generated AI voice notes awaiting manual approval (from ai_voice_note steps with review on), newest first. audioUrl plays exactly what the lead would hear, and script is what it says. Defaults to status pending; pass status=all for every status.
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Query Parameters
Value in
- "pending"
- "approved"
- "rejected"
- "sent"
- "skipped"
- "failed"
- "all"
Page size, 1–100.
1 <= value <= 10050Number of records to skip.
0 <= value0Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/pending-voice-notes"{ "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" } ], "paging": { "limit": 0, "offset": 0 }}List AI comment drafts GET
**JavaScript SDK:** [`swarmhit.pendingComments.list(params?)`](/smart-api/sdk/methods#pendingComments) AI-drafted comments on leads' posts awaiting manual approval (from `comment_post` steps with review on), newest first. Defaults to status `pending`; pass `status=all` for every status.
Re-draft a comment POST
**JavaScript SDK:** [`swarmhit.pendingComments.regenerate(pendingCommentId, params?)`](/smart-api/sdk/methods#pendingComments) Ask the AI to re-draft the comment, optionally with a new instruction. Keeps the same post context. 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`.