Token
Use the /api/v1/token endpoint to receive an access token.
Use theDocumentation Index
Fetch the complete documentation index at: https://docs.flinks.com/llms.txt
Use this file to discover all available pages before exploring further.
https://api.flinks.io/api/v1/token endpoint to receive an access token so that you can start using the Open Banking API.
Token structure
When you use theauthorization_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.
About the refresh_token
When you’re usingauthorization_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.
How to handle an error response
If you receive an error response, refer to the List of Authorization Errors for more information about the error and how to resolve it.Body
Specifies the type of information you are passing to request an access token. Possible values include:
client_credentialsauthorization_coderefresh_token
The 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.
Response
Returned when the token request is successful. The response varies based on the grant_type:
refresh_token- Returnsaccess_token,token_type, andexpires_in.authorization_code- Returnsaccess_token,token_type,refresh_token, andexpires_in.client_credentials- Returnsaccess_token,token_type, andexpires_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.