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
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
workflow_id
Response
Next action for client
is_ready
Whether an action is ready
is_processing
Whether processing is in progress
action_type
Type of action (e.g., “attack”, “complete”)
message
Status message
session_id
Session identifier
turn
Current turn number
attack_prompt
Attack prompt to send to target
history
Conversation history
target_system_prompt
Target's system prompt
Errors
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error