- Announcements
- System Status
- Changelog
- Introduction
allowlists
chainalysis
analytics
chains
events
exports
environments
gates
members
invites
origins
projects
organizations
sdk
tokens
users
sdk views
settings
visits
sessions
wallets
webhooks
Schemas
Rest API
Creates a new user
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
ID of the environment
User fields that can be updated on dashboard or through the rest API which do not involve any uniqueness checks or further verification
ID of the environment
Standard ISO 3166-1 alpha-2 two-letter country code
Alphanumeric username
BTC wallet address
KDA wallet address
LTC wallet address
CKB wallet address
KAS wallet address
DOGE wallet address
curl --request POST \
--url https://app.dynamicauth.com/api/v0/environments/{environmentId}/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"alias": "An example name",
"firstName": "An example name",
"lastName": "An example name",
"jobTitle": "An example name",
"phoneNumber": "An example name",
"metadata": {},
"tShirtSize": "An example name",
"team": "An example name",
"policiesConsent": true,
"country": "US",
"username": "johndoe",
"btcWallet": "3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5",
"kdaWallet": "k:0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
"ltcWallet": "LUttH43tQ4x4qniCKr1Rqo8ESeXFPdv9ax",
"ckbWallet": "ckt1q9876543210abcdefghijklmnopqrstuvwxyz",
"kasWallet": "kaspa:qrelgny7sr3vahq69yykxx36m65gvmhryxrlwngfzgu8xkdslum2yxjp3ap8m",
"dogeWallet": "DPcy35vmuk8GXcfu1vgFFEeij3BuYYJQKB",
"emailNotification": true,
"discordNotification": true,
"newsletterNotification": true,
"emailVerifiedAt": "2023-11-07T05:31:56Z",
"email": "[email protected]",
"wallets": [
{
"publicWalletAddress": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"chain": "ETH",
"walletName": "An example name",
"walletProvider": "browserExtension",
"additionalWalletAddresses": [
{
"address": "<string>",
"publicKey": "<string>",
"type": "ordinals"
}
]
}
],
"oauthAccounts": [
{
"provider": "emailOnly",
"accountId": "An example name",
"emails": [
"[email protected]"
],
"displayName": "An example name",
"username": "An example name",
"photos": [
"<string>"
],
"profile": {}
}
]
}'
{
"user": {
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f",
"verifiedCredentials": [
{
"address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"chain": "<string>",
"refId": "95b11417-f18f-457f-8804-68e361f9164f",
"signerRefId": "95b11417-f18f-457f-8804-68e361f9164f",
"email": "[email protected]",
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"nameService": {
"avatar": "<string>",
"name": "<string>"
},
"publicIdentifier": "<string>",
"walletName": "<string>",
"walletProvider": "browserExtension",
"walletProperties": {
"turnkeySubOrganizationId": "95b11417-f18f-457f-8804-68e361f9164f",
"turnkeyPrivateKeyId": "95b11417-f18f-457f-8804-68e361f9164f",
"turnkeyHDWalletId": "95b11417-f18f-457f-8804-68e361f9164f",
"isAuthenticatorAttached": true,
"turnkeyUserId": "95b11417-f18f-457f-8804-68e361f9164f"
},
"format": "blockchain",
"oauthProvider": "emailOnly",
"oauthUsername": "<string>",
"oauthDisplayName": "<string>",
"oauthAccountId": "<string>",
"phoneNumber": "9171113333",
"phoneCountryCode": "1",
"isoCountryCode": "US",
"oauthAccountPhotos": [
"<string>"
],
"oauthEmails": [
"<string>"
],
"oauthMetadata": {},
"previousUsers": [
"95b11417-f18f-457f-8804-68e361f9164f"
],
"embeddedWalletId": "<string>",
"walletAdditionalAddresses": [
{
"address": "<string>",
"publicKey": "<string>",
"type": "ordinals"
}
],
"lastSelectedAt": "2023-11-07T05:31:56Z"
}
],
"lastVerifiedCredentialId": "95b11417-f18f-457f-8804-68e361f9164f",
"sessionId": "95b11417-f18f-457f-8804-68e361f9164f",
"alias": "An example name",
"country": "US",
"email": "[email protected]",
"firstName": "An example name",
"jobTitle": "An example name",
"lastName": "An example name",
"phoneNumber": "<string>",
"policiesConsent": true,
"tShirtSize": "An example name",
"team": "An example name",
"username": "An example name",
"firstVisit": "2023-11-07T05:31:56Z",
"lastVisit": "2023-11-07T05:31:56Z",
"newUser": true,
"metadata": {},
"btcWallet": "<string>",
"kdaWallet": "<string>",
"ltcWallet": "<string>",
"ckbWallet": "<string>",
"kasWallet": "<string>",
"dogeWallet": "<string>",
"emailNotification": true,
"discordNotification": true,
"newsletterNotification": true,
"lists": [
"<string>"
],
"scope": "superuser marketing operations",
"missingFields": [
{
"name": "<string>",
"required": true,
"enabled": true,
"unique": true,
"verify": true,
"type": "standard",
"validationRules": {
"unique": true,
"regex": "^0x",
"validOptions": [
{
"label": "small"
},
{
"label": "medium"
},
{
"label": "large"
}
],
"checkboxText": "Agree to the terms and conditions"
},
"validationType": "text",
"label": "<string>"
}
],
"walletPublicKey": "<string>",
"wallet": "<string>",
"chain": "ETH",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"sessions": [
{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"createdAt": "2023-11-07T05:31:56Z",
"ipAddress": "<string>",
"revokedAt": "2023-11-07T05:31:56Z"
}
],
"wallets": [
{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"name": "An example name",
"chain": "ETH",
"publicKey": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"provider": "browserExtension",
"properties": {
"turnkeySubOrganizationId": "95b11417-f18f-457f-8804-68e361f9164f",
"turnkeyPrivateKeyId": "95b11417-f18f-457f-8804-68e361f9164f",
"turnkeyHDWalletId": "95b11417-f18f-457f-8804-68e361f9164f",
"isAuthenticatorAttached": true,
"turnkeyUserId": "95b11417-f18f-457f-8804-68e361f9164f"
}
}
],
"chainalysisChecks": [
{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"createdAt": "2023-11-07T05:31:56Z",
"result": "OK",
"walletPublicKey": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"response": "<string>"
}
],
"oauthAccounts": [
{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"provider": "emailOnly"
}
]
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
ID of the environment
Body
ID of the environment
Standard ISO 3166-1 alpha-2 two-letter country code
Alphanumeric username
BTC wallet address
KDA wallet address
LTC wallet address
CKB wallet address
KAS wallet address
DOGE wallet address
Valid blockchain wallet address, must be an alphanumeric string without any special characters
ETH
, EVM
, FLOW
, SOL
, ALGO
, STARK
, COSMOS
, BTC
browserExtension
, custodialService
, walletConnect
, qrCode
, deepLink
, embeddedWallet
, smartContractWallet
An address associated with a wallet.
The public key associated with the address.
ordinals
, payment
emailOnly
, magicLink
, apple
, bitbucket
, coinbasesocial
, discord
, facebook
, farcaster
, github
, gitlab
, google
, instagram
, linkedin
, microsoft
, twitch
, twitter
, blocto
, banxa
, dynamic
, alchemy
, zerodev
, turnkey
, coinbaseWaas
, sms
Response
ID of the environment
ID of the environment
Valid blockchain wallet address, must be an alphanumeric string without any special characters
ID of the environment
ID of the environment
ID of the environment
This is used to publicly identify a verified credential in a human-friendly way. For example, this will be the email address if credential format=email.
browserExtension
, custodialService
, walletConnect
, qrCode
, deepLink
, embeddedWallet
, smartContractWallet
ID of the environment
ID of the environment
ID of the environment
Whether or not the wallet has an authenticator (passkey, api key, etc) attached to it. If false, the wallet cannot currently be accessed
ID of the environment
blockchain
, email
, oauth
, passkey
, phoneNumber
emailOnly
, magicLink
, apple
, bitbucket
, coinbasesocial
, discord
, facebook
, farcaster
, github
, gitlab
, google
, instagram
, linkedin
, microsoft
, twitch
, twitter
, blocto
, banxa
, dynamic
, alchemy
, zerodev
, turnkey
, coinbaseWaas
, sms
This field contains the phone number in the country. This could also contain the area code within a country.
This field contains the phone international country code. See https://countrycode.org/
ISO-3166 two-character country code. See https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes
This object contains JSON metadata for a social-based verified credential. It may contain data about the user that does not fit into the other structured fields, and could include arbitrary fields about the user from the oauth provider's API.
This will only be provided in the responses for GET /users/{userId}.Previous user IDs that owned this verified credential and was tranfered to the current user ID.
An address associated with a wallet.
The public key associated with the address.
ordinals
, payment
This timestamp indicates the last time this verified wallet was either connected to the user account or selected to become the primary wallet on the account.
ID of the environment
ID of the environment
Standard ISO 3166-1 alpha-2 two-letter country code
Access lists evaluated by Dynamic when considering access for the user.
A whitespace-separate list of permissions associated with the JWT token issued. This conforms to the JWT standard for scope claims: https://datatracker.ietf.org/doc/html/rfc8693#section-4.2
standard
, custom
Optional validation rules for the custom field
If this field must be unique for every user in the environment
The regex pattern that the text field must match
The dropdown options for the select field
The text that will be displayed for the checkbox field
text
, checkbox
, select
ETH
, EVM
, FLOW
, SOL
, ALGO
, STARK
, COSMOS
, BTC
ID of the environment
ID of the environment
ETH
, EVM
, FLOW
, SOL
, ALGO
, STARK
, COSMOS
, BTC
Valid blockchain wallet address, must be an alphanumeric string without any special characters
browserExtension
, custodialService
, walletConnect
, qrCode
, deepLink
, embeddedWallet
, smartContractWallet
ID of the environment
ID of the environment
ID of the environment
Whether or not the wallet has an authenticator (passkey, api key, etc) attached to it. If false, the wallet cannot currently be accessed
ID of the environment
ID of the environment
OK
, BLOCKED
, FAILED
Valid blockchain wallet address, must be an alphanumeric string without any special characters
ID of the environment
emailOnly
, magicLink
, apple
, bitbucket
, coinbasesocial
, discord
, facebook
, farcaster
, github
, gitlab
, google
, instagram
, linkedin
, microsoft
, twitch
, twitter
, blocto
, banxa
, dynamic
, alchemy
, zerodev
, turnkey
, coinbaseWaas
, sms
Was this page helpful?
curl --request POST \
--url https://app.dynamicauth.com/api/v0/environments/{environmentId}/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"alias": "An example name",
"firstName": "An example name",
"lastName": "An example name",
"jobTitle": "An example name",
"phoneNumber": "An example name",
"metadata": {},
"tShirtSize": "An example name",
"team": "An example name",
"policiesConsent": true,
"country": "US",
"username": "johndoe",
"btcWallet": "3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5",
"kdaWallet": "k:0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
"ltcWallet": "LUttH43tQ4x4qniCKr1Rqo8ESeXFPdv9ax",
"ckbWallet": "ckt1q9876543210abcdefghijklmnopqrstuvwxyz",
"kasWallet": "kaspa:qrelgny7sr3vahq69yykxx36m65gvmhryxrlwngfzgu8xkdslum2yxjp3ap8m",
"dogeWallet": "DPcy35vmuk8GXcfu1vgFFEeij3BuYYJQKB",
"emailNotification": true,
"discordNotification": true,
"newsletterNotification": true,
"emailVerifiedAt": "2023-11-07T05:31:56Z",
"email": "[email protected]",
"wallets": [
{
"publicWalletAddress": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"chain": "ETH",
"walletName": "An example name",
"walletProvider": "browserExtension",
"additionalWalletAddresses": [
{
"address": "<string>",
"publicKey": "<string>",
"type": "ordinals"
}
]
}
],
"oauthAccounts": [
{
"provider": "emailOnly",
"accountId": "An example name",
"emails": [
"[email protected]"
],
"displayName": "An example name",
"username": "An example name",
"photos": [
"<string>"
],
"profile": {}
}
]
}'
{
"user": {
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f",
"verifiedCredentials": [
{
"address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"chain": "<string>",
"refId": "95b11417-f18f-457f-8804-68e361f9164f",
"signerRefId": "95b11417-f18f-457f-8804-68e361f9164f",
"email": "[email protected]",
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"nameService": {
"avatar": "<string>",
"name": "<string>"
},
"publicIdentifier": "<string>",
"walletName": "<string>",
"walletProvider": "browserExtension",
"walletProperties": {
"turnkeySubOrganizationId": "95b11417-f18f-457f-8804-68e361f9164f",
"turnkeyPrivateKeyId": "95b11417-f18f-457f-8804-68e361f9164f",
"turnkeyHDWalletId": "95b11417-f18f-457f-8804-68e361f9164f",
"isAuthenticatorAttached": true,
"turnkeyUserId": "95b11417-f18f-457f-8804-68e361f9164f"
},
"format": "blockchain",
"oauthProvider": "emailOnly",
"oauthUsername": "<string>",
"oauthDisplayName": "<string>",
"oauthAccountId": "<string>",
"phoneNumber": "9171113333",
"phoneCountryCode": "1",
"isoCountryCode": "US",
"oauthAccountPhotos": [
"<string>"
],
"oauthEmails": [
"<string>"
],
"oauthMetadata": {},
"previousUsers": [
"95b11417-f18f-457f-8804-68e361f9164f"
],
"embeddedWalletId": "<string>",
"walletAdditionalAddresses": [
{
"address": "<string>",
"publicKey": "<string>",
"type": "ordinals"
}
],
"lastSelectedAt": "2023-11-07T05:31:56Z"
}
],
"lastVerifiedCredentialId": "95b11417-f18f-457f-8804-68e361f9164f",
"sessionId": "95b11417-f18f-457f-8804-68e361f9164f",
"alias": "An example name",
"country": "US",
"email": "[email protected]",
"firstName": "An example name",
"jobTitle": "An example name",
"lastName": "An example name",
"phoneNumber": "<string>",
"policiesConsent": true,
"tShirtSize": "An example name",
"team": "An example name",
"username": "An example name",
"firstVisit": "2023-11-07T05:31:56Z",
"lastVisit": "2023-11-07T05:31:56Z",
"newUser": true,
"metadata": {},
"btcWallet": "<string>",
"kdaWallet": "<string>",
"ltcWallet": "<string>",
"ckbWallet": "<string>",
"kasWallet": "<string>",
"dogeWallet": "<string>",
"emailNotification": true,
"discordNotification": true,
"newsletterNotification": true,
"lists": [
"<string>"
],
"scope": "superuser marketing operations",
"missingFields": [
{
"name": "<string>",
"required": true,
"enabled": true,
"unique": true,
"verify": true,
"type": "standard",
"validationRules": {
"unique": true,
"regex": "^0x",
"validOptions": [
{
"label": "small"
},
{
"label": "medium"
},
{
"label": "large"
}
],
"checkboxText": "Agree to the terms and conditions"
},
"validationType": "text",
"label": "<string>"
}
],
"walletPublicKey": "<string>",
"wallet": "<string>",
"chain": "ETH",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"sessions": [
{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"createdAt": "2023-11-07T05:31:56Z",
"ipAddress": "<string>",
"revokedAt": "2023-11-07T05:31:56Z"
}
],
"wallets": [
{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"name": "An example name",
"chain": "ETH",
"publicKey": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"provider": "browserExtension",
"properties": {
"turnkeySubOrganizationId": "95b11417-f18f-457f-8804-68e361f9164f",
"turnkeyPrivateKeyId": "95b11417-f18f-457f-8804-68e361f9164f",
"turnkeyHDWalletId": "95b11417-f18f-457f-8804-68e361f9164f",
"isAuthenticatorAttached": true,
"turnkeyUserId": "95b11417-f18f-457f-8804-68e361f9164f"
}
}
],
"chainalysisChecks": [
{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"createdAt": "2023-11-07T05:31:56Z",
"result": "OK",
"walletPublicKey": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"response": "<string>"
}
],
"oauthAccounts": [
{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"provider": "emailOnly"
}
]
}
}