Identity
Create or retrieve an Identity object.
Last updated
Create or retrieve an Identity object.
Last updated
Accepts requests from server environments only (secret API key).
Retrieve the Identity for a user.
body
object An object containing one of the following fields:
userId
string The user's primary key or unique ID in your system.
id
string The id
value of the user's in DFend.
A JSON-encoded object.
Register an identity for a user.
body
object An object containing the following fields:
userId
string The user's primary key or unique ID in your system.
email
string optional The user's email address. Must be a valid email address.
merge
boolean optional Update an existing Identity with this data if one exists.
metadata
object optional Custom metadata you wish to add to this Identity.
If you are using any partner integrations, please be sure to merge the email address a user uses with the integration provider into the Identity you created for them in any other application or service to avoid duplicate Identities.
A JSON-encoded object containing the following fields:
id
string The user's Identity ID under your account on DFend.
created
boolean Whether a new Identity was created.
merged
boolean Whether an existing Identity was updated.
phone
string optional The user's phone number. Must be in .
You must add the id
field to the connected user's data in your system. This is the only way you will be able to match to your users.