Obtener perfil de usuario
GET/v1/user_profiles/{user_profile_id}
Get a user profile by ID to check the details stored for it.
See the User profiles guide for how to set up and manage profiles.
Parameters
Returns
Obtener perfil de usuario
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.userprofiles.UserProfile;
import com.anthropic.models.userprofiles.UserProfileRetrieveParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
UserProfile userProfile = client.userProfiles().retrieve("uprof_011CZkZCu8hGbp5mYRQgUmz9");
}
}Response 200
{
"id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
"access_type": "application",
"created_at": "2026-03-15T10:00:00Z",
"enforcement_actions": [],
"enforcement_status": "unrestricted",
"external_user_details": {
"account_status": "active",
"country": "US",
"email_hash": null,
"entity_type": "business",
"name_hash": null,
"onboarded_at": "2024-11-02T08:15:00Z",
"reference_id": "user_12345"
},
"metadata": {},
"name": "Example User",
"programs": {
"cyber": {
"requirements": null,
"status": "active",
"tiers": {
"a": {
"status": "inactive"
},
"b": {
"status": "inactive"
},
"c": {
"status": "inactive"
}
}
},
"efs": null
},
"type": "user_profile",
"updated_at": "2026-03-15T10:00:00Z"
}Returns Examples
Response 200
{
"id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
"access_type": "application",
"created_at": "2026-03-15T10:00:00Z",
"enforcement_actions": [],
"enforcement_status": "unrestricted",
"external_user_details": {
"account_status": "active",
"country": "US",
"email_hash": null,
"entity_type": "business",
"name_hash": null,
"onboarded_at": "2024-11-02T08:15:00Z",
"reference_id": "user_12345"
},
"metadata": {},
"name": "Example User",
"programs": {
"cyber": {
"requirements": null,
"status": "active",
"tiers": {
"a": {
"status": "inactive"
},
"b": {
"status": "inactive"
},
"c": {
"status": "inactive"
}
}
},
"efs": null
},
"type": "user_profile",
"updated_at": "2026-03-15T10:00:00Z"
}