> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# GET /v1/me/permissions

List the permissions the caller holds in the organization, decided the same way every route decides them, and the role services apply to the caller. A service-account API key reports developer; its permissions are its own grant.

` GET /v1/me/permissions `

List the permissions the caller holds in the organization, decided the same way every route decides them, and the role services apply to the caller. A service-account API key reports developer; its permissions are its own grant.

## Servers

- ` / `

## Parameters

### ` X-Org-ID ` (header, optional)

Organization ID (not needed for an API key)

- ` value `: type ` string `

## Responses

### ` 200 ` — OK

Content type: ` application/json `

- ` value `: type ` object `

  - ` orgId `: type ` string `

  - ` permissions `: type ` array `

    - ` array item `: type ` string `

  - ` role `: type ` string ` — Role is the org role services apply to this credential. A service-account key is always developer here; its permissions still come from its own list.

### ` 401 ` — Unauthorized

Content type: ` application/json `

- ` value `: type ` object `

  - ` code `: type ` integer `

  - ` details `: type ` array `

    - ` array item `: type ` unknown `

  - ` message `: type ` string `

  - ` requestId `: type ` string `

### ` 403 ` — Forbidden

Content type: ` application/json `

- ` value `: type ` object `

  - ` code `: type ` integer `

  - ` details `: type ` array `

    - ` array item `: type ` unknown `

  - ` message `: type ` string `

  - ` requestId `: type ` string `

## Request examples

### cURL

```curl
curl -X GET '/v1/me/permissions' \
  -H 'Authorization: Bearer YOUR_API_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('/v1/me/permissions', {
  method: 'GET',
  headers: {
      "Authorization": "Bearer YOUR_API_TOKEN"
  }
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN'
}

response = requests.get('/v1/me/permissions', headers=headers)
print(response.json())
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "/v1/me/permissions", nil)
	req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")

	resp, _ := http.DefaultClient.Do(req)
	defer resp.Body.Close()
	result, _ := io.ReadAll(resp.Body)
	fmt.Println(string(result))
}
```