Trillboards Event Ingestion API

Cross-channel event ingestion — DSP postbacks, conversion pixels, transaction data

GitHub OpenAPI

Operations 3

POST /v1/attribution/event/mobile DSP mobile postback #
GET /v1/attribution/pixel/{advertiserId}/{campaignId} Conversion tracking pixel #
POST /v1/attribution/event/transaction Transaction data ingestion #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/trillboards-com:trillboards-com-event-ingestion-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

trillboards-com-event-ingestion-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Trillboards Attribution & Measurement Event Ingestion API
  version: 1.0.0
  description: 'Closed-loop DOOH attribution engine with attention-verified impressions,

    cross-channel multi-touch attribution, Bayesian incrementality measurement,

    and creative performance optimization.


    ## Why This Matters


    Traditional DOOH attribution estimates impressions using population data.

    Trillboards MEASURES them: on-device computer vision (ML Kit) counts faces

    and tracks gaze, audio classification (YAMNet TFLite) detects ambient context,

    and third-party mobile location signals (Intuizi) prove store visits.

    Every metric in this API is deterministic, not probabilistic.


    ## Authentication


    All endpoints require a valid JWT token in the Authorization header:

    ```

    Authorization: Bearer

    ```

    Tokens are obtained via `POST /v1/user/login`.


    ## Key Concepts


    - **aCPM (Attention CPM)**: Cost per 1,000 attention-verified impressions. Unlike standard CPM, aCPM only counts impressions where someone was actually looking at the screen.

    - **Incremental Lift**: The percentage increase in store visits attributable to the DOOH campaign, measured via geo-holdout experiments with matched control groups.

    - **CPIV (Cost Per Incremental Visit)**: Total media cost divided by the number of store visits that would NOT have happened without the campaign.

    - **Weighted Confidence**: Exposure match confidence (spatial/temporal) multiplied by attention weight from FEIN edge AI. Higher = more certain the person both saw AND paid attention to the ad.

    - **Attribution Chain**: A complete user journey across channels (billboard -> mobile ad -> web visit -> store visit) with credit allocation via multi-touch models.


    ## Attribution Pipeline (6 Layers)


    1. **Signal Ingestion** — Intuizi mobile device location pings + POI reference data

    2. **Exposure Matching** — PostGIS ST_DWithin joins device signals with ad plays

    3. **Attention Enrichment** — FEIN edge AI inference (face count, gaze, emotion) attached to each exposure

    4. **Identity Resolution** — Household clustering, cross-device graph, pixel visitor linking

    5. **Attribution** — Multi-touch credit allocation across DOOH + mobile + web + store channels

    6. **Measurement** — Bayesian + frequentist incrementality with geo-holdout experiments'
  contact:
    name: Trillboards Developer Support
    email: developers@trillboards.com
    url: https://trillboards.com/developers
  license:
    name: Proprietary
    url: https://trillboards.com/terms-of-service
servers:
- url: https://api.trillboards.com
  description: Production API
- url: http://localhost:4004
  description: Local development
tags:
- name: Event Ingestion
  description: Cross-channel event ingestion — DSP postbacks, conversion pixels, transaction data
paths:
  /v1/attribution/event/mobile:
    post:
      operationId: ingestMobileEvent
      summary: DSP mobile postback
      description: 'Receives mobile ad impression/click postbacks from DSP partners.

        These events are ingested as touchpoints in the cross-channel

        attribution pipeline, enabling DOOH -> mobile -> conversion chains.


        No authentication required — DSP postback URLs are typically

        pre-configured and fire-and-forget.'
      tags:
      - Event Ingestion
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MobileEventRequest'
            example:
              maidHash: a1b2c3d4e5f6...
              campaignId: camp_abc123
              creativeId: cre_xyz789
              advertiserId: adv_456
              dspPartner: thetradedesk
              eventType: click
              placementId: placement_001
      responses:
        '201':
          description: Event ingested
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  touchpointId:
                    type: string
                    format: uuid
        '400':
          $ref: '#/components/responses/BadRequest'
        '500':
          $ref: '#/components/responses/ServerError'
  /v1/attribution/pixel/{advertiserId}/{campaignId}:
    get:
      operationId: getTrackingPixel
      summary: Conversion tracking pixel
      description: 'Returns a 1x1 transparent GIF for web conversion tracking. Embed as:

        ```html


        ```


        Each pixel fire creates a touchpoint in the cross-channel attribution

        pipeline using a privacy-safe visitor ID (SHA-256 of IP + User-Agent).

        No cookies, no JavaScript — pure server-side tracking.'
      tags:
      - Event Ingestion
      parameters:
      - name: advertiserId
        in: path
        required: true
        schema:
          type: string
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9_-]{1,128}$
      responses:
        '200':
          description: 1x1 transparent GIF
          content:
            image/gif:
              schema:
                type: string
                format: binary
  /v1/attribution/event/transaction:
    post:
      operationId: ingestTransactionEvent
      summary: Transaction data ingestion
      description: 'Ingests transaction/purchase data for conversion attribution.

        Sources include credit card panel data, POS receipts, and

        e-commerce webhooks.


        Transaction data is matched to exposed devices via MAID hash

        to prove: "This person saw the ad AND made a purchase."'
      tags:
      - Event Ingestion
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TransactionEventRequest'
            example:
              maidHash: a1b2c3d4e5f6...
              campaignId: camp_abc123
              advertiserId: adv_456
              transactionAmountCents: 4999
              basketItems:
              - sku: SKU-001
                name: Premium Widget
                quantity: 1
                price_cents: 4999
              poiId: 550e8400-e29b-41d4-a716-446655440000
      responses:
        '201':
          description: Transaction event ingested
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  touchpointId:
                    type: string
                    format: uuid
        '400':
          $ref: '#/components/responses/BadRequest'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  schemas:
    TransactionEventRequest:
      type: object
      required:
      - maidHash
      - campaignId
      properties:
        maidHash:
          type: string
          description: SHA-256 hash of the mobile advertising ID
        campaignId:
          type: string
          pattern: ^[a-zA-Z0-9_-]{1,128}$
        advertiserId:
          type: string
        transactionAmountCents:
          type: integer
          description: Transaction amount in cents
        basketItems:
          type: array
          items:
            type: object
            properties:
              sku:
                type: string
              name:
                type: string
              quantity:
                type: integer
              price_cents:
                type: integer
        poiId:
          type: string
          format: uuid
          description: Point-of-interest where transaction occurred
        occurredAt:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
        error:
          type: string
    MobileEventRequest:
      type: object
      required:
      - maidHash
      - campaignId
      properties:
        maidHash:
          type: string
          description: SHA-256 hash of the mobile advertising ID
        campaignId:
          type: string
          pattern: ^[a-zA-Z0-9_-]{1,128}$
        creativeId:
          type: string
        advertiserId:
          type: string
        dspPartner:
          type: string
          description: DSP name (e.g. "thetradedesk", "dv360")
        eventType:
          type: string
          enum:
          - impression
          - click
          - complete
          default: impression
        placementId:
          type: string
        clickUrl:
          type: string
          format: uri
  responses:
    ServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token obtained via POST /v1/user/login