Trillboards VAST Integration API

Direct VAST integration endpoints for partners who want to fetch ads directly from Google Ad Manager. This is the recommended approach for enterprise partners with existing video players. Partners cache the VAST config, build URLs client-side, and report impressions in batch. **Architecture:** Trillboards provides config + tracking only. Partners fetch VAST directly from Google.

GitHub OpenAPI

Operations 1

GET /vast/config Get VAST configuration for direct Google integration #

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-vast-integration-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-vast-integration-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Trillboards Partner VAST Integration API
  version: 1.1.0
  description: 'API for partner integrations with Trillboards digital advertising platform.


    Use this API to integrate ads into your vending machines, kiosks, digital signage,

    and other display devices. Partners receive competitive revenue share on all impressions.


    ## Authentication


    Most endpoints require API key authentication using Bearer token:

    ```

    Authorization: Bearer trb_partner_xxxxx

    ```


    API keys are generated during partner registration and should be stored securely.


    ## Rate Limits


    All endpoints return rate limit headers:

    - `X-RateLimit-Limit`: Maximum requests allowed per window

    - `X-RateLimit-Remaining`: Requests remaining in current window

    - `X-RateLimit-Reset`: Unix timestamp when window resets

    - `RateLimit-Policy`: IETF draft-7 format policy string


    Rate limits by endpoint type:

    | Endpoint Type | Limit | Window |

    |--------------|-------|--------|

    | Registration | 5 | 1 hour |

    | Authenticated API | 1000 | 1 minute |

    | Ad serving | 100 | 1 minute |

    | Impressions | 500 | 1 minute |

    | Programmatic events | 300 | 1 minute |

    | Batch impressions | 100 | 1 minute |

    | Heartbeat | 60 | 1 minute |

    | Venue intelligence | 100 | 1 minute |

    | Audience intelligence | 100 | 1 minute |

    | Bulk device operations | 20 | 1 minute |


    Exceeding rate limits returns HTTP 429 with a `Retry-After` header.


    ## Quick Start


    **Option A: New Partner Registration**

    1. Register as a partner via `POST /register` (returns API key)

    2. Register your devices

    3. Load the `embed_url` in your device''s WebView or use `/device/{id}/ads` in custom UI

    4. Impressions are tracked automatically


    **Option B: Existing Earner Upgrade**

    If you already have a Trillboards earner account:

    1. Call `POST https://api.trillboards.com/v2/earner/upgrade-to-partner` with your user JWT

    2. Receive your Partner API key (one-time display - save it!)

    3. Your existing screens remain visible alongside new API-registered screens


    ## SDK


    Install the official TypeScript SDK for type-safe integration:

    ```

    npm install @trillboards/ads-sdk

    ```


    The SDK provides 4 entry points:

    - `@trillboards/ads-sdk` — Core browser SDK with ad player, events, and caching

    - `@trillboards/ads-sdk/react` — React hooks and components (TrillboardsProvider, TrillboardsAdSlot)

    - `@trillboards/ads-sdk/react-native` — React Native WebView wrapper

    - `@trillboards/ads-sdk/server` — Node.js PartnerClient with audience, analytics, auctions, creatives


    Full documentation: https://trillboards.com/developers/partner-sdk'
  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/v1/partner
  description: Production API
- url: http://localhost:4004/v1/partner
  description: Local development
tags:
- name: VAST Integration
  description: 'Direct VAST integration endpoints for partners who want to fetch ads directly from Google Ad Manager.


    This is the recommended approach for enterprise partners with existing video players.

    Partners cache the VAST config, build URLs client-side, and report impressions in batch.


    **Architecture:** Trillboards provides config + tracking only. Partners fetch VAST directly from Google.'
paths:
  /vast/config:
    get:
      tags:
      - VAST Integration
      summary: Get VAST configuration for direct Google integration
      description: 'Returns a VAST tag URL template that partners use to fetch ads directly from Google Ad Manager.


        **This is NOT a VAST proxy.** Trillboards provides the configuration; partners fetch VAST directly from Google.


        **Architecture:**

        1. Partner calls this endpoint (cached for 1 hour)

        2. Partner builds VAST URL using the template

        3. Partner fetches VAST directly from Google (`pubads.g.doubleclick.net`)

        4. Partner plays video in their player

        5. Partner reports impressions via `/tracking/batch`


        **Scale:** At 35,000 screens with 1-hour cache, this is ~10 requests/second (trivial load).


        **Security:** Partners only allowlist 2 domains: `api.trillboards.com` and `pubads.g.doubleclick.net`.'
      operationId: getVastConfig
      security:
      - BearerAuth: []
      parameters:
      - name: device_id
        in: query
        description: Device identifier for targeting optimization
        schema:
          type: string
          example: PARTNER-DEVICE-001
      - name: screen_id
        in: query
        description: Screen ID for targeting (alternative to device_id)
        schema:
          type: string
          example: 507f1f77bcf86cd799439011
      responses:
        '200':
          description: VAST configuration returned successfully
          headers:
            Cache-Control:
              description: Caching directive (public, max-age=3600)
              schema:
                type: string
                example: public, max-age=3600
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      vast_tag_template:
                        type: string
                        description: 'VAST URL template with placeholders for {width} and {height}.

                          Partner replaces placeholders and appends correlator.

                          '
                        example: https://pubads.g.doubleclick.net/gampad/ads?iu=/105549217/Trillboards_Retail_Video&sz={width}x{height}&venuetype=2&...
                      parameters:
                        type: object
                        properties:
                          width:
                            type: integer
                            example: 640
                          height:
                            type: integer
                            example: 480
                          venuetype:
                            type: integer
                            description: Venue type code for targeting
                            example: 2
                          min_duration:
                            type: integer
                            description: Minimum ad duration in seconds
                            example: 6
                          max_duration:
                            type: integer
                            description: Maximum ad duration in seconds
                            example: 300
                      ad_unit:
                        type: string
                        description: Google Ad Manager ad unit path
                        example: /105549217/Trillboards_Retail_Video
                      variant:
                        type: string
                        description: Configuration variant name for debugging
                        example: default_retail
                      floor_price_cpm:
                        type: integer
                        description: Floor price in cents (CPM)
                        example: 400
                      blocked_categories:
                        type: array
                        items:
                          type: string
                        description: IAB content categories to block
                        example:
                        - IAB25-3
                        - IAB26
                      timeout_ms:
                        type: integer
                        description: Recommended VAST fetch timeout
                        example: 12000
                      cache_ttl_seconds:
                        type: integer
                        description: How long to cache this config
                        example: 3600
                      tracking:
                        type: object
                        properties:
                          batch_endpoint:
                            type: string
                            example: https://api.trillboards.com/v1/partner/tracking/batch
                          single_endpoint:
                            type: string
                            example: https://api.trillboards.com/v1/partner/impression
                          max_batch_size:
                            type: integer
                            example: 100
                      integration_guide:
                        type: string
                        example: https://api.trillboards.com/docs/partner/vast-integration
              example:
                success: true
                data:
                  vast_tag_template: https://pubads.g.doubleclick.net/gampad/ads?iu=/105549217/Trillboards_Retail_Video&sz={width}x{height}&venuetype=2&npa=0&...
                  parameters:
                    width: 640
                    height: 480
                    venuetype: 2
                    min_duration: 6
                    max_duration: 300
                  ad_unit: /105549217/Trillboards_Retail_Video
                  variant: default_retail
                  floor_price_cpm: 400
                  blocked_categories:
                  - IAB25-3
                  - IAB26
                  timeout_ms: 12000
                  cache_ttl_seconds: 3600
                  tracking:
                    batch_endpoint: https://api.trillboards.com/v1/partner/tracking/batch
                    single_endpoint: https://api.trillboards.com/v1/partner/impression
                    max_batch_size: 100
                  integration_guide: https://api.trillboards.com/docs/partner/vast-integration
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  schemas:
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
        error:
          type: string
  responses:
    TooManyRequests:
      description: Rate limit exceeded
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        Retry-After:
          description: Seconds to wait before retrying
          schema:
            type: integer
            example: 60
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                example: false
              message:
                type: string
                example: API rate limit exceeded. Maximum 200 requests per minute.
              retryAfter:
                type: integer
                example: 60
    Unauthorized:
      description: Unauthorized - Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            message: API key required
  headers:
    X-RateLimit-Remaining:
      description: The number of requests remaining in the current time window
      schema:
        type: integer
        example: 199
    X-RateLimit-Limit:
      description: The maximum number of requests allowed in the current time window
      schema:
        type: integer
        example: 200
    X-RateLimit-Reset:
      description: Unix timestamp when the rate limit window resets
      schema:
        type: integer
        example: 1704067260
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'API key authentication. Include your API key as a Bearer token:

        ```

        Authorization: Bearer trb_partner_xxxxx

        ```

        '
    UserJWT:
      type: http
      scheme: bearer
      description: 'User JWT authentication for earner-to-partner upgrade.

        Used only for the `/v2/earner/upgrade-to-partner` endpoint.

        This is the same JWT token used for the Earner Portal.

        '