ONE people:send
← Receivers

people:send

people family

Send a person the way in. Their company gets its own group and they are mailed the link: a new group under the caller's own (or one the caller controls), the research kept on the company record loaded into it as its profile, and a single-use sign-in link mailed by ONE to the person's own mailbox as its owner. The link is never answered to the caller. Re-runnable: the company remembers its group, so a second call makes no second group, reloads the profile and mails again. Each part reports itself: ok is the group, loaded is the profile, sent is the mail

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
manage_members
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
no
This cannot be undone. Dry-run it first where the contract allows.
Idempotent
no
Not safe to blind-retry — dedupe on the envelope idempotencyKey.

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:send \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "gid": "group:co-01a2b3c4", "email": "anna@byrnedental.ie" }}'

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.

  • gid string required The company record: group:co-<id>
  • email string required The person's own mailbox; the link is mailed there and nowhere else
  • group string optional Bare slug of the group to create under; default the caller's own. It NAMES a parent and never authorizes one: the caller must control it

Response

What comes back from the call.

  • ok boolean The group exists. It says nothing about the profile or the mail: read loaded and sent
  • slug string The new group
  • parent string
  • created boolean false when the company already had its group and it was reused
  • loaded number | null Profile fields now on the group; null when the company was never researched
  • loadError string
  • sent boolean The sign-in link was mailed
  • already boolean A link mailed in the last ten minutes is still good, so no second mail went out
  • expiresAt number Epoch seconds the mailed link stops working
  • inviteError string Why no mail went out: seat_limit_reached · signin_link_unavailable · signin_link_not_sent · ...
  • error string not_a_company · invalid_email · company_not_found · daily_limit (25 of these mails per caller per day) · group_not_yours · slug_underivable · slug_taken · group_not_created · slug_is_an_actor · slug_is_a_workspace · no_db

Traffic

Every call to people:send, 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:send, 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 2
  • one.ie/web/src/components/crm/AccountStep.tsx:3
  • one.ie/web/src/components/crm/AddPersonSheet.tsx:14
API route 1
  • one.ie/web/src/lib/receiver-index.generated.ts:348
CLI 1
  • packages/cli/src/lib/money-receivers.ts:46
→

Answered by

people:send one.ie/web/src/lib/resolvers/groups.ts:461 Dispatched through POST /api/ask/people:send, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "gid": {
      "type": "string",
      "description": "The company record: group:co-<id>"
    },
    "email": {
      "type": "string",
      "description": "The person's own mailbox; the link is mailed there and nowhere else"
    },
    "group": {
      "description": "Bare slug of the group to create under; default the caller's own. It NAMES a parent and never authorizes one: the caller must control it",
      "type": "string"
    }
  },
  "required": [
    "gid",
    "email"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "description": "The group exists. It says nothing about the profile or the mail: read loaded and sent"
    },
    "slug": {
      "description": "The new group",
      "type": "string"
    },
    "parent": {
      "type": "string"
    },
    "created": {
      "description": "false when the company already had its group and it was reused",
      "type": "boolean"
    },
    "loaded": {
      "description": "Profile fields now on the group; null when the company was never researched",
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ]
    },
    "loadError": {
      "type": "string"
    },
    "sent": {
      "description": "The sign-in link was mailed",
      "type": "boolean"
    },
    "already": {
      "description": "A link mailed in the last ten minutes is still good, so no second mail went out",
      "type": "boolean"
    },
    "expiresAt": {
      "description": "Epoch seconds the mailed link stops working",
      "type": "number"
    },
    "inviteError": {
      "description": "Why no mail went out: seat_limit_reached · signin_link_unavailable · signin_link_not_sent · ...",
      "type": "string"
    },
    "error": {
      "description": "not_a_company · invalid_email · company_not_found · daily_limit (25 of these mails per caller per day) · group_not_yours · slug_underivable · slug_taken · group_not_created · slug_is_an_actor · slug_is_a_workspace · no_db",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}