---
title: "Get Next Action"
method: GET
path: "/evaluations/v1/red-team/{workflow_id}/next-action"
tags: ["Red Team Evaluations"]
---

# Get Next Action

`GET /evaluations/v1/red-team/{workflow_id}/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

## Path parameters

- `workflow_id` string, required — The workflow identifier

## Response `200`

Next action for client

- NextActionResponse — Response from next-action polling endpoint.
  - `is_ready` boolean, required — Whether an action is ready
  - `is_processing` boolean — Whether processing is in progress
  - `action_type` string — Type of action (e.g., "attack", "complete")
  - `message` string — Status message
  - `session_id` string — Session identifier
  - `turn` integer — Current turn number
  - `attack_prompt` string — Attack prompt to send to target
  - `history` object[] — Conversation history
  - `target_system_prompt` string — Target's system prompt

## Other responses

- `401` — Authentication Error
- `403` — Forbidden Error
- `404` — The specified resource was not found.
- `422` — Validation Error

## Changes

- **2026-06-24** `efca861e915b` — 1 breaking
  - the `errors/items/pointer` response's property type/format changed from `array`/`` to `string`/`` for status `422`
- **2026-05-11** `5e3d05c2a957` — 3 breaking, 5 info
  - the response property `type` became optional for the status `422`
  - removed the required property `loc` from the response with the `422` status
  - removed the required property `msg` from the response with the `422` status
  - media type `application/json` was changed to `application/json; charset=utf-8` for the response status `422`
  - …4 more
- **2026-04-09** `2b17c7051a37` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hiddenlayerai/apis/hiddenlayer-audit-api/changes/evaluations/v1/red-team/:workflow_id/next-action/get.md)

---

[API](https://skmtc.dev/hiddenlayerai/apis/hiddenlayer-audit-api.md) · [All operations](https://skmtc.dev/hiddenlayerai/apis/hiddenlayer-audit-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hiddenlayerai/hiddenlayer-audit-api/revisions/d8c55b669109/schema)
