Contact List Export URI

Hello,

I am trying to export a contact list. I initiated the export of the contact list using this post:

POST /api/v2/outbound/contactlists/.../export

Then, when I try to use the

GET /api/v2/outbound/contactlists/... /export?download=true

I receive the following error.

<?xml version="1.0" encoding="UTF-8"?>

InvalidArgumentOnly one auth mechanism allowed; only the X-Amz-Algorithm query parameter, Signature query string parameter or the Authorization header should be specifiedAuthorizationbearer 1zrKOZW2EX-Guq-XUbYLtpHyYIQxlzPcjB5-hvhHmfWWTodAL2SFBgFVaQleoSa_nWpavPr4nvDz0l3QpTaUxg4E375DB09019B47EZfPadCfvzQp0lV56vuxyguvZwQJjmFWKoNDcbkTjkJjvZr0JT0jXtVK9JX2F0+P21wLeOm08Zyc=

However, when the download=false, it works correctly and I can take the url and grab the export. I am trying this from the developer tools.

Do you know why this might be happening?

It's probably because your app is sending the original Authorization header on the request after the redirect. You'll need to configure your app not to do this. If you're trying to download the file from developer tools, that's never going to work as the dev tools aren't set up to do this.

Okay thanks Tim, I am trying it through Dev tools.

How would you recommend getting the Excel file download, outside of placing the URI in the browser? Is there an easier way to automate or do this if I'm coming from postman?

thanks,
Peter

The APIs are generally meant to be used by some sort of application or script. That would typically mean integrating the APIs into whatever app is accessing the data. That could be a web app, a desktop app, or even a script that you're running locally that uses client credentials.

But if you're just doing this as a shortcut to download the file to use for your own purposes, I'd say using dev tools to get the download URL and copy/pasting it to your browser is a good option if you don't want to write an application to do it.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.