3

The SendGrid API needs some large JSON in the X-SMTPAPI custom header field. How can I enter & edit this in Postman?

E.g.:

{
  "to": [
    "ben@sendgrid.com",
    "joe@sendgrid.com"
  ],
  "sub": {
    "%name%": [
      "Ben",
      "Joe"
    ],
    "%role%": [
      "%sellerSection%",
      "%buyerSection%"
    ]
  },
  "section": {
    "%sellerSection%": "Seller information for: %name%",
    "%buyerSection%": "Buyer information for: %name%"
  },
  "category": [
    "Orders"
  ]
}
Obiwahn
  • 2,677
  • 2
  • 26
  • 36

1 Answers1

5

it should be easy to do.

Just modify your postman header request as illustrated in the screenshot below.

Screenshot of header

Dai Bok
  • 3,451
  • 2
  • 53
  • 70