Authentication
Describe the calling credential
Public in the sense that every credential class may call it; anonymous callers get 401.
GET
/
v1
/
me
Describe the calling credential
curl --request GET \
--url https://api.sempera.org/v1/meimport requests
url = "https://api.sempera.org/v1/me"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sempera.org/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "credential",
"kind": "<string>",
"key_kind": "<unknown>",
"key_id": "<unknown>",
"identity": "<unknown>",
"workspace_id": "<unknown>",
"role": "<unknown>",
"scopes": "<unknown>",
"agents": "<unknown>"
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}⌘I
Describe the calling credential
curl --request GET \
--url https://api.sempera.org/v1/meimport requests
url = "https://api.sempera.org/v1/me"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sempera.org/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "credential",
"kind": "<string>",
"key_kind": "<unknown>",
"key_id": "<unknown>",
"identity": "<unknown>",
"workspace_id": "<unknown>",
"role": "<unknown>",
"scopes": "<unknown>",
"agents": "<unknown>"
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}