SendGrid ➔ Tally Payload Specification

Technical reference for automating data exchange between Email API and Forms 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 Tally intake pipeline and mapped to your Forms targets.

Authentication & Event Specs

ParameterSource (SendGrid)Destination (Tally)
Auth MechanismBearer API KeyBearer Token Header
Trigger Eventemail.deliveredIngest Pipeline

Sample Webhook JSON Payload

{
  "event": "email.delivered_to_tally",
  "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": "Tally",
    "auth_mode": "Bearer Token Header",
    "target_endpoint": "https://api.tally.com/v1/ingest",
    "mapped_fields": {
      "submission_id": "{{source.msg_id}}",
      "form_id": "{{source.recipient}}",
      "responder_email": "{{source.event_type}}",
      "fields_payload": "{{source.smtp_code}}"
    }
  }
}

Quick Integration Setup

  1. Retrieve your secret API credentials from your SendGrid developer dashboard using authentication method Bearer API Key.
  2. Configure the target endpoint URL to route payloads into the Tally 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 Bearer API Key credentials.
422 UnprocessableSchema ErrorCheck field keys alignment between source and target payload.

Related Technical Specifications