Session Auth
API Reference
Session Auth
POST /auth/session — Exchange a wallet signature for a JWT session token.
POST
Session Auth
This endpoint is free and does not require x402 payment.
Request Body
Your EVM wallet address.
Current Unix timestamp (seconds). Must be within 5 minutes of server time.
Signature of the message
memoclaw-auth:{timestamp} signed with your wallet’s private key.Response (200)
JWT session token. Valid for 7 days. Include as
Authorization: Bearer {token} in subsequent requests.Your wallet address.
ISO 8601 expiry timestamp for the token.
Example
Response
Errors
| Status | Description |
|---|---|
| 401 | Invalid signature or expired timestamp. |
| 422 | Missing required fields (address, timestamp, signature). |