Buat Profil Pengguna
POST/v1/user_profiles
Daftarkan salah satu pelanggan akhir Anda dan dapatkan ID yang perlu dikirim pada permintaan yang Anda buat atas nama pelanggan akhir tersebut.
Lihat panduan profil pengguna untuk mengetahui apa yang perlu dikirim.
Headers
Body
Returns
Buat Profil Pengguna
curl https://api.anthropic.com/v1/user_profiles \
-H 'Content-Type: application/json' \
-H 'anthropic-version: 2026-10-21' \
-H 'anthropic-beta: user-profiles-2026-08-18' \
-H "Authorization: Bearer $ANTHROPIC_API_KEY" \
-d '{
"external_user_details": {
"account_status": "active",
"country": "US",
"entity_type": "business",
"onboarded_at": "2024-11-02T08:15:00Z",
"reference_id": "user_12345"
},
"metadata": {},
"name": "Example User"
}'Response 200
{
"id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
"created_at": "2026-03-15T10:00:00Z",
"metadata": {},
"name": "Example User",
"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": "US",
"email_hash": null,
"entity_type": "business",
"name_hash": null,
"onboarded_at": "2024-11-02T08:15:00Z",
"reference_id": "user_12345"
},
"external_user_onboarded_at": "2024-11-02T08:15:00Z"
}Returns Examples
Response 200
{
"id": "uprof_011CZkZCu8hGbp5mYRQgUmz9",
"created_at": "2026-03-15T10:00:00Z",
"metadata": {},
"name": "Example User",
"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": "US",
"email_hash": null,
"entity_type": "business",
"name_hash": null,
"onboarded_at": "2024-11-02T08:15:00Z",
"reference_id": "user_12345"
},
"external_user_onboarded_at": "2024-11-02T08:15:00Z"
}