{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/netcorecloud/main/json-schema/netcorecloud-json-single-api-v2-request-schema.json",
  "title": "JsonSingleApiV2Request",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/netcorecloud-sms-api-openapi.yml#/components/schemas/JsonSingleApiV2Request",
  "type": "object",
  "required": [
    "mobile",
    "messages"
  ],
  "properties": {
    "feedid": {
      "type": "string",
      "description": "Account/Feed ID used for authentication and required for encryption key retrieval."
    },
    "username": {
      "type": "string",
      "description": "Username or registered mobile number for authentication."
    },
    "password": {
      "type": "string",
      "format": "password",
      "description": "Password associated with the username."
    },
    "jobname": {
      "type": "string",
      "maxLength": 50,
      "description": "Custom name assigned to the message batch for tracking."
    },
    "short": {
      "type": "string",
      "description": "URL shortener flag: 0 = off (default), 1 = on",
      "default": "0"
    },
    "tz": {
      "type": "string",
      "description": "Timezone for scheduled time (e.g. GMT+05:30)"
    },
    "time": {
      "type": "string",
      "description": "Future publish time (yyyymmddhhmm or yyyy-MM-dd HH:mm)"
    },
    "mobile": {
      "type": "string",
      "description": "Comma-separated mobile numbers"
    },
    "messages": {
      "type": "string",
      "description": "SMS message content (alias: message)"
    },
    "message": {
      "type": "string",
      "description": "SMS message content to be sent."
    },
    "senderid": {
      "type": "string",
      "description": "Sender ID"
    },
    "entityid": {
      "type": "string",
      "description": "DLT entity ID"
    },
    "templateid": {
      "type": "string",
      "description": "DLT template ID"
    },
    "async": {
      "type": "string",
      "enum": [
        "0",
        "1"
      ],
      "default": "0",
      "description": "0 = sync (default), 1 = async"
    },
    "dlt_template_type": {
      "type": "string",
      "description": "DLT template type"
    },
    "jobid": {
      "type": "string",
      "description": "Job ID"
    },
    "mtype": {
      "type": "string",
      "description": "Message type (1 = text)"
    },
    "url": {
      "type": "string",
      "description": "WAP URL for WAP push"
    },
    "udh": {
      "type": "string",
      "description": "UDH for binary messages"
    },
    "hexflag": {
      "type": "string",
      "description": "Hex flag for encoded messages"
    },
    "response_type": {
      "type": "string",
      "enum": [
        "json",
        "xml"
      ],
      "description": "Response format"
    },
    "DepId": {
      "type": "string",
      "description": "Department ID"
    },
    "AppID": {
      "type": "string",
      "description": "Application ID"
    },
    "ssl": {
      "type": "string",
      "description": "Encryption mode (when in JSON body)"
    },
    "ssliv": {
      "type": "string",
      "description": "IV (when message encrypted in JSON)"
    },
    "aesKey": {
      "type": "string",
      "description": "AES key (when message encrypted in JSON)"
    }
  }
}