portalSessionCreate

Graphql fields and variables for the portalSessionCreate mutation

Generate a short lived access token to access the customer portal

Scope required: security:write

mutation portalSessionCreate ($tenantCode: String!, $expiry: Int!, $returnUrl: String!) {
  portalSessionCreate (tenantCode: $tenantCode, expiry: $expiry, returnUrl: $returnUrl) {
      errors
      token
  }
}

Arguments

{
  "tenantCode": "",
  "expiry": 123,
  "returnUrl": ""
}
Name
Type
Description

tenantCode

String

expiry

Int

returnUrl

String

Response

Name
Type
Description

errors

List (String)

token

String

Last updated

Was this helpful?