---
title: "Submit Target Response"
method: POST
path: "/evaluations/v1/red-team/{workflow_id}/target-response"
tags: ["Red Team Evaluations"]
---

# Submit Target Response

`POST /evaluations/v1/red-team/{workflow_id}/target-response`

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

Submit target's response.

This triggers the ProcessTargetResponseWorkflow child workflow
for the specified session. Returns immediately.

## Path parameters

- `workflow_id` string, required — The workflow identifier

## Request body

- SubmitTargetResponseBody — Request to submit target's response.
  - `session_id` string, required — Session identifier
  - `target_response` string, required — Target's response text

## Response `202`

Accepted - response processing started

- SubmitTargetResponseResult — Response from submitting a target response.
  - `is_ok` boolean, required — Whether the submission was successful
  - `message` string, required — Human-readable status message
  - `error` string — Error code if ok=false

## Other responses

- `400` — The request failed due to a client error, with one or more of the following possible causes: 1. The request required a tenant_id field, which was missing. 2. The request was malformed syntactically or semantically.
- `401` — Authentication Error
- `403` — Forbidden Error
- `404` — The specified resource was not found.
- `422` — Validation Error

---

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