SendGrid ➔ Vectorizer.AI Payload Specification
Technical reference for automating data exchange between Email API and Image Processing workflows.
💡 How this integration works:
1. SendGrid triggers an event when email.delivered occurs.
2. Data is packaged into a standard JSON webhook payload.
3. Payload is delivered into your Vectorizer.AI intake pipeline and mapped to your Image Processing targets.
Authentication & Event Specs
| Parameter | Source (SendGrid) | Destination (Vectorizer.AI) |
|---|---|---|
| Auth Mechanism | Bearer API Key | Basic Auth (API Key) |
| Trigger Event | email.delivered | Ingest Pipeline |
Sample Webhook JSON Payload
{
"event": "email.delivered_to_vectorizer",
"timestamp": 1788105198,
"source": {
"platform": "SendGrid",
"auth_mode": "Bearer API Key",
"data": {
"msg_id": "sample_msg_id_val",
"recipient": "sample_recipient_val",
"event_type": "sample_event_type_val",
"smtp_code": "sample_smtp_code_val"
}
},
"destination": {
"platform": "Vectorizer.AI",
"auth_mode": "Basic Auth (API Key)",
"target_endpoint": "https://api.vectorizer.com/v1/ingest",
"mapped_fields": {
"task_id": "{{source.msg_id}}",
"output_format": "{{source.recipient}}",
"svg_data_url": "{{source.event_type}}",
"processing_ms": "{{source.smtp_code}}"
}
}
}
Quick Integration Setup
- Retrieve your secret API credentials from your SendGrid developer dashboard using authentication method
Bearer API Key. - Configure the target endpoint URL to route payloads into the Vectorizer.AI intake pipeline.
- Map incoming schema properties according to the JSON specification detailed above.
Expected HTTP Response Codes
| Status Code | Meaning | Troubleshooting Step |
|---|---|---|
200 OK | Success | Payload accepted and queued for routing. |
401 Unauthorized | Auth Failure | Verify headers for valid Bearer API Key credentials. |
422 Unprocessable | Schema Error | Check field keys alignment between source and target payload. |