Help Page Home - OAuth
POST authorisation/refresh
Refresh an access token using a previously issued refresh token. Visit the documentation area on authentication for detailed explanation.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|
Body Parameters
OAuthRefreshAccessTokenRequestName | Description | Type | Additional information |
---|---|---|---|
grant_type | The grant type when requesting a token refresh. This must be a value of 'refresh_token'. | string |
None. |
refresh_token | The refresh token previously issued in a successfull authentication request. | string |
None. |
scope | The scope of the request. Not applicable to refresh tokens in this scenario. | string |
None. |
Request Formats
application/json, text/json
{ "grant_type": "refresh_token", "refresh_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MioIn0.4fEXVBxeFQB3YkfSQ-W1Wp5XiZJv2jsivcYR2fP73PQ", "scope": "" }
application/xml, text/xml
<OAuthRefreshAccessTokenRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <grant_type>refresh_token</grant_type> <refresh_token>eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MioIn0.4fEXVBxeFQB3YkfSQ-W1Wp5XiZJv2jsivcYR2fP73PQ</refresh_token> <scope /> </OAuthRefreshAccessTokenRequest>
Response Information
Resource Description
A token structure that contains the access token to use on subsequent requests, a refresh token to use to return a new access token when the existing one expires, the number of seconds before the token expires (via expires_in field), the scope which contains a space delimited list of file ids that this token has access to, and finally a token type which (in this case) is always "Bearer". For more information on how this data is used, please see please see this link /Help/Authentication.
Name | Description | Type | Additional information |
---|
Response Formats
application/json, text/json
{ "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.DItMjAxNSAwNTowNjoyOS43NDE0NzYiLCJyb2xlIjoiYWNjZXNzIn0", "token_type": "Bearer", "expires_in": 10800, "refresh_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MioIn0.4fEXVBxeFQB3YkfSQ-W1Wp5XiZJv2jsivcYR2fP73PQ", "scope": "full fileid:15431 fileid:14078 fileid:2045" }
application/xml, text/xml
<OAuthAccessTokenGrant xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <access_token>eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.DItMjAxNSAwNTowNjoyOS43NDE0NzYiLCJyb2xlIjoiYWNjZXNzIn0</access_token> <token_type>Bearer</token_type> <expires_in>10800</expires_in> <refresh_token>eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MioIn0.4fEXVBxeFQB3YkfSQ-W1Wp5XiZJv2jsivcYR2fP73PQ</refresh_token> <scope>full fileid:15431 fileid:14078 fileid:2045</scope> </OAuthAccessTokenGrant>