Encode JWT
POST/api/2/jwt/encode
Sign a JWT from the supplied claims, headers and key.
By default the raw token is returned with Content-Type: application/jwt.
Pass output: "json" to receive a structured breakdown of the token
instead. Authentication is optional and only used to resolve a KMS signing
certificate when the header carries a kid for a KMS-enabled org.
Request
Responses
- 200
- 422
Successful Response
Validation Error