Forum Discussion

mmmall's avatar
mmmall
Regular Visitor
9 months ago
Solved

Airflow Job: Run a DAG using API

Hi! We're using the Airflow Job in Fabric.   We need to trigger a DAG when a specific event (webhook) happens. For that, we should use the Airflow Job in the Fabric API.   I haven't been succes...
  • v-achippa's avatar
    v-achippa
    8 months ago

    Hi mmmall,

     

    Thank you for the response. Based on the screenshot here looks like the Fabric portal is calling the Airflow API using a session cookie, not a bearer token. Because of this internal authentication flow, it is not possible to reproduce the same call externally using a client-credentials token or any token we generate ourselves.

     

    Currently fabric does not provide a public API to directly trigger a DAG inside an Apache Airflow Job, that is why your direct API calls fail even with a valid token.

    The only supported approach is to trigger a Fabric item for example like a Notebook or Pipeline using the Fabric REST API and run the logic there.

     

    Thanks and regards,

    Anjan Kumar Chippa