Trillboards Earnings API
Earnings, transactions, and payout management
Earnings, transactions, and payout management
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-earnings-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 Earnings 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: Earnings
description: Earnings, transactions, and payout management
paths:
/earnings:
get:
tags:
- Earnings
summary: Get earnings summary
description: 'Get comprehensive earnings summary including lifetime earnings, current month,
available balance, breakdown by source, and payout information.'
operationId: getEarnings
security:
- BearerAuth: []
responses:
'200':
description: Earnings summary retrieved
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
$ref: '#/components/schemas/EarningsResponse'
example:
success: true
data:
total_lifetime_cents: 4500000
this_month_cents: 450000
available_for_payout_cents: 350000
pending_confirmation_cents: 125000
next_payout_estimate:
amount_cents: 350000
date: '2026-02-01'
stripe_status: active
breakdown:
direct_campaigns: 3000000
programmatic_google: 1200000
programmatic_floodgates: 300000
payout_threshold_cents: 10000
revenue_share_percent: 80
'401':
$ref: '#/components/responses/Unauthorized'
/earnings/transactions:
get:
tags:
- Earnings
summary: Get transaction history
description: 'Get paginated list of earnings transactions and payouts.
Transactions are aggregated by day showing impressions and calculated earnings.'
operationId: getTransactions
security:
- BearerAuth: []
parameters:
- name: limit
in: query
description: Maximum transactions to return
schema:
type: integer
default: 50
maximum: 100
- name: offset
in: query
description: Offset for pagination
schema:
type: integer
default: 0
- name: type
in: query
description: Filter by transaction type
schema:
type: string
enum:
- all
- earning
- payout
default: all
responses:
'200':
description: Transactions retrieved
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
type: object
properties:
transactions:
type: array
items:
$ref: '#/components/schemas/Transaction'
pagination:
$ref: '#/components/schemas/Pagination'
example:
success: true
data:
transactions:
- id: daily_2026-01-25
type: earning
amount_cents: 15000
source: impressions
impressions: 5000
date: '2026-01-25'
created_at: '2026-01-25T00:00:00.000Z'
- id: daily_2026-01-24
type: earning
amount_cents: 14200
source: impressions
impressions: 4733
date: '2026-01-24'
created_at: '2026-01-24T00:00:00.000Z'
pagination:
total: 45
limit: 50
offset: 0
has_more: false
'401':
$ref: '#/components/responses/Unauthorized'
/earnings/breakdown:
get:
tags:
- Earnings
summary: Get detailed earnings breakdown
description: 'Get earnings breakdown grouped by day, week, or screen.
Useful for detailed financial reporting and analysis.'
operationId: getEarningsBreakdown
security:
- BearerAuth: []
parameters:
- name: start_date
in: query
description: Start date (ISO 8601 format)
schema:
type: string
format: date
- name: end_date
in: query
description: End date (ISO 8601 format)
schema:
type: string
format: date
- name: group_by
in: query
description: How to group the breakdown
schema:
type: string
enum:
- day
- week
- screen
default: day
responses:
'200':
description: Earnings breakdown retrieved
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
$ref: '#/components/schemas/EarningsBreakdownResponse'
example:
success: true
data:
summary:
total_cents: 450000
total_impressions: 150000
direct_cents: 450000
programmatic_cents: 0
breakdown:
- date: '2026-01-25'
impressions: 5000
earnings_cents: 15000
- date: '2026-01-24'
impressions: 4733
earnings_cents: 14200
pending_programmatic:
estimated_cents: 0
confirmation_date: null
period:
start: '2025-12-27T00:00:00.000Z'
end: '2026-01-26T23:59:59.999Z'
group_by: day
'401':
$ref: '#/components/responses/Unauthorized'
/earnings/payout:
post:
tags:
- Earnings
summary: Request a payout
description: 'Request a payout of available earnings to your connected Stripe account.
Requires Stripe Connect onboarding to be complete.
**Requirements:**
- Stripe account must be connected and active
- Available balance must meet minimum threshold ($100 default)
- If `amount_cents` not specified, full available balance is requested'
operationId: requestPayout
security:
- BearerAuth: []
requestBody:
content:
application/json:
schema:
type: object
properties:
amount_cents:
type: integer
description: Amount to payout in cents (optional, defaults to available balance)
minimum: 0
example:
amount_cents: 350000
responses:
'200':
description: Payout request submitted
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
message:
type: string
data:
$ref: '#/components/schemas/PayoutResponse'
example:
success: true
message: Payout request submitted
data:
payout_id: po_1234567890_abc123
amount_cents: 350000
status: processing
estimated_arrival: '2026-01-31'
stripe_transfer_id: null
'400':
description: Payout requirements not met
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: false
message:
type: string
example: Minimum payout is $100.00
data:
type: object
properties:
available_cents:
type: integer
threshold_cents:
type: integer
'401':
$ref: '#/components/responses/Unauthorized'
components:
schemas:
EarningsBreakdownResponse:
type: object
properties:
summary:
type: object
properties:
total_cents:
type: integer
total_impressions:
type: integer
direct_cents:
type: integer
programmatic_cents:
type: integer
breakdown:
type: array
items:
type: object
properties:
date:
type: string
format: date
description: Date or screen_id depending on group_by
screen_id:
type: string
description: Screen ID (when grouped by screen)
impressions:
type: integer
earnings_cents:
type: integer
pending_programmatic:
type: object
properties:
estimated_cents:
type: integer
confirmation_date:
type: string
format: date
period:
type: object
properties:
start:
type: string
format: date-time
end:
type: string
format: date-time
group_by:
type: string
enum:
- day
- week
- screen
Error:
type: object
properties:
success:
type: boolean
example: false
message:
type: string
error:
type: string
PayoutResponse:
type: object
properties:
payout_id:
type: string
amount_cents:
type: integer
status:
type: string
enum:
- pending
- processing
- completed
- failed
estimated_arrival:
type: string
format: date
stripe_transfer_id:
type:
- string
- 'null'
Transaction:
type: object
properties:
id:
type: string
type:
type: string
enum:
- earning
- payout
amount_cents:
type: integer
source:
type: string
description: Source of the transaction (e.g., impressions, payout)
impressions:
type: integer
description: Number of impressions (for earning transactions)
date:
type: string
format: date
created_at:
type: string
format: date-time
stripe_transfer_id:
type: string
description: Stripe transfer ID (for payout transactions)
Pagination:
type: object
properties:
total:
type: integer
description: Total number of items
limit:
type: integer
description: Items per page
offset:
type: integer
description: Current offset
has_more:
type: boolean
description: Whether more items exist
EarningsResponse:
type: object
properties:
total_lifetime_cents:
type: integer
description: Total earnings since partner started
this_month_cents:
type: integer
description: Estimated earnings for current month
available_for_payout_cents:
type: integer
description: Amount available for immediate payout
pending_confirmation_cents:
type: integer
description: Programmatic earnings pending Net-60 confirmation
next_payout_estimate:
type: object
properties:
amount_cents:
type: integer
date:
type: string
format: date
stripe_status:
type: string
breakdown:
type: object
properties:
direct_campaigns:
type: integer
programmatic_google:
type: integer
programmatic_floodgates:
type: integer
payout_threshold_cents:
type: integer
description: Minimum amount required for payout
revenue_share_percent:
type: number
description: Partner's revenue share percentage
responses:
Unauthorized:
description: Unauthorized - Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
success: false
message: API key required
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.
'