Thread
#prefect-server
    Benson Mwangi

    Benson Mwangi

    9 months ago
    Hi, I'm new to prefect and I was wondering if it's possible to trigger a flow through the graphql endpoint. I am currently self-hosting a prefect server and would like to trigger a flow from a separate system running off a UI. Would appreciate any insights or materials that can lead me to a solution. I've successfully installed prefect and able to execute some flows (via linux terminal) including scheduled flows but what I'm looking for is the ability to trigger a flow externally via the graphql api. Sorry for the beginner question 🙂
    Kevin Kho

    Kevin Kho

    9 months ago
    Welcome to Prefect! You can use the Prefect client
    from prefect.client.client import CLient
    client = Client()
    client.create_flow_run(flow_id)
    You can also hit the GraphQL API with a request.
    Benson Mwangi

    Benson Mwangi

    9 months ago
    Thank you very much!