ONE sms:create
← Receivers

sms:create

sms family

Create a workspace's text line: connect a Twilio account and one of its numbers to a workspace, from a key: proves the account owns the number, points the number's texts at the channels text door, seals the auth token on the number's sms connection, and connects the account in Composio so sms:send can send from it. Safe to re-run; dryRun checks the credentials and the number without writing. The token is never echoed.

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.
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
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/sms:create \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "number": "+15551234567", "accountSid": "AC00000000000000000000000000000000", "authToken": "…", "dryRun": true }}'

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.

  • number string required The Twilio number, with its country code, e.g. +15103990305
  • accountSid string required The AC… account SID that owns the number (Twilio console)
  • authToken string required That account's auth token. Sealed, never returned
  • workspace string optional The workspace to connect it to; defaults to the caller's own. Naming another (a client) needs control of it
  • dryRun boolean optional Check the credentials and the number only; write nothing

Response

What comes back from the call.

  • ok boolean
  • workspace string
  • number string
  • dryRun boolean
  • webhook set | would_set The number's SmsUrl points at https://channels.one.ie/webhook/sms
  • replaces string dryRun only: the SmsUrl the number has now, which connecting will replace
  • connection set | already The number's sms connection row, holding the sealed token
  • composio set | already The Twilio account in Composio for this workspace
  • error string forbidden · bad_number · bad_request · bad_credentials · number_not_in_account · twilio_unreachable · webhook_not_set · connection_failed · number_connected_elsewhere · composio_*
  • cannot_run boolean
  • detail string

Traffic

Every call to sms: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 sms: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

API route 2
  • one.ie/web/src/lib/receiver-index.generated.ts:371
  • one.ie/web/src/lib/resolvers/sms.ts:115
→

Answered by

sms:create one.ie/web/src/lib/resolvers/sms.ts:67 Dispatched through POST /api/ask/sms:create, after the envelope validates the payload.

sms family · 2 more

JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "number": {
      "type": "string",
      "description": "The Twilio number, with its country code, e.g. +15103990305"
    },
    "accountSid": {
      "type": "string",
      "description": "The AC… account SID that owns the number (Twilio console)"
    },
    "authToken": {
      "type": "string",
      "description": "That account's auth token. Sealed, never returned"
    },
    "workspace": {
      "description": "The workspace to connect it to; defaults to the caller's own. Naming another (a client) needs control of it",
      "type": "string"
    },
    "dryRun": {
      "description": "Check the credentials and the number only; write nothing",
      "type": "boolean"
    }
  },
  "required": [
    "number",
    "accountSid",
    "authToken"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "workspace": {
      "type": "string"
    },
    "number": {
      "type": "string"
    },
    "dryRun": {
      "type": "boolean"
    },
    "webhook": {
      "description": "The number's SmsUrl points at https://channels.one.ie/webhook/sms",
      "type": "string",
      "enum": [
        "set",
        "would_set"
      ]
    },
    "replaces": {
      "description": "dryRun only: the SmsUrl the number has now, which connecting will replace",
      "type": "string"
    },
    "connection": {
      "description": "The number's sms connection row, holding the sealed token",
      "type": "string",
      "enum": [
        "set",
        "already"
      ]
    },
    "composio": {
      "description": "The Twilio account in Composio for this workspace",
      "type": "string",
      "enum": [
        "set",
        "already"
      ]
    },
    "error": {
      "description": "forbidden · bad_number · bad_request · bad_credentials · number_not_in_account · twilio_unreachable · webhook_not_set · connection_failed · number_connected_elsewhere · composio_*",
      "type": "string"
    },
    "cannot_run": {
      "type": "boolean"
    },
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}