Create a User Identity

Creates a new user identity.

Specify one or more of the unique user_identity_key, email_address, or phone_number. You can also specify the full_name of the user associated with the user_identity.

Code

await seam.userIdentities.create({
  user_identity_key: "jean_doe",
  email_address: "jean@example.com",
  phone_number: "+15555550110",
  full_name: "Jean Doe",
});

Output

{
  "user_identity_id": "48500a8e-5e7e-4bde-b7e5-0be97cae5d7a",
  "user_identity_key": "jean_doe",
  "email_address": "jean@example.com",
  "phone_number": "+15555550110",
  "display_name": "Jean Doe",
  "full_name": "Jean Doe",
  "created_at": "2024-01-11T05:37:50.264Z",
  "workspace_id": "398d80b7-3f96-47c2-b85a-6f8ba21d07be"
}
Authentication Methods
  • API key

  • Personal access token Must also include the seam-workspace header in the request.

To learn more, see Authentication.

Request Parameters

acs_system_ids Array of UUIDs

List of access system IDs to associate with the new user identity through access system users. If there's no user with the same email address or phone number in the specified access systems, a new access system user is created. If there is an existing user with the same email or phone number in the specified access systems, the user is linked to the user identity.


email_address String

Unique email address for the new user identity.


full_name String

Full name of the user associated with the new user identity.


phone_number String

Unique phone number for the new user identity in E.164 format (for example, +15555550100).


user_identity_key String

Unique key for the new user identity.


Response

user_identity


Examples

Last updated

Was this helpful?