Create a user.
Create a user
POST
/admin/v1/usersbody parameters
Returns
curl https://api.userhub.com/admin/v1/users \
-H "Authorization: Bearer $USERHUB_ADMIN_KEY" \
--json '{
"displayName": "John Doe",
"email": "[email protected]"
}'
const res = await adminApi.users.create({
displayName: "John Doe",
email: "[email protected]",
});
res, err := adminApi.Users().Create(
context.Background(),
&adminapi.UserCreateInput{
DisplayName: "John Doe",
Email: "[email protected]",
},
)
$res = $adminApi->users->create(
displayName: 'John Doe',
email: '[email protected]',
);
res = admin_api.users.create(
display_name="John Doe",
email="[email protected]",
)
Response bodyJSON
{
"id": "usr_MKFxzgJaAH8JQ4",
"state": "ACTIVE",
"displayName": "John Doe",
"email": "[email protected]",
"emailVerified": false,
"accountConnections": [],
"memberships": [],
"signupTime": "2025-05-15T13:00:00Z",
"view": "FULL",
"createTime": "2025-05-15T13:00:00Z",
"updateTime": "2025-05-15T13:00:00Z"
}