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

# Preview the output of a transformer.

> Preview the output of a transformer. This endpoint is useful for testing a transformer before creating an integration.




## OpenAPI

````yaml post /transformer/preview
openapi: 3.0.3
info:
  title: Switchboard API
  description: >-
    The Switchboard API provides users the ability to manage their Apps,
    Integrations and Workflows
  version: 0.0.1-alpha.0
servers:
  - url: https://platform.versori.com/api/switchboard/v1alpha1/
    description: Production server
  - url: http://localhost:8080/v1alpha1/
    description: Localhost
security:
  - apiKey: []
paths:
  /transformer/preview:
    post:
      summary: Preview the output of a transformer.
      description: >
        Preview the output of a transformer. This endpoint is useful for testing
        a transformer before creating an integration.
      operationId: PreviewTransformer
      requestBody:
        $ref: '#/components/requestBodies/TransformerPreviewRequest'
      responses:
        '200':
          $ref: '#/components/responses/TransformerPreviewResponse'
        default:
          $ref: '#/components/responses/ErrorResponse'
components:
  requestBodies:
    TransformerPreviewRequest:
      description: |
        Payload to pass configuration and preview input data to the transformer.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TransformerPreviewInput'
  responses:
    TransformerPreviewResponse:
      description: |
        The transformed data from the transformer.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TransformerPreviewOutput'
    ErrorResponse:
      description: The default error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    TransformerPreviewInput:
      type: object
      properties:
        input:
          type: string
          description: The input data to the transformer.
        transform:
          type: string
          description: The configuration of the transformer.
        overrides:
          type: array
          items:
            type: object
            properties:
              actorid:
                type: string
              input:
                type: string
      required:
        - input
        - transform
    TransformerPreviewOutput:
      type: object
      properties:
        output:
          type: object
          description: The output data from the transformer.
      required:
        - output
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        extensions:
          type: object
      required:
        - code
        - message
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization

````