Endpoint
Email side events
POST/api/public/v1/campaigns/{campaign_id}/side-events/emailwrite
Email the campaign's ranked side events and groups to the signed-in owner's own inbox (the same digest as the in-app 'Email me these' button). It never emails anyone else and never contacts a prospect. At most one digest per campaign per 10 minutes: a repeat inside the window returns status duplicate and sends nothing. Returns status: sent, duplicate, suppressed (the address is on the do-not-email list), nothing_to_send (no side events found yet; run the side events refresh in the app first), or error.
Request
curl -X POST "https://sayintel.com/api/public/v1/campaigns/<campaign_id>/side-events/email" \
-H "Authorization: Bearer $SAYINTEL_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{}'Try it out
Try it outPOST/api/public/v1/campaigns/{campaign_id}/side-events/emailwrite
Sent as a bearer token to this site only, and kept in this tab's session storage. It is never written to disk or sent anywhere else.
Paste an API key to run.
Path parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| campaign_id | path | string | yes | — |
Response
{
"ok": true,
"tool": "email_side_events",
"kind": "write",
"data": { ... },
"error": null
}Notes
- Scope required: write. How scopes work.
- Accepts Idempotency-Key. A retry with the same key replays the first result instead of repeating the work.
- Same capability over MCP as the tool email_side_events. MCP setup.