Refresh an Access Token
POST {{baseUrl}}/oauth/token?grant_type=refresh_token&scope={{scope}}&refresh_token={{refresh_token}}
A refresh token allows an application to obtain a new access token without prompting the user.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
grant_type | string | [REQUIRED] to refresh the token, the value of this should always be: refresh_token | |
scope | string | [REQUIRED] A URL-encoded, space-delimited list of member permissions your application is requesting on behalf of the user. Currently available scopes are listed in the API Scopes. | |
redirect_uri | string | [NOT REQUIRED] The URI that will be used to redirect after authorisation. This value must match one of the defined OAuth 2.0 Redirect URLs in your application configuration. See Obtaining BGL API Credentials on how to set redirect uri. | |
refresh_token | string | [REQUIRED] Refresh Token obtained previously. This field is mandatory if grant_type = refresh_token |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
"{ access_token: \"df2f0e40-606f-4311-8066-590732fd126b\" token_type: \"bearer\" refresh_token: \"c50a429f-9a6d-449d-8d82-4817798fe27b\" expires_in: 581977 scope: “audit” }\n"