Getting error while using apis

I am using Grafana apis but in most of the apis I am getting error(404) and also for Oauth authentication, is there any proper documentation for authorization?. Because by using basic auth I am able to access only few apis like i am not able to access “create dashboard” or “get current organization”.Please suggest the solution as soon as possible.

Here are the docs for get current organization. If you are getting a 404, it sounds like you are using the wrong url.

Are you using basic auth or a bearer token?

Here is an example of getting the current org with basic auth -> with the admin user which has password admin

curl http://admin:admin@localhost:3000/api/org