Trillboards Sandbox API

Testing tools for partner API integration. Create sandbox screens, generate test events, and validate webhook integrations without affecting production data. Sandbox data expires after 24 hours.

GitHub OpenAPI

Operations 4

POST /sandbox/screen Create a sandbox screen #
POST /sandbox/event Generate a test event #
POST /sandbox/reset Reset sandbox data #
GET /sandbox/status Get sandbox status #

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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/trillboards-com:trillboards-com-sandbox-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

trillboards-com-sandbox-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Trillboards Partner Sandbox 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: Sandbox
  description: 'Testing tools for partner API integration.


    Create sandbox screens, generate test events, and validate webhook integrations

    without affecting production data. Sandbox data expires after 24 hours.'
  x-beta: true
paths:
  /sandbox/screen:
    post:
      tags:
      - Sandbox
      summary: Create a sandbox screen
      description: 'Creates a synthetic test screen with realistic data for integration testing.

        Maximum 10 sandbox screens per partner. Sandbox data expires after 24 hours.'
      operationId: createSandboxScreen
      x-beta: true
      security:
      - BearerAuth: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Custom screen name
                venue_type:
                  type: string
                  description: Override venue type
      responses:
        '201':
          description: Sandbox screen created
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    example: sandbox_screen
                  id:
                    type: string
                    example: sandbox_screen_abc123
                  screen_id:
                    type: string
                  partner_id:
                    type: string
                  is_sandbox:
                    type: boolean
                    example: true
                  name:
                    type: string
                  fingerprint:
                    type: string
                  device_id:
                    type: string
                  status:
                    type: string
                    example: online
                  location:
                    type: object
                    properties:
                      name:
                        type: string
                      latitude:
                        type: number
                      longitude:
                        type: number
                      city:
                        type: string
                      state:
                        type: string
                      venue_type:
                        type: string
                  display_settings:
                    type: object
                  audience:
                    type: object
                    properties:
                      current_viewers:
                        type: integer
                      avg_dwell_time_sec:
                        type: number
                      demographics:
                        type: object
                  created_at:
                    type: string
                    format: date-time
                  last_heartbeat:
                    type: string
                    format: date-time
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          description: Maximum 10 sandbox screens per partner
  /sandbox/event:
    post:
      tags:
      - Sandbox
      summary: Generate a test event
      description: 'Generates a realistic test event that can be used to validate webhook integrations.

        If an SSE connection is active, the event is also delivered via SSE.


        **Supported event types:** `device.online`, `device.offline`, `impression.recorded`,

        `impression.verified`, `campaign.allocated`, `payout.processed`, `audience.spike`,

        `audience.demographics_update`, `audience.purchase_intent`, `audience.venue_busy`,

        `audience.context_update`, `venue.traffic_summary`, `auction.completed`, `bid.won`,

        `bid.lost`, `creative.performance`, `screen.anomaly_detected`'
      operationId: generateSandboxEvent
      x-beta: true
      security:
      - BearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - event_type
              properties:
                event_type:
                  type: string
                  description: Event type to generate
                  example: impression.recorded
                screen_id:
                  type: string
                  description: Target sandbox screen (auto-selects first if omitted)
      responses:
        '201':
          description: Test event generated
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    example: sandbox_event
                  event_id:
                    type: string
                  event:
                    type: string
                  timestamp:
                    type: string
                    format: date-time
                  is_sandbox:
                    type: boolean
                    example: true
                  data:
                    type: object
                    description: Event payload (varies by event type)
                  screen_id:
                    type:
                    - string
                    - 'null'
                  sse_delivered:
                    type: integer
                    description: Number of SSE connections that received this event
        '400':
          description: Missing or invalid event_type
        '401':
          $ref: '#/components/responses/Unauthorized'
  /sandbox/reset:
    post:
      tags:
      - Sandbox
      summary: Reset sandbox data
      description: Clears all sandbox screens and events for the partner.
      operationId: resetSandbox
      x-beta: true
      security:
      - BearerAuth: []
      responses:
        '200':
          description: Sandbox reset
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    example: sandbox_reset
                  success:
                    type: boolean
                    example: true
                  screens_cleared:
                    type: integer
                  events_cleared:
                    type: integer
                  reset_at:
                    type: string
                    format: date-time
        '401':
          $ref: '#/components/responses/Unauthorized'
  /sandbox/status:
    get:
      tags:
      - Sandbox
      summary: Get sandbox status
      description: Returns current sandbox screens, event counts, and recent activity.
      operationId: getSandboxStatus
      x-beta: true
      security:
      - BearerAuth: []
      responses:
        '200':
          description: Sandbox status
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    example: sandbox_status
                  sandbox_screens:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        status:
                          type: string
                        location:
                          type: object
                        last_heartbeat:
                          type: string
                          format: date-time
                        created_at:
                          type: string
                          format: date-time
                  total_screens:
                    type: integer
                  total_test_events:
                    type: integer
                  last_activity:
                    type:
                    - string
                    - 'null'
                    format: date-time
                  recent_events:
                    type: array
                    items:
                      type: object
                      properties:
                        event_id:
                          type: string
                        event:
                          type: string
                        timestamp:
                          type: string
                          format: date-time
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
        error:
          type: string
  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.

        '