POST
/
auth
/
verify
curl -X POST https://api.stableyard.fi/v2/auth/verify \
  -H "Content-Type: application/json" \
  -d '{
    "wallet": "0x742d35Cc6634C0532925a3b844Bc9e7595f4fA9",
    "chainType": "evm",
    "signature": "0xabc123...",
    "nonce": "4f7d1a8c2b3e9d10"
  }'
{
  "token": "sy_auth_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.example",
  "accountId": "acc_1234567890",
  "expiresAt": 1773915630,
  "refreshBefore": 1773912030,
  "isNewAccount": false
}
Submit the wallet signature to verify the challenge and receive a session token (JWT). No authentication required for this endpoint.
wallet
string
required
The wallet address that signed the challenge
chainType
string
required
Chain type of the wallet. One of: evm, solana, movement
signature
string
required
The wallet’s signature of the challenge message
nonce
string
required
The nonce from the challenge response
curl -X POST https://api.stableyard.fi/v2/auth/verify \
  -H "Content-Type: application/json" \
  -d '{
    "wallet": "0x742d35Cc6634C0532925a3b844Bc9e7595f4fA9",
    "chainType": "evm",
    "signature": "0xabc123...",
    "nonce": "4f7d1a8c2b3e9d10"
  }'
{
  "token": "sy_auth_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.example",
  "accountId": "acc_1234567890",
  "expiresAt": 1773915630,
  "refreshBefore": 1773912030,
  "isNewAccount": false
}
token
string
required
Session token to use in subsequent requests. Prefix: sy_auth_
accountId
string
required
The authenticated account ID
expiresAt
number
required
Unix timestamp when the token expires
refreshBefore
number
required
Unix timestamp — refresh the token before this time
isNewAccount
boolean
required
Whether this authentication created a new account