consents_bulk
Bulk version of consents_create for leads the customer uploaded (CSV, CRM, API). Each record: email, obtained_at, method, consent_text, evidence_url (optional). Rows are checked one by one: the response lists the created sqids and, per refused row, {row, email, errors} (row is 1-based). One bad row never stops the others.
Contacts from the Sellvance database (leads found through discovery, saved searches or Find Email) are cold by definition: consent for them is accepted only one record at a time, with evidence (evidence_url), and is queued for spot-check review. Bulk endpoints refuse such rows.
Attestation. Every upload must carry attestation_version="1", which confirms: "I confirm that each person in these records gave consent to receive business email from us, that the consent was obtained lawfully, and that I can produce the evidence on request. I understand that uploading a record that is not true breaks the Acceptable Use Policy." Show this text to the user and get their confirmation first. A record of the confirmation (user, time, IP) is kept with the upload.
Method: POST /api/v1/workspaces/{workspace_sqid}/consents/bulk/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"attestation_version": "<attestation_version>",
"records": "<records>"
},
"name": "consents_bulk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| records | Yes | Up to 1000 objects with email, obtained_at, method, consent_text and optionally evidence_url. | |
| attestation_version | Yes | Must be "1": by sending it you confirm, for every record in this request: "I confirm that each person in these records gave consent to receive business email from us, that the consent was obtained lawfully, and that I can produce the evidence on request. I understand that uploading a record that is not true breaks the Acceptable Use Policy." Ask the user to confirm this text; never send it on their behalf without asking. |