> ## 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/meta/routes

List the API routes whose access depends on the caller's standing in an organization, with the rule each enforces, so a client can tell whether an action is open to the caller before attempting it.

` GET /v1/meta/routes `

List the API routes whose access depends on the caller's standing in an organization, with the rule each enforces, so a client can tell whether an action is open to the caller before attempting it.

## Servers

- ` / `

## Responses

### ` 200 ` — OK

Content type: ` application/json `

- ` value `: type ` object `

  - ` routes `: type ` array `

    - ` array item `: type ` object `

      - ` method `: type ` string `

      - ` path `: type ` string `

      - ` requirement `: type ` object `

        - ` handlerDecides `: type ` array ` — HandlerDecides are permissions the handler may additionally require depending on the request, so holding all of them is the only way to be sure of reaching it.

          - ` array item `: type ` string `

        - ` humanOnly `: type ` boolean ` — HumanOnly routes refuse every API key.

        - ` kind `: type ` string ` — Kind is one of authenticated, member, permission, any_permission, admin_or_permission. A client that meets a kind it does not know must treat the route as undecidable, never as refused.

        - ` ownedBy `: type ` string ` — OwnedBy names a resource the service also requires the caller to own unless they are an org owner. It is decided with the resource in hand, so a client without the resource cannot know.

        - ` permissions `: type ` array ` — Permissions are checked at the door: all of one for permission and admin_or_permission, at least one for any_permission.

          - ` array item `: type ` string `

### ` 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 `

## Request examples

### cURL

```curl
curl -X GET '/v1/meta/routes' \
  -H 'Authorization: Bearer YOUR_API_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('/v1/meta/routes', {
  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/meta/routes', headers=headers)
print(response.json())
```

### Go

```go
package main

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

func main() {
	req, _ := http.NewRequest("GET", "/v1/meta/routes", 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))
}
```