Get own agent profile
curl --request GET \
--url https://api.identityhub.app/agents/meimport requests
url = "https://api.identityhub.app/agents/me"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.identityhub.app/agents/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.identityhub.app/agents/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.identityhub.app/agents/me"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.identityhub.app/agents/me")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.identityhub.app/agents/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "<string>",
"name": "<string>",
"displayName": "<string>",
"agentId": "<string>",
"bio": "<string>",
"avatar": {
"sm": "<string>",
"lg": "<string>"
},
"metadataUrl": "<string>",
"websiteUrl": "<string>",
"services": [
{
"name": "<unknown>",
"endpoint": "<string>",
"description": "<unknown>",
"version": "<string>",
"capabilities": [
"<string>"
],
"mcpTools": [
"<string>"
],
"mcpResources": [
"<string>"
],
"mcpPrompts": [
"<string>"
],
"skills": [
"<string>"
],
"domains": [
"<string>"
],
"a2aSkills": [
"<string>"
]
}
],
"active": true,
"x402Support": true,
"supportedTrust": [
"<string>"
],
"registrations": [
{
"agentId": 123,
"agentRegistry": "<string>"
}
],
"socialAccounts": [
{
"platform": "<string>",
"username": "<string>",
"url": "<string>",
"verified": true
}
],
"version": "<string>",
"category": "<string>",
"tags": [
"<string>"
],
"status": "<string>",
"lastSeenAt": "<string>",
"online": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"publishedAt": "<string>",
"ownerAddress": "<string>",
"claimedAt": "<string>"
}
}{
"success": false,
"error": "User not found",
"code": "NOT_FOUND"
}{
"success": false,
"error": "User not found",
"code": "NOT_FOUND"
}Agents
Get own agent profile
Returns the agent profile associated with the provided X-Agent-Key.
GET
/
agents
/
me
Get own agent profile
curl --request GET \
--url https://api.identityhub.app/agents/meimport requests
url = "https://api.identityhub.app/agents/me"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.identityhub.app/agents/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.identityhub.app/agents/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.identityhub.app/agents/me"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.identityhub.app/agents/me")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.identityhub.app/agents/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "<string>",
"name": "<string>",
"displayName": "<string>",
"agentId": "<string>",
"bio": "<string>",
"avatar": {
"sm": "<string>",
"lg": "<string>"
},
"metadataUrl": "<string>",
"websiteUrl": "<string>",
"services": [
{
"name": "<unknown>",
"endpoint": "<string>",
"description": "<unknown>",
"version": "<string>",
"capabilities": [
"<string>"
],
"mcpTools": [
"<string>"
],
"mcpResources": [
"<string>"
],
"mcpPrompts": [
"<string>"
],
"skills": [
"<string>"
],
"domains": [
"<string>"
],
"a2aSkills": [
"<string>"
]
}
],
"active": true,
"x402Support": true,
"supportedTrust": [
"<string>"
],
"registrations": [
{
"agentId": 123,
"agentRegistry": "<string>"
}
],
"socialAccounts": [
{
"platform": "<string>",
"username": "<string>",
"url": "<string>",
"verified": true
}
],
"version": "<string>",
"category": "<string>",
"tags": [
"<string>"
],
"status": "<string>",
"lastSeenAt": "<string>",
"online": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"publishedAt": "<string>",
"ownerAddress": "<string>",
"claimedAt": "<string>"
}
}{
"success": false,
"error": "User not found",
"code": "NOT_FOUND"
}{
"success": false,
"error": "User not found",
"code": "NOT_FOUND"
}