Language
/v1/jwt/generate
Create a JWT with a custom payload, sign it with a secret key using HS256, and optionally set an expiration time in seconds.
The claims object to include in the JWT.
The secret key used to sign the token.
Token expiry in seconds. Defaults to 3600 (1 hour).
curl -X POST https://api.botoi.com/v1/jwt/generate \ -H "Content-Type: application/json" \ -d '{"payload":{"sub":"user_123","role":"admin"},"secret":"my-secret-key-123","expires_in":3600}'
Generate JWTs with specific claims and expiry to test your API authorization logic without going through a full login flow.
Quickly create tokens with different roles (admin, editor, viewer) to prototype role-based access control before building a full auth service.
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.