ONE people:fields
← Receivers

people:fields

people family

mcp

The custom fields a group keeps on its contacts. Read the list (and one person's values with aid), declare fields, or remove them. The list is a BaaS type: the group's contact type in its manifest (world:declare-types / world:update-type), so the types page shows and edits the same fields. A field has a name (lowercase letters, digits and underscores), a label, a kind (text, number, date, select with options, checkbox) and an optional default that a person without a value reads as. Built-in names (name, email, phone, first_name, tags, company and the other profile columns) are refused (reserved_field_name). Values are written with people:update { fields }, lead:update { fields } or a people:import column whose header matches a field. Merge fields in messages ({{contact.<name>|fallback}}) read the same list

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
manage_things
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:fields \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "declare": [ { "name": "move_date", "label": "Move date", "kind": "date" }, { "name": "home_size", "kind": "select", "options": [ "studio", "1 bed", "2 bed", "3 bed" ] } ] }}'

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 Also answer this contact's values (values), read from the group's own rows
  • declare object[] optional Fields to add, or to replace by name
  • remove string[] optional Field names to drop from the list. Stored values stay on the people and read as unknown until the name is declared again
  • group string optional Bare slug of the group; 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
  • workspace string
  • fields object[] The declared list after the call
  • aid string
  • values object
  • error string workspace_not_yours · bad_field_name:<name> · reserved_field_name:<name> · bad_kind:<name> · options_required:<name> · bad_default:<name>:<why> · too_many_fields (40) · manifest_conflict · not_a_contact · no_db

Traffic

Every call to people:fields, 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:fields, 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/ContactFields.tsx:100
API route 2
  • one.ie/web/src/lib/receiver-index.generated.ts:378
  • one.ie/web/src/lib/resolvers/groups.ts:537
CLI 3
  • packages/cli/src/lib/receivers-index.generated.ts:391
  • packages/cli/src/lib/receivers.generated.ts:391
  • packages/cli/src/people.ts:230
→

Answered by

people:fields one.ie/web/src/lib/resolvers/groups.ts:517 Dispatched through POST /api/ask/people:fields, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "aid": {
      "description": "Also answer this contact's values (values), read from the group's own rows",
      "type": "string"
    },
    "declare": {
      "description": "Fields to add, or to replace by name",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Lowercase letters, digits and underscores, starting with a letter, at most 40 characters"
          },
          "label": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "text",
              "number",
              "date",
              "select",
              "checkbox"
            ]
          },
          "options": {
            "description": "The choices of a select; required for one",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "default": {
            "description": "What a person with no value reads as, checked against the kind",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "required": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "kind"
        ]
      }
    },
    "remove": {
      "description": "Field names to drop from the list. Stored values stay on the people and read as unknown until the name is declared again",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "group": {
      "description": "Bare slug of the group; 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"
    },
    "workspace": {
      "type": "string"
    },
    "fields": {
      "description": "The declared list after the call",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "text",
              "number",
              "date",
              "select",
              "checkbox"
            ]
          },
          "options": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "default": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "required": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "label",
          "kind"
        ]
      }
    },
    "aid": {
      "type": "string"
    },
    "values": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "number"
          },
          {
            "type": "boolean"
          }
        ]
      }
    },
    "error": {
      "description": "workspace_not_yours · bad_field_name:<name> · reserved_field_name:<name> · bad_kind:<name> · options_required:<name> · bad_default:<name>:<why> · too_many_fields (40) · manifest_conflict · not_a_contact · no_db",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}