Trillboards Team API
Team member management for partner organizations
Team member management for partner organizations
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-team-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 Team 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: Team
description: Team member management for partner organizations
paths:
/team/invite:
post:
tags:
- Team
summary: Invite a team member
description: 'Invite a new team member to join your partner organization.
The invitee will receive an email with instructions to join.
**Authorization:** Requires both partner API key AND user JWT with owner role.
Include user JWT in `X-User-Token` header.
**Roles:**
- `admin` - Can manage screens, view analytics, configure webhooks
- `viewer` - Can only view screen list and status'
operationId: inviteTeamMember
security:
- BearerAuth: []
parameters:
- name: X-User-Token
in: header
required: true
description: User JWT token for authorization
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- email
properties:
email:
type: string
format: email
description: Email address of the invitee
role:
type: string
enum:
- admin
- viewer
default: viewer
description: Role to assign to the team member
name:
type: string
description: Optional name of the invitee
example:
email: teammate@example.com
role: viewer
name: John Smith
responses:
'201':
description: Invitation sent
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
message:
type: string
data:
$ref: '#/components/schemas/TeamInviteResponse'
example:
success: true
message: Invitation sent successfully
data:
membership_id: 507f1f77bcf86cd799439011
email: teammate@example.com
role: viewer
status: pending
expires_at: '2026-02-02T00:00:00.000Z'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
description: Only owners can invite team members
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: User already has membership or pending invitation
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/team:
get:
tags:
- Team
summary: List team members
description: 'List all team members for the partner organization.
Returns member info, roles, and permissions.'
operationId: listTeamMembers
security:
- BearerAuth: []
parameters:
- name: status
in: query
description: Filter by membership status
schema:
type: string
enum:
- active
- pending
- all
default: active
responses:
'200':
description: Team members retrieved
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
type: object
properties:
members:
type: array
items:
$ref: '#/components/schemas/TeamMember'
total:
type: integer
partner:
type: object
properties:
name:
type: string
slug:
type: string
example:
success: true
data:
members:
- membership_id: 507f1f77bcf86cd799439011
user_id: 507f1f77bcf86cd799439012
email: owner@example.com
name: Jane Owner
photo: null
role: owner
status: active
invited_at: '2025-12-01T00:00:00.000Z'
accepted_at: '2025-12-01T00:00:00.000Z'
permissions:
view_screens: true
view_screen_status: true
view_analytics: true
view_earnings: true
manage_team: true
- membership_id: 507f1f77bcf86cd799439013
user_id: 507f1f77bcf86cd799439014
email: viewer@example.com
name: John Viewer
photo: null
role: viewer
status: active
invited_at: '2026-01-15T00:00:00.000Z'
accepted_at: '2026-01-15T12:00:00.000Z'
permissions:
view_screens: true
view_screen_status: true
view_analytics: false
view_earnings: false
manage_team: false
total: 2
partner:
name: Acme Vending Co
slug: acmevending
'401':
$ref: '#/components/responses/Unauthorized'
/team/{userId}:
delete:
tags:
- Team
summary: Remove a team member
description: 'Remove a team member from the partner organization.
The owner cannot be removed.
**Authorization:** Requires both partner API key AND user JWT with owner role.'
operationId: removeTeamMember
security:
- BearerAuth: []
parameters:
- name: userId
in: path
required: true
description: User ID, membership ID, or email of the member to remove
schema:
type: string
- name: X-User-Token
in: header
required: true
description: User JWT token for authorization
schema:
type: string
responses:
'200':
description: Team member removed
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
message:
type: string
example: Team member removed successfully
'400':
description: Cannot remove owner
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
description: Only owners can remove team members
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
$ref: '#/components/responses/NotFound'
/team/{userId}/role:
patch:
tags:
- Team
summary: Change team member role
description: 'Change the role of a team member. Cannot change owner''s role.
**Authorization:** Requires both partner API key AND user JWT with owner role.'
operationId: changeTeamMemberRole
security:
- BearerAuth: []
parameters:
- name: userId
in: path
required: true
description: User ID of the member
schema:
type: string
- name: X-User-Token
in: header
required: true
description: User JWT token for authorization
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- role
properties:
role:
type: string
enum:
- admin
- viewer
example:
role: admin
responses:
'200':
description: Role changed
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
message:
type: string
data:
type: object
properties:
user_id:
type: string
old_role:
type: string
new_role:
type: string
permissions:
$ref: '#/components/schemas/RolePermissions'
example:
success: true
message: Role changed from viewer to admin
data:
user_id: 507f1f77bcf86cd799439014
old_role: viewer
new_role: admin
permissions:
view_screens: true
view_screen_status: true
view_analytics: true
view_impressions: true
view_earnings: false
edit_screens: true
manage_team: false
'400':
description: Cannot change owner's role or invalid role
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
description: Only owners can change roles
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
$ref: '#/components/responses/NotFound'
/team/{membershipId}/resend:
post:
tags:
- Team
summary: Resend invitation
description: 'Resend the invitation email to a pending team member.
Generates a new invitation token with extended expiry.
**Authorization:** Requires both partner API key AND user JWT with owner role.'
operationId: resendInvitation
security:
- BearerAuth: []
parameters:
- name: membershipId
in: path
required: true
description: Membership ID of the pending invitation
schema:
type: string
- name: X-User-Token
in: header
required: true
description: User JWT token for authorization
schema:
type: string
responses:
'200':
description: Invitation resent
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
message:
type: string
data:
type: object
properties:
email:
type: string
expires_at:
type: string
format: date-time
example:
success: true
message: Invitation resent successfully
data:
email: teammate@example.com
expires_at: '2026-02-02T00:00:00.000Z'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
description: Only owners can resend invitations
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Pending invitation not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/team/invite/{token}:
get:
tags:
- Team
summary: Get invitation details
description: 'Get details about an invitation by token.
This is a public endpoint used during the signup flow.'
operationId: getInvitationByToken
parameters:
- name: token
in: path
required: true
description: Invitation token from email link
schema:
type: string
responses:
'200':
description: Invitation details retrieved
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
type: object
properties:
partner:
type: object
properties:
name:
type: string
slug:
type: string
email:
type: string
role:
type: string
invited_at:
type: string
format: date-time
expires_at:
type: string
format: date-time
example:
success: true
data:
partner:
name: Acme Vending Co
slug: acmevending
email: teammate@example.com
role: viewer
invited_at: '2026-01-26T00:00:00.000Z'
expires_at: '2026-02-02T00:00:00.000Z'
'404':
description: Invalid or expired invitation
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/team/accept:
post:
tags:
- Team
summary: Accept team invitation
description: 'Accept a team invitation using the token from the invitation email.
Can be called with or without authentication.
**Without auth:** User with the invited email must exist
**With auth:** Links invitation to the authenticated user''s account'
operationId: acceptInvitation
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- token
properties:
token:
type: string
description: Invitation token from email link
example:
token: inv_abc123def456
responses:
'200':
description: Invitation accepted
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
message:
type: string
data:
type: object
properties:
partner:
type: object
properties:
id:
type: string
name:
type: string
slug:
type: string
role:
type: string
permissions:
$ref: '#/components/schemas/RolePermissions'
portal_url:
type: string
example:
success: true
message: Successfully joined Acme Vending Co
data:
partner:
id: 507f1f77bcf86cd799439011
name: Acme Vending Co
slug: acmevending
role: viewer
permissions:
view_screens: true
view_screen_status: true
view_analytics: false
portal_url: https://trillboards.com/earner
'400':
description: Token missing or user account required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Invalid or expired invitation token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: Already a member of this organization
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
RolePermissions:
type: object
description: 'Permission flags for each role. Owners have all permissions,
admins have operational permissions, viewers have read-only access.
'
properties:
view_screens:
type: boolean
description: Can view screen list
view_screen_status:
type: boolean
description: Can view online/offline status
view_analytics:
type: boolean
description: Can view impression analytics
view_impressions:
type: boolean
description: Can view impression data
view_earnings:
type: boolean
description: Can view earnings/revenue
view_payouts:
type: boolean
description: Can view payout history
request_payouts:
type: boolean
description: Can request payouts
edit_screens:
type: boolean
description: Can edit screen settings
manage_team:
type: boolean
description: Can invite/remove team members
rotate_api_keys:
type: boolean
description: Can rotate API keys
configure_webhooks:
type: boolean
description: Can configure webhooks
TeamMember:
type: object
properties:
membership_id:
type: string
description: Unique membership record ID
user_id:
type: string
description: User ID (null if pending invitation)
email:
type: string
format: email
name:
type: string
photo:
type:
- string
- 'null'
role:
type: string
enum:
- owner
- admin
- viewer
status:
type: string
enum:
- active
- pending
- revoked
invited_at:
type: string
format: date-time
accepted_at:
type:
- string
- 'null'
format: date-time
invited_by:
type:
- object
- 'null'
properties:
name:
type: string
email:
type: string
last_portal_access:
type:
- string
- 'null'
format: date-time
permissions:
$ref: '#/components/schemas/RolePermissions'
Error:
type: object
properties:
success:
type: boolean
example: false
message:
type: string
error:
type: string
TeamInviteResponse:
type: object
properties:
membership_id:
type: string
email:
type: string
format: email
role:
type: string
enum:
- admin
- viewer
status:
type: string
enum:
- pending
- active
expires_at:
type: string
format: date-time
description: When the invitation expires (7 days from creation)
responses:
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
NotFound:
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
success: false
message: Device not found
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.
'