Sections in this category

Access_token refresh

  • Updated

In case access_token expires, you can update it using refresh_token. Make POST request to URL using data format application/x-www-form-urlencoded and transfer the following parameters:

Name Required Description
client_id ID of your application*.
client_secret Secret key of your application
grant_type Request type
  • refresh_token
refresh_token The value obtained after authorization.

* The app ID and secret key are available for the authorized publisher in their account (by clicking the “Show credentials” button.

Example of a request using a curl utility for client_id=cb281d918a37e346b45e9aea1c6eb7, client_secret=a0f8a8b24de8b8182a0ddd2e89f5b1 and refresh_token=7521b7640c:

curl -X POST -d

Example of request

POST /token/ HTTP/1.1
Content-Type: application/x-www-form-urlencoded;charset=UTF-8


As a result of this request you will get a new access_token. The time to live of the token in seconds expires_in, refresh_token and additional information for users are returned as well:

"username": "webmaster1",
"first_name": "name",
"last_name": "surname",
"language": "ru",
"access_token": "4b8b33955a",
"token_type": "bearer",
"expires_in": 604800,
"refresh_token": "ea957cce42",
"scope": "advcampaigns banners websites",
"group": "webmaster"

Was this article helpful?

0 out of 0 found this helpful