Trillboards Proofs API
Retrieve signed proof-of-play records
Retrieve signed proof-of-play records
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/trillboards-com:trillboards-com-proofs-api"
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.
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: 3.2.0
info:
title: Trillboards Proof-of-Play Proofs 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: Proofs
description: Retrieve signed proof-of-play records
paths:
/campaigns/{campaignId}/proof:
get:
tags:
- Proofs
summary: Get proofs for a campaign
description: 'Returns cryptographically signed proofs for all completed impressions
in the specified campaign. Supports cursor-based pagination for large datasets.'
operationId: getCampaignProofs
security:
- bearerAuth: []
parameters:
- name: campaignId
in: path
required: true
description: Campaign/Advertisement ID
schema:
type: string
- name: startDate
in: query
description: Filter proofs after this date (ISO 8601)
schema:
type: string
format: date-time
- name: endDate
in: query
description: Filter proofs before this date (ISO 8601)
schema:
type: string
format: date-time
- name: limit
in: query
description: Maximum number of proofs to return (default 1000, max 10000)
schema:
type: integer
default: 1000
maximum: 10000
- name: cursor
in: query
description: Pagination cursor from previous response
schema:
type: string
responses:
'200':
description: Campaign proofs
content:
application/json:
schema:
$ref: '#/components/schemas/CampaignProofsResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
/screens/{screenId}/proof:
get:
tags:
- Proofs
summary: Get proofs for a screen
description: Returns proofs for all completed impressions on the specified screen.
operationId: getScreenProofs
security:
- bearerAuth: []
parameters:
- name: screenId
in: path
required: true
description: Screen ID
schema:
type: string
- name: startDate
in: query
schema:
type: string
format: date-time
- name: endDate
in: query
schema:
type: string
format: date-time
- name: limit
in: query
schema:
type: integer
default: 500
maximum: 5000
- name: cursor
in: query
schema:
type: string
responses:
'200':
description: Screen proofs
content:
application/json:
schema:
$ref: '#/components/schemas/ScreenProofsResponse'
'401':
$ref: '#/components/responses/Unauthorized'
/campaigns/{campaignId}/audience-proof:
get:
tags:
- Proofs
summary: Get audience-enhanced proofs
description: 'Returns aggregated audience data with privacy protection.
Individual audience members are not exposed - only aggregate statistics.'
operationId: getAudienceProofs
security:
- bearerAuth: []
parameters:
- name: campaignId
in: path
required: true
schema:
type: string
- name: startDate
in: query
schema:
type: string
format: date-time
- name: endDate
in: query
schema:
type: string
format: date-time
responses:
'200':
description: Audience proofs
content:
application/json:
schema:
$ref: '#/components/schemas/AudienceProofsResponse'
'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'
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)
AudienceProofsResponse:
type: object
properties:
success:
type: boolean
data:
type: object
properties:
campaignId:
type: string
queryPeriod:
type: object
totalImpressions:
type: integer
screenBreakdown:
type: array
items:
type: object
properties:
screenId:
type: string
impressions:
type: integer
period:
type: object
properties:
first:
type: string
format: date-time
last:
type: string
format: date-time
aggregateSignature:
type: string
signatureVersion:
type: string
privacyMode:
type: string
enum:
- aggregated
generatedAt:
type: string
format: date-time
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
CampaignProofsResponse:
type: object
properties:
success:
type: boolean
data:
type: object
properties:
campaignId:
type: string
queryPeriod:
type: object
properties:
startDate:
type: string
endDate:
type: string
totalImpressions:
type:
- integer
- 'null'
description: Total count (only on first page)
proofsReturned:
type: integer
proofs:
type: array
items:
$ref: '#/components/schemas/Proof'
pagination:
$ref: '#/components/schemas/Pagination'
signatureVersion:
type: string
publicKeyUrl:
type: string
generatedAt:
type: string
format: date-time
ScreenProofsResponse:
type: object
properties:
success:
type: boolean
data:
type: object
properties:
screenId:
type: string
screenName:
type: string
location:
type: object
totalProofs:
type: integer
proofs:
type: array
items:
$ref: '#/components/schemas/Proof'
pagination:
$ref: '#/components/schemas/Pagination'
signatureVersion:
type: string
generatedAt:
type: string
format: date-time
Pagination:
type: object
properties:
limit:
type: integer
description: Requested limit
hasMore:
type: boolean
description: Whether more results exist
nextCursor:
type:
- string
- 'null'
description: Cursor for next page (null if no more results)
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