Skip to Content
Accounts

Import an Apple Ads account

POST
/api/v1/accounts

Import an org discovered by POST /connection/discover. Creates the project and enqueues a 90-day backfill sync — the data isn't queryable until that job drains, so poll GET /accounts/{projectId}/syncs.

Required scope: admin.

Authorization

bearerAuth
headerAuthorizationBearer <token>

An API key from Workspace → Settings → API keys, sent as Authorization: Bearer tsk_….

Authorization has two independent axes.

The scope is ranked — a key satisfies any requirement at or below its own tier:

  • read — see state. Never changes anything.
  • write — propose changes (the actions/* endpoints), trigger audits and reports.
  • admin — connection, account import, sync, targets and brief.

There is no approve scope. It was a rung once; it is not one now, and a key requested with it is rejected.

The approval grant (can_approve) is a separate boolean, not a rung. Deciding a queued proposal — approve, reject, revert — needs write and the grant. Keeping them on separate axes is what makes the review gate a control rather than a convention: a key that may propose is not automatically a key that may approve its own proposal.

A key is either org-scoped (reaches every account, optionally limited to a subset) or bound to a single account.

Request Body

application/json
  1. body
asaOrgId*string

Apple Ads org id (numeric string).

Length1 <= length
orgName?string

The org's name in Apple Ads.

Lengthlength <= 120
currency?string
Length3 <= length <= 3
timeZone?string
Lengthlength <= 60
paymentModel?string

The org's payment model: LOC | PAYG.

Lengthlength <= 20
roleNames?array<string>

The API user's ACL roles on the org — recorded so the UI can warn on writes.

Response Body

Account imported; the backfill sync is enqueued.

application/json
  1. response
projectId?string
Formatuuid
asaOrgId?string
Example Request
curl -X POST 'https://tapandscale.com/api/v1/accounts' \  -H 'Content-Type: application/json' \  -d '{  "asaOrgId": "string"}'
Example Response
{  "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",  "asaOrgId": "string"}