# List the ad platform connections of a property

> GET /v1/properties/{propertyId}/connections: Returns the ad platform connections of a property. A connection is an ad platform account that a user authorized for the property. AnyTrack uses it to sync spend and campaign data. The API never returns tokens or credentials.

<div class="api-endpoint"><span class="api-method api-method--get">GET</span><span class="api-path">/v1/properties/<span class="api-path-param">&#123;propertyId&#125;</span>/connections</span></div>

<p>Returns the ad platform connections of a property. A connection is an ad platform account that a user authorized for the property. AnyTrack uses it to sync spend and campaign data. The API never returns tokens or credentials.</p>

## Before you call

This endpoint needs IDs that other endpoints return:

1. Call [List the account properties](/api/reference/v1/list-properties). Copy the `id` of the property: it is the `propertyId`.
2. Call this endpoint with these IDs.

## Authentication

**bearerAuth**: API key created in the dashboard (<code>atk&#95;...</code>). Send it in the `Authorization: Bearer YOUR_API_KEY` header.

## Path parameters

<div class="api-fields">
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">propertyId</code><span class="api-field-type">string</span><span class="api-badge api-badge--required">required</span></div>
<div class="api-field-desc">ID of the property. Get it from <code>listProperties</code> (<code>id</code>).</div>
</div>
</div>

## Responses

Every response field is present unless it shows **optional**. A type that ends in `| null` can be `null`.

### 200 Successful response

<div class="api-media"><span class="api-media-type">application/json</span></div>

<div class="api-schema">
<div class="api-fields">
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">data</code><span class="api-field-type">array of object</span></div>
<div class="api-field-desc">Ad platform connections of the property. This list has no pages.</div>
<details class="api-children">
<summary>Show 10 child attributes</summary>
<div class="api-fields">
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">id</code><span class="api-field-type">string</span></div>
<div class="api-field-desc">ID of the connection. Send it as <code>connectionId</code> to Get an ad platform connection.</div>
</div>
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">platform</code><span class="api-field-type">string</span></div>
<div class="api-field-desc">Ad platform of the connection.</div>
</div>
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">account</code><span class="api-field-type">object</span></div>
<div class="api-field-desc">Ad platform account that the connection gives access to.</div>
<details class="api-children">
<summary>Show 7 child attributes</summary>
<div class="api-fields">
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">id</code><span class="api-field-type">string</span></div>
<div class="api-field-desc">ID of the account on the ad platform.</div>
</div>
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">name</code><span class="api-field-type">string</span></div>
<div class="api-field-desc">Name of the account on the ad platform.</div>
</div>
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">kind</code><span class="api-field-type">string</span></div>
<div class="api-field-desc">Type of the account resource, as the ad platform names it.</div>
</div>
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">currency</code><span class="api-field-type">string &#124; null</span></div>
<div class="api-field-desc">Currency of the account on the ad platform.</div>
</div>
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">timezone</code><span class="api-field-type">string &#124; null</span></div>
<div class="api-field-desc">Time zone of the account on the ad platform.</div>
</div>
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">status</code><span class="api-field-type">string &#124; null</span></div>
<div class="api-field-desc">Status of the account, as the ad platform gives it.</div>
</div>
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">parent</code><span class="api-field-type">object &#124; null</span></div>
<div class="api-field-desc">Parent of the account on the ad platform. <code>null</code> when the account has no parent.</div>
<details class="api-children">
<summary>Show 2 child attributes</summary>
<div class="api-fields">
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">id</code><span class="api-field-type">string</span></div>
<div class="api-field-desc">ID of the parent on the ad platform.</div>
</div>
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">name</code><span class="api-field-type">string &#124; null</span></div>
<div class="api-field-desc">Name of the parent.</div>
</div>
</div>
</details>
</div>
</div>
</details>
</div>
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">setup</code><span class="api-field-type">object</span></div>
<div class="api-field-desc">Setup state of the connection.</div>
<details class="api-children">
<summary>Show 2 child attributes</summary>
<div class="api-fields">
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">status</code><span class="api-field-type">string</span></div>
<div class="api-field-desc"><code>provisioning</code>: AnyTrack is setting up the connection. <code>ready</code>: the setup is complete. <code>error</code>: the setup failed. Read <code>errorCode</code>.</div>
<div class="api-field-facts"><span class="api-fact"><span class="api-fact-label">Allowed values</span> <code>provisioning</code> <code>ready</code> <code>error</code></span></div>
</div>
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">errorCode</code><span class="api-field-type">string &#124; null</span></div>
<div class="api-field-desc">Error code of the setup. <code>null</code> when the setup has no error.</div>
</div>
</div>
</details>
</div>
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">authorizedAt</code><span class="api-field-type">string &#124; null</span></div>
<div class="api-field-desc">Time when a user authorized the connection, in ISO 8601 format and in UTC.</div>
</div>
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">authorizedBy</code><span class="api-field-type">string &#124; null</span></div>
<div class="api-field-desc">Name of the user who authorized the connection.</div>
</div>
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">lastSyncedAt</code><span class="api-field-type">string &#124; null</span></div>
<div class="api-field-desc">Time of the last sync of spend and campaign data from the ad platform, in ISO 8601 format and in UTC. <code>null</code> before the first sync.</div>
</div>
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">destinationIds</code><span class="api-field-type">array of string</span></div>
<div class="api-field-desc">IDs of the destinations that use this connection. Send one as <code>destinationId</code> to Get a pixel or ad destination.</div>
</div>
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">createdAt</code><span class="api-field-type">string</span></div>
<div class="api-field-desc">Creation time of the connection, in ISO 8601 format and in UTC.</div>
</div>
<div class="api-field">
<div class="api-field-head"><code class="api-field-name">updatedAt</code><span class="api-field-type">string</span></div>
<div class="api-field-desc">Time of the last change to the connection, in ISO 8601 format and in UTC.</div>
</div>
</div>
</details>
</div>
</div>
</div>

### Errors

Every error returns the [error object](/api/reference/v1#errors).

| Status | Description and action |
| --- | --- |
| `400` | <code>invalid&#95;request</code>, <code>invalid&#95;cursor</code>: A parameter or a body field is not valid, or the cursor belongs to a different query. Correct the request. <code>error.details</code>, when present, names invalid fields. Do not reuse a cursor with a different query. |
| `401` | <code>unauthenticated</code>: Missing, invalid or deleted API key. Send a valid key in <code>Authorization: Bearer</code>. MCP uses an OAuth access token, which may also expire or be revoked. |
| `403` | <code>api&#95;access&#95;unavailable</code>: API access is disabled for this account. Contact AnyTrack support. OAuth requests also require the <code>anytrack:read</code> scope (<code>insufficient&#95;scope</code>). |
| `404` | <code>not&#95;found</code>: An ID does not exist, or it belongs to a different account. The API gives the same error for both. Check the IDs. Get them again from the list endpoints. |
| `429` | <code>rate&#95;limited</code>: The account sent more than 60 requests in one minute. Wait for the number of seconds in the <code>Retry-After</code> header, then retry. |
| `500` | <code>response&#95;too&#95;large</code>, <code>internal&#95;error</code>: The response is larger than 1 MB, or the API has an internal error. For <code>response&#95;too&#95;large</code>, ask for fewer rows or metrics. For <code>internal&#95;error</code>, contact AnyTrack support with the <code>requestId</code>. |
| `503` | <code>service&#95;unavailable</code>: The service is not available for a short time. Retry later, and wait longer after each failed retry. |

## Request example

Command template. Replace the path placeholders. Add the query parameters that you need. This is not a recorded request or response.

```sh
curl --request GET 'https://api.anytrack.io/v1/properties/{propertyId}/connections' \
  --header 'Authorization: Bearer YOUR_API_KEY'
```

[Download the OpenAPI contract](/api/openapi.json).
