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

# Run Autonomous Redteam

> Run the autonomous red team agent against the policy engine.

Uses LLM-powered mutation to discover novel attack vectors that bypass
the current policy configuration.  Discovered bypasses are stored in
the Attack Intelligence DB for the data flywheel.



## OpenAPI

````yaml /api-reference/openapi-developer.json post /api/v1/redteam/autonomous
openapi: 3.1.0
info:
  title: PromptGuard Developer API
  description: >-
    Public API for developers to integrate PromptGuard security into their
    applications
  version: 1.0.0
servers:
  - url: https://api.promptguard.dev
    description: Production API
  - url: https://staging-api.promptguard.dev
    description: Staging API
  - url: http://localhost:8080
    description: Local Development
security:
  - ApiKeyAuth: []
paths:
  /api/v1/redteam/autonomous:
    post:
      tags:
        - redteam
      summary: Run Autonomous Redteam
      description: |-
        Run the autonomous red team agent against the policy engine.

        Uses LLM-powered mutation to discover novel attack vectors that bypass
        the current policy configuration.  Discovered bypasses are stored in
        the Attack Intelligence DB for the data flywheel.
      operationId: run_autonomous_redteam_api_v1_redteam_autonomous_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutonomousRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Run Autonomous Redteam Api V1 Redteam Autonomous Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AutonomousRequest:
      properties:
        budget:
          type: integer
          maximum: 1000
          minimum: 1
          title: Budget
          default: 100
        target_preset:
          type: string
          title: Target Preset
          default: default
        enabled_detectors:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Enabled Detectors
      type: object
      title: AutonomousRequest
      description: Request to run the autonomous red team agent.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        PromptGuard API key for developer endpoints. Keys start with pg_live_
        and are created in the dashboard.

````