post
/v4/auth/login
Authenticate a user and set a JWT cookie for session management.
Request body
object
addressstringrequired
messagestringrequired
signaturestringrequired
chainIdnumberChain ID of the walletResponses
200Response for status 200
Schema
object
successbooleanrequired
Whether login was successfultokenstringJWT token for Authorization header — only returned in development for cross-site cookie fallbackExample
{
"success": false,
"token": "string"
}post
https://api.merkl.xyz/v4/auth/logincurl -X POST "https://api.merkl.xyz/v4/auth/login"
Live request — this will call https://api.merkl.xyz/ for real.