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

# Create a pixel for a domain

> Creates a new tracking pixel. Authenticates via X-API-Key header.



## OpenAPI

````yaml https://api.aws53.cloud/openapi-data.json post /v1/data/pixels
openapi: 3.1.0
info:
  title: Identification API
  version: 1.0.0
  description: >-
    Programmatic access to your visitor data and pixel management. Authenticate
    with your API key (X-API-Key header).
servers:
  - url: https://api.aws53.cloud
    description: Production
security:
  - apiKeyAuth: []
tags:
  - name: Visitors
  - name: Pixels
  - name: Account
paths:
  /v1/data/pixels:
    post:
      tags:
        - Pixels
      summary: Create a pixel for a domain
      description: Creates a new tracking pixel. Authenticates via X-API-Key header.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                domain:
                  type: string
                  minLength: 1
                  maxLength: 255
                  example: www.example.com
                name:
                  type: string
                  minLength: 1
                  maxLength: 255
                  example: Example Pixel
                excludedPaths:
                  type:
                    - array
                    - 'null'
                  items:
                    type: string
                    minLength: 2
                    maxLength: 500
                    pattern: ^\/
                  maxItems: 50
                  description: >-
                    Denylist: URL path prefixes where tracking is skipped.
                    Mutually exclusive with includedPaths.
                  example:
                    - /blog
                    - /careers
                includedPaths:
                  type:
                    - array
                    - 'null'
                  items:
                    type: string
                    minLength: 2
                    maxLength: 500
                    pattern: ^\/
                  maxItems: 50
                  description: >-
                    Allowlist: if set, tracking fires ONLY on matching path
                    prefixes. Mutually exclusive with excludedPaths.
                  example:
                    - /pricing
                    - /demo
              required:
                - domain
      responses:
        '201':
          description: Pixel created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PixelCreated'
        '400':
          description: Validation error (e.g. both includedPaths and excludedPaths set)
        '401':
          description: Missing or invalid API key
        '403':
          description: Revoked key or inactive org
        '409':
          description: Pixel already exists for this domain
      security:
        - apiKeyAuth: []
components:
  schemas:
    PixelCreated:
      type: object
      properties:
        data:
          type: object
          properties:
            id:
              type: string
              format: uuid
            domain:
              type: string
            name:
              type: string
            status:
              type: string
            excludedPaths:
              type:
                - array
                - 'null'
              items:
                type: string
            includedPaths:
              type:
                - array
                - 'null'
              items:
                type: string
            code:
              type: string
            createdAt:
              type: string
          required:
            - id
            - domain
            - name
            - status
            - excludedPaths
            - includedPaths
            - code
            - createdAt
      required:
        - data
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Organization API key (sk_...). Get yours from Settings > API Keys in the
        dashboard.

````