post

/v4/auth/login

Authenticate a user and set a JWT cookie for session management.

Request body

object
addressstring
required
messagestring
required
signaturestring
required
chainIdnumberChain ID of the wallet

Responses

200
Response for status 200
Schema
object
successboolean
required
Whether login was successful
tokenstringJWT token for Authorization header — only returned in development for cross-site cookie fallback
Example
{
  "success": false,
  "token": "string"
}
post
https://api.merkl.xyz/v4/auth/login
Merkl API
curl -X POST "https://api.merkl.xyz/v4/auth/login"
Live request — this will call https://api.merkl.xyz/ for real.