Skip to main content
POST
/
api
/
generate-token
Generate JWT Token
curl --request POST \
  --url https://ws.kuru.io/api/generate-token \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_address": "0x1234567890abcdef1234567890abcdef12345678"
}
'
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expires_at": 1700000000,
"rate_limit": {
"rps": 1,
"burst": 1
}
}

Body

application/json
user_address
string
required

Ethereum address of the user

Example:

"0x1234567890abcdef1234567890abcdef12345678"

Response

Successfully generated JWT token

token
string

JWT token string

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

expires_at
integer<int64>

Token expiration timestamp (Unix timestamp)

Example:

1700000000

rate_limit
object