/auth/login
example onlyThe response below is an example, not a live call. A real token needs a signature over a fresh challenge message. This is an example of the shape you get back. The request on the left is exact — run it from your authenticated client.
Body
Bearer token · optional
curl -X POST "https://app.crxfx.com/svc/relayer/auth/login" \
-H "Content-Type: application/json" \
-d '{
"address": "0x0000000000000000000000000000000000000000",
"signature": "0x"
}'Response
Press Example to see a sample response — this call opens a live trade and runs from your authenticated desk.
POST /auth/login is step 2 of login. It exchanges a personal_sign signature over the challenge message for a JWT valid for one hour. Send the token as Authorization: Bearer <token> on every authenticated call.
- Body:
{ "address": "0x…", "signature": "0x…" }. - Returns:
{ "token": "eyJ…", "expires_at": 1780313385 }(expires_atis a Unix timestamp).