Current actor
curl --request GET \
--url http://127.0.0.1:4100/api/whoami \
--header 'x-alibi-api-key: <api-key>'import requests
url = "http://127.0.0.1:4100/api/whoami"
headers = {"x-alibi-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-alibi-api-key': '<api-key>'}};
fetch('http://127.0.0.1:4100/api/whoami', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"workspaceId": "<string>",
"displayName": "<string>",
"roles": [
"admin"
],
"projectIds": [
"<string>"
]
}{
"error": "<string>"
}Auth
Current actor
Resolves the caller from x-alibi-api-key, Authorization: Bearer, or x-alibi-actor.
GET
/
whoami
Current actor
curl --request GET \
--url http://127.0.0.1:4100/api/whoami \
--header 'x-alibi-api-key: <api-key>'import requests
url = "http://127.0.0.1:4100/api/whoami"
headers = {"x-alibi-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-alibi-api-key': '<api-key>'}};
fetch('http://127.0.0.1:4100/api/whoami', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"workspaceId": "<string>",
"displayName": "<string>",
"roles": [
"admin"
],
"projectIds": [
"<string>"
]
}{
"error": "<string>"
}