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.

Responses

200 OK
application/json
routes object[]
Array of:
method string
path string
requirement object
handlerDecides string[]
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.
humanOnly boolean
HumanOnly routes refuse every API key.
kind 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 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 string[]
Permissions are checked at the door: all of one for permission and admin_or_permission, at least one for any_permission.
401 Unauthorized
curl -X GET '/v1/meta/routes' \  -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('/v1/meta/routes', {  method: 'GET',  headers: {      "Authorization": "Bearer YOUR_API_TOKEN"  }});const data = await response.json();console.log(data);
import requestsheaders = {    'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.get('/v1/meta/routes', headers=headers)print(response.json())
package mainimport (	"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))}
200 Response
{  "routes": [    {      "method": "<string>",      "path": "<string>",      "requirement": {        "handlerDecides": [          "<string>"        ],        "humanOnly": true,        "kind": "<string>",        "ownedBy": "<string>",        "permissions": [          "<string>"        ]      }    }  ]}
Ask a question... ⌘I