Skip to main content

Arguments

email : String! required
numberOfDaysAllowed : Int! required

The number of days that the token will be available for authentication (From now on).

scope : PreSignedTokenScope! required

Define (and limit) the scope of the token.

Returns

GeneratePreSignedToken

Mutation to generate a pre-signed token.

The pre-signed, expiring and opaque tokens will be swapped for a limited scope JWT (Kraken Token).

Allowed Viewers

Customer Partner User Third party

Required Permissions

Can generate pre signed tokens

Query Complexity

1

Examples

The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.

Query

mutation GeneratePreSignedToken( $email: String!, $numberOfDaysAllowed: Int!, $scope: PreSignedTokenScope! ) { generatePreSignedToken( email: $email, numberOfDaysAllowed: $numberOfDaysAllowed, scope: $scope ) { scope token tokenExpiryDatetime } }

Variables

{ "email": "rock-current-type-over-might", "numberOfDaysAllowed": 96, "scope": "SUBMIT_METER_READINGS" }

Response

{ "data": { "generatePreSignedToken": { "scope": "SUBMIT_METER_READINGS", "token": "Republican-would-reflect-last-protect", "tokenExpiryDatetime": "1981-03-02T17:59:15.365968+00:00" } } }