Developer · Ad data

Pulling every time a customer met an ad (Ad touches feed)

This API returns "every time a customer met an ad" for your shop, oldest first. Use it to copy that history into your own CRM or data warehouse — which ad each customer came from, how many times and when — without reading chats one by one.

About 6 minutesAn API key with the Ads permission (view) · the developer of the receiving systemLast updated Nov 13, 2026
In the print dialog, choose "Save as PDF"

In short

  1. Call GET /api/external/v1/ads/touches?since=2026-11-01 with an API key that has the Ads permission
  2. One row per time a customer came in — a customer back through the same ad three times gives three rows
  3. Send nextCursor back as cursor until it is null
  4. De-duplicate on touchId, and re-read the latest window now and then to pick up campaign names filled in later
Done 0/4

01When to use it

For shops with their own system — a CRM or a data warehouse — that want to keep every ad touch of every customer, to credit ads their own way or combine with their own sales data.

kind

visit

The customer came into the chat by clicking an ad. Clicks of the same ad less than 30 minutes apart count as one.

kind

link

An ad tied to the chat without a click — e.g. an ad_id label synced from Facebook Page Inbox, or linked by hand. It appears once, at the time Wisebird recorded it, not when the customer saw the ad.

To count real clicks only, drop rows with kind: "link".
API docs: "Every ad touch (bulk)"
API docs: "Every ad touch (bulk)" — On the Developer page, under Ads & attribution

02Your first call

  1. Get an API key ready

    Create a key under Settings › API keys with at least "view" on Ads (a View only key works). See API keys and the External API.

  2. Call the endpoint with a start date

    GEThttps://wisebird.cloud/api/external/v1/ads/touches?since=2026-11-01&limit=500

    Send the usual Authorization: Bearer fak-… header.

    • since (required) — ISO 8601 date or date-time, inclusive; a bare date is midnight UTC
    • until — end, exclusive
    • platform — meta, line, tiktok or google
    • limit — rows per page, 1–1000 (default 500)
    • cursor — the nextCursor of the previous page
  3. Try it in the browser before codingoptional

    On Developer › Ads & attribution, scroll to Every ad touch (bulk), press Try it, paste your key, fill in since and press Send request.

    Trying GET /ads/touches
    Trying GET /ads/touches — Enter the API key and since, then send; the response appears below the panel
  4. Read every page

    The response has touches (the rows) and nextCursor. Pass nextCursor as cursor in the next request, and repeat until nextCursor is null.

03What each row holds

  • touchId — a stable id for the row, for de-duplication
  • kind — visit or link
  • attributionId — the chat-to-ad link this row belongs to
  • chatId · channelId · platformUserId — the conversation and the customer on the platform
  • platform · externalAdId — the platform and its ad id
  • externalAdsetId · externalCampaignId · adName · adsetName · campaignName — ad set, campaign and names
  • source — webhook_referral (click) · manual (label sync / linked by hand) · utm · custom_ref
  • visitedAt — when it happened
  • firstCapturedAt — the first time this chat met this ad
Ad set, campaign and names are null until Wisebird has synced that ad (usually within a few hours of the first click), and stay null if the ad account is not connected to this business. TikTok Smart+ ad ids are resolved to their ad set and campaign for you.

Chats in the Trash are left out.

04Syncing only what is new

Rows are only ever added, never changed afterwards, so there is no "changed since" parameter.

  1. Remember the latest visitedAt your system holds
  2. Next time, call with since a few minutes before it
  3. De-duplicate on touchId
  4. Re-read the last 7 days now and then to pick up campaign and ad set names filled in later
To know the moment a customer arrives from an ad, add the ad_attribution.created webhook — see the Webhooks guide.

Last updated Nov 13, 2026Still not working? Contact the Wisebird team — we are happy to help.