https://prefect.io logo
Title
n

Nic

01/16/2023, 2:04 PM
I am having a bit of difficulty with the Api -> https://app.prefect.cloud/api/docs#tag/Auth For logging in
Get credentials to access Prefect Cloud. Expects an identifying token as the bearer token.
How do i obtain the identifying token to login via this?
a

Anna Geller

01/16/2023, 2:09 PM
what are you trying to accomplish? if you want to e.g. trigger a flow run via API call, you need just API key and URL to your workspace, check out https://discourse.prefect.io/t/how-to-trigger-a-flow-run-from-a-deployment-via-api-call[…]python-requests-library-or-from-a-terminal-using-curl/1396
n

Nic

01/16/2023, 2:10 PM
@Anna Geller we're trying to get information about flowruns to store them internally for a dashboard
So reading flow runs
changed the urls from ur link and it works flawlessly. Thanks!
a

Anna Geller

01/16/2023, 4:19 PM
Glad it helped 🙌