Types
Account
Account object structure and behavior
Account Type
The Account object represents a user in the Verisoul system. Each account has a unique identifier, an optional email address, and customizable metadata.
Structure
Field | Type | Required | Description |
---|---|---|---|
id | string | Yes | Unique identifier for the account |
email | string | No | Email address associated with the account |
metadata | object | No | Key-value pairs of custom data associated with the account |
Email Address
An Account can have have a string email address. Verisoul stores only one email address per Account. When updating an account with a new email address, the previous email address is replaced.
Metadata
The metadata object allows you to store custom data with each account. When updating metadata:
- New fields are added to the existing metadata
- Existing fields are overwritten with new values
- Other existing fields are preserved
Example: Metadata Updates
Starting metadata state:
Update 1: Overwrite an existing field
Update 2: Add a new field