Use the /api/v1/token endpoint to receive an access token.
https://api.flinks.io/api/v1/token endpoint to receive an access token so that you can start using the Open Banking API.
authorization_code or refresh_token as the grant type, the token will include the following claims:
sub claim can be used to uniquely identify the user at the Data Provider.
authorization_code as the grant type, the refresh_token that you receive is controlled by Flinks. It has an idle timeout of 30 days and does not expire. This means that it can be refreshed indefinitely unless it’s revoked. The refresh_token also does not change when exchanged.
Specifies the type of information you are passing to request an access token. Possible values include:
client_credentialsauthorization_coderefresh_tokenThe authorization code that you receive from the callback during the authorization process. Only pass this field if you are using authorization_code as the grant_type.
The URL that you used in the authorization request. Must be an exact match. Only pass this field if you are using authorization_code as the grant_type.
The refresh token that you're exchanging for a new access token. Only pass this field if you are using refresh_token as the grant_type.
Use for app management, only if you are using client_credentials as the grant_type.
Returned when the token request is successful. The response varies based on the grant_type:
refresh_token - Returns access_token, token_type, and expires_in.authorization_code - Returns access_token, token_type, refresh_token, and expires_in.client_credentials - Returns access_token, token_type, and expires_in.The access token to use for authenticated requests.
The type of token. Value is Bearer.
The number of seconds until the access token expires.
The refresh token to use to obtain a new access token. Only returned when using authorization_code as the grant type.
The scope of data associated with the token.