Review Flags
Submit data corrections and review flags for entities.
data-flags:write can submit and list review/data flags owned by that API user. Approval, rejection, and deletion are reserved for Hillwinds reviewers. Sandbox/test keys cannot manage flags./v1/data-flags. The old /v1/review-flags alias paths were removed in November 2026 and return 404.Body schema (write endpoints)
Write endpoints accept either the human-friendly alias or the canonical field name. Responses always return the canonical name.
| Parameter | Type | Description |
|---|---|---|
entity_idrequired | string | ID of the entity being flagged. |
entity_type | string | One of: companies, personnel, broker-offices, brokers. Alias: resource. |
resource | string | Alias of entity_type. |
entity_name | string | Optional human label (e.g., company name) so reviewers can triage without resolving the ID. |
field_key | string | The field being flagged (e.g., primary_broker). Alias: field. |
field | string | Alias of field_key. |
reason | string | Why the field is wrong. Alias: issue. |
issue | string | Alias of reason. |
suggested_value | string | Optional one-shot correction. Use corrections[] for multi-field or sourced suggestions. |
corrections | object[] | Optional structured correction array. Each item: { field, current_value, suggested_value, source? }. |
List Flags
/v1/data-flags0 creditsLists the flags submitted by the API user, newest first. Requires data-flags:write.
| Parameter | Type | Description |
|---|---|---|
status | string | Only flags in this review state: pending, reviewed, resolved or dismissed. |
entity_type | string | Only flags on companies, personnel, broker-offices or brokers. |
page | integer | Zero-based page; default 0. |
page_size | integer | 1–100; default 50. |
curl -H "Authorization: Bearer ss_live_..." \
"https://api.hillwinds.ai/v1/data-flags?status=pending&page_size=20"{
"ok": true,
"data": [
{
"id": "6a0f4c1e-2b7d-4f4e-9a51-0c3f1d2e8b77",
"user_id": "c1d2e3f4-0000-4000-8000-000000000001",
"entity_id": "84629153",
"entity_type": "companies",
"entity_name": "ACME HOLDINGS",
"field_key": "primary_broker",
"field_label": null,
"reason": "Broker changed in Q1 2026 — record is stale",
"corrections": [],
"status": "pending",
"applied_at": null,
"created_at": "2026-11-18T14:02:11",
"updated_at": "2026-11-18T14:02:11"
}
],
"meta": { "credits_charged": 0, "page": 0, "page_size": 20, "returned": 1, "total_count": 1, "has_more": false }
}Submit Flag (simple)
/v1/data-flags0 creditsSingle-field correction with a free-text reason. For multi-field or sourced corrections, use corrections[] (next section).
curl -X POST -H "Authorization: Bearer ss_live_..." \
-H "Content-Type: application/json" \
-d '{
"entity_type": "companies",
"entity_id": "84629153",
"field_key": "primary_broker",
"reason": "Broker changed in Q1 2026 — record is stale",
"suggested_value": "MARSH & MCLENNAN AGENCY"
}' \
"https://api.hillwinds.ai/v1/data-flags"Submit Flag (structured corrections)
Use corrections[] to flag multiple fields at once, attach a source URL, or include the current value for context. Each correction: field, current_value, suggested_value, optional source.
curl -X POST -H "Authorization: Bearer ss_live_..." \
-H "Content-Type: application/json" \
-d '{
"entity_type": "companies",
"entity_id": "84629153",
"entity_name": "ACME HOLDINGS",
"reason": "Two stale fields — verified against Q1 10-K",
"corrections": [
{
"field": "primary_broker",
"current_value": "AON",
"suggested_value": "MARSH & MCLENNAN AGENCY",
"source": "https://example.com/acme-q1-10k"
},
{
"field": "total_number_of_employees",
"current_value": "12000",
"suggested_value": "15400"
}
]
}' \
"https://api.hillwinds.ai/v1/data-flags"Delete Flag (reviewers only)
/v1/data-flags/:flag_id0 creditsCustomer API keys cannot delete submitted reviews. Hillwinds reviewers may delete a flag through an internal authenticated workflow when removal is required.
Approve or Reject Flags (reviewers only)
/v1/data-flags/:flag_id0 creditsCustomer API keys cannot moderate submitted reviews. Hillwinds reviewers may send {"action":"approve"} or {"action":"reject"} through an internal authenticated workflow. Approved flags return status=resolved and an applied_at timestamp.
For up to 100 flags, send the same action with flag_ids to PATCH /v1/data-flags/bulk. The response lists the updated flags and any missing_ids.
Keys are issued by our team, not a signup form. Book a 25-minute walkthrough and you'll leave with sandbox and live credentials.