JavaScript SDK: swarmhit.pendingVoiceNotes.list(params?)
Generated AI voice notes awaiting manual approval (from ai_voice_note and whatsapp_ai_voice_note steps with review on), newest first. audioUrl plays exactly what the lead would hear, script is what it says, and channel is where it goes (on WhatsApp, to phone). Defaults to status pending; pass status=all for every status.
Authorization
bearerAuth AuthorizationBearer <token>
An API key created on the Access tokens page.
In: header
Query Parameters
status?string
Value in
- "pending"
- "approved"
- "rejected"
- "sent"
- "skipped"
- "failed"
- "all"
campaignId?string
limit?integer
Page size, 1–100.
Range
1 <= value <= 100Default
50offset?integer
Number of records to skip.
Range
0 <= valueDefault
0Response 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", "channel": "linkedin", "phone": "string", "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 }}