# Getting error while using apis

**URL:** <https://community.grafana.com/t/getting-error-while-using-apis/1309>\
**Category:** Grafana Plugin Development\
**Created:** [June 12, 2017, 12:49pm UTC](https://community.grafana.com/t/getting-error-while-using-apis/1309 "2017-06-12T12:49:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![demormp](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@demormp](https://community.grafana.com/u/demormp)\
**Post date:** [June 12, 2017, 12:49pm UTC](https://community.grafana.com/t/getting-error-while-using-apis/1309/1 "2017-06-12T12:49:37Z")

</div>

Hello,  
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.

---

<div class="post-metadata">

**Author:** ![daniellee](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/daniellee/32/41_2.png) [@daniellee](https://community.grafana.com/u/daniellee)\
**Post date:** [June 12, 2017, 1:26pm UTC](https://community.grafana.com/t/getting-error-while-using-apis/1309/2 "2017-06-12T13:26:09Z")

</div>

Here are the docs for [get current organization](http://docs.grafana.org/http_api/org/#get-current-organisation). 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`

```auto
curl http://admin:admin@community.grafana.com/api/org

```
