Arun Dass
08/24/2021, 10:11 PMKevin Kho
08/24/2021, 10:15 PMprefect auth login --key <YOUR-KEY>
but if the key is not persisted, the Client can take in an API keyArun Dass
08/24/2021, 10:17 PMKevin Kho
08/24/2021, 10:25 PMquery = """query {flow{ name, id}}"""
url = '<https://api.prefect.io>'
r = <http://requests.post|requests.post>(url, json={'query': query}, headers={"authorization": "Bearer API_TOKEN"})
Arun Dass
08/24/2021, 10:28 PM