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

KeyDatatypeRequiredDescription
grant_typestring[REQUIRED] to refresh the token, the value of this should always be: refresh_token
scopestring[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_uristring[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_tokenstring[REQUIRED] Refresh Token obtained previously. This field is mandatory if grant_type = refresh_token

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

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"