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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/trillboards-com:trillboards-com-partners-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
openapi: 3.2.0
info:
title: Trillboards Partner Partners 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: Partners
description: Partner account management
paths:
/register:
post:
tags:
- Partners
summary: Register a new partner
description: 'Register as a new partner to receive an API key.
Partners are auto-activated for instant onboarding.
**Important:** The API key is only shown once in the response. Store it securely!'
operationId: registerPartner
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
- slug
- contact_email
properties:
name:
type: string
description: Company or partner name
example: Acme Vending Co
slug:
type: string
description: URL-safe identifier (lowercase, no spaces)
example: acmevending
contact_email:
type: string
format: email
example: developer@example.com
contact_name:
type: string
example: Jane Developer
partner_type:
type: string
enum:
- vending_machine
- kiosk
- digital_signage
- retail_display
- other
default: other
revenue_share_percent:
type: number
description: Partner's revenue share percentage (negotiated per partner)
minimum: 0
maximum: 100
allowed_domains:
type: array
items:
type: string
description: Whitelist of allowed referrer domains
responses:
'201':
description: Partner registered successfully
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
message:
type: string
example: Partner registered successfully. API key shown once - save it securely.
data:
type: object
properties:
partner_id:
type: string
example: 507f1f77bcf86cd799439011
slug:
type: string
example: acmevending
api_key:
type: string
description: Store this securely - only shown once!
example: trb_partner_a1b2c3d4e5f6g7h8i9j0
status:
type: string
enum:
- pending
- active
example: active
revenue_share_percent:
type: number
example: 80
portal_access:
type: object
description: Optional portal onboarding details for the partner owner account
properties:
user_id:
type: string
email:
type: string
format: email
new_account:
type: boolean
portal_url:
type: string
example: https://trillboards.com/earner
portal_auth_url:
type: string
example: https://trillboards.com/earner/auth
claim_required:
type: boolean
claim_request_endpoint:
type: string
example: /v1/user/claim/request
claim_verify_endpoint:
type: string
example: /v1/user/claim/verify
claim_complete_endpoint:
type: string
example: /v1/user/claim/complete
message:
type: string
example: An earner portal account has been created. Check your email to set your password.
'400':
$ref: '#/components/responses/BadRequest'
'409':
description: Partner slug already exists
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/info:
get:
tags:
- Partners
summary: Get partner info
description: Retrieve information about the authenticated partner
operationId: getPartnerInfo
security:
- BearerAuth: []
responses:
'200':
description: Partner info retrieved
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
$ref: '#/components/schemas/Partner'
'401':
$ref: '#/components/responses/Unauthorized'
/upgrade-to-partner:
post:
tags:
- Partners
summary: Self-service upgrade from Earner to Partner
description: '**Base URL:** `https://api.trillboards.com/v2/earner` (not /v1/partner)
Allows existing earners to upgrade to Partner status and receive an API key
for programmatic screen management. This is an alternative to `/register` for
users who already have a Trillboards earner account.
**Authentication:** Requires user JWT token (not partner API key)
**Use case:** An earner with existing screens wants to:
- Register additional screens via API
- Build a custom integration
- Manage screens programmatically
After upgrade:
- User receives Partner API key (one-time display)
- User can see both their existing (userId-based) screens AND new partner screens
- Existing screens remain unchanged
- New screens registered via API will have partner_id set
**Rate limit:** 1 partner per user (prevents abuse)'
operationId: upgradeToPartner
security:
- UserJWT: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- partner_name
- api_agreement_accepted
properties:
partner_name:
type: string
minLength: 2
maxLength: 100
example: Take 10 Media
description: Name of the partner organization
partner_slug:
type: string
pattern: ^[a-z0-9]([a-z0-9-]*[a-z0-9])?$
maxLength: 50
example: take10media
description: 'URL-safe slug for the partner.
Auto-generated from partner_name if not provided.
Must be lowercase alphanumeric with hyphens.
'
partner_type:
type: string
enum:
- vending_machine
- kiosk
- digital_signage
- retail_display
- other
default: digital_signage
description: Type of integration
api_agreement_accepted:
type: boolean
description: Must be true to accept API terms of service
responses:
'201':
description: Successfully upgraded to partner status
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
message:
type: string
example: Successfully upgraded to partner status
api_key:
type: string
example: trb_partner_xxxxxxxxxxxxxxxxxxxx
description: '**IMPORTANT:** This is shown only once! Save it securely.
Cannot be retrieved after this response.
'
partner:
type: object
properties:
id:
type: string
name:
type: string
slug:
type: string
portal_url:
type: string
example: https://trillboards.com/earner/auth
docs_url:
type: string
example: https://api.trillboards.com/docs/partner
warning:
type: string
example: 'IMPORTANT: Save your API key now - it cannot be retrieved later.'
'400':
description: Invalid request (missing partner_name or api_agreement_accepted)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized - missing or invalid user JWT
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden - user is not an earner
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: 'Conflict - either:
- User already owns a partner organization
- Partner slug already taken
'
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: false
message:
type: string
partner_slug:
type: string
description: If already an owner, shows existing partner slug
suggested_slug:
type: string
description: If slug taken, suggests alternative
/quick-start:
post:
tags:
- Partners
summary: Quick start — register partner and first device in one call
description: 'Registers a new partner and creates their first device in a single API call.
Returns API key, device credentials, SDK snippets, and configuration.
**Rate limited:** 5 requests per hour per IP address.
**Important:** The API key is only shown once in the response. Store it securely!'
operationId: quickStart
security: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- company_name
- email
properties:
company_name:
type: string
description: Company or partner name
example: Acme Screens Inc
email:
type: string
format: email
example: developer@acme.com
device_name:
type: string
description: Name for the first device
partner_type:
type: string
default: digital_signage
device_location:
type: object
description: Location for the first device
device_display:
type: object
description: Display configuration for the first device
responses:
'201':
description: Partner registered and first device created
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
message:
type: string
data:
type: object
properties:
partner:
type: object
properties:
partner_id:
type: string
name:
type: string
slug:
type: string
status:
type: string
example: active
revenue_share_percent:
type: number
credentials:
type: object
properties:
api_key:
type: string
description: Store securely — shown only once!
example: trb_partner_a1b2c3d4e5f6g7h8
api_key_prefix:
type: string
warning:
type: string
device:
type: object
properties:
device_id:
type: string
external_device_id:
type: string
fingerprint:
type: string
screen_id:
type: string
name:
type: string
status:
type: string
embed_url:
type: string
format: uri
integration:
type: object
properties:
sdk_snippet:
type: string
iframe_snippet:
type: string
embed_url:
type: string
format: uri
api_base:
type: string
sdk_url:
type: string
docs_url:
type: string
sdk_config:
type: object
properties:
ad_interval:
type: integer
max_ads_per_hour:
type: integer
image_duration:
type: integer
allowed_ad_types:
type: array
items:
type: string
sound_enabled:
type: boolean
cache_size:
type: integer
next_steps:
type: array
items:
type: string
'400':
description: Missing company_name or email
'409':
description: Partner with this email already exists
'429':
$ref: '#/components/responses/TooManyRequests'
/api-key/rotate:
post:
tags:
- Partners
summary: Rotate API key
description: 'Generates a new API key with a 24-hour grace period for the old key.
Both keys work during the grace period, after which the old key is invalidated.
**Important:** The new API key is only shown once. Store it securely!'
operationId: rotateApiKey
security:
- BearerAuth: []
responses:
'200':
description: New API key generated
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
data:
type: object
properties:
api_key:
type: string
description: New API key — shown only once!
example: trb_partner_new_key_abc123
previous_key_expires_at:
type: string
format: date-time
description: When the old key stops working
grace_period_hours:
type: integer
example: 24
message:
type: string
'401':
$ref: '#/components/responses/Unauthorized'
components:
schemas:
Partner:
type: object
properties:
partner_id:
type: string
name:
type: string
slug:
type: string
status:
type: string
enum:
- pending
- active
- suspended
- terminated
partner_type:
type: string
integration_tier:
type: string
sdk_config:
$ref: '#/components/schemas/SDKConfig'
revenue_share_percent:
type: number
stats:
$ref: '#/components/schemas/PartnerStats'
stripe_account_status:
type: string
Error:
type: object
properties:
success:
type: boolean
example: false
message:
type: string
error:
type: string
PartnerStats:
type: object
properties:
total_devices:
type: integer
active_devices:
type: integer
total_impressions:
type: integer
total_revenue_cents:
type: integer
pending_payout_cents:
type: integer
last_impression_at:
type: string
format: date-time
SDKConfig:
type: object
properties:
ad_interval:
type: integer
description: Seconds between ads
max_ads_per_hour:
type: integer
image_duration:
type: integer
description: Seconds to display image ads
allowed_ad_types:
type: array
items:
type: string
sound_enabled:
type: boolean
cache_size:
type: integer
overlay_button_text:
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
BadRequest:
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
success: false
message: Missing required fields
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.
'