GET/v1/properties/{propertyId}/destinations/{destinationId}
Returns one pixel or ad destination with its status and its event mapping.
Before you call
Section titled “Before you call”This endpoint needs IDs that other endpoints return:
- Call List the account properties. Copy the
idof the property: it is thepropertyId. - Call List the pixels and ad destinations of a property. Copy the
idof the destination: it is thedestinationId. - Call this endpoint with these IDs.
Authentication
Section titled “Authentication”bearerAuth: API key created in the dashboard (atk_…). Send it in the Authorization: Bearer YOUR_API_KEY header.
Path parameters
Section titled “Path parameters”propertyIdstringrequiredID of the property. Get it from
listProperties (id).destinationIdstringrequiredID of the pixel or ad destination. Get it from
listDestinations (id).Responses
Section titled “Responses”Every response field is present unless it shows optional. A type that ends in | null can be null.
200 Successful response
Section titled “200 Successful response”application/json
dataobjectThe pixel or ad destination.
Show 13 child attributes
idstringID of the destination. Send it as
destinationId to Get a pixel or ad destination.typestringType of the pixel or ad platform.
namestring | nullName of the destination.
null when the destination has no name.accountobject | nullAccount of the destination on the ad platform.
null when AnyTrack has no account for the destination.Show 2 child attributes
idstringID of the account on the ad platform.
namestring | nullName of the account.
enabledbooleanfalse when a user turned off the destination.authorizedbooleantrue when a user authorized AnyTrack on the ad platform for this destination.healthybooleanfalse when AnyTrack marks the destination as unhealthy.serverEventsbooleanWhether server-side event sending is configured for this destination; this flag alone does not guarantee delivery.
serverOnlybooleanServer-only flag stored on the destination; used for Meta Pixel to suppress browser pixel events. This flag alone does not enable server events; see
serverEvents.eventMappingmap of stringEvent mapping of the destination. Each key is an AnyTrack event name. Each value is the event name that the destination receives.
authorizedAtstring | nullTime when a user authorized the destination, in ISO 8601 format and in UTC.
createdAtstringCreation time of the destination, in ISO 8601 format and in UTC.
updatedAtstringTime of the last change to the destination, in ISO 8601 format and in UTC.
Errors
Section titled “Errors”Every error returns the error object.
| Status | Description and action |
|---|---|
400 | invalid_request, invalid_cursor: A parameter or a body field is not valid, or the cursor belongs to a different query. Correct the request. error.details, when present, names invalid fields. Do not reuse a cursor with a different query. |
401 | unauthenticated: Missing, invalid or deleted API key. Send a valid key in Authorization: Bearer. MCP uses an OAuth access token, which may also expire or be revoked. |
403 | api_access_unavailable: API access is disabled for this account. Contact AnyTrack support. OAuth requests also require the anytrack:read scope (insufficient_scope). |
404 | not_found: 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 | rate_limited: The account sent more than 60 requests in one minute. Wait for the number of seconds in the Retry-After header, then retry. |
500 | response_too_large, internal_error: The response is larger than 1 MB, or the API has an internal error. For response_too_large, ask for fewer rows or metrics. For internal_error, contact AnyTrack support with the requestId. |
503 | service_unavailable: The service is not available for a short time. Retry later, and wait longer after each failed retry. |
Request example
Section titled “Request example”Command template. Replace the path placeholders. Add the query parameters that you need. This is not a recorded request or response.
curl --request GET 'https://api.anytrack.io/v1/properties/{propertyId}/destinations/{destinationId}' \ --header 'Authorization: Bearer YOUR_API_KEY'