https://prefect.io logo
Title
s

scott

03/24/2023, 8:31 PM
Not sure where to give feedback on the REST API docs at https://app.prefect.cloud/api/docs - so here goes: The initial thing I usually look for in api docs is how to pass auth in a request, and I couldn’t find that info anywhere in the docs - ended up figuring it out via searching here, but I’d think this basic info would be right at the top of the docs. In addition, it was unclear which API token would work: do service account keys work, or only personal keys? I think only personal keys work, but that’s just a guess
s

Sunny Pachunuri

04/25/2023, 11:51 AM
Hey @scott. I felt the same about the API documentation. Is there any way you can share the code which worked for you
s

scott

04/25/2023, 4:42 PM
@Sunny Pachunuri In hindsight it’s pretty straightforward, similar to many APIs - e.g.,
curl -H "Authorization: Bearer your-token" <https://api.prefect.cloud/api/{some-route}>
👍 2