unexpected HTTP error: Unauthorized

I am using Java wrapper, I am getting this error when I am trying to call getting a template API-

https://api.createsend.com/api/v3.1/templates/{templateid}.{xml|json}

I tried oauth as well as API Key method of authenticating, the app has all the permissions in scope.
Please let me know what I am doing wrong.

Carissa Carissa, 1 year ago

Hi alok26sinha    , welcome to our forums!

Looking at our logs of the requests you are making, the templateID is the problem and we're sending back the "4001 Invalid TemplateID or the template doesn't exist" error within our response. I'm afraid that this is because our Canvas templates (made through the 'Gallery' tab) are not yet supported within our API.

I know this would be a really nice feature to have, so I've added your vote for it. We are careful to count all our customers' votes (see https://www.campaignmonitor.com/blog/post/4233/feedback-tool-feature-suggestions), so we'll consider it when planning what features to add in the future, and we'll be sure to email you if and when it's possible.

Any custom templates will certainly work with that API request and the proper template ID.


Carissa
Campaign Monitor
nail.mike, 1 year ago

same problem with http error, thx for the solution carissa

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098