List My Project Roles
POSThttps://$CUSTOM-DOMAIN/auth/v1/permissions/me/_search
Returns a list of roles for the authenticated user and for the requesting project (based on the token).
Responses​
- 200
- default
A successful response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
result string[]
{
"result": [
"RoleKey1",
"RoleKey2"
]
}
- Schema
- Example (from schema)
Schema
result string[]
{
"result": [
"RoleKey1",
"RoleKey2"
]
}
- Schema
- Example (from schema)
Schema
result string[]
{
"result": [
"RoleKey1",
"RoleKey2"
]
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://$CUSTOM-DOMAIN/auth/v1/permissions/me/_search' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear