Ad Server API Documentation

Login API

In order to use the API, it is required first to login to the publisher account with the account’s
credentials.

Request URL:
https://manage.aniview.com/api/token?format=json


Request Method:
POST


Request payload:

{ "id": "<your@email.com>", "password": "<your_password>", "accountId": "<account_id>" }

If your user is associated with multiple accounts, networks or publishers, specify the exact Id you would like to log in to.

Response Status Code:
401 Unauthorized - if you can’t log in.
200 - success!!!


Response Body:
The Response will include JSON object of data, containing the returned token and the
accountId you are connected to.
Example:

{ "data": { "token": "adadSodsaoSTdzQZUYi5IMdvadsRNCqs4tdaAvDSWTfNrxAsfeg5wzikAbE6NktCiYntw1KmhQ2A2v dvaNasdkg-JCmdPauDaddsGddadaaasd4Mi6EUUKbb2SWYIa3BGXTjeQrQIn53k9e94EuMjqRQ68PLEv8VZY3ie aRds_az2y3adCSq7mUCHg== ", "accountId": "5678fa70181f46dc32812345" } }


Once you get a valid token, there are 2 ways of using it:
Each API call should be sent with the token GET / POST / PUT / DELETE.

  1. Set-Cookie:
    token=<token>

  2. Set the header:
    X-Bamboo-Token: <token>

Logout API

The Logout API is called to clean your session cookie and logout from the session

Request URL:
https://manage.aniview.com/api/token/0?format=json


Request Method:
DELETE

Request payload:

{ “id”: 0 }

Status Code:
200 OK