JavaScript SDK: swarmhit.pendingComments.list(params?)
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.
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Query Parameters
Value in
- "pending"
- "approved"
- "rejected"
- "posted"
- "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-comments"{ "data": [ { "id": "string", "campaignId": "string", "campaignLeadId": "string", "leadId": "string", "stepId": "string", "status": "pending", "postUrl": "string", "postText": "string", "prompt": "string", "comment": "string", "firstName": "string", "lastName": "string", "headline": "string", "profileUrl": "string", "publicIdentifier": "string", "decidedAt": "2019-08-24T14:15:22Z", "postedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "paging": { "limit": 0, "offset": 0 }}Get a voice note awaiting review GET
**JavaScript SDK:** [`swarmhit.pendingVoiceNotes.get(pendingVoiceNoteId)`](/smart-api/sdk/methods#pendingVoiceNotes)
List AI voice notes awaiting review GET
**JavaScript SDK:** [`swarmhit.pendingVoiceNotes.list(params?)`](/smart-api/sdk/methods#pendingVoiceNotes) 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.