Skip to main content

Send an Asynchronous Scan Request

POST 

/v1/scan/async/request

Post a scan request that returns asynchronous scan response

Request

Header Parameters

    x-pan-token stringrequired

    API key token

Body

arrayrequired

A list of scan request objects

  • Array [
  • type
    items object
    req_id uint32required

    Unique identifier of an individual element sent in the batch scan request

    scan_req objectrequired
    tr_id string

    Unique identifier for the transaction correlating prompt and response

    ai_profile objectrequired

    AI profile to use for the scan. You can specify one of the following - profile_id or profile_name

    profile_id string

    Unique identifier for the profile. If not provided, then profile_name is required.

    profile_name string

    Name of the profile. If not provided, then profile_id is required.

    metadata object

    Optionally send the app_name, app_user, and ai_model in the metadata

    app_name string

    AI application requesting the content scan

    app_user string

    End user using the AI application

    ai_model string

    AI model serving the AI application

    contents object[]required

    List of prompt or response or prompt/response pairs. The last element is the one that needs to be scanned, and the previous elements are the context for the scan.

  • Array [
  • prompt string

    The prompt content that you want to scan

    response string

    The response content that you want to scan

  • ]
  • title
  • ]

Responses

successfully scanned request

Schema
    received date-timerequired

    Asynchronous scan received timestamp

    scan_id stringrequired

    Unique identifier for the asynchronous scan request

    report_id string

    Unique identifier for the asynchronous scan report

Loading...