GET/v1/caller
Describe the calling key
Returns the key whose credential is in Authorization, with its scope and permissions. It takes a key credential, not an access token.
curl 'https://api.entitler.co/v1/caller' \
-H "Authorization: Bearer $ENTITLER_KEY"Credentials
Send any one of these:
- Bearer token
Responses
200The DescribeCallerResponse message.
DescribeCallerResponse
keyKeyallowedOriginsarray of stringrequiredcreatedAtintegerrequiredat least 0; at most 18446744073709552000
environmentKindEnvironmentKindrequiredOne of
ENVIRONMENT_KIND_UNSPECIFIED,ENVIRONMENT_KIND_TEST,ENVIRONMENT_KIND_LIVE.expiresAtintegerat least 0; at most 18446744073709552000
exposureKeyExposurerequiredOne of
KEY_EXPOSURE_UNSPECIFIED,KEY_EXPOSURE_SECRET,KEY_EXPOSURE_PUBLISHABLE.idstringrequirednamestringrequiredpermissionsarray of Permissionrequiredrevisionintegerrequiredat least 0; at most 18446744073709552000
scopeKeyScopeenvironmentEnvironmentKeyScopeenvironmentIdstringrequiredprojectIdstringrequired
projectProjectKeyScopeprojectIdstringrequired
teamTeamKeyScope
teamIdstringrequiredupdatedAtintegerrequiredat least 0; at most 18446744073709552000
versionintegerrequiredat least 0; at most 18446744073709552000
ErrorA refusal, with the HTTP status of its gRPC code.
Error
errorobjectrequiredcodestringrequiredparametersobjectrequiredEach value: string
reasonstringor nullrequired