Hash for gmail one click unsubscribe headers #2995
-
Hi everyone, I'm trying to set up the additional headers google is asking for as of 2024's new guidelines for one click unsubscribe headers but having trouble understanding how to implement this in Postal's email API send google requires 2 additional header lines: Header 2: In postal's documentation additional headers are to be included as hashed <- this is the part i'm having trouble with Can someone post an example of how to include this with an api request? here's an example of a typical api send request i send: { testing lone click unsubscribe "} when I tried to add an additional "headers" : to the json it gives me an error saying the value of headers is a string and its not hashed. thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
which programming language are you using? Are you using one of the libraries? https://docs.postalserver.io/developer/client-libraries |
Beta Was this translation helpful? Give feedback.
-
yeah i figured it out, all its asking for is a json object with the headers, like this: "headers" : { works great now. |
Beta Was this translation helpful? Give feedback.
yeah i figured it out,
all its asking for is a json object with the headers, like this:
"headers" : {
"list-unsubscribe-post":"list-unsubscribe-post"
}
etc...
works great now.