Using Astronomer Airflow 2.0 unable to use REST

I’ve used astronomer cli to create a dev project ‘astro dev init’, then added .env file with

AIRFLOW__API__AUTH_BACKEND=airflow.api.auth.backend.basic_auth

I verified that ‘auth_backend=airflow.api.auth.backend.basic_auth’ is accepted in both scheduler and webserver. However calling

curl --verbose 'http://localhost:8080/api/v1/variables' -H 'content-type: application/json' --user "admin:admin"

still returns 403 (PermissionDenied).
Is this a bug? What am I missing here?

Hi @khvatov ! Thanks for reaching out and sorry to hear you’re having trouble. Did you end up resolving this issue? If not, take a look at our doc, “Make a Request to the Apache Airflow API”.

That assumes a setup with an Airflow Deployment on Astronomer, not local. But you should be able to take guidance on call syntax. Have you tried making a request to an existing endpoint?

If you’re still having trouble, reach out to Astronomer Support - we have a good number of Airflow experts there who can give you some guidance. I’ll make sure to add some local guidelines to that doc I linked to for folks interested in the doing the same.