Refresh an expired access token using the refresh token you received when obtaining the original access token.
Request structure
curl -X POST https://api.cloud.blnkfinance.com/oauth/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-u "YOUR_CLIENT_ID:YOUR_CLIENT_SECRET" \
-d "grant_type=refresh_token" \
-d "refresh_token=blnk_rt_YOUR_REFRESH_TOKEN_HERE"
Basic authentication using your OAuth client ID and client secret. Format: Basic base64(client_id:client_secret) or use -u flag in cURL.
Must be refresh_token for this flow.
The refresh token received when obtaining the original access token.
Response structure
{
"access_token": "blnk_at_...",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "blnk_rt_...",
"scope": "data:read data:write proxy:write"
}
The new access token to use for authenticating API requests. Include in the Authorization: Bearer <access_token> header.
Always Bearer for access tokens.
Number of seconds until the access token expires.
A new refresh token. Use this token for future refresh requests.
Space-separated list of scopes granted to this token.
Need help?
If you’re having trouble with Blnk Cloud, don’t hesitate to send us a message via email at [email protected] or send us a message here.