Encode JWT.
POST/generate/jsonwebtoken/encode
Encode JWT.
Request
Header Parameters
ipaas string
- application/json
Bodyrequired
datarequired
secretstringrequired
options object
header object
Advanced header values. Only use if you know what you are doing.
x5t#S256string
algorithmstring
The signature algorithm to use. Default is HS256
.
Possible values: [HS256
, HS384
, HS512
, RS256
, RS384
, RS512
, ES256
, ES384
, ES512
, none
]
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (auto)
Schema
tokenstringrequired
The encoded JWT.
{
"token": "string"
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
statusnumber
errorMessagestring
{
"status": 0,
"errorMessage": "string"
}