post https://api.sandbox.usebasis.co/oauth/token
Implements the /token endpoint as defined in OAuth2.1.
Authentication
This endpoint uses Basic authentication. Base64 encode your client_id and client_secret, separated by a colon (:), and include it in the Authorization header of your request.
Authorization: Basic Base64(client_id:client_secret)
Grant Types
- When exchanging an authorization
codefor anaccess_tokenandrefresh_tokenupon completion of an OAuth flow (e.g. User has authorized your Client to access their Profile), use theauthorization_codegrant type. - When acquiring an
access_tokenwith yourclient_idandclient_secret, use theclient_credentialsgrant type. The acceptable scopes areinstitutions:readandprofiles:read. - When acquiring a new
access_tokenfor a specific profile using arefresh_token, use therefresh_tokengrant type. The only acceptable scope isprofile:read.