Create User Profile
POST/v1/user_profiles
Create User Profile
Header Parameters
Body ParametersJSON
external_id: optional string
metadata: optional map[string]
Free-form key-value data to attach to this user profile. Maximum 16 keys, with keys up to 64 characters and values up to 512 characters. Values must be non-empty strings.
Returns
Create User Profile
curl https://api.anthropic.com/v1/user_profiles \
-H 'Content-Type: application/json' \
-H 'anthropic-version: 2023-06-01' \
-H 'anthropic-beta: user-profiles-2026-03-24' \
-H "X-Api-Key: $ANTHROPIC_API_KEY" \
-d '{}'Response 200
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"metadata": {
"foo": "string"
},
"trust_grants": {
"foo": {
"status": "status"
}
},
"type": "type",
"updated_at": "2019-12-27T18:11:19.117Z",
"external_id": "external_id"
}Returns Examples
Response 200
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"metadata": {
"foo": "string"
},
"trust_grants": {
"foo": {
"status": "status"
}
},
"type": "type",
"updated_at": "2019-12-27T18:11:19.117Z",
"external_id": "external_id"
}