404 on corporate actions announcements

I am using the Trading API to try to get corporate announcements, but I’m getting a 404 error. The error happens with the live API as well.

I’m following the docs here: Corporate Actions Announcements | Alpaca Docs

Here’s the URL I’m accessing:
https://paper-api.alpaca.markets/v2/corporate_actions/announcements?ca_types=Dividend&since=2022-01-01&until=2022-03-01

I’m sending the API keys/secrets in header.

What am I doing wrong?

@trader87 Ensure you are using a GET command like this. I have gotten a 404 error when accidentally using a POST. That may be the issue?

curl --location --request GET 'https://paper-api.alpaca.markets/v2/corporate_actions/announcements?ca_types=Dividend&since=2022-01-01&until=2022-03-01' \
--header 'Apca-Api-Key-Id: xxxx' \
--header 'Apca-Api-Secret-Key: xxxx' \
--header 'Content-Type: application/json' \

That was the problem. Thanks for the help Dan!