The v1/accounts endpoint in the Clarisights API requires the user to send a GET request with authentication to https://platform.adwyze.com/api/v1/accounts, and returns the list of accounts grouped by channels, associated with that company.

The response would be in this format -
{"[channel]": Array<{id: number, name: string, account_id: string}>}
For example -
{"accounts": {"facebook": [{"id": 22, "name": "Product Launch", "account_id": "act_12"}]}}>

The account_id value is available only for Facebook accounts at the moment, and is the unique identifier of the account from Facebook's end.

The id  value is present for all accounts and is the unique identifier of the account on Clarisights. This is used to specify chosen accounts under the data_sources  field in the v1/stats endpoint.

The name value is the name of the account as retrieved from the respective advertising channels.

Did this answer your question?