Create a User Identity

Creates a new user identity.

POST /user_identities/create β‡’ { user_identity }
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 ACS system IDs to associate with the user identity through ACS users. If there's no user with the same email address or phone number in the specified ACS systems, a new ACS user is created. If there is an existing user with the same email or phone number in the specified ACS systems, the user is linked to the user identity.


email_address String

Unique email address for the user identity.


full_name String

Full name of the user associated with the user identity.


phone_number String

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


user_identity_key String

Unique key for the user identity.


Response

user_identity

{
  JSON representation of user_identity
}

Examples

Create a 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: "[email protected]",
  phone_number: "+15555550110",
  full_name: "Jean Doe",
});

Output

{
  "user_identity_id": "48500a8e-5e7e-4bde-b7e5-0be97cae5d7a",
  "user_identity_key": "jean_doe",
  "email_address": "[email protected]",
  "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"
}

Last updated

Was this helpful?

Revision created

ci: Generate docs