Exchange an authorization code for an access token using the OAuth authorization code flow.
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=authorization_code" \
-d "code=THE_CODE_FROM_REDIRECT" \
-d "redirect_uri=https://your-app.com/oauth/callback"
{
"access_token": "blnk_at_...",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "blnk_rt_...",
"scope": "data:read data:write proxy:write"
}
Exchange an authorization code for an access token. Use this endpoint after the user authorizes your app and you receive an authorization code.Documentation Index
Fetch the complete documentation index at: https://guide.cloud.blnkfinance.com/llms.txt
Use this file to discover all available pages before exploring further.
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=authorization_code" \
-d "code=THE_CODE_FROM_REDIRECT" \
-d "redirect_uri=https://your-app.com/oauth/callback"
Basic base64(client_id:client_secret) or use -u flag in cURL.authorization_code for this flow.{
"access_token": "blnk_at_...",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "blnk_rt_...",
"scope": "data:read data:write proxy:write"
}
Authorization: Bearer <access_token> header.Bearer for access tokens.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=authorization_code" \
-d "code=THE_CODE_FROM_REDIRECT" \
-d "redirect_uri=https://your-app.com/oauth/callback"
{
"access_token": "blnk_at_...",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "blnk_rt_...",
"scope": "data:read data:write proxy:write"
}