obtainKrakenToken
Create a Kraken Token (JWT) for authentication.
Provide the required input fields to obtain the token.
The token should be used as the Authorization header for any authenticated requests.
Arguments
Input fields that can be used to obtain a Json Web Token (JWT) for authentication to the API.
Returns
ObtainKrakenJSONWebTokenThe 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
Possible Errors
Allowed Viewers
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
1Examples
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.
mutation ObtainKrakenToken($input: ObtainJSONWebTokenInput!) {
obtainKrakenToken(input: $input) {
payload
refreshExpiresIn
refreshToken
token
}
}
Variables
{
"input": ObtainJSONWebTokenInput
}
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"
}
}
}