Hillwinds API
API Reference

Review Flags

Submit data corrections and review flags for entities.

Controlled by data-flags:write
Any live API key with 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.
The path is /v1/data-flags
Every flag endpoint lives under /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.

ParameterTypeDescription
entity_idrequiredstringID of the entity being flagged.
entity_typestringOne of: companies, personnel, broker-offices, brokers. Alias: resource.
resourcestringAlias of entity_type.
entity_namestringOptional human label (e.g., company name) so reviewers can triage without resolving the ID.
field_keystringThe field being flagged (e.g., primary_broker). Alias: field.
fieldstringAlias of field_key.
reasonstringWhy the field is wrong. Alias: issue.
issuestringAlias of reason.
suggested_valuestringOptional one-shot correction. Use corrections[] for multi-field or sourced suggestions.
correctionsobject[]Optional structured correction array. Each item: { field, current_value, suggested_value, source? }.

List Flags

GET/v1/data-flags0 credits

Lists the flags submitted by the API user, newest first. Requires data-flags:write.

ParameterTypeDescription
statusstringOnly flags in this review state: pending, reviewed, resolved or dismissed.
entity_typestringOnly flags on companies, personnel, broker-offices or brokers.
pageintegerZero-based page; default 0.
page_sizeinteger1–100; default 50.
bash
curl -H "Authorization: Bearer ss_live_..." \
  "https://api.hillwinds.ai/v1/data-flags?status=pending&page_size=20"
json
{
  "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)

POST/v1/data-flags0 credits

Single-field correction with a free-text reason. For multi-field or sourced corrections, use corrections[] (next section).

bash
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.

bash
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)

DELETE/v1/data-flags/:flag_id0 credits

Customer 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)

PATCH/v1/data-flags/:flag_id0 credits

Customer 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.

Need a key?

Keys are issued by our team, not a signup form. Book a 25-minute walkthrough and you'll leave with sandbox and live credentials.