ONE foundation:apply-profile
← Receivers

foundation:apply-profile

foundation family

mcp

Apply a profile in the agent sign-up shape (the sign-up JSON Schema) to a group that ALREADY exists, never creating one. It fills the group's empty profile fields (name, one-liner, locations, products, people, customers, brand), keeps every field that already has words and lists each as kept[] (what is there, what was offered), and replaces a field only when its path is named in overwrite. The company's own site is read and scored first, with the sign-up door's own check; a profile the site does not back up writes nothing. A person who owns the group (the walk up the group tree) goes straight on; an agent, a key, an admin or a stranger is ASKED: fingerprint_required with approve.url for the group's own person to open, then call again with the same arguments plus the fingerprint proof. The site read is billed to the group, only after authority or approval. invites, ingest, group.type and group.visibility are ignored and named in ignored[].

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
update_group
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
variable
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
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/foundation:apply-profile \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "workspace": <string>, "profile": <any> }}'

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.

  • workspace string required The slug of the group that already exists (group:<slug> also accepted). The ONLY target: the profile's group.slug, if given, must equal it or the call is refused as slug_mismatch. A slug with no group is group_not_found and nothing is created.
  • profile any required The profile, exactly as an agent signs an owner up with it (the sign-up JSON Schema): agent, owner, company, offer and group are required; customers, people, brand and market are optional.
  • overwrite string[] optional Field paths to REPLACE where the group already has words, taken from an earlier answer's kept[] (for example company.oneLiner, offer.valueProposition, group.name). Omit it to only fill what is empty. An unknown path is refused by name.
  • fingerprint any optional The approval for this exact request, once the group's person has pressed: send the proof from the ask on the retry.

Response

What comes back from the call.

  • ok boolean
  • status applied | nothing_to_change
  • workspace string
  • filled object[] Fields that were empty and now hold the profile's words.
  • kept object[] Fields that already had different words and were left as they are; name the path in overwrite to replace one.
  • overwritten object[] Fields replaced because their path was named in overwrite, with the words they had.
  • ignored string[] Parts of the profile this door never applies to an existing group.
  • held string[] Fields written only as unconfirmed guesses (asked as questions, never stated as facts) because their words were too long to show whole on the approval card or past its room. Confirm them on the group's profile page.
  • written string[] On write_failed or partial_apply: the field paths that ARE on the group now, so a half-applied profile says what it did.
  • score object How much of the profile the company's own site confirmed, and the floor.
  • error string invalid_profile · slug_mismatch · group_not_found · unknown_overwrite_path · unreadable · site_does_not_match · write_failed · partial_apply · fingerprint_required · no_approver · fingerprint_unavailable · unauthorized · no_db
  • errors object[]
  • missing object[] On site_does_not_match: the answers the site disagrees with, worth-first.
  • reason string
  • detail string
  • next string
  • closed mark | warn | dissolve

Traffic

Every call to foundation:apply-profile, 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 foundation:apply-profile, 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

API route 3
  • one.ie/web/src/lib/agent-signup/apply-profile.ts:38
  • one.ie/web/src/lib/auth-plugins/fingerprint-ask.ts:335
  • one.ie/web/src/lib/receiver-index.generated.ts:208
CLI 3
  • packages/cli/src/group.ts:135
  • packages/cli/src/lib/receivers-index.generated.ts:210
  • packages/cli/src/lib/receivers.generated.ts:210
→

Answered by

foundation:apply-profile one.ie/web/src/lib/resolvers/foundation.ts:650 Dispatched through POST /api/ask/foundation:apply-profile, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "description": "The slug of the group that already exists (group:<slug> also accepted). The ONLY target: the profile's group.slug, if given, must equal it or the call is refused as slug_mismatch. A slug with no group is group_not_found and nothing is created."
    },
    "profile": {
      "description": "The profile, exactly as an agent signs an owner up with it (the sign-up JSON Schema): agent, owner, company, offer and group are required; customers, people, brand and market are optional."
    },
    "overwrite": {
      "description": "Field paths to REPLACE where the group already has words, taken from an earlier answer's kept[] (for example company.oneLiner, offer.valueProposition, group.name). Omit it to only fill what is empty. An unknown path is refused by name.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "fingerprint": {
      "description": "The approval for this exact request, once the group's person has pressed: send the proof from the ask on the retry."
    }
  },
  "required": [
    "workspace",
    "profile"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "status": {
      "type": "string",
      "enum": [
        "applied",
        "nothing_to_change"
      ]
    },
    "workspace": {
      "type": "string"
    },
    "filled": {
      "description": "Fields that were empty and now hold the profile's words.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          }
        },
        "required": [
          "path"
        ]
      }
    },
    "kept": {
      "description": "Fields that already had different words and were left as they are; name the path in overwrite to replace one.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "existing": {
            "type": "string"
          },
          "offered": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "existing",
          "offered"
        ]
      }
    },
    "overwritten": {
      "description": "Fields replaced because their path was named in overwrite, with the words they had.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "was": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "was"
        ]
      }
    },
    "ignored": {
      "description": "Parts of the profile this door never applies to an existing group.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "held": {
      "description": "Fields written only as unconfirmed guesses (asked as questions, never stated as facts) because their words were too long to show whole on the approval card or past its room. Confirm them on the group's profile page.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "written": {
      "description": "On write_failed or partial_apply: the field paths that ARE on the group now, so a half-applied profile says what it did.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "score": {
      "description": "How much of the profile the company's own site confirmed, and the floor.",
      "type": "object",
      "properties": {
        "checked": {
          "type": "number"
        },
        "need": {
          "type": "number"
        }
      },
      "required": [
        "checked",
        "need"
      ]
    },
    "error": {
      "description": "invalid_profile · slug_mismatch · group_not_found · unknown_overwrite_path · unreadable · site_does_not_match · write_failed · partial_apply · fingerprint_required · no_approver · fingerprint_unavailable · unauthorized · no_db",
      "type": "string"
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "message"
        ]
      }
    },
    "missing": {
      "description": "On site_does_not_match: the answers the site disagrees with, worth-first.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "points": {
            "type": "number"
          },
          "kind": {
            "type": "string"
          },
          "ask": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "points",
          "kind",
          "ask"
        ]
      }
    },
    "reason": {
      "type": "string"
    },
    "detail": {
      "type": "string"
    },
    "next": {
      "type": "string"
    },
    "closed": {
      "type": "string",
      "enum": [
        "mark",
        "warn",
        "dissolve"
      ]
    }
  },
  "required": [
    "ok"
  ]
}