Skip to main content
GET
List ad accounts

Request contract

  • Method and path: GET /apis/v1/ads/accounts
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/ads/accounts
  • connectionId: query; required
  • adAccountId: query; optional
  • limit: query; optional
  • inScopeOnly: query; optional
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

No additional charge for this operation. Ad spend is billed separately by the ad platform to your connected ad account.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

connectionId
string
required

The ads connection (adc_...) the request runs on: one of yours, from GET /apis/v1/ads/connections. On a request with a JSON body it may be sent as a top-level body member instead.

Pattern: ^adc_[0-9A-Za-z]+$
adAccountId
string

Filter response to a single platform ad account ID (e.g. act_123 for Meta, advertiser_id for TikTok). Returns at most one item.

limit
integer

Clamp the returned accounts[] length. Useful for typeahead pickers on agency tokens with hundreds of advertisers.

Required range: 1 <= x <= 1000
inScopeOnly
boolean
default:false

true returns only the ad accounts this connection accepts as adAccountId on the other /apis/v1/ads endpoints, i.e. those inside its ad-account selection (every item then has selected: true).

Response

Ad accounts

accounts
object[]
cachedAt
string<date-time> | null

Google only. When this list was fetched from Google. Null when it was never served from cache. Absent on other platforms.

stale
boolean

Google only. True when Google's daily API quota was exhausted and this is the last successful fetch, not a live read. Absent on other platforms.