Creates a user in an App that requires authentication. Each user will have a default wallet created for the wallet_type sent in.
POST /v1/auth/users/create
A successful response returns a User object with email_id and phone_number_id properties.
Auth Platform API includes all the Auth related features. All Users, Phone Numbers, Emails, and OTPs are associated with an App as the container.
Endpoints only accept App's Secret API keys other than certain endpoints that are used client side or via SDK that accept the public_token.
Authorization: Bearer {api_key}curl \
-X GET https://api.moonkey.fun/v1/auth/users/user_24wFP9pDa9YiMJLun94iKykoZs2 \
-H "Authorization: Bearer sk_test_pRqweh3wvWmJAAVYv7Z0T5iPLzFM4ql0muoyQcjOxGeN3p1r"Required if phone_number not present Email that uniquely identifies the user.
1Required if email not present E.164 formatted mobile phone number that uniquely identifies the user.
1First name of the user.
1Middle name of the user.
Middle name of the user.
Determines if verification for the authentication method (email, phone_number) is required before marking the user as active.
Determines what type of wallet login. If the user does not have a default wallet of the same wallet_type, a new default wallet will be created for the user. If left blank, the default will be ethereum. Possible values: ethereum, solana, bitcoin, DOT, XLM (more wallets coming soon).
Determines if the full user object should be returned. Defaults to false.
A flexible JSON object for storing custom data about a user. You can store any arbitrary data as key-value pairs.
Update Behavior:
null values for specific fields to delete those fields (merge mode only){} (empty object) to clear all metadatanull for the metadata field itself will be ignored (as if metadata was not sent)replace_metadata: true to replace all metadata without merging