Skip to navigation

Get Next Action

Deprecated
View as Markdown

⚠️ DEPRECATED: This endpoint will be removed after May 1, 2026.

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

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

workflow_idstringRequired

Response

Next action for client
is_readyboolean
Whether an action is ready
is_processingbooleanOptionalDefaults to false
Whether processing is in progress
action_typestringOptional

Type of action (e.g., “attack”, “complete”)

messagestringOptional
Status message
session_idstringOptional
Session identifier
turnintegerOptional
Current turn number
attack_promptstringOptional
Attack prompt to send to target
historylist of maps from strings to anyOptional
Conversation history
target_system_promptstringOptional
Target's system prompt

Errors

404
Not Found Error
422
Unprocessable Entity Error