Skip to main content

I have made a page that calls the pages/{page_id}/leads endpoint and works fine but if I try to just call the pages/{page_id} endpoint it gives me a 500 error. I am trying to get the conversions from a page vs the count of leads since there are dups in the count.


Any ideas?


const baseURL = "https://api.unbounce.com/pages/REDACTED";

function App() {
const [res, setRes] = React.useState(null);


React.useEffect(() => {
const apiKey = "REDACTED";
const config = {
auth: {
username: apiKey,
password: '',
},
};
axios.get(baseURL, config).then((response) => {
setRes(response);
console.log(response)
});
}, []);

using the leads end point works fine no issues

Be the first to reply!

Reply