Trillboards Fleet Management API
Fleet-wide device management for partners with large screen networks. Push commands, update settings, and view analytics across your entire fleet. Supports filtering by venue type, country, and specific screen IDs.
Fleet-wide device management for partners with large screen networks. Push commands, update settings, and view analytics across your entire fleet. Supports filtering by venue type, country, and specific screen IDs.
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-fleet-management-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 Partner Fleet Management 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: Fleet Management
description: 'Fleet-wide device management for partners with large screen networks.
Push commands, update settings, and view analytics across your entire fleet.
Supports filtering by venue type, country, and specific screen IDs.'
paths:
/fleet/overview:
get:
tags:
- Fleet Management
summary: Get fleet overview
description: 'Returns a summary of all devices in the partner''s fleet including
online/offline counts, venue type distribution, and country breakdown.'
operationId: getFleetOverview
security:
- BearerAuth: []
responses:
'200':
description: Fleet overview
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
data:
type: object
properties:
total_devices:
type: integer
online:
type: integer
offline:
type: integer
programmatic_enabled:
type: integer
venue_types:
type: object
additionalProperties:
type: integer
example:
retail: 45
transit: 12
office: 8
countries:
type: object
additionalProperties:
type: integer
example:
US: 50
CA: 10
'401':
$ref: '#/components/responses/Unauthorized'
/fleet/analytics:
get:
tags:
- Fleet Management
summary: Get fleet analytics
description: 'Returns fleet-wide performance metrics for the last 24 hours including
total impressions, fill rate, average CPM, and attention score.'
operationId: getFleetAnalytics
security:
- BearerAuth: []
responses:
'200':
description: Fleet analytics
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
data:
type: object
properties:
screen_count:
type: integer
impressions_24h:
type: integer
fill_rate_pct:
type: number
description: Fill rate percentage (0-100)
avg_cpm:
type: number
description: Average CPM in dollars
avg_attention:
type: number
description: Average attention score (0-1)
'401':
$ref: '#/components/responses/Unauthorized'
/fleet/command:
post:
tags:
- Fleet Management
summary: Push command to fleet
description: 'Sends a command to all devices in the fleet (or a filtered subset).
Commands expire after 10 minutes. Maximum 500 devices per batch.'
operationId: pushFleetCommand
security:
- BearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- command
properties:
command:
type: object
required:
- type
properties:
type:
type: string
enum:
- reload
- update_settings
- restart
- screenshot
- clear_cache
- update_content
- refresh_ads
- update_config
- get_state
payload:
type: object
description: Command-specific data
filter:
type: object
description: Optional filter to target specific devices
properties:
screenIds:
type: array
items:
type: string
venueType:
type: string
country:
type: string
responses:
'200':
description: Command queued
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
data:
type: object
properties:
targeted:
type: integer
description: Total devices matching filter
queued:
type: integer
description: Devices successfully queued
errors:
type: array
items:
type: object
properties:
screenId:
type: string
error:
type: string
'400':
description: Missing command.type
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/TooManyRequests'
/fleet/settings:
post:
tags:
- Fleet Management
summary: Update fleet-wide settings
description: 'Updates settings across all devices in the fleet (or a filtered subset).
Settings are merged with existing values, not replaced.
**Allowed settings:** `header_bidding_settings`, `content_preferences`, `display_settings`'
operationId: updateFleetSettings
security:
- BearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- settings
properties:
settings:
type: object
description: Settings to update (merged with existing)
properties:
header_bidding_settings:
type: object
properties:
enabled:
type: boolean
allocation:
type: number
min_interval_seconds:
type: integer
force_request:
type: boolean
content_preferences:
type: object
display_settings:
type: object
filter:
type: object
properties:
screenIds:
type: array
items:
type: string
venueType:
type: string
country:
type: string
responses:
'200':
description: Settings updated
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
data:
type: object
properties:
targeted:
type: integer
updated:
type: integer
errors:
type: array
items:
type: object
'400':
description: Empty settings or invalid keys
'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.
'