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. On a line the workspace already has, accountSid and authToken may be left out: the line's own Twilio account (the one connected in Composio) is reused server-side, e.g. to switch answerCalls on. 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 optional The AC… account SID that owns the number (Twilio console). Required with authToken for a new line. Optional on a line the workspace already has: the line's own account is reused, and a SID that is not that account, sent with no token, is refused token_required_for_new_account
  • authToken string optional That account's auth token. Sealed, never returned. Required for a new line; optional on a line the workspace already has, whose own account is reused server-side. Never sent without accountSid
  • 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 (or the line's own account) and the number only; write nothing
  • answerCalls boolean optional true: the AI front desk answers calls to this number: its VoiceUrl is pointed at https://channels.one.ie/webhook/voice-inbound (replacing whatever answers it now; dryRun names it in replacesVoiceUrl) and integrations.phone.answer is switched on. A person is rung from the alert list (alerts:update phones) when the caller asks for one. Omit to leave the number's calls alone

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
  • voiceUrl set | would_set answerCalls only: the number's VoiceUrl points at the AI front desk's door
  • replacesVoiceUrl string dryRun with answerCalls: the VoiceUrl the number has now, which answering will replace
  • answering "set" answerCalls only: the workspace's phone answering is switched on (integrations.phone.answer)
  • replaces string dryRun only: the SmsUrl the number has now, which connecting will replace
  • statusCallback set | would_set | kept The number's call StatusCallback: set (or would_set) to https://channels.one.ie/webhook/voice-status, the missed-call door, only when it was empty; kept when another app already holds it, which is left alone. Its VoiceUrl is never touched
  • existingStatusCallback string dryRun only, with kept: the StatusCallback another app holds
  • 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 · credentials_required (a new line, or a line with no account to reuse) · token_required_for_new_account · bad_credentials · number_not_in_account · twilio_unreachable · over_limit · webhook_not_set · voice_url_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:446
  • one.ie/web/src/lib/resolvers/sms.ts:110
CLI 2
  • packages/cli/src/lib/receivers-index.generated.ts:470
  • packages/cli/src/lib/receivers.generated.ts:470
→

Answered by

sms:create one.ie/web/src/lib/resolvers/sms.ts:222 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": {
      "description": "The AC… account SID that owns the number (Twilio console). Required with authToken for a new line. Optional on a line the workspace already has: the line's own account is reused, and a SID that is not that account, sent with no token, is refused token_required_for_new_account",
      "type": "string"
    },
    "authToken": {
      "description": "That account's auth token. Sealed, never returned. Required for a new line; optional on a line the workspace already has, whose own account is reused server-side. Never sent without accountSid",
      "type": "string"
    },
    "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 (or the line's own account) and the number only; write nothing",
      "type": "boolean"
    },
    "answerCalls": {
      "description": "true: the AI front desk answers calls to this number: its VoiceUrl is pointed at https://channels.one.ie/webhook/voice-inbound (replacing whatever answers it now; dryRun names it in replacesVoiceUrl) and integrations.phone.answer is switched on. A person is rung from the alert list (alerts:update phones) when the caller asks for one. Omit to leave the number's calls alone",
      "type": "boolean"
    }
  },
  "required": [
    "number"
  ]
}
{
  "$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"
      ]
    },
    "voiceUrl": {
      "description": "answerCalls only: the number's VoiceUrl points at the AI front desk's door",
      "type": "string",
      "enum": [
        "set",
        "would_set"
      ]
    },
    "replacesVoiceUrl": {
      "description": "dryRun with answerCalls: the VoiceUrl the number has now, which answering will replace",
      "type": "string"
    },
    "answering": {
      "description": "answerCalls only: the workspace's phone answering is switched on (integrations.phone.answer)",
      "type": "string",
      "const": "set"
    },
    "replaces": {
      "description": "dryRun only: the SmsUrl the number has now, which connecting will replace",
      "type": "string"
    },
    "statusCallback": {
      "description": "The number's call StatusCallback: set (or would_set) to https://channels.one.ie/webhook/voice-status, the missed-call door, only when it was empty; kept when another app already holds it, which is left alone. Its VoiceUrl is never touched",
      "type": "string",
      "enum": [
        "set",
        "would_set",
        "kept"
      ]
    },
    "existingStatusCallback": {
      "description": "dryRun only, with kept: the StatusCallback another app holds",
      "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 · credentials_required (a new line, or a line with no account to reuse) · token_required_for_new_account · bad_credentials · number_not_in_account · twilio_unreachable · over_limit · webhook_not_set · voice_url_not_set · connection_failed · number_connected_elsewhere · composio_*",
      "type": "string"
    },
    "cannot_run": {
      "type": "boolean"
    },
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}