session-management

Login

Login and generate a new session associated with a JWT. Once you log in from an IP, the same IP must be used for the duration of the session for any subsequent requests.

Ratelimited: True

post/v2/users/login

Request

Request body

publicKeystring
signaturestring

Example request

{
  "publicKey": "PUB_R1_6PTdfWbXvXWQduhcCiRooGHTVpriu15xMqfr7EDq6sWLDj7NjS",
  "signature": "SIG_R1_K35d5hSY5FbNoJwrCfmH6QvPG7m9XmhL2mgWYcSB7q2hKJ2mv39Luck9WBJroSB635ZAXhdg36TYG7QJX1fTidbsMvyE8N",
  "loginPayload": {
    "userId": "12345",
    "nonce": 1621490985,
    "expirationTime": 1621490985
  }
}

Response

returns JWT and the authorizer for signing requests

authorizerstring string required

JWT authorizer you obtain along with the JWT token

tokenstring string required

JWT token

Example response

{
  "authorizer": "03E02367E8C900000500000000000000",
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoic2FuZGVlcCByYWtocmEifQ.wyVq6PlKaldWXtu-jz2hJCvkGl1lM2S7HUKCH8LnXp0"
}

Changes

No recorded changes to this operation across all 1 revision of this API.