consents_create
Record that a person consented to business email from this workspace. Give email or lead (sqid); the record is matched to the workspace lead with that address. Required: when (obtained_at, in the past), how (method), the wording shown (consent_text).
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/
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>",
"consent_text": "<consent_text>",
"method": "<method>",
"obtained_at": "<obtained_at>"
},
"name": "consents_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lead | No | Sqid of the workspace lead the consent belongs to (alternative to `email`). | |
| No | The address the consent is for. Optional when `lead` is given; the record is matched to the workspace lead with this address. | ||
| method | Yes | How consent was collected: web_form, double_opt_in, contract, in_person, other. * `web_form` - Web form * `double_opt_in` - Double opt-in * `contract` - Contract / order form * `in_person` - In person (event, call) * `other` - Other | |
| obtained_at | Yes | When the person gave consent: ISO 8601 date or datetime, in the past (2025-03-31 or 2025-03-31T14:00:00Z). | |
| consent_text | Yes | The exact wording the person agreed to (checkbox label, contract clause). | |
| evidence_url | No | Link to the evidence (form submission, signed document). Required for leads that came from the Sellvance database. | |
| evidence_file | No | Evidence file (multipart uploads only; agents use `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. |