cURL
curl --request GET \
--url http://localhost:4100/v1/agents/self \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/agents/self', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"agentId": "<string>",
"agentAddress": "<string>",
"accountId": "<string>",
"ownerAddress": "<string>",
"scopes": [
"<string>"
]
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Agents
Get v1agentsself
Agent session required. Returns only the authenticated agent’s account and owner binding. OAuth-bound agents require account:read. Browser and CLI owner sessions are refused.
cURL
curl --request GET \
--url http://localhost:4100/v1/agents/self \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/agents/self', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"agentId": "<string>",
"agentAddress": "<string>",
"accountId": "<string>",
"ownerAddress": "<string>",
"scopes": [
"<string>"
]
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}