v43

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-0953227392.1 KB
Red Team Evaluations

Get Next Action

[BETA] This endpoint is not GA or Production ready and is subject to changes at any time. Breaking changes may occur.

Poll for next action - CLIENT'S MAIN POLLING ENDPOINT.

This endpoint is designed to be polled repeatedly by the client. Returns immediately with current state:

  • If attack ready: Returns attack_task with prompt
  • If processing: Returns processing=true (client continues polling)
  • If complete: Returns action_type=complete
get/evaluations/v1/red-team/{workflow_id}/next-action

Path parameters

workflow_idstring required

The workflow identifier

Response

Next action for client

is_readyboolean required

Whether an action is ready

is_processingboolean

Whether processing is in progress

action_typestring

Type of action (e.g., "attack", "complete")

messagestring

Status message

session_idstring

Session identifier

turninteger

Current turn number

attack_promptstring

Attack prompt to send to target

historyobject[]

Conversation history

target_system_promptstring

Target's system prompt