403 error - ERA5 data

hello

I am experiencing a 403 Forbidden error when attempting to retrieve ERA5 data using the Python cdsapi library. Despite having accepted the terms of use for the dataset and correctly setting up my API credentials, I continue to receive the error message below:
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.ecmwf.int/v1/retrieve/v1/processes/derived-era5-single-levels-daily-statistics

I have confirmed that my .cdsapirc file contains the correct URL, API key, and email address as follows:

url: https://api.ecmwf.int/v1
key: YOUR_API_KEY
email: YOUR_EMAIL

I would appreciate assitance from anyone on this matter
thanks

You need to use the CDS API as described in the pages:
CDS how-to-api

How to download ERA5