Create User
Users
Create user
Create a new user with linked accounts. Optionally pre-generate embedded wallets for the user.
POST
Create User
SDK methods
Learn more about creating users using our SDKs here.Authorizations
Basic Auth header with your app ID as the username and your app secret as the password.
Headers
ID of your Privy app.
Body
application/json
linked_accounts
(LinkedAccountWalletInput · object | LinkedAccountEmailInput · object | LinkedAccountPhoneInput · object | LinkedAccountGoogleInput · object | LinkedAccountTwitterInput · object | LinkedAccountDiscordInput · object | LinkedAccountGithubInput · object | LinkedAccountSpotifyInput · object | LinkedAccountInstagramInput · object | LinkedAccountTiktokInput · object | LinkedAccountLineInput · object | LinkedAccountTwitchInput · object | LinkedAccountAppleInput · object | LinkedAccountLinkedInInput · object | LinkedAccountFarcasterInput · object | LinkedAccountTelegramInput · object | LinkedAccountCustomJWTInput · object | LinkedAccountPasskeyInput · object)[]
required
The payload for importing a wallet account.
- LinkedAccountWalletInput
- LinkedAccountEmailInput
- LinkedAccountPhoneInput
- LinkedAccountGoogleInput
- LinkedAccountTwitterInput
- LinkedAccountDiscordInput
- LinkedAccountGithubInput
- LinkedAccountSpotifyInput
- LinkedAccountInstagramInput
- LinkedAccountTiktokInput
- LinkedAccountLineInput
- LinkedAccountTwitchInput
- LinkedAccountAppleInput
- LinkedAccountLinkedInInput
- LinkedAccountFarcasterInput
- LinkedAccountTelegramInput
- LinkedAccountCustomJWTInput
- LinkedAccountPasskeyInput
Example:
{
"type": "email",
"address": "[email protected]"
}Custom metadata associated with the user.
Wallets to create for the user.
Response
200 - application/json
Newly created user object.
A Privy user object.
linked_accounts
(LinkedAccountEmail · object | LinkedAccountPhone · object | LinkedAccountEthereum · object | LinkedAccountSolana · object | LinkedAccountSmartWallet · object | LinkedAccountEthereumEmbeddedWallet · object | LinkedAccountSolanaEmbeddedWallet · object | LinkedAccountBitcoinSegwitEmbeddedWallet · object | LinkedAccountBitcoinTaprootEmbeddedWallet · object | LinkedAccountCurveSigningEmbeddedWallet · object | LinkedAccountGoogleOauth · object | LinkedAccountTwitterOauth · object | LinkedAccountDiscordOauth · object | LinkedAccountGithubOauth · object | LinkedAccountSpotifyOauth · object | LinkedAccountInstagramOauth · object | LinkedAccountTiktokOauth · object | LinkedAccountLineOauth · object | LinkedAccountTwitchOauth · object | LinkedAccountLinkedInOauth · object | LinkedAccountAppleOauth · object | LinkedAccountCustomOauth · object | LinkedAccountCustomJwt · object | LinkedAccountFarcaster · object | LinkedAccountPasskey · object | LinkedAccountTelegram · object | LinkedAccountCrossApp · object | LinkedAccountAuthorizationKey · object)[]
required
An email account linked to the user.
- LinkedAccountEmail
- LinkedAccountPhone
- LinkedAccountEthereum
- LinkedAccountSolana
- LinkedAccountSmartWallet
- LinkedAccountEthereumEmbeddedWallet
- LinkedAccountSolanaEmbeddedWallet
- LinkedAccountBitcoinSegwitEmbeddedWallet
- LinkedAccountBitcoinTaprootEmbeddedWallet
- LinkedAccountCurveSigningEmbeddedWallet
- LinkedAccountGoogleOauth
- LinkedAccountTwitterOauth
- LinkedAccountDiscordOauth
- LinkedAccountGithubOauth
- LinkedAccountSpotifyOauth
- LinkedAccountInstagramOauth
- LinkedAccountTiktokOauth
- LinkedAccountLineOauth
- LinkedAccountTwitchOauth
- LinkedAccountLinkedInOauth
- LinkedAccountAppleOauth
- LinkedAccountCustomOauth
- LinkedAccountCustomJwt
- LinkedAccountFarcaster
- LinkedAccountPasskey
- LinkedAccountTelegram
- LinkedAccountCrossApp
- LinkedAccountAuthorizationKey
A SMS MFA method.
- SmsMfaMethod
- TotpMfaMethod
- PasskeyMfaMethod
Unix timestamp of when the user was created in seconds.
Indicates if the user has accepted the terms of service.
Indicates if the user is a guest account user.
Custom metadata associated with the user.

