Brevo REST events need an email and an event name
Not the sa.js snippet. The REST trackEvent call identifies the contact by email and names the event. properties and eventdata are optional. identify is a different endpoint.
What this pack matches
Rules
Codes are stable. A finding in CI, MCP, or the playground lands on the same id.
| Field | Required | What it checks | Rule ids | Source |
|---|---|---|---|---|
email |
required | Brevo identifies the contact by email on every REST trackEvent call. Native JSON type: string. Fix: Send the contact email in `email`. | vendor.brevo.body.email.missingvendor.brevo.body.email.emptyvendor.brevo.body.email.invalid |
docs |
event |
required | It is the event name to record. Any value is legal except the reserved keys inside `properties`. Native JSON type: string. Fix: Set `event` to the name you want in Automation, such as `cart_updated`. | vendor.brevo.body.event.missingvendor.brevo.body.event.emptyvendor.brevo.body.event.invalid |
docs |
properties |
optional | Optional contact properties. Do not put `email` or `event` inside this object; those keys are reserved. Native JSON type: object. | vendor.brevo.body.properties.invalid |
docs |
eventdata |
optional | Optional event payload, such as cart contents under `eventdata.data`. Native JSON type: object. | vendor.brevo.body.eventdata.invalid |
docs |
properties.email |
forbidden | The vendor documents `properties.email` in the request contract. | vendor.brevo.body.properties.email.forbidden |
docs |
properties.event |
forbidden | The vendor documents `properties.event` in the request contract. | vendor.brevo.body.properties.event.forbidden |
docs |
root |
optional | The vendor documents `` in the request contract. Native JSON type: object. | vendor.brevo.body.root.invalid |
docs |
method |
required | This published ingestion operation uses HTTP POST. Complete HTTP capture contract. Native JSON type: string. | vendor.brevo.http.method.missingvendor.brevo.http.method.emptyvendor.brevo.http.method.invalid |
docs |
content_type |
recommended | Use a published request media type. Complete HTTP capture contract. Presence diagnostic severity: warning. Value diagnostic severity: warning. Native JSON type: string. | vendor.brevo.http.content_type.missingvendor.brevo.http.content_type.emptyvendor.brevo.http.content_type.invalid |
docs |
body |
required | The request body is a JSON object. Complete HTTP capture contract. Native JSON type: object. | vendor.brevo.http.body.missingvendor.brevo.http.body.invalid |
docs |
headers.ma-key |
required | This endpoint requires the documented authentication header. Complete HTTP capture contract. Native JSON type: string. | vendor.brevo.http.headers.ma-key.missingvendor.brevo.http.headers.ma-key.emptyvendor.brevo.http.headers.ma-key.invalid |
docs |
Validate a payload
pixellint validate json @payload.json --rulepack vendor/brevo
Try this failing payload in the playground. Brevo trackEvent missing event name.
{"email":"buyer@example.com","event":""}
cargo install pixellint
·
npm install pixellint