Skip to main content
POST
/
v1
/
auth
/
wallets
/
registrations
/
nonce
Get Wallet Registration Nonce
curl --request POST \
  --url https://api.streambird.io/v1/auth/wallets/registrations/nonce \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "wallet_type": "ethereum",
  "user_id": "user_24wFP9pDa9YiMJLun94iKykoZs2",
  "public_address": "0xF7E9D631bfBd90C19691566Db4AB96697A2663C6"
}'
{
  "id": "walletrr_2BgK7k6hr0PCWNXEYrQ5IwACNtD",
  "user_id": "user_24wFP9pDa9YiMJLun94iKykoZs2",
  "nonce": "Oah2WPXGcKVEdJxpfrL1iFFUqqYuPu0q0z80z1NAB7U",
  "user_created": false
}

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 the type of wallet to register. Possible values: ethereum, solana (more coming soon!).

Minimum length: 1
public_address
string
required

Public wallet address of the wallet.

Minimum length: 1
user_id
string

Unique user ID to associate the wallet with. If left blank/omitted and no user is previously attached to this wallet, we will create a user. Otherwise. we will return the user_id of attached to this wallet in the response.

Minimum length: 1

Response

200 - application/json

OK

id
string
required
Minimum length: 1
app_id
string
required
Minimum length: 1
user_id
string
required
Minimum length: 1
public_address
string
required
Minimum length: 1
wallet_type
string
required
Minimum length: 1
challenge
string
required
Minimum length: 1
updated_at
number
required
created_at
number
required