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

# Click Tracking

> Redirect users through a tracked click. Records a click event and redirects
to the experiment's `goalConfig.destinationUrl`.

Use this in `<a>` tags wrapping experiment images for click-through tracking.




## OpenAPI

````yaml get /s/{slug}/click
openapi: 3.1.0
info:
  title: Pictify API
  version: 1.0.0
  description: |
    Generate images, GIFs, and PDFs from HTML templates programmatically.

    ## Authentication
    All API requests require a Bearer token in the Authorization header:
    ```
    Authorization: Bearer pk_live_your_api_key
    ```

    ## Rate Limits
    - Free: 60 requests/minute
    - Pro: 300 requests/minute
    - Business: 1,000 requests/minute

    Rate limit headers are included in all responses.
  contact:
    email: support@pictify.io
    url: https://pictify.io
  license:
    name: MIT
servers:
  - url: https://api.pictify.io
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Images
    description: Image generation endpoints
  - name: GIFs
    description: GIF generation and capture
  - name: PDFs
    description: PDF generation
  - name: Templates
    description: Template management
  - name: Batch
    description: Batch rendering operations
  - name: Experiments
    description: A/B testing, smart links, and scheduled variant experiments
  - name: Webhooks
    description: Webhook subscription management
  - name: Bindings
    description: Data binding for auto-rendering
paths:
  /s/{slug}/click:
    get:
      tags:
        - Experiments
      summary: Click tracking redirect
      description: >
        Redirect users through a tracked click. Records a click event and
        redirects

        to the experiment's `goalConfig.destinationUrl`.


        Use this in `<a>` tags wrapping experiment images for click-through
        tracking.
      operationId: trackExperimentClick
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
          description: Experiment slug
      responses:
        '302':
          description: Redirect to destination URL
        '404':
          description: Experiment not found
      security: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key obtained from the Pictify dashboard

````