marketplace

POST /v1/marketplace/listings/{listing_id}/traffic-verification/connect

Start connecting Google Analytics (GA4) to your listing.

All marketplace endpoints

All developer docs →

Authentication

Send an API key as a bearer token. This endpoint checks no specific permission, so any key for your organisation can call it.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X POST https://api.zinndigital.com/v1/marketplace/listings/{listing_id}/traffic-verification/connect \
  -H "Authorization: Bearer zdk_live_…"

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

Returns Google's consent URL (scope analytics.readonly, offline access) with a signed state naming the listing, your organisation and you; it expires in ten minutes. The listing must be for a site (it has a domain to match). ⚠️ Google allows 100 users of an unverified app's sensitive scope until its consent screen is verified (docs/83 §1f).

Parameters

NameTypeRequiredWhat it is
listing_id (path)stringYes—

Response

NameTypeRequiredWhat it is
authorize_urlstringYes—

Errors this endpoint can return

401 · 404 · 422