{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reflecto-dev/json-schema/reflecto-dev-sms-agent-send-response-schema.json",
  "title": "SmsAgentSendResponse",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reflecto-dev-openapi.yml#/components/schemas/SmsAgentSendResponse",
  "type": "object",
  "properties": {
    "state": {
      "type": "string",
      "enum": [
        "sent",
        "failed",
        "pending"
      ],
      "description": "`sent` = the phone handed the SMS to the network. `failed` carries a `reason`. `pending` = not confirmed within 30 s; the send is neither retried nor cancelled, and calling again with the same handle returns the current state without sending again."
    },
    "reason": {
      "type": "string",
      "enum": [
        "disabled",
        "rate_limited",
        "handle_expired",
        "no_sms_permission",
        "no_service",
        "send_error",
        "phone_unreachable"
      ],
      "description": "Present only when `state` is `failed`."
    },
    "recipient_label": {
      "type": "string",
      "description": "`Name · Label` of the recipient, as the lookup returned it — when the phone reported it while this request was waiting. Never a number."
    }
  },
  "required": [
    "state"
  ]
}