ONE reviews:ask-sms
← Receivers

reviews:ask-sms

reviews family

Ask one customer for a Google review by text, through sms:send as a marketing text: only a number with the person's express opt-in is texted, STOP ends it, a workspace daily cap and a 30 day repeat gap apply. Every customer gets the same words and a straight Google link — no rating is asked first

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
owner
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
no
Not safe to blind-retry — dedupe on the envelope idempotencyKey.

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/reviews:ask-sms \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "phone": "+15551234567", "name": "Sam" }}'

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.

  • phone string required The customer's number with its country code, e.g. +15551234567.
  • name string optional The customer's name; only its first word is used, and a link in it is removed.
  • link string optional A Google review or maps page (https). Omit to use the workspace's stored review link (integrations.gbp.reviewUrl or placeId).
  • workspace string optional Workspace slug; defaults to the caller's own. Naming another needs control of it.

Response

What comes back from the call.

  • ok boolean
  • sent boolean false with ok true: nobody was texted and that is not a failure (reason says why).
  • reason string no_marketing_consent · consent_declined · asked_recently · marketing_cap — a person who cannot be texted.
  • to string
  • sid string Twilio's message sid.
  • error string forbidden · bad_number · no_review_link · bad_review_link · daily_cap · sms_not_configured · sms_send_failed
  • detail string
  • cannot_run boolean true when the environment, not the build, stopped it: no Twilio number or Composio unreachable.

Traffic

Every call to reviews:ask-sms, 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 reviews:ask-sms, 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:418
  • one.ie/web/src/lib/resolvers/reviews.ts:174
Workflow 1
  • one.ie/web/src/lib/workflow-templates.ts:908
→

Answered by

reviews:ask-sms one.ie/web/src/lib/resolvers/reviews.ts:169 Dispatched through POST /api/ask/reviews:ask-sms, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "phone": {
      "type": "string",
      "description": "The customer's number with its country code, e.g. +15551234567."
    },
    "name": {
      "description": "The customer's name; only its first word is used, and a link in it is removed.",
      "type": "string"
    },
    "link": {
      "description": "A Google review or maps page (https). Omit to use the workspace's stored review link (integrations.gbp.reviewUrl or placeId).",
      "type": "string"
    },
    "workspace": {
      "description": "Workspace slug; defaults to the caller's own. Naming another needs control of it.",
      "type": "string"
    }
  },
  "required": [
    "phone"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "sent": {
      "description": "false with ok true: nobody was texted and that is not a failure (reason says why).",
      "type": "boolean"
    },
    "reason": {
      "description": "no_marketing_consent · consent_declined · asked_recently · marketing_cap — a person who cannot be texted.",
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "sid": {
      "description": "Twilio's message sid.",
      "type": "string"
    },
    "error": {
      "description": "forbidden · bad_number · no_review_link · bad_review_link · daily_cap · sms_not_configured · sms_send_failed",
      "type": "string"
    },
    "detail": {
      "type": "string"
    },
    "cannot_run": {
      "description": "true when the environment, not the build, stopped it: no Twilio number or Composio unreachable.",
      "type": "boolean"
    }
  },
  "required": [
    "ok"
  ]
}