Download OpenAPI specification:Download
Show the webview to allow user to connect to its Knot account.
client_id required | string The oauth2 client id. |
response_type required | string The oauth2 response type (the only one supported for now is 'code'). |
redirect_uri required | string The uri to redirect on success (must be registered for the given client). |
scope | string A permission scope to require (none available for now). |
state required | string A value that will be forwarded in the redirect's query. |
Begin an oauth2 authentication by getting an authorization code.
Client information for the connection.
client_id required | string The oauth2 client id. |
response_type required | string The oauth2 response type (the only one supported for now is 'code'). |
redirect_uri required | string The uri to redirect on success (must be registered for the given client). |
scope | string A permission scope to require (none available for now). |
state | string A value that will be forwarded in the redirect's query. |
email required | string <email> The user's email address. |
password required | string [ 8 .. 255 ] characters The user's password. |
{- "client_id": "string",
- "response_type": "string",
- "redirect_uri": "string",
- "scope": "string",
- "state": "string",
- "email": "user@example.com",
- "password": "stringst"
}
{- "error": "string",
- "error_description": "string"
}
End an oauth2 authentication by getting an access token with an authorization code or a refresh token.
Token information.
grant_type required | string Enum: "authorization_code" "refresh_token" Type of grant used to get an access token. |
client_id required | string The oauth2 client id. |
client_secret required | string The oauth2 client secret. |
code required | string The code given by the authorize route. |
redirect_uri required | string^[a-zA-Z][a-zA-Z0-9+.-]+: The redirect uri used by the authorize route. |
{- "grant_type": "authorization_code",
- "client_id": "string",
- "client_secret": "string",
- "code": "string",
- "redirect_uri": "string"
}
{- "code": 0,
- "access_token": "string",
- "token_type": "string",
- "expires_in": 0,
- "refresh_token": "string",
- "scope": "string"
}