Skip to main content
GET
Connect an ad platform

Request contract

  • Method and path: GET /apis/v1/ads/connect/{platform}
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/ads/connect/{platform}
  • platform: path; required
  • profileId: query; optional
  • redirectUrl: query; optional
  • socialAccountId: query; optional
  • adAccountIds: query; optional
  • force: 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.

Path Parameters

platform
string
required

Query Parameters

profileId
string

Your social profile (prf_...); the default profile when omitted.

redirectUrl
string<uri>

Where the browser goes when the flow ends; it must be on your redirect allowlist.

socialAccountId
string

One of your social accounts (acc_...) on the profile. Required for X; on Meta, LinkedIn and Pinterest it picks the login the ads authorization reuses.

adAccountIds
string

Comma-separated platform ad account IDs to limit the connection to.

force
boolean

Always start a new authorization.

Response

Success

alreadyConnected
boolean | null
authUrl
string | null
connectSessionId
string | null
connection
object | null
expiresAt
string<date-time> | null