Skip to main content
POST
/
auth
/
wallet
/
login
Wallet Login
curl --request POST \
  --url https://api.g2cplatform.com/v2/auth/wallet/login \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "username": "<string>",
  "password": "<string>"
}
'
{
  "token": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z",
  "wallet": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "username": "<string>",
    "status": "active",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "email": "[email protected]",
    "blockchainAddress": "<string>",
    "metadata": {}
  }
}

Authorizations

X-API-Key
string
header
required

API key for authenticating requests. Include in X-API-Key header.

Body

application/json
username
string
required

Username in format: @

password
string
required

Wallet password

Response

Authentication successful

token
string
required

JWT access token

expiresAt
string<date-time>
required

Token expiration timestamp

wallet
object
required