Skip to main content
POST /auth/verify

Request body

address
string
required
message
string
required
Complete SIWE message created from the nonce response.
signature
string
required
Hex-encoded wallet signature.

Responses

access_token
string
required
refresh_token
string
required
expires_in
number
required
Access token lifetime in seconds.
curl -X POST "https://base.sepolia.api.4mica.xyz/auth/verify" \
  -H "Content-Type: application/json" \
  -d '{
    "address":"0x1111111111111111111111111111111111111111",
    "message":"4mica.io wants you to sign in...",
    "signature":"0xWalletSignature"
  }'
{
  "access_token": "eyJhbGciOi...",
  "refresh_token": "rfr_...",
  "expires_in": 3600
}

Status codes

CodeDescription
200Signature verified and tokens issued.
400The request is malformed.
401The nonce, message, or signature is invalid or expired.
500Authentication could not be completed.