ONE people:tag
← Receivers

people:tag

people family

Put a person in a group's Top list, or take them out: the top tag on their contact row. Top is everyone put there by hand plus everyone the ranking scores highly; taking someone out also clears the older words for the same pin (treasured, vip, favourite, starred). With aids (up to 100) or any tag other than top: add or remove that tag on every person named, each checked against the group's own contact rows (a person of another group answers not_a_contact and is never written). A tag with a colon is refused: consent:*, list:* and lifecycle:* are the system's words. A tag that really moved fires the contact:tag-added or contact:tag-removed workflow trigger

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
manage_actors
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/people:tag \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "aid": "person-01a2b3c4" }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • aid string optional One person. Use aids for several
  • aids string[] optional Several people (the People list's selection). At most 100 are changed; capped says how many were left out
  • tag string optional Default top. Any other word: letters, digits, spaces, dashes, underscores, no colon (system_tag_refused), at most 40 characters (bad_tag)
  • on boolean optional Default true. false takes the tag off
  • group string optional Bare slug of the group whose list is edited; default the caller's own. It NAMES a group and never authorizes one: the caller must control it

Response

What comes back from the call.

  • ok boolean
  • aid string
  • top boolean
  • tags string[]
  • tag string
  • on boolean
  • results object[] One row per person, bulk calls only
  • changed number People whose tags moved
  • refused number People left untouched: not_a_contact · is_an_agent
  • capped number People left out because more than 100 were sent
  • error string aid required · aids required · tag required · system_tag_refused · bad_tag · not_a_contact · is_an_agent · no_db

Traffic

Every call to people:tag, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names people:tag, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

UI 1
  • one.ie/web/src/components/crm/PeopleView.tsx:518
API route 2
  • one.ie/web/src/lib/crm/people-edit.ts:275
  • one.ie/web/src/lib/receiver-index.generated.ts:382
CLI 3
  • packages/cli/src/lib/receivers-index.generated.ts:395
  • packages/cli/src/lib/receivers.generated.ts:395
  • packages/cli/src/people.ts:171
→

Answered by

people:tag one.ie/web/src/lib/resolvers/groups.ts:549 Dispatched through POST /api/ask/people:tag, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "aid": {
      "description": "One person. Use aids for several",
      "type": "string"
    },
    "aids": {
      "description": "Several people (the People list's selection). At most 100 are changed; capped says how many were left out",
      "maxItems": 1000,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tag": {
      "description": "Default top. Any other word: letters, digits, spaces, dashes, underscores, no colon (system_tag_refused), at most 40 characters (bad_tag)",
      "type": "string"
    },
    "on": {
      "description": "Default true. false takes the tag off",
      "type": "boolean"
    },
    "group": {
      "description": "Bare slug of the group whose list is edited; default the caller's own. It NAMES a group and never authorizes one: the caller must control it",
      "type": "string"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "aid": {
      "type": "string"
    },
    "top": {
      "type": "boolean"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tag": {
      "type": "string"
    },
    "on": {
      "type": "boolean"
    },
    "results": {
      "description": "One row per person, bulk calls only",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "aid": {
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          },
          "changed": {
            "description": "false: they already had it (or lacked it)",
            "type": "boolean"
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "aid",
          "ok"
        ]
      }
    },
    "changed": {
      "description": "People whose tags moved",
      "type": "number"
    },
    "refused": {
      "description": "People left untouched: not_a_contact · is_an_agent",
      "type": "number"
    },
    "capped": {
      "description": "People left out because more than 100 were sent",
      "type": "number"
    },
    "error": {
      "description": "aid required · aids required · tag required · system_tag_refused · bad_tag · not_a_contact · is_an_agent · no_db",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}