I am having a bit of difficulty with the Api ->...
# prefect-community
n
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
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
@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
Glad it helped 🙌