Vectorizer.AI ➔ SendGrid Payload Specification

Technical reference for automating data exchange between Image Processing and Email API workflows.

💡 How this integration works:

1. Vectorizer.AI triggers an event when vectorization.completed occurs.
2. Data is packaged into a standard JSON webhook payload.
3. Payload is delivered into your SendGrid intake pipeline and mapped to your Email API targets.

Authentication & Event Specs

ParameterSource (Vectorizer.AI)Destination (SendGrid)
Auth MechanismBasic Auth (API Key)Bearer API Key
Trigger Eventvectorization.completedIngest Pipeline

Sample Webhook JSON Payload

{
  "event": "vectorization.completed_to_sendgrid",
  "timestamp": 1788105197,
  "source": {
    "platform": "Vectorizer.AI",
    "auth_mode": "Basic Auth (API Key)",
    "data": {
      "task_id": "sample_task_id_val",
      "output_format": "sample_output_format_val",
      "svg_data_url": "sample_svg_data_url_val",
      "processing_ms": "sample_processing_ms_val"
    }
  },
  "destination": {
    "platform": "SendGrid",
    "auth_mode": "Bearer API Key",
    "target_endpoint": "https://api.sendgrid.com/v1/ingest",
    "mapped_fields": {
      "msg_id": "{{source.task_id}}",
      "recipient": "{{source.output_format}}",
      "event_type": "{{source.svg_data_url}}",
      "smtp_code": "{{source.processing_ms}}"
    }
  }
}

Quick Integration Setup

  1. Retrieve your secret API credentials from your Vectorizer.AI developer dashboard using authentication method Basic Auth (API Key).
  2. Configure the target endpoint URL to route payloads into the SendGrid intake pipeline.
  3. Map incoming schema properties according to the JSON specification detailed above.

Expected HTTP Response Codes

Status CodeMeaningTroubleshooting Step
200 OKSuccessPayload accepted and queued for routing.
401 UnauthorizedAuth FailureVerify headers for valid Basic Auth (API Key) credentials.
422 UnprocessableSchema ErrorCheck field keys alignment between source and target payload.

Related Technical Specifications