{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-communication-services/json-schema/microsoft-azure-communication-services-sms-send-response-schema.json",
  "title": "SmsSendResponse",
  "description": "Response for a successful or multi status send Sms request.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-communication-services-sms-api-openapi.yml#/components/schemas/SmsSendResponse",
  "required": [
    "value"
  ],
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SmsSendResponseItem"
      }
    }
  },
  "$defs": {
    "SmsSendResponseItem": {
      "description": "Response for a single recipient.",
      "required": [
        "httpStatusCode",
        "to",
        "successful"
      ],
      "type": "object",
      "properties": {
        "to": {
          "description": "The recipient's phone number in E.164 format.",
          "type": "string"
        },
        "messageId": {
          "description": "The identifier of the outgoing Sms message. Only present if message processed.",
          "type": "string"
        },
        "httpStatusCode": {
          "format": "int32",
          "description": "HTTP Status code.",
          "type": "integer"
        },
        "repeatabilityResult": {
          "description": "The result of a repeatable request with one of the case-insensitive values accepted or rejected.",
          "type": "string",
          "enum": [
            "accepted",
            "rejected"
          ]
        },
        "successful": {
          "description": "Indicates if the message is processed successfully or not.",
          "type": "boolean"
        },
        "errorMessage": {
          "description": "Optional error message in case of 4xx/5xx/repeatable errors.",
          "type": "string"
        }
      }
    }
  }
}