Skip to main content
POST
/
auth
/
callback
Exchange CLI auth code
curl --request POST \
  --url https://api.lava.so/v1/auth/callback \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>"
}
'
{
  "wallet_key_id": "<string>",
  "wallet_key": "<string>",
  "wallet_id": "<string>",
  "secret_key_id": "<string>",
  "secret_key": "<string>",
  "merchant_id": "<string>"
}

Body

application/json
code
string
required

One-time authorization code received from the browser callback

Response

Authorization successful. Returns wallet key and secret key credentials.

wallet_key_id
string
required

Unique identifier for the created wallet key

wallet_key
string
required

Full wallet key value (lava_wk_*). Store securely.

wallet_id
string
required

Wallet ID associated with the key

secret_key_id
string
required

Unique identifier for the created secret key

secret_key
string
required

Full secret key value (lava_sk_*). Store securely.

merchant_id
string
required

Merchant ID associated with the keys