V1/deals/timeline

Hello community. I was wondering if you can help. I am trying to build a dashboard that will give me a summary of deals each week. So imagine a dashboard with this week going back 10 weeks. At each week, I want to know: deals that are new, deals that were won, deals that were lost.

So if prospect 1 starts out in week today - 10, it would be new. The dashboard would show that prospect over time as it moves through the sales cycle.

I am using: await axios.get(https://api.pipedrive.com/v1/deals/timeline?start_date=${formattedStartDate}&interval=month&amount=6&field_key=update_time&api_token=${apiToken});

And I am getting results, but not getting a timeline.

Anything you can do to help would be much appreciated.

Thanks!