> ## 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 UTMVC cookie



## OpenAPI

````yaml api-reference/openapi/imperva.yaml POST /api/v1/utmvc
openapi: 3.1.0
info:
  title: Roolink Imperva API
  version: 1.0.0
servers:
  - url: https://imperva.roolink.io
security:
  - ApiKey: []
paths:
  /api/v1/utmvc:
    post:
      summary: Generate UTMVC cookie
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - script
                - cookies
                - userAgent
              properties:
                script:
                  type: string
                  minLength: 1
                cookies:
                  type: string
                  description: >-
                    document.cookie from the same site session; an empty string
                    is valid.
                userAgent:
                  type: string
                  minLength: 1
                  description: >-
                    The User-Agent your requests to the site send, as for
                    /api/v1/payload.
      responses:
        '200':
          description: >-
            Cookie and source fingerprint metadata. Expiry and window count are
            generated per request.
          content:
            application/json:
              schema:
                type: object
                required:
                  - name
                  - value
                  - cookie
                  - setCookie
                  - fingerprint
                  - digest
                  - signature
                  - salt
                  - key
                  - version
                  - windowKeyCount
                properties:
                  name:
                    const: ___utmvc
                  value:
                    type: string
                  cookie:
                    type: string
                  setCookie:
                    type: string
                  fingerprint:
                    type: string
                  digest:
                    type: string
                  signature:
                    type: string
                  salt:
                    type: string
                  key:
                    type: string
                  version:
                    type: string
                  windowKeyCount:
                    type: integer
                    minimum: 280
                    maximum: 300
        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.