v3.0
Account Service Api

Servers

Choose a server to use:

/api/v1/
https://account-qa.adara.com/api/v1/
https://account-prod.adara.com/api/v1/
oauth2 oauth2

FlowclientCredentials
Token URL/core/v1.0/oauth/token

Create customer account

POST /accounts

Auth
Request Body

Create a new account for a customer

object objectrequired
name stringrequired
customer_id stringrequired
data_provider_id stringoptional
advertiser_id stringoptional
location string

Default: global

required
logo fileoptional
Example Request
Copy
Responses
200 400
object object
active booleanoptional
response objectoptional
id stringrequired
created integerrequired
updated integerrequired
name stringrequired
customer_id stringrequired
data_provider_id stringoptional
advertiser_id stringoptional
location string

Default: global

required
small_logo_url stringoptional
large_logo_url stringoptional
vertical_id stringoptional
default booleanoptional
Example Response
200 Account created for customer
400 Bad Request
Copy

Get customer Accounts

GET /accounts

Auth
Query String
customer_id stringrequired
cursor_id stringoptional
Example Request
Copy
Responses
200 400
object objectrequired
cursor_id string

cursor to get the next sett of managers

optional
active booleanrequired
response arrayrequired
id stringrequired
created integerrequired
updated integerrequired
name stringrequired
customer_id stringrequired
data_provider_id stringoptional
advertiser_id stringoptional
location string

Default: global

required
small_logo_url stringoptional
large_logo_url stringoptional
vertical_id stringoptional
default booleanoptional
Example Response
200 List of Accounts that exist for a Manager or Customer
400 Bad Request
Copy

Update customer account

PUT /accounts/{account_id}

Auth
Path Params
account_id string

account id

required
Request Body

Update a new account for a customer

object objectrequired
name stringoptional
customer_id stringrequired
data_provider_id stringoptional
advertiser_id stringoptional
location string

Default: global

optional
logo fileoptional
Example Request
Copy
Responses
200 400
object object
active booleanoptional
response objectoptional
id stringrequired
created integerrequired
updated integerrequired
name stringrequired
customer_id stringrequired
data_provider_id stringoptional
advertiser_id stringoptional
location string

Default: global

required
small_logo_url stringoptional
large_logo_url stringoptional
vertical_id stringoptional
default booleanoptional
Example Response
200 Account created for customer
400 Bad Request
Copy

get list of customers

GET /customers

Get a tvs score for a particular cookie_id

Auth
Query String
cursor_id stringoptional
Example Request
Copy
Responses
200 400
object objectrequired
cursor_id string

cursor to get the next sett of managers

optional
active booleanrequired
response arrayrequired
id stringrequired
created integerrequired
updated integerrequired
name stringrequired
vertical_id stringrequired
small_logo_url stringoptional
large_logo_url stringoptional
Example Response
200 Get list of customers and
400 Bad Request
Copy

Create Customer

POST /customers

Auth
Request Body

Create a customer in Adara

object objectrequired
name stringrequired
vertical_id stringrequired
logo fileoptional
admin_email stringrequired
default_data_provider_id stringoptional
default_advertiser_id stringoptional
default_location stringrequired
Example Request
Copy
Responses
200 400
object object
active booleanoptional
response objectoptional
id stringrequired
created integerrequired
updated integerrequired
name stringrequired
vertical_id stringrequired
small_logo_url stringoptional
large_logo_url stringoptional
accounts arrayoptional
name stringrequired
customer_id stringrequired
data_provider_id stringoptional
advertiser_id stringoptional
location string

Default: global

required
id stringrequired
created integerrequired
updated integerrequired
small_logo_url stringoptional
large_logo_url stringoptional
vertical_id stringoptional
default booleanoptional
Example Response
200 Customer successfully created
400 Bad Request
Copy

Create a new manager

POST /managers

Auth
Request Body

Create a manager object

object objectrequired
bucket_name stringoptional
small_logo_path stringoptional
large_logo_path stringoptional
name stringrequired
admin_email stringrequired
Example Request
Copy
Responses
200 400
object objectrequired
active booleanrequired
response objectrequired
id stringrequired
created integerrequired
updated integerrequired
name stringrequired
small_logo_url stringoptional
large_logo_url stringoptional
Example Response
200 Manager successfully created
400 Bad Request
Copy

Get list of managers

GET /managers

Auth
Query String
cursor_id stringoptional
Example Request
Copy
Responses
200 400
object objectrequired
cursor_id string

cursor to get the next sett of managers

optional
active booleanrequired
response arrayrequired
id stringrequired
created integerrequired
updated integerrequired
name stringrequired
small_logo_url stringoptional
large_logo_url stringoptional
Example Response
200 Get list of managers and managed Accounts
400 Bad Request
Copy

Approve or Reject Manager access to customer account

PUT /managed_accounts/{managed_account_id}

Auth
Path Params
managed_account_id string

managed account id

required
Request Body
object object
reviewer string

email address of the person that reviewed the access request

optional
approved booleanoptional
Example Request
Copy
Responses
200 400
object object
active booleanoptional
response objectoptional
account_id stringrequired
manager_id stringrequired
customer_id stringrequired
product_id stringrequired
vertical stringrequired
vertical_id stringrequired
location stringrequired
small_logo_url stringoptional
large_logo_url stringoptional
id stringrequired
created integerrequired
updated integerrequired
account_name stringoptional
customer_name stringoptional
Example Response
200 Managed Account Updated
400 Bad Request
Copy

Remove a managed account

DELETE /managed_accounts/{managed_account_id}

Auth
Path Params
managed_account_id string

managed account id

required
Example Request
Copy
Responses
200 400
object object
active booleanoptional
response objectoptional
account_id stringrequired
manager_id stringrequired
customer_id stringrequired
product_id stringrequired
vertical stringrequired
vertical_id stringrequired
location stringrequired
small_logo_url stringoptional
large_logo_url stringoptional
id stringrequired
created integerrequired
updated integerrequired
account_name stringoptional
customer_name stringoptional
Example Response
200 Managed Account Updated
400 Bad Request
Copy

Request access to customer account.

POST /managed_accounts

Auth
Request Body

Add a customer account to a manager portfolio

object object
manager_id stringoptional
customer_id stringoptional
product_id stringoptional
account_id stringoptional
Example Request
Copy
Responses
200 400
object object
active booleanoptional
response objectoptional
account_id stringrequired
manager_id stringrequired
customer_id stringrequired
product_id stringrequired
vertical stringrequired
vertical_id stringrequired
location stringrequired
small_logo_url stringoptional
large_logo_url stringoptional
id stringrequired
created integerrequired
updated integerrequired
account_name stringoptional
customer_name stringoptional
Example Response
200 Managed Account Updated
400 Bad Request
Copy

get managed accounts

GET /managed_accounts

Auth
Query String
manager_id stringoptional
product_id stringoptional
customer_id stringoptional
cursor_id stringoptional
account_id stringoptional
Example Request
Copy
Responses
200 400
object objectrequired
cursor_id string

cursor to get the next sett of managers

optional
active booleanrequired
response arrayrequired
account_id stringrequired
manager_id stringrequired
customer_id stringrequired
product_id stringrequired
vertical stringrequired
vertical_id stringrequired
location stringrequired
small_logo_url stringoptional
large_logo_url stringoptional
id stringrequired
created integerrequired
updated integerrequired
account_name stringoptional
customer_name stringoptional
Example Response
200 List of managed Accounts for a customer product
400 Bad Request
Copy