Access token

Access tokens are essential for using the A2 platform’s API. Token information is required for most API calls. Only one administrator access token is issued.

Initial issuance of access token

Initially, no access token is issued. Therefore, if integration with the API is required, an access token must be obtained from ADM.

Regenerate access token by API

You can also change the access token as needed. This can be done through the API as well as ADM.

Regenerate Access Token
curl --request POST \
--url https://your_a2_service/settings/access_token \
--header 'Authorization: Bearer <token>'

As soon as a new token is issued, the parts of the application that were linked using the previously issued access token will not work.

Response
{
  "access_token": {
    "access_token": "<string>",
    "token_type": "Bearer"
  },
  "created_at": "2023-11-07T05:31:56Z",
  "currency": "usd",
  "external_channel_url": "<string>",
  "language": "en",
  "tls_domain": "<string>",
  "tls_enable": true,
  "updated_at": "2023-11-07T05:31:56Z",
  "yield_optimization": {
    "ceiling_cpm": 123,
    "floor_cpm": 123,
    "yield_roas_balance": 0.5
  }
}