Ads Manager ExtensionResolve an ad account to a client

Resolve an ad account to a client

Which of the agency's clients syncs this ad account, from the clients' Airbyte ad-platform connections. The id is matched on its digits exactly: act_1234567890 and 1234567890 are the same Meta account, 123-456-7890 and 1234567890 the same Google account, and 12 never matches 123. A connection that syncs several accounts matches each of them. Only clients on the caller's roster are returned.

An empty matches is a normal answer, not an error: a client connected before Mythic recorded account ids has no row to match, and the extension then asks the user to pick the client once. Several matches mean several clients sync the same account; active connections are listed first.

curl -X GET "https://mythic-analytics.gulp.workers.dev/client/v1/extension/resolve?platform=meta&account=act_1234567890" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "success": true,
  "data": {
    "platform": "meta",
    "account": "1234567890",
    "matches": [
      {
        "location_id": "c84d700c-...",
        "name": "Boundless Therapy",
        "source": "airbyte",
        "connection_status": "active"
      }
    ],
    "roster_size": 12
  }
}
GET
/client/v1/extension/resolve
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Agency-wide mcp_ key holding extension:read, or an agency key (ak_). A location secret key (sk_) or a client-bound mcp_ key gets 403 agency_key_required. See Using an mcp_ key over HTTP.

Agency-wide mcp_ key holding extension:read, or an agency key (ak_). A location secret key (sk_) or a client-bound mcp_ key gets 403 agency_key_required. See Using an mcp_ key over HTTP.
query
platformstring
Required
Options: meta, google
query
accountstring
Required

Ad account id as the ad platform shows it.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Agency-wide mcp_ key holding extension:read, or an agency key (ak_). A location secret key (sk_) or a client-bound mcp_ key gets 403 agency_key_required. See Using an mcp_ key over HTTP.

Query Parameters

platformstring
Required
Allowed values:metagoogle
accountstring
Required

Ad account id as the ad platform shows it.

Example:
act_1234567890

Responses

successboolean
dataobject