Trillboards Export API

Batch export proofs

GitHub OpenAPI

Operations 1

POST /campaigns/{campaignId}/export-proof Export proofs in batch format #

Specifications

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-export-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-export-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Trillboards Proof-of-Play Export API
  version: 2.0.0
  description: 'Cryptographically signed proofs of ad impressions for advertisers.


    ## Overview

    This API provides cryptographically signed proof-of-play records for ad impressions.

    Each proof contains an Ed25519 signature that can be independently verified by

    third parties using our public key.


    ## Signature Verification

    1. Fetch the public key from `/.well-known/public-key`

    2. Build the payload: `version.timestamp.adId.impressionId.screenId.deviceId`

    3. Verify using Ed25519: `verify(signature, payload, publicKey)`


    ## Signature Versions

    - **v2 (current)**: Ed25519 signatures - third-party verifiable

    - **v1 (deprecated)**: HMAC-SHA256 - requires shared secret'
  contact:
    name: Trillboards API Support
    url: https://trillboards.com/support
    email: api@trillboards.com
  license:
    name: Proprietary
    url: https://trillboards.com/terms
servers:
- url: https://api.trillboards.com/v1/advertiser/proof
  description: Production
- url: http://localhost:4004/v1/advertiser/proof
  description: Development
tags:
- name: Export
  description: Batch export proofs
paths:
  /campaigns/{campaignId}/export-proof:
    post:
      tags:
      - Export
      summary: Export proofs in batch format
      description: Export proofs as JSON or CSV for offline verification.
      operationId: exportProofs
      security:
      - bearerAuth: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                format:
                  type: string
                  enum:
                  - json
                  - csv
                  default: json
                startDate:
                  type: string
                  format: date-time
                endDate:
                  type: string
                  format: date-time
      responses:
        '200':
          description: Export data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportProofsResponse'
            text/csv:
              schema:
                type: string
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Proof:
      type: object
      required:
      - impressionId
      - adId
      - timestamp
      - signature
      - signatureVersion
      properties:
        impressionId:
          type: string
          description: Unique impression identifier
        adId:
          type: string
          description: Campaign/Advertisement ID
        screenId:
          type: string
          description: Screen that displayed the ad
        deviceId:
          type: string
          description: Device identifier
        timestamp:
          type: string
          format: date-time
          description: When the impression occurred
        eventType:
          type: string
          enum:
          - impression
          - start
          - firstQuartile
          - midpoint
          - thirdQuartile
          - complete
          description: VAST event type
        signature:
          type: string
          description: 'Cryptographic signature (format: ed25519=<hex> or sha256=<hex>)'
          example: ed25519=a1b2c3d4e5f6...
        signatureVersion:
          type: string
          enum:
          - v1
          - v2
          description: Signature version (v2 = Ed25519, v1 = HMAC)
        verifiedAt:
          type: string
          format: date-time
          description: When the proof was generated
        viewability:
          $ref: '#/components/schemas/Viewability'
        displayContext:
          $ref: '#/components/schemas/DisplayContext'
        audience:
          $ref: '#/components/schemas/AudienceData'
    ExportProofsResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            campaignId:
              type: string
            format:
              type: string
            proofCount:
              type: integer
            data:
              type: array
              items:
                $ref: '#/components/schemas/Proof'
            checksum:
              type: string
              description: SHA256 checksum of the export data
            signatureVersion:
              type: string
            publicKeyUrl:
              type: string
            exportedAt:
              type: string
              format: date-time
            expiresAt:
              type: string
              format: date-time
    DisplayContext:
      type: object
      properties:
        mode:
          type: string
          enum:
          - fullscreen
          - l-bar
          - split
          description: Display mode
        areaRatio:
          type: number
          description: Ratio of screen area used (0-1)
    Viewability:
      type: object
      properties:
        viewable:
          type: boolean
          description: Whether the ad was viewable (IAB standards)
        viewableTime:
          type: number
          description: Time the ad was viewable (milliseconds)
        percentInView:
          type: number
          description: Percentage of ad visible (0-100)
    AudienceData:
      type: object
      properties:
        faceCount:
          type: integer
          description: Number of faces detected
        attentionScore:
          type: number
          description: Average attention score (0-1)
        incomeLevel:
          type: string
          enum:
          - low
          - medium
          - high
          - premium
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
          - false
        message:
          type: string
        error:
          type: string
  responses:
    Forbidden:
      description: Not authorized to access this resource
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            message: Not authorized to access this campaign
    Unauthorized:
      description: Missing or invalid authentication token
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            message: Authentication required
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            message: Campaign not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token from /v1/user/login