Customer marketingUnsubscribeUrl

The Customer.defaultEmailAddress.marketingUnsubscribeUrl field supplies a url with a token.

Does this token expire? Can I save this url and use it whenever or do I have to query for it within a period of time?

Thank you

1 Like

Hey @edstevo :waving_hand: - taking a look at our docs here, I’m not seeing defaultEmailAddress as a supported field for customer object queries for any currently supported API versions, but I was also able to use it on my end when I used our public APIs - very odd.

I’m going to touch base with our developers to see if this is an API intended for public use at the moment and I’ll loop back with an answer on that and the token expiry question you have here.

Hey @edstevo - just pinging you here again, was able to touch base with our devs faster than I anticipated on this!

They confirmed that the field is safe to use and is intended for public use and that the URL/token has no expiry. Hope this helps!

Thank you! I’m sure you found this now, but the fields are advertised here: Customer - GraphQL Admin