> ## Documentation Index
> Fetch the complete documentation index at: https://plainrouter.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate a synthetic event with a sandbox key

> Validates a synthetic event using the short-lived key returned by the self-serve sandbox key endpoint. It never persists data or contacts an advertising provider.



## OpenAPI

````yaml https://plainrouter.com/openapi.json post /sandbox/keyed-events
openapi: 3.1.0
info:
  title: PlainRouter Conversion API
  version: 0.5.0
  description: PlainRouter public Signals Conversion API.
servers:
  - url: https://plainrouter.com/api/v1
    description: Production
security:
  - signalTrackerSecret: []
paths:
  /sandbox/keyed-events:
    post:
      tags:
        - Sandbox
      summary: Validate a synthetic event with a sandbox key
      description: >-
        Validates a synthetic event using the short-lived key returned by the
        self-serve sandbox key endpoint. It never persists data or contacts an
        advertising provider.
      operationId: validateSandboxEventWithKey
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                event_id:
                  type: string
                  description: Optional synthetic idempotency key; maximum 128 characters.
                event_name:
                  type: string
                  description: Synthetic event name; maximum 100 characters.
                action_source:
                  type: string
                  description: Synthetic action source.
                  examples:
                    - website
                value_data:
                  type: object
                  description: Optional synthetic commerce data.
                  properties:
                    value:
                      type: string
                    currency:
                      type: string
                    order_id:
                      type: string
              required:
                - event_name
      responses:
        '200':
          description: Synthetic event validated with a sandbox key and discarded.
          content:
            application/json:
              schema:
                type: object
                properties:
                  sandbox:
                    type: boolean
                  accepted:
                    type: boolean
                  event_id:
                    type: string
                  status:
                    type: string
                  persisted:
                    type: boolean
                  provider_delivery:
                    type: boolean
                  message:
                    type: string
                required:
                  - sandbox
                  - accepted
                  - event_id
                  - status
                  - persisted
                  - provider_delivery
                  - message
        '401':
          description: Sandbox key missing, invalid, or expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '422':
          description: Request validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
      security:
        - sandboxCredential: []
components:
  schemas:
    ErrorMessage:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: ErrorMessage
    ValidationError:
      type: object
      properties:
        message:
          type: string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
      required:
        - message
        - errors
      title: ValidationError
  securitySchemes:
    signalTrackerSecret:
      type: http
      description: >-
        Per-tracker bearer secret. It authenticates only the Signal tracker
        represented by the credential.
      scheme: bearer
    sandboxCredential:
      type: http
      description: Short-lived sandbox-only key issued by POST /sandbox/keys.
      scheme: bearer

````