Description and Details

This API is used to exchange an authorization code for an access token in the AISP (Account Information Service Provider) flow. After the user completes authorization via the /authorize endpoint, the application calls this /token endpoint to securely obtain a bearer token. This token is then used to access the user’s account information on behalf of the third-party provider (TPP).


Endpoint

https://api-dev-isolution.xyz/aisp/token
 


VERB Method

POST


Request Headers Parameters

Header KeyValueDescription
Content-Typeapplication/x-www-form-urlencodedRequired: Specifies body format
Acceptapplication/jsonResponse expected in JSON
AuthorizationBasic {base64(client_id:client_secret)}Required: Basic authentication header

 


Body Request Parameters

ParameterTypeRequiredDescription
grant_typestringYesMust be "authorization_code"
codestringYesThe authorization code from /authorize step
redirect_uristringYesSame as used in the /authorize request
client_idstringYesClient identifier issued to the app
client_secretstringYesSecret assigned to the client

Response Parameters

ParameterTypeDescription
access_tokenstringBearer token for authenticated API access
token_typestringToken type (usually "Bearer")
expires_inintegerTime until token expiry (in seconds)
refresh_tokenstringToken to obtain new access token
scopestringScopes granted with the token

HTTP Codes

CodeMeaning
200OK – Token generated successfully
400Bad Request – Missing or malformed parameters
401Unauthorized – Invalid client credentials
403Forbidden – Client lacks permission
500Internal Server Error