This recipe explains how to create or update user accounts via the Snag API.
POST /api/users/metadatas
allows you to create or update user objects in Snag’s system which can then be used to migrate users from your existing system. This also allows you to attach useful metadata to new and existing users, such as their social network handle, which can be used for a more seamless user experience in-app and for use in the loyalty program.
POST /api/users/metadatas
endpoint with their wallet address and any metadata you wish to attach. Below is an example request which creates a user account for the given wallet address and attaches various social network handles.
walletAddress
property is required as this is the identifier for the user being created.