POST /auth/nonce
Request body
EVM wallet address that will sign the SIWE message.
Responses
curl -X POST "https://base.sepolia.api.4mica.xyz/auth/nonce" \
-H "Content-Type: application/json" \
-d '{"address":"0x1111111111111111111111111111111111111111"}'
{
"nonce": "9c1c0c7e",
"siwe": {
"domain": "4mica.io",
"uri": "https://4mica.io",
"chain_id": 84532,
"statement": "Sign in to 4Mica",
"expiration": "2026-06-22T11:00:00Z",
"issued_at": "2026-06-22T10:00:00Z"
}
}
Status codes
| Code | Description |
|---|
200 | Nonce and SIWE template created. |
400 | The wallet address is missing or invalid. |
500 | The operator could not create the nonce. |
Sign the generated SIWE message, then call
POST /auth/verify.