Not sure where to give feedback on the REST API do...
# ask-community
s
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
j
Thank you Scott! I will share that feedback with the team
s
Thank you
s
Hey @scott. I felt the same about the API documentation. Is there any way you can share the code which worked for you
s
@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