Issue token for a User

issue sessionJWT of a particular User.

Parameter

Accessible via URL https://api.channel.io/open/v5/users/@{memberId}/session-jwt/issue and HTTP PUT

ParameterExampleRequiredDescriptionParameter Type
memberId12345RequiredmemberId of UserPath
expirationPT30MOptionalIf this property is null, the expiration is set to 1 minute(PT1M).Query

Example

PUT https://api.channel.io/open/v5/users/@12345/session-jwt/issue?expiration=PT30M

Response

Returns an object which includes sessionJWT, and expireAt

{
  "sessionJWT" : "dfw123asdfa.12asda23sdfawe.12adaefaw34",
  "expireAt" : 1689821504019
}