Hi everyone,
Was trying to communicate with API at https://api.prefect.io, managed to fetch flows and create a flow_run. But after some time the API started to return 403 Forbidden. I created new tokens, but still same 403 error. Is there some API rate limiting, or shadow ban? I don't think that I did more than 50 requests in few hours.
d
Dylan
02/22/2021, 3:09 PM
Hi @Igor Dykhta,
What are you using to manage your authentication for https://api.prefect.io?
Dylan
02/22/2021, 3:09 PM
(the python client, the CLI, a graphql client, etc)
i
Igor Dykhta
02/22/2021, 3:09 PM
a graphql client
Igor Dykhta
02/22/2021, 3:10 PM
I used a post request with authentication: Bearer RUNNER_TOKEN
Igor Dykhta
02/22/2021, 3:10 PM
it worked for some time, then 403
d
Dylan
02/22/2021, 3:15 PM
Ahh okay
Dylan
02/22/2021, 3:16 PM
You need a TENANT scoped token
Dylan
02/22/2021, 3:16 PM
For most API operations related to Flows that you would want to do as a user
Dylan
02/22/2021, 3:16 PM
RUNNER tokens are for agents and they have a limited set of permissions