---
title: "Create Flag"
method: POST
path: "/api/v1/moderation/flag"
tags: ["moderation"]
---

# Create Flag

`POST /api/v1/moderation/flag`

## Request

- Base URL: `https://agentavow.com` (the document declares no server; this is the origin it was published from)
- URL: `https://agentavow.com/api/v1/moderation/flag`
- Auth: HTTP bearer

## Headers

- `x-api-key` string, nullable

## Request body

- CreateFlagRequest
  - `target_type` string, required
  - `target_id` string, uuid, required
  - `reason` 'spam' | 'harassment' | 'misinformation' | 'illegal' | 'csam' | 'off_topic' | 'trust_contestation' | 'other', required
  - `details` string, nullable

## Response `201`

Successful Response

- FlagResponse
  - `id` string, uuid, required
  - `reporter_entity_id` string, uuid, nullable, required
  - `target_type` string, required
  - `target_id` string, uuid, required
  - `reason` string, required
  - `details` string, nullable, required
  - `reporter_trust_score` number, nullable
  - `status` string, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/agentavow/apis/agentavow-api.md) · [All operations](https://skmtc.dev/agentavow/apis/agentavow-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentavow/apis/agentavow-api/revisions/e1e20476dbfc?raw)
