portalSessionCreate
Generate a short lived access token to access the customer portal. The portalSessionCreate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: security:write
mutation portalSessionCreate ($tenantCode: String!, $expiry: Int, $returnUrl: String) {
portalSessionCreate (tenantCode: $tenantCode, expiry: $expiry, returnUrl: $returnUrl) {
errors
token
}
}
ArgumentsLink to Arguments section
{
"tenantCode": "",
"expiry": 123,
"returnUrl": ""
}
| Name | Type | Description |
|---|---|---|
| tenantCode | String | |
| expiry | Int | |
| returnUrl | String |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| token | String |