ONE endpoint:create
← Receivers

endpoint:create

endpoint family

mcp

kind 'inbound': mints the workspace's one inbound webhook URL — /api/hooks/<workspace>/<secret> — that any tool (Supermove's Invoke Webhook, a booking tool, a Zapier step) POSTs JSON events to: lead lands a lead, booked tags the matching contact booked with its job value, anything else is kept as a signal and answered unhandled. The secret in the path is the only credential, so the URL is shown here once and only its hash is kept. Calling this again rotates it: the old URL answers 401 at once, and the answer says rotated:true. The caller's own workspace, or a client workspace the caller controls

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
manage_integrations
The class of authority the caller must already hold, decided from the attested context with no round trip.
Authority action
manage_integrations
Also gated per node — the caller must be permitted this action over the workspace it names.
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.
Version
1.0.0
Pin this to keep a contract stable; additive bumps never break callers.

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/endpoint:create \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "kind": "inbound" }}'

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.

  • kind inbound required inbound = the workspace's one inbound webhook URL. Required: no kind is a default, and any other is refused as bad_kind after the caller's authority is checked
  • workspace string optional A client workspace to mint for; only one the caller controls (the agency above it). Defaults to the caller's own

Response

What comes back from the call.

  • ok boolean
  • workspace string
  • url string The full inbound URL, secret included. Shown once; store it in the tool
  • rotated boolean true = a URL already existed and has stopped working; update the tool
  • error string unauthenticated | no_db | forbidden (a workspace the caller does not control) | bad_kind

Traffic

Every call to endpoint:create, 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 endpoint:create, 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/settings/InboundHookCard.tsx:58
API route 1
  • one.ie/web/src/lib/receiver-index.generated.ts:157
CLI 1
  • packages/cli/src/endpoint.ts:278
→

Answered by

endpoint:create one.ie/web/src/lib/resolvers/lead-book.ts:178 Dispatched through POST /api/ask/endpoint:create, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "inbound"
      ],
      "description": "inbound = the workspace's one inbound webhook URL. Required: no kind is a default, and any other is refused as bad_kind after the caller's authority is checked"
    },
    "workspace": {
      "description": "A client workspace to mint for; only one the caller controls (the agency above it). Defaults to the caller's own",
      "type": "string"
    }
  },
  "required": [
    "kind"
  ],
  "additionalProperties": {}
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "workspace": {
      "type": "string"
    },
    "url": {
      "description": "The full inbound URL, secret included. Shown once; store it in the tool",
      "type": "string"
    },
    "rotated": {
      "description": "true = a URL already existed and has stopped working; update the tool",
      "type": "boolean"
    },
    "error": {
      "description": "unauthenticated | no_db | forbidden (a workspace the caller does not control) | bad_kind",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}