Skip to main content
POST
/
api
/
agent-payments
/
wallet
Create or import wallet for the authenticated user.
curl --request POST \
  --url https://openagents.com/api/agent-payments/wallet \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "mnemonic": "abandon ability able about above absent absorb abstract absurd abuse access accident"
}
'
{
  "data": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Create a new Spark wallet for the current user, or import an existing one with a mnemonic.

mnemonic
string | null
Example:

"abandon ability able about above absent absorb abstract absurd abuse access accident"

Response

Successful response

data
object