Prepare token header
The token header must specify aJWT
type and an encryption algorithm. Supported tenant token encryption algorithms are HS256
, HS384
, and HS512
.
Build token payload
First, create a set of search rules:uid
field to obtain your API key’s UID:
Encode header and payload
You must then encode both the header and the payload intobase64
, concatenate them, and generate the token by signing it using your chosen encryption algorithm.