Skip to main content

Arguments

input : ObtainJSONWebTokenInput! required

Input fields that can be used to obtain a Json Web Token (JWT) for authentication to the API.

Returns

ObtainKrakenJSONWebToken

The unifying approach used to get a Kraken token (JWT: JSON Web Token) with different types of input.

The currently supported inputs are: - account user email/password combination - account user API key - organization live secret key - pre-signed key - refresh token

Allowed Viewers

Customer Partner User Third party

Required Permissions

(No)

Rate Limits

Key Steps
email_from_graphql_input_fields ['5/m']
failed_logins_per_ip ['3/m']
ip ['50/m']
ip_if_email_or_password_in_input ['10/m']

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 ObtainKrakenToken($input: ObtainJSONWebTokenInput!) { obtainKrakenToken(input: $input) { payload refreshExpiresIn refreshToken token } }

Variables

Response

{ "data": { "obtainKrakenToken": { "payload": "abc123" | 1 | 1.0 | true | ["abc123"] | AccountType, "refreshExpiresIn": 68, "refreshToken": "subject-amount-event-brother-before", "token": "agree-point-seat-rather-suffer" } } }