> ## 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 Reese84 payload



## OpenAPI

````yaml api-reference/openapi/imperva.yaml POST /api/v1/payload
openapi: 3.1.0
info:
  title: Roolink Imperva API
  version: 1.0.0
servers:
  - url: https://imperva.roolink.io
security:
  - ApiKey: []
paths:
  /api/v1/payload:
    post:
      summary: Generate Reese84 payload
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - script
                - scriptUrl
                - pageUrl
                - userAgent
                - language
              properties:
                script:
                  type: string
                  minLength: 1
                scriptUrl:
                  type: string
                  minLength: 1
                  description: Absolute HTTP(S) URL or a reference relative to pageUrl.
                pageUrl:
                  type: string
                  format: uri
                userAgent:
                  type: string
                  minLength: 1
                  description: >-
                    The User-Agent your requests to the site send. Roolink
                    builds the payload from a real collected browser with this
                    exact User-Agent, so use a current desktop Chrome on Windows
                    or macOS.
                language:
                  type: string
                  minLength: 1
                  description: >-
                    The Accept-Language header your requests send, such as
                    en-US,en;q=0.9. It sets the payload's navigator.languages
                    and time zone.
                pow:
                  type:
                    - string
                    - 'null'
                  maxLength: 65536
                  description: >-
                    Raw base64 GPC challenge string, solved during payload
                    generation. Omit, use null, or use an empty string when
                    there is no challenge.
      responses:
        '200':
          description: Submit this entire JSON body to the challenge endpoint.
          content:
            application/json:
              schema:
                type: object
                required:
                  - solution
                  - old_token
                  - error
                  - errors
                  - performance
                properties:
                  solution:
                    type: object
                    required:
                      - interrogation
                      - version
                    properties:
                      version:
                        type: string
                      interrogation:
                        type: object
                        required:
                          - p
                          - st
                          - sr
                          - cr
                          - og
                        properties:
                          p:
                            type: string
                            contentEncoding: base64
                          st:
                            type: integer
                          sr:
                            type: integer
                          cr:
                            type: integer
                          og:
                            type: integer
                  old_token:
                    type:
                      - string
                      - 'null'
                  error: {}
                  errors:
                    type: array
                    items: {}
                  performance:
                    type: object
        default:
          $ref: '#/components/responses/Failure'
components:
  responses:
    Failure:
      description: >-
        Errors: 400 invalid input, 413 body exceeds 8 MiB, 415 unsupported
        media, 422 unsupported script/build or no collected browser for the
        User-Agent (device_not_found, invalid_device), 503 busy or device store
        unavailable, 504 deadline, 500 internal error. Gateway auth may return
        401/403/429 before reaching this service with its own error body.
      content:
        application/json:
          schema:
            type: object
            required:
              - code
              - error
            properties:
              code:
                type: string
              error:
                type: string
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.