GET /v1/me/permissions
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.
Header Parameters
X-Org-ID
string
optional
header
Organization ID (not needed for an API key)
Responses
200
OK
application/jsonorgId
string
permissions
string[]
role
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
403
Forbidden
curl -X GET '/v1/me/permissions' \ -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('/v1/me/permissions', { 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/me/permissions', headers=headers)print(response.json())
package mainimport ( "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))}
200
Response
{ "orgId": "<string>", "permissions": [ "<string>" ], "role": "<string>"}
API Playground
Try this endpoint
GET
/v1/me/permissions
