← Receivers

directory:list

directory family

List the curated business-directory registry (306 entries) — read-only public data, filterable by category, region and paid

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
public
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.
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/directory:list \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "category": "review", "paid": false }}'

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.

  • category string optional Exact category: general | review | b2b | startup | ai-tools | vertical
  • region string optional Exact region key: global | us | ie | gb | ca | au | in
  • paid boolean optional true = only directories whose LISTING is paid-only; false = only free ones. A free tier that merely upsells is paid:false. Omit for both.

Response

What comes back from the call.

  • ok true
  • directories object[]
  • total number Rows returned. UNCAPPED — total always equals directories.length; no budget bit, so there is no truncated field to read.

Traffic

Every call to directory:list, 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 directory:list, 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

No caller in this repo. It is reached from outside — an agent, your code, or an MCP client.

Answered by

directory:list one.ie/web/src/lib/resolvers/directories.ts:57 Dispatched through POST /api/ask/directory:list, after the envelope validates the payload.

directory family · 2 more

JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "category": {
      "description": "Exact category: general | review | b2b | startup | ai-tools | vertical",
      "type": "string"
    },
    "region": {
      "description": "Exact region key: global | us | ie | gb | ca | au | in",
      "type": "string"
    },
    "paid": {
      "description": "true = only directories whose LISTING is paid-only; false = only free ones. A free tier that merely upsells is paid:false. Omit for both.",
      "type": "boolean"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "const": true
    },
    "directories": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "description": "Stable kebab-case id — this is what directory:run takes"
          },
          "name": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "submitUrl": {
            "type": "string",
            "description": "The public submission / claim / add-listing URL a human or an autofill skill drives"
          },
          "method": {
            "description": "form | email | api | claim; absent means form",
            "type": "string"
          },
          "da": {
            "description": "Approximate domain authority 0-100, for ranking only — NOT authoritative",
            "type": "number"
          },
          "paid": {
            "type": "boolean"
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "required": {
                  "type": "boolean"
                }
              },
              "required": [
                "key",
                "label",
                "type",
                "required"
              ]
            }
          },
          "notes": {
            "type": "string"
          }
        },
        "required": [
          "slug",
          "name",
          "category",
          "region",
          "url",
          "submitUrl",
          "paid",
          "fields"
        ]
      }
    },
    "total": {
      "type": "number",
      "description": "Rows returned. UNCAPPED — total always equals directories.length; no budget bit, so there is no truncated field to read."
    }
  },
  "required": [
    "ok",
    "directories",
    "total"
  ]
}