Manage email-only user
Create or update an email-only user. An email-only user is a recipient of a delivery that isn’t associated with an Omni account.
If Omni matches the provided email to an existing email-only user, the user will be updated according to the userAttributes in the request body.
Authorizations
Requires an Organization API Key. Personal Access Tokens (PATs) are not supported for this endpoint.
Include in the Authorization header as: Bearer ORGANIZATION_API_KEY
Body
The user's email address.
An object defining the user's user attributes. Attributes are represented as key/value pairs, where the keys map to the IDs of user attributes (the Reference column in the User attributes page) defined in Omni.
When providing user attributes, note that:
omni_user_timezoneis the only supported system attribute- Values must match the user attribute's specified type. For example,
numberattribute values must be numbers such as1,10, etc. - Values can also be booleans. A boolean is stored as
"true"or"false", so only astringattribute accepts it; anumberattribute rejects it. - Numbers are converted to strings on receipt, so send anything beyond the JSON safe integer range (
2^53 - 1) as a string or it loses precision before Omni sees it. - Multi-value attributes should be provided using arrays. For example:
["US","EU"]or[1, 10]
To unset attributes:
nullvalues""- Empty strings for string attributes[]- Empty arrays for multi-value attributes

