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

# Preview template



## OpenAPI

````yaml /openapi/task-service.yaml post /api/v1/templates/{id}/preview
openapi: 3.0.3
info:
  title: Titan Task Service API
  description: Tasks, executions, templates, datasets, results, and media CDN.
  version: '1.0'
servers:
  - url: https://api.webscraping.titannet.io
    description: Production
security: []
tags:
  - name: Tasks
  - name: Executions
  - name: Templates
  - name: Media
paths:
  /api/v1/templates/{id}/preview:
    post:
      tags:
        - Templates
      summary: Preview template
      operationId: postTemplatePreview
      parameters:
        - name: id
          in: path
          required: true
          description: Template UUID or slug
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PreviewRunRequest'
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessEnvelope'
        '429':
          description: Preview limit exceeded (alternate JSON shape)
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    PreviewRunRequest:
      type: object
      required:
        - urls
        - output_schema
        - objective
      properties:
        urls:
          type: array
          minItems: 1
          items:
            type: string
            format: uri
        output_schema:
          type: object
        objective:
          type: string
        proxy_locations:
          type: array
          items:
            type: string
        script_id:
          type: string
        script_version:
          type: string
    SuccessEnvelope:
      type: object
      properties:
        success:
          type: boolean
        data: {}
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````