This endpoint is intended for testing and should not be exposed in production environments.
Body Parameters
Project ID to use as the token issuer
Private key in base64-encoded PEM format
Payload to embed in the token. Must include an
id
fieldResponse
Returns a signed JWT string:The signed JWT token
Error Responses
Missing Params - 400 Bad Request
Missing Params - 400 Bad Request
Server Error - 500 Internal Server Error
Server Error - 500 Internal Server Error
Notes
- For testing purposes only - do not expose in production
- The
payload
must contain anid
field which will be used as thesub
in the JWT - The signed token uses the RS256 algorithm and is valid for 5 minutes
- The audience (
aud
) is set toreplyke.com
- No authentication required (intentionally, for testing)
- Use this endpoint to generate test tokens for local development