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

# Create Pixel



## OpenAPI

````yaml /openapi.yaml post /pixels
openapi: 3.0.0
info:
  title: AudienceLab API
  version: 1.0.0
  description: API endpoints for AudienceLab
servers:
  - url: https://api.audiencelab.io
    description: Production API
security:
  - ApiKeyAuth: []
tags:
  - name: Audience
  - name: Pixel
  - name: Enrichment
paths:
  /pixels:
    post:
      tags:
        - Pixel
      summary: Create Pixel
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PixelCreateRequest'
      responses:
        '201':
          description: Pixel created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PixelCreateResponse'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    PixelCreateRequest:
      type: object
      properties:
        websiteName:
          type: string
          description: The display name for the pixel (site name)
        websiteUrl:
          type: string
          description: The URL where the pixel will be installed
        webhookUrl:
          type: string
          nullable: true
          description: Optional webhook URL for pixel events
      required:
        - websiteName
        - websiteUrl
      example:
        websiteName: Test Site
        websiteUrl: https://test.com
        webhookUrl: https://hooks.example.com/pixel
    PixelCreateResponse:
      type: object
      properties:
        pixel_id:
          type: string
          example: 912b78c3-83e6-4d6a-8245-def0dde26224
        install_url:
          type: string
          example: https://pixel.example/install/abcd1234
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          example: error message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````