获取用户配置文件
GET/v1/user_profiles/{user_profile_id}
获取用户配置文件
Parameters
Returns
获取用户配置文件
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
apiKey: process.env["ANTHROPIC_API_KEY"] // This is the default and can be omitted
});
const betaUserProfile = await client.beta.userProfiles.retrieve(
"uprof_011CZkZCu8hGbp5mYRQgUmz9"
);
console.log(betaUserProfile.id);Response 200
{
"id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
"created_at": "2026-03-15T10:00:00Z",
"metadata": {},
"trust_grants": {
"cyber": {
"status": "active"
}
},
"type": "user_profile",
"updated_at": "2026-03-15T10:00:00Z",
"access_type": "application",
"external_id": "user_12345",
"external_user_details": {
"account_status": "active",
"country": "country",
"email_hash": "email_hash",
"entity_type": "individual",
"name_hash": "name_hash",
"onboarded_at": "2019-12-27T18:11:19.117Z",
"reference_id": "reference_id"
},
"external_user_onboarded_at": "2024-11-02T08:15:00Z",
"name": "Example User"
}Returns Examples
Response 200
{
"id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
"created_at": "2026-03-15T10:00:00Z",
"metadata": {},
"trust_grants": {
"cyber": {
"status": "active"
}
},
"type": "user_profile",
"updated_at": "2026-03-15T10:00:00Z",
"access_type": "application",
"external_id": "user_12345",
"external_user_details": {
"account_status": "active",
"country": "country",
"email_hash": "email_hash",
"entity_type": "individual",
"name_hash": "name_hash",
"onboarded_at": "2019-12-27T18:11:19.117Z",
"reference_id": "reference_id"
},
"external_user_onboarded_at": "2024-11-02T08:15:00Z",
"name": "Example User"
}