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

# Generate pixel data

> Generates the pixel payload that earns the `ak_bmsc` cookie. Send the `bazadebezolkohpepadr` value and the hash from the pixel script. Post the returned body to the pixel endpoint on the site as a URL-encoded form. It is already encoded.



## OpenAPI

````yaml api-reference/openapi/akamai-web.yaml POST /pixel
openapi: 3.1.1
info:
  title: Roolink Akamai Web API
  summary: >-
    Bypass Akamai Bot Manager on the web — sensor (`_abck`), SBSD, Pixel
    (`ak_bmsc`), SEC-CPT, and script parsing.
  description: >-
    Endpoints for websites behind Akamai Bot Manager. Send your key in
    `X-Api-Key`, JSON in and out. The Akamai Web guides show the order to call
    them in.
  version: 1.0.0
  contact:
    name: Roolink Support
    url: https://roolink.io
    email: support@roolink.io
servers:
  - url: https://web.roolink.io/api/v1
    description: Production
security:
  - apiKey: []
paths:
  /pixel:
    post:
      summary: Generate pixel data
      description: >-
        Generates the pixel payload that earns the `ak_bmsc` cookie. Send the
        `bazadebezolkohpepadr` value and the hash from the pixel script. Post
        the returned body to the pixel endpoint on the site as a URL-encoded
        form. It is already encoded.
      operationId: generatePixel
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PixelRequest'
            example:
              userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
              bazadebezolkohpepadr: 1234567890
              hash: a1b2c3d4e5f6
      responses:
        '200':
          description: Pixel payload generated. The body is the URL-encoded form to post.
          content:
            text/plain:
              schema:
                type: string
                description: >-
                  URL-encoded Pixel payload, ready to POST to the target's Pixel
                  endpoint.
                example: ap=true&bt=%7B%22charging%22%3Atrue%7D&fonts=null
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/QuotaExceeded'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    PixelRequest:
      type: object
      required:
        - userAgent
        - bazadebezolkohpepadr
        - hash
      properties:
        userAgent:
          type: string
        bazadebezolkohpepadr:
          type: integer
          description: >-
            The number assigned to `bazadebezolkohpepadr` in the page's pixel
            script.
        hash:
          type: string
          description: The `u` value from the first array in the pixel script.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message.
  responses:
    BadRequest:
      description: Required fields missing or malformed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
        text/plain:
          schema:
            type: string
          example: invalid request body
    Unauthorized:
      description: Missing or invalid `X-Api-Key`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    QuotaExceeded:
      description: The key has no quota or balance left for this product.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: quota exhausted
    InternalError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
        text/plain:
          schema:
            type: string
          example: internal server error
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-Api-Key
      description: Customer API key issued from the Roolink dashboard.

````