InsionInsion
TypeScript

Ingest a user

Create or update a user without ingesting a record

const user = await client.ingestAUser({
  clientId: "user-123",
  email: "person@example.com",
  username: "person",
  protected: false,
});

clientId is required. Optional fields are clientUrl, stripeAccountId, email, name, username, protected, and metadata. The response is IngestUserResponse with the Insion user ID.

Set protected: true for trusted accounts that should be exempt from selected automated moderation actions. Reuse the same clientId to update a profile as its details change.