Skip to main content
POST
/
v1
/
wallets
/
create
Create Wallet (beta)
curl --request POST \
  --url https://api.streambird.io/v1/wallets/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "wallet_type": "ethereum",
  "user_id": "user_2Cu2uVhYy0OVgRcO913OsqIVaPI"
}'
{
  "id": "wallet_2Cu2uYcbwY9kcAFe2zd0P0SHftK",
  "app_id": "app_24ydphdixx2ydhF0E5WUFUKWNqi",
  "user_id": "user_2Cu2uVhYy0OVgRcO913OsqIVaPI",
  "public_address": "0xf1347fd847f19c250b4c9678ecaa27b0f6ce8804",
  "wallet_type": "ethereum",
  "verified": true,
  "is_default": true,
  "is_read_only": false,
  "is_imported": false,
  "updated_at": 1659638371,
  "created_at": 1659638371
}

Authorizations

Authorization
string
header
required

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.

Authentication using App Api Key

Header:

Authorization: Bearer {api_key}

Authenticated Request

curl \
-X GET https://api.streambird.io/v1/auth/users/user_24wFP9pDa9YiMJLun94iKykoZs2 \
-H "Authorization: Bearer sk_test_pRqweh3wvWmJAAVYv7Z0T5iPLzFM4ql0muoyQcjOxGeN3p1r"

Body

application/json
wallet_type
string
required

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. Otherwise, the existing wallet of the same wallet type will be returned. Possible values: ethereum, solana, bitcoin, DOT, XLM (more wallets coming soon).

user_id
string
required

Required Unique User ID of the user to create a new wallet for.

Response

200 - application/json

Create Wallet (beta) response

id
string
app_id
string
user_id
string
public_address
string
wallet_type
string
verified
boolean
is_default
boolean
is_read_only
boolean
is_imported
boolean
updated_at
integer
created_at
integer