{
  "openapi": "3.0.3",
  "info": {
    "title": "NextSMS compatible SMS API v1",
    "version": "1.1.0",
    "description": "Legacy SMS integration contract. The key is a required PATH parameter: OpenAPI cannot model path API keys as a securityScheme. Always use HTTPS server-to-server; redact /v1/{key}/ from logs. POST uses form encoding, NOT JSON. SDK and collection choose POST for writes even where legacy GET is accepted. DELETE is supported only as documented. return.status is the protocol result; also inspect HTTP status. Codes above 599 use HTTP 400. There is no automatic retry. Missing Idempotency-Key on send generates a new request each time. Account verification, IP rules, safety review, shared quotas and pricing apply. Shared lines do not receive SMS. No voice or media methods are included."
  },
  "servers": [
    {
      "url": "https://api.nextsms.ir",
      "description": "Production; requests can send and charge real SMS."
    }
  ],
  "externalDocs": {
    "url": "https://nextsms.ir/docs"
  },
  "paths": {
    "/v1/{key}/sms/send.json": {
      "get": {
        "operationId": "sms_send_get",
        "summary": "sms/send",
        "description": "Submit text to the moderated queue. Advertising hours and opt-out suffix apply. Persist Idempotency-Key.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Persist before sending. Retry the identical request with the SAME key. Never automatically resend an uncertain submission.",
              "pattern": "^[a-zA-Z0-9_-]{8,100}$"
            }
          },
          {
            "name": "sender",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Authorized line number; absent uses the configured default."
            }
          },
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[a-zA-Z0-9_-]{1,200}$"
            }
          },
          {
            "name": "date",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "0/immediate or future Unix seconds, at most 366 days."
            }
          },
          {
            "name": "hide",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            }
          },
          {
            "name": "receptor",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Comma-separated mobiles, maximum 200."
            }
          },
          {
            "name": "message",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 1800
            }
          },
          {
            "name": "localid",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Comma-separated local IDs; count must match receptors. Reuse only for the same message."
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_send",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_sendResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "sms_send_post",
        "summary": "sms/send",
        "description": "Submit text to the moderated queue. Advertising hours and opt-out suffix apply. Persist Idempotency-Key.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Persist before sending. Retry the identical request with the SAME key. Never automatically resend an uncertain submission.",
              "pattern": "^[a-zA-Z0-9_-]{8,100}$"
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_send",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_sendResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/sms_sendRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/sms/sendarray.json": {
      "post": {
        "operationId": "sms_sendarray_post",
        "summary": "sms/sendarray",
        "description": "POST only. Each form field is a JSON array STRING, not a JSON request body. localmessageid is a legacy alias for localmessageids.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Persist before sending. Retry the identical request with the SAME key. Never automatically resend an uncertain submission.",
              "pattern": "^[a-zA-Z0-9_-]{8,100}$"
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_sendarray",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_sendarrayResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/sms_sendarrayRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/sms/status.json": {
      "get": {
        "operationId": "sms_status_get",
        "summary": "sms/status",
        "description": "Missing IDs return status=100, not HTTP 404. Reads stored status; does not force operator polling.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "messageid",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Comma-separated positive numeric IDs. Maximum 500."
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_status",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_statusResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "sms_status_post",
        "summary": "sms/status",
        "description": "Missing IDs return status=100, not HTTP 404. Reads stored status; does not force operator polling.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_status",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_statusResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/sms_statusRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/sms/select.json": {
      "get": {
        "operationId": "sms_select_get",
        "summary": "sms/select",
        "description": "Missing IDs return status=100, not HTTP 404. Text export requires an allowed IP.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "messageid",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Comma-separated positive numeric IDs. Maximum 500."
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_select",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_selectResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "sms_select_post",
        "summary": "sms/select",
        "description": "Missing IDs return status=100, not HTTP 404. Text export requires an allowed IP.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_select",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_selectResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/sms_selectRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/sms/cancel.json": {
      "get": {
        "operationId": "sms_cancel_get",
        "summary": "sms/cancel",
        "description": "Missing IDs return status=100, not HTTP 404. Cancellation only succeeds before dispatch; inspect returned status.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "messageid",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Comma-separated positive numeric IDs. Maximum 200."
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_cancel",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_cancelResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "sms_cancel_post",
        "summary": "sms/cancel",
        "description": "Missing IDs return status=100, not HTTP 404. Cancellation only succeeds before dispatch; inspect returned status.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_cancel",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_cancelResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/sms_cancelRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/sms/statuslocalmessageid.json": {
      "get": {
        "operationId": "sms_statuslocalmessageid_get",
        "summary": "sms/statuslocalmessageid",
        "description": "Missing IDs return status=100, not HTTP 404. Reads stored status; does not force operator polling.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "localid",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Comma-separated positive numeric IDs. Maximum 3000; local lookup covers the last 12 hours."
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_statuslocalmessageid",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_statuslocalmessageidResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "sms_statuslocalmessageid_post",
        "summary": "sms/statuslocalmessageid",
        "description": "Missing IDs return status=100, not HTTP 404. Reads stored status; does not force operator polling.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_statuslocalmessageid",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_statuslocalmessageidResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/sms_statuslocalmessageidRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/sms/statusbylocalid.json": {
      "get": {
        "operationId": "sms_statusbylocalid_get",
        "summary": "sms/statusbylocalid",
        "description": "Missing IDs return status=100, not HTTP 404. Reads stored status; does not force operator polling.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "localid",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Comma-separated positive numeric IDs. Maximum 3000; local lookup covers the last 12 hours."
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_statusbylocalid",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_statusbylocalidResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "sms_statusbylocalid_post",
        "summary": "sms/statusbylocalid",
        "description": "Missing IDs return status=100, not HTTP 404. Reads stored status; does not force operator polling.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_statusbylocalid",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_statusbylocalidResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/sms_statusbylocalidRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/sms/latestoutbox.json": {
      "get": {
        "operationId": "sms_latestoutbox_get",
        "summary": "sms/latestoutbox",
        "description": "Text export requires an allowed IP. latestoutbox/selectoutbox cover the last three days. Date queries span at most one day; selectoutbox/statusbyreceptor return at most 500 rows. Use native reports for full history.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "sender",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional authorized line number."
            }
          },
          {
            "name": "pagesize",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "1–200; default 200."
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_latestoutbox",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_latestoutboxResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "sms_latestoutbox_post",
        "summary": "sms/latestoutbox",
        "description": "Text export requires an allowed IP. latestoutbox/selectoutbox cover the last three days. Date queries span at most one day; selectoutbox/statusbyreceptor return at most 500 rows. Use native reports for full history.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_latestoutbox",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_latestoutboxResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/sms_latestoutboxRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/sms/selectoutbox.json": {
      "get": {
        "operationId": "sms_selectoutbox_get",
        "summary": "sms/selectoutbox",
        "description": "Text export requires an allowed IP. latestoutbox/selectoutbox cover the last three days. Date queries span at most one day; selectoutbox/statusbyreceptor return at most 500 rows. Use native reports for full history.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "sender",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional authorized line number."
            }
          },
          {
            "name": "startdate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Unix seconds. Inclusive start; maximum range one day."
            }
          },
          {
            "name": "enddate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Unix seconds; defaults to min(now, start + maximum range)."
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_selectoutbox",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_selectoutboxResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "sms_selectoutbox_post",
        "summary": "sms/selectoutbox",
        "description": "Text export requires an allowed IP. latestoutbox/selectoutbox cover the last three days. Date queries span at most one day; selectoutbox/statusbyreceptor return at most 500 rows. Use native reports for full history.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_selectoutbox",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_selectoutboxResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/sms_selectoutboxRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/sms/countoutbox.json": {
      "get": {
        "operationId": "sms_countoutbox_get",
        "summary": "sms/countoutbox",
        "description": "Text export requires an allowed IP. latestoutbox/selectoutbox cover the last three days. Date queries span at most one day; selectoutbox/statusbyreceptor return at most 500 rows. Use native reports for full history.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "sender",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional authorized line number."
            }
          },
          {
            "name": "startdate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Unix seconds. Inclusive start; maximum range one day."
            }
          },
          {
            "name": "enddate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Unix seconds; defaults to min(now, start + maximum range)."
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Numeric delivery status filter."
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_countoutbox",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_countoutboxResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "sms_countoutbox_post",
        "summary": "sms/countoutbox",
        "description": "Text export requires an allowed IP. latestoutbox/selectoutbox cover the last three days. Date queries span at most one day; selectoutbox/statusbyreceptor return at most 500 rows. Use native reports for full history.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_countoutbox",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_countoutboxResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/sms_countoutboxRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/sms/statusbyreceptor.json": {
      "get": {
        "operationId": "sms_statusbyreceptor_get",
        "summary": "sms/statusbyreceptor",
        "description": "Text export requires an allowed IP. latestoutbox/selectoutbox cover the last three days. Date queries span at most one day; selectoutbox/statusbyreceptor return at most 500 rows. Use native reports for full history.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "sender",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional authorized line number."
            }
          },
          {
            "name": "startdate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Unix seconds. Inclusive start; maximum range one day."
            }
          },
          {
            "name": "enddate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Unix seconds; defaults to min(now, start + maximum range)."
            }
          },
          {
            "name": "receptor",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Iranian mobile: 09…, 989…, +989… or 00989…. Persian digits are normalized.",
              "maxLength": 30
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_statusbyreceptor",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_statusbyreceptorResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "sms_statusbyreceptor_post",
        "summary": "sms/statusbyreceptor",
        "description": "Text export requires an allowed IP. latestoutbox/selectoutbox cover the last three days. Date queries span at most one day; selectoutbox/statusbyreceptor return at most 500 rows. Use native reports for full history.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_statusbyreceptor",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_statusbyreceptorResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/sms_statusbyreceptorRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/sms/receive.json": {
      "get": {
        "operationId": "sms_receive_get",
        "summary": "sms/receive",
        "description": "receive returns up to 100, inboxpaged up to 200. Reading marks returned rows as read. inboxpaged range: up to two days; countinbox: one day within last three days. isread=0 selects unread; 1 selects read.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "linenumber",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Owned dedicated receiving line; shared lines cannot receive."
            }
          },
          {
            "name": "isread",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "pagenumber",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "1–50000; default 1. Unread pages always consume the next available messages."
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_receive",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_receiveResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "sms_receive_post",
        "summary": "sms/receive",
        "description": "receive returns up to 100, inboxpaged up to 200. Reading marks returned rows as read. inboxpaged range: up to two days; countinbox: one day within last three days. isread=0 selects unread; 1 selects read.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_receive",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_receiveResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/sms_receiveRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/sms/inboxpaged.json": {
      "get": {
        "operationId": "sms_inboxpaged_get",
        "summary": "sms/inboxpaged",
        "description": "receive returns up to 100, inboxpaged up to 200. Reading marks returned rows as read. inboxpaged range: up to two days; countinbox: one day within last three days. isread=0 selects unread; 1 selects read.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "linenumber",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Owned dedicated receiving line; shared lines cannot receive."
            }
          },
          {
            "name": "isread",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "startdate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Unix seconds. Inclusive start; maximum range one day."
            }
          },
          {
            "name": "enddate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Unix seconds; defaults to min(now, start + maximum range)."
            }
          },
          {
            "name": "pagenumber",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "1–50000; default 1. Unread pages always consume the next available messages."
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_inboxpaged",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_inboxpagedResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "sms_inboxpaged_post",
        "summary": "sms/inboxpaged",
        "description": "receive returns up to 100, inboxpaged up to 200. Reading marks returned rows as read. inboxpaged range: up to two days; countinbox: one day within last three days. isread=0 selects unread; 1 selects read.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_inboxpaged",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_inboxpagedResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/sms_inboxpagedRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/sms/countinbox.json": {
      "get": {
        "operationId": "sms_countinbox_get",
        "summary": "sms/countinbox",
        "description": "receive returns up to 100, inboxpaged up to 200. Reading marks returned rows as read. inboxpaged range: up to two days; countinbox: one day within last three days. isread=0 selects unread; 1 selects read.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "linenumber",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Owned dedicated receiving line; shared lines cannot receive."
            }
          },
          {
            "name": "isread",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "startdate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Unix seconds. Inclusive start; maximum range one day."
            }
          },
          {
            "name": "enddate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Unix seconds; defaults to min(now, start + maximum range)."
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_countinbox",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_countinboxResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "sms_countinbox_post",
        "summary": "sms/countinbox",
        "description": "receive returns up to 100, inboxpaged up to 200. Reading marks returned rows as read. inboxpaged range: up to two days; countinbox: one day within last three days. isread=0 selects unread; 1 selects read.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "sms_countinbox",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sms_countinboxResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/sms_countinboxRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/account/info.json": {
      "get": {
        "operationId": "account_info_get",
        "summary": "account/info",
        "description": "Account balances. Read billingunit; never treat remaincredit as SMS count.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "account_info",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/account_infoResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "account_info_post",
        "summary": "account/info",
        "description": "Account balances. Read billingunit; never treat remaincredit as SMS count.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "account_info",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/account_infoResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/account_infoRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/account/config.json": {
      "get": {
        "operationId": "account_config_get",
        "summary": "account/config",
        "description": "Updates supplied preferences. debugmode=enabled validates without sending/charging; it changes this account, not a global sandbox. Automatic resend and dailyreport remain disabled.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "defaultsender",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "apilogs",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "enabled",
                "disabled",
                "justfaults"
              ]
            }
          },
          {
            "name": "debugmode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "enabled",
                "disabled"
              ]
            }
          },
          {
            "name": "mincreditalarm",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Rial threshold 0–500000000; 0 disables."
            }
          },
          {
            "name": "resendfailed",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "disabled"
              ]
            }
          }
        ],
        "x-nextsms-sdk-operation": "account_config",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/account_configResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "account_config_post",
        "summary": "account/config",
        "description": "Updates supplied preferences. debugmode=enabled validates without sending/charging; it changes this account, not a global sandbox. Automatic resend and dailyreport remain disabled.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "account_config",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/account_configResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/account_configRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/verify/lookup.json": {
      "get": {
        "operationId": "verify_lookup_get",
        "summary": "verify/lookup",
        "description": "Approved pattern send. Values must match template variables exactly. Numeric messageid is for compatibility methods; native UUID is trackingid when present. Persist Idempotency-Key.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Persist before sending. Retry the identical request with the SAME key. Never automatically resend an uncertain submission.",
              "pattern": "^[a-zA-Z0-9_-]{8,100}$"
            }
          },
          {
            "name": "template",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Approved English alias."
            }
          },
          {
            "name": "receptor",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Iranian mobile: 09…, 989…, +989… or 00989…. Persian digits are normalized.",
              "maxLength": 30
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Required exactly when used by the approved template. No control characters. Spaces: token10 at most 4, token20 at most 7, others zero.",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "token2",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Required exactly when used by the approved template. No control characters. Spaces: token10 at most 4, token20 at most 7, others zero.",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "token3",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Required exactly when used by the approved template. No control characters. Spaces: token10 at most 4, token20 at most 7, others zero.",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "token10",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Required exactly when used by the approved template. No control characters. Spaces: token10 at most 4, token20 at most 7, others zero.",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "token20",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Required exactly when used by the approved template. No control characters. Spaces: token10 at most 4, token20 at most 7, others zero.",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "sms"
              ]
            }
          },
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[a-zA-Z0-9_-]{1,200}$"
            }
          }
        ],
        "x-nextsms-sdk-operation": "verify_lookup",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/verify_lookupResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "verify_lookup_post",
        "summary": "verify/lookup",
        "description": "Approved pattern send. Values must match template variables exactly. Numeric messageid is for compatibility methods; native UUID is trackingid when present. Persist Idempotency-Key.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Persist before sending. Retry the identical request with the SAME key. Never automatically resend an uncertain submission.",
              "pattern": "^[a-zA-Z0-9_-]{8,100}$"
            }
          }
        ],
        "x-nextsms-sdk-operation": "verify_lookup",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/verify_lookupResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/verify_lookupRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/verify/templatelist.json": {
      "get": {
        "operationId": "verify_templatelist_get",
        "summary": "verify/templatelist",
        "description": "Lists templates scoped to the authenticated account or its owned child.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "apiKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional same-account or owned child key; sensitive. Prefer localId."
            }
          },
          {
            "name": "localId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional owned child account ID."
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "1–50000; 200 items per page."
            }
          }
        ],
        "x-nextsms-sdk-operation": "verify_templatelist",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/verify_templatelistResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "verify_templatelist_post",
        "summary": "verify/templatelist",
        "description": "Lists templates scoped to the authenticated account or its owned child.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "verify_templatelist",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/verify_templatelistResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/verify_templatelistRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/verify/gettemplate.json": {
      "get": {
        "operationId": "verify_gettemplate_get",
        "summary": "verify/gettemplate",
        "description": "Reads one owned template.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "apiKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional same-account or owned child key; sensitive. Prefer localId."
            }
          },
          {
            "name": "localId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional owned child account ID."
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Positive numeric template ID."
            }
          }
        ],
        "x-nextsms-sdk-operation": "verify_gettemplate",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/verify_gettemplateResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "verify_gettemplate_post",
        "summary": "verify/gettemplate",
        "description": "Reads one owned template.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "verify_gettemplate",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/verify_gettemplateResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/verify_gettemplateRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/verify/addtemplate.json": {
      "get": {
        "operationId": "verify_addtemplate_get",
        "summary": "verify/addtemplate",
        "description": "Creates or edits a template and returns it to review. Name unique per account. 20 create/update/clone attempts per day. Sending line is assigned during approval; voice is unavailable.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "apiKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional same-account or owned child key; sensitive. Prefer localId."
            }
          },
          {
            "name": "localId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional owned child account ID."
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-zA-Z][a-zA-Z0-9-]{1,63}$"
            }
          },
          {
            "name": "textMessage",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Must include %token; only token/token2/token3/token10/token20.",
              "maxLength": 600
            }
          },
          {
            "name": "sendMethod",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            }
          },
          {
            "name": "fallBackMethod",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "3"
              ]
            }
          },
          {
            "name": "sourceType",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "sourceUrl",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceName",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-nextsms-sdk-operation": "verify_addtemplate",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/verify_addtemplateResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "verify_addtemplate_post",
        "summary": "verify/addtemplate",
        "description": "Creates or edits a template and returns it to review. Name unique per account. 20 create/update/clone attempts per day. Sending line is assigned during approval; voice is unavailable.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "verify_addtemplate",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/verify_addtemplateResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/verify_addtemplateRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/verify/updatetemplate.json": {
      "get": {
        "operationId": "verify_updatetemplate_get",
        "summary": "verify/updatetemplate",
        "description": "Creates or edits a template and returns it to review. Name unique per account. 20 create/update/clone attempts per day. Sending line is assigned during approval; voice is unavailable.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "apiKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional same-account or owned child key; sensitive. Prefer localId."
            }
          },
          {
            "name": "localId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional owned child account ID."
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-zA-Z][a-zA-Z0-9-]{1,63}$"
            }
          },
          {
            "name": "textMessage",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Must include %token; only token/token2/token3/token10/token20.",
              "maxLength": 600
            }
          },
          {
            "name": "sendMethod",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            }
          },
          {
            "name": "fallBackMethod",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "3"
              ]
            }
          },
          {
            "name": "sourceType",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "sourceUrl",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceName",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "templateId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Positive numeric template ID."
            }
          }
        ],
        "x-nextsms-sdk-operation": "verify_updatetemplate",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/verify_updatetemplateResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "verify_updatetemplate_post",
        "summary": "verify/updatetemplate",
        "description": "Creates or edits a template and returns it to review. Name unique per account. 20 create/update/clone attempts per day. Sending line is assigned during approval; voice is unavailable.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "verify_updatetemplate",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/verify_updatetemplateResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/verify_updatetemplateRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/verify/clonetemplate.json": {
      "get": {
        "operationId": "verify_clonetemplate_get",
        "summary": "verify/clonetemplate",
        "description": "Supply sourceTemplateId OR sourceTemplateName; source must be approved. Clone requires approval.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "apiKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional same-account or owned child key; sensitive. Prefer localId."
            }
          },
          {
            "name": "localId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional owned child account ID."
            }
          },
          {
            "name": "sourceTemplateId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceTemplateName",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "newTemplateName",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-zA-Z][a-zA-Z0-9-]{1,63}$"
            }
          }
        ],
        "x-nextsms-sdk-operation": "verify_clonetemplate",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/verify_clonetemplateResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "verify_clonetemplate_post",
        "summary": "verify/clonetemplate",
        "description": "Supply sourceTemplateId OR sourceTemplateName; source must be approved. Clone requires approval.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "verify_clonetemplate",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/verify_clonetemplateResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/verify_clonetemplateRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/verify/deletetemplate.json": {
      "get": {
        "operationId": "verify_deletetemplate_get",
        "summary": "verify/deletetemplate",
        "description": "Deletes an owned template; entries is null.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "apiKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional same-account or owned child key; sensitive. Prefer localId."
            }
          },
          {
            "name": "localId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional owned child account ID."
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Positive numeric template ID."
            }
          }
        ],
        "x-nextsms-sdk-operation": "verify_deletetemplate",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/verify_deletetemplateResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "verify_deletetemplate_post",
        "summary": "verify/deletetemplate",
        "description": "Deletes an owned template; entries is null.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "verify_deletetemplate",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/verify_deletetemplateResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/verify_deletetemplateRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/line/blocked/list.json": {
      "get": {
        "operationId": "line_blocked_list_get",
        "summary": "line/blocked/list",
        "description": "Per-account, per-line block list. Removal uses DELETE with query parameters, not a form body.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "linenumber",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Authorized line number."
            }
          },
          {
            "name": "pagenumber",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "1–50000, default 1; 200 per page."
            }
          },
          {
            "name": "startdate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Unix seconds; defaults to start of today in Tehran."
            }
          },
          {
            "name": "blockreason",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Integer 0–10."
            }
          }
        ],
        "x-nextsms-sdk-operation": "line_blocked_list",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/line_blocked_listResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "line_blocked_list_post",
        "summary": "line/blocked/list",
        "description": "Per-account, per-line block list. Removal uses DELETE with query parameters, not a form body.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "line_blocked_list",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/line_blocked_listResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/line_blocked_listRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/line/blocked/add.json": {
      "get": {
        "operationId": "line_blocked_add_get",
        "summary": "line/blocked/add",
        "description": "Per-account, per-line block list. Removal uses DELETE with query parameters, not a form body.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "linenumber",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Authorized line number."
            }
          },
          {
            "name": "receptor",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Comma-separated mobile numbers; maximum 200."
            }
          }
        ],
        "x-nextsms-sdk-operation": "line_blocked_add",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/line_blocked_addResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "line_blocked_add_post",
        "summary": "line/blocked/add",
        "description": "Per-account, per-line block list. Removal uses DELETE with query parameters, not a form body.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "line_blocked_add",
        "x-nextsms-preferred-method": "post",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/line_blocked_addResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/line_blocked_addRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/line/blocked/exists.json": {
      "get": {
        "operationId": "line_blocked_exists_get",
        "summary": "line/blocked/exists",
        "description": "Per-account, per-line block list. Removal uses DELETE with query parameters, not a form body.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "linenumber",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Authorized line number."
            }
          },
          {
            "name": "receptor",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Comma-separated mobile numbers; maximum 200."
            }
          }
        ],
        "x-nextsms-sdk-operation": "line_blocked_exists",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/line_blocked_existsResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      },
      "post": {
        "operationId": "line_blocked_exists_post",
        "summary": "line/blocked/exists",
        "description": "Per-account, per-line block list. Removal uses DELETE with query parameters, not a form body.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          }
        ],
        "x-nextsms-sdk-operation": "line_blocked_exists",
        "x-nextsms-preferred-method": "get",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/line_blocked_existsResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/line_blocked_existsRequest"
              }
            }
          }
        }
      }
    },
    "/v1/{key}/line/blocked/remove.json": {
      "delete": {
        "operationId": "line_blocked_remove_delete",
        "summary": "line/blocked/remove",
        "description": "Per-account, per-line block list. Removal uses DELETE with query parameters, not a form body.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Secret NextSMS API key. Never expose it to a browser or logs.",
              "minLength": 1
            }
          },
          {
            "name": "linenumber",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Authorized line number."
            }
          },
          {
            "name": "receptor",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Comma-separated mobile numbers; maximum 50."
            }
          }
        ],
        "x-nextsms-sdk-operation": "line_blocked_remove",
        "x-nextsms-preferred-method": "delete",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/line_blocked_removeResult"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          },
          "default": {
            "description": "Protocol error; inspect return.status; Retry-After may be present.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompatError"
                }
              }
            },
            "headers": {
              "NextSMS-API-Contract": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "compatible-rest"
                  ]
                }
              },
              "NextSMS-API-Version": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "v1"
                  ]
                }
              },
              "Link": {
                "schema": {
                  "type": "string"
                },
                "description": "Version policy and changelog links."
              },
              "Deprecation": {
                "schema": {
                  "type": "string",
                  "pattern": "^@[0-9]+$"
                },
                "description": "RFC 9745 structured date. Only present after a retirement plan is published; does not change response semantics."
              },
              "Sunset": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 8594 HTTP-date in GMT. Only present for a published retirement plan."
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "StatusEntry": {
        "type": "object",
        "properties": {
          "messageid": {
            "type": "integer",
            "format": "int64"
          },
          "status": {
            "type": "integer",
            "format": "int64",
            "enum": [
              1,
              2,
              5,
              6,
              10,
              11,
              13,
              14,
              100
            ]
          },
          "statustext": {
            "type": "string"
          },
          "localid": {
            "type": "string"
          }
        },
        "required": [
          "messageid",
          "status",
          "statustext"
        ]
      },
      "SmsEntry": {
        "type": "object",
        "properties": {
          "messageid": {
            "type": "integer",
            "format": "int64"
          },
          "status": {
            "type": "integer",
            "format": "int64"
          },
          "statustext": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "sender": {
            "type": "string"
          },
          "receptor": {
            "type": "string",
            "description": "Blank or masked for hidden recipients."
          },
          "date": {
            "type": "integer",
            "format": "int64",
            "description": "Unix seconds, not milliseconds."
          },
          "cost": {
            "type": "integer",
            "format": "int64",
            "description": "Historical rial amount, including the price snapshot. This is NOT a count of SMS units.",
            "minimum": 0
          }
        },
        "required": [
          "messageid",
          "status",
          "statustext",
          "message",
          "sender",
          "receptor",
          "date",
          "cost"
        ]
      },
      "InboxEntry": {
        "type": "object",
        "properties": {
          "messageid": {
            "type": "integer",
            "format": "int64"
          },
          "message": {
            "type": "string"
          },
          "sender": {
            "type": "string"
          },
          "receptor": {
            "type": "string"
          },
          "date": {
            "type": "integer",
            "format": "int64"
          }
        },
        "required": [
          "messageid",
          "message",
          "sender",
          "receptor",
          "date"
        ]
      },
      "Template": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "smsMessage": {
            "type": "string"
          },
          "callMessage": {
            "type": "string"
          },
          "primaryLineNumber": {
            "type": "string"
          },
          "secondaryLineNumber": {
            "type": "string"
          },
          "sendPriority": {
            "type": "string"
          },
          "switchTTL": {
            "type": "integer",
            "format": "int64"
          },
          "approvalStatus": {
            "type": "string",
            "enum": [
              "Approved",
              "Rejected",
              "PendingReview"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "smsMessage",
          "approvalStatus"
        ]
      },
      "SavedTemplate": {
        "type": "object",
        "properties": {
          "templateid": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "sourcetype": {
            "type": "string"
          },
          "sendmethod": {
            "type": "string"
          },
          "fallbackmethod": {
            "type": "string"
          },
          "primarylinenumber": {
            "type": "string"
          },
          "secondarylinenumber": {
            "type": "string"
          },
          "sourceurl": {
            "type": "string"
          },
          "sourcename": {
            "type": "string"
          },
          "textmessage": {
            "type": "string"
          },
          "voicemessage": {
            "type": "string"
          },
          "switchttL": {
            "type": "integer",
            "format": "int64"
          }
        },
        "required": [
          "templateid",
          "name",
          "textmessage"
        ]
      },
      "Return": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "format": "int64"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "message"
        ]
      },
      "CompatError": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "nullable": true,
            "description": "Normally null; overload may return an empty list."
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "sms_sendResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SmsEntry"
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "sms_sendRequest": {
        "type": "object",
        "properties": {
          "sender": {
            "type": "string",
            "description": "Authorized line number; absent uses the configured default."
          },
          "tag": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9_-]{1,200}$"
          },
          "date": {
            "type": "string",
            "description": "0/immediate or future Unix seconds, at most 366 days."
          },
          "hide": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "1"
            ]
          },
          "receptor": {
            "type": "string",
            "description": "Comma-separated mobiles, maximum 200."
          },
          "message": {
            "type": "string",
            "maxLength": 1800
          },
          "localid": {
            "type": "string",
            "description": "Comma-separated local IDs; count must match receptors. Reuse only for the same message."
          }
        },
        "required": [
          "receptor",
          "message"
        ]
      },
      "sms_sendarrayResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SmsEntry"
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "sms_sendarrayRequest": {
        "type": "object",
        "properties": {
          "sender": {
            "type": "string",
            "description": "JSON-encoded array string; 1–200 items; all arrays must have equal length."
          },
          "tag": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9_-]{1,200}$"
          },
          "date": {
            "type": "string",
            "description": "0/immediate or future Unix seconds, at most 366 days."
          },
          "hide": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "1"
            ]
          },
          "receptor": {
            "type": "string",
            "description": "JSON-encoded array string; 1–200 items; all arrays must have equal length."
          },
          "message": {
            "type": "string",
            "description": "JSON-encoded array string; 1–200 items; all arrays must have equal length."
          },
          "localmessageids": {
            "type": "string",
            "description": "JSON-encoded array string; 1–200 items; all arrays must have equal length."
          }
        },
        "required": [
          "sender",
          "receptor",
          "message"
        ]
      },
      "sms_statusResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusEntry"
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "sms_statusRequest": {
        "type": "object",
        "properties": {
          "messageid": {
            "type": "string",
            "description": "Comma-separated positive numeric IDs. Maximum 500."
          }
        },
        "required": [
          "messageid"
        ]
      },
      "sms_selectResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SmsEntry"
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "sms_selectRequest": {
        "type": "object",
        "properties": {
          "messageid": {
            "type": "string",
            "description": "Comma-separated positive numeric IDs. Maximum 500."
          }
        },
        "required": [
          "messageid"
        ]
      },
      "sms_cancelResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusEntry"
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "sms_cancelRequest": {
        "type": "object",
        "properties": {
          "messageid": {
            "type": "string",
            "description": "Comma-separated positive numeric IDs. Maximum 200."
          }
        },
        "required": [
          "messageid"
        ]
      },
      "sms_statuslocalmessageidResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusEntry"
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "sms_statuslocalmessageidRequest": {
        "type": "object",
        "properties": {
          "localid": {
            "type": "string",
            "description": "Comma-separated positive numeric IDs. Maximum 3000; local lookup covers the last 12 hours."
          }
        },
        "required": [
          "localid"
        ]
      },
      "sms_statusbylocalidResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusEntry"
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "sms_statusbylocalidRequest": {
        "type": "object",
        "properties": {
          "localid": {
            "type": "string",
            "description": "Comma-separated positive numeric IDs. Maximum 3000; local lookup covers the last 12 hours."
          }
        },
        "required": [
          "localid"
        ]
      },
      "sms_latestoutboxResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SmsEntry"
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "sms_latestoutboxRequest": {
        "type": "object",
        "properties": {
          "sender": {
            "type": "string",
            "description": "Optional authorized line number."
          },
          "pagesize": {
            "type": "string",
            "description": "1–200; default 200."
          }
        }
      },
      "sms_selectoutboxResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SmsEntry"
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "sms_selectoutboxRequest": {
        "type": "object",
        "properties": {
          "sender": {
            "type": "string",
            "description": "Optional authorized line number."
          },
          "startdate": {
            "type": "string",
            "description": "Unix seconds. Inclusive start; maximum range one day."
          },
          "enddate": {
            "type": "string",
            "description": "Unix seconds; defaults to min(now, start + maximum range)."
          }
        },
        "required": [
          "startdate"
        ]
      },
      "sms_countoutboxResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "startdate": {
                  "type": "integer",
                  "format": "int64"
                },
                "enddate": {
                  "type": "integer",
                  "format": "int64"
                },
                "sumcount": {
                  "type": "integer",
                  "format": "int64"
                },
                "sumpart": {
                  "type": "integer",
                  "format": "int64"
                },
                "cost": {
                  "type": "integer",
                  "format": "int64"
                }
              },
              "required": [
                "startdate",
                "enddate",
                "sumcount",
                "sumpart",
                "cost"
              ]
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "sms_countoutboxRequest": {
        "type": "object",
        "properties": {
          "sender": {
            "type": "string",
            "description": "Optional authorized line number."
          },
          "startdate": {
            "type": "string",
            "description": "Unix seconds. Inclusive start; maximum range one day."
          },
          "enddate": {
            "type": "string",
            "description": "Unix seconds; defaults to min(now, start + maximum range)."
          },
          "status": {
            "type": "string",
            "description": "Numeric delivery status filter."
          }
        },
        "required": [
          "startdate"
        ]
      },
      "sms_statusbyreceptorResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusEntry"
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "sms_statusbyreceptorRequest": {
        "type": "object",
        "properties": {
          "sender": {
            "type": "string",
            "description": "Optional authorized line number."
          },
          "startdate": {
            "type": "string",
            "description": "Unix seconds. Inclusive start; maximum range one day."
          },
          "enddate": {
            "type": "string",
            "description": "Unix seconds; defaults to min(now, start + maximum range)."
          },
          "receptor": {
            "type": "string",
            "description": "Iranian mobile: 09…, 989…, +989… or 00989…. Persian digits are normalized.",
            "maxLength": 30
          }
        },
        "required": [
          "startdate",
          "receptor"
        ]
      },
      "sms_receiveResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InboxEntry"
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "sms_receiveRequest": {
        "type": "object",
        "properties": {
          "linenumber": {
            "type": "string",
            "description": "Owned dedicated receiving line; shared lines cannot receive."
          },
          "isread": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ]
          },
          "pagenumber": {
            "type": "string",
            "description": "1–50000; default 1. Unread pages always consume the next available messages."
          }
        },
        "required": [
          "linenumber",
          "isread"
        ]
      },
      "sms_inboxpagedResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InboxEntry"
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "sms_inboxpagedRequest": {
        "type": "object",
        "properties": {
          "linenumber": {
            "type": "string",
            "description": "Owned dedicated receiving line; shared lines cannot receive."
          },
          "isread": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ]
          },
          "startdate": {
            "type": "string",
            "description": "Unix seconds. Inclusive start; maximum range one day."
          },
          "enddate": {
            "type": "string",
            "description": "Unix seconds; defaults to min(now, start + maximum range)."
          },
          "pagenumber": {
            "type": "string",
            "description": "1–50000; default 1. Unread pages always consume the next available messages."
          }
        },
        "required": [
          "linenumber",
          "isread"
        ]
      },
      "sms_countinboxResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "startdate": {
                  "type": "integer",
                  "format": "int64"
                },
                "enddate": {
                  "type": "integer",
                  "format": "int64"
                },
                "sumcount": {
                  "type": "integer",
                  "format": "int64"
                }
              },
              "required": [
                "startdate",
                "enddate",
                "sumcount"
              ]
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "sms_countinboxRequest": {
        "type": "object",
        "properties": {
          "linenumber": {
            "type": "string",
            "description": "Owned dedicated receiving line; shared lines cannot receive."
          },
          "isread": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ]
          },
          "startdate": {
            "type": "string",
            "description": "Unix seconds. Inclusive start; maximum range one day."
          },
          "enddate": {
            "type": "string",
            "description": "Unix seconds; defaults to min(now, start + maximum range)."
          }
        },
        "required": [
          "startdate"
        ]
      },
      "account_infoResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "object",
            "properties": {
              "remaincredit": {
                "type": "integer",
                "format": "int64",
                "description": "Rial balance."
              },
              "expiredate": {
                "type": "integer",
                "format": "int64"
              },
              "type": {
                "type": "string"
              },
              "billingunit": {
                "type": "string",
                "enum": [
                  "IRR",
                  "SMS"
                ]
              },
              "smscredit": {
                "type": "integer",
                "format": "int64"
              }
            },
            "required": [
              "remaincredit",
              "expiredate",
              "type",
              "billingunit",
              "smscredit"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "account_infoRequest": {
        "type": "object",
        "properties": {}
      },
      "account_configResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "object",
            "properties": {
              "apilogs": {
                "type": "string"
              },
              "debugmode": {
                "type": "string"
              },
              "defaultsender": {
                "type": "string"
              },
              "mincreditalarm": {
                "type": "integer",
                "format": "int64"
              },
              "resendfailed": {
                "type": "string"
              },
              "dailyreport": {
                "type": "string"
              }
            },
            "required": [
              "apilogs",
              "debugmode",
              "defaultsender",
              "mincreditalarm",
              "resendfailed",
              "dailyreport"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "account_configRequest": {
        "type": "object",
        "properties": {
          "defaultsender": {
            "type": "string"
          },
          "apilogs": {
            "type": "string",
            "enum": [
              "enabled",
              "disabled",
              "justfaults"
            ]
          },
          "debugmode": {
            "type": "string",
            "enum": [
              "enabled",
              "disabled"
            ]
          },
          "mincreditalarm": {
            "type": "string",
            "description": "Rial threshold 0–500000000; 0 disables."
          },
          "resendfailed": {
            "type": "string",
            "enum": [
              "disabled"
            ]
          }
        }
      },
      "verify_lookupResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SmsEntry"
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "verify_lookupRequest": {
        "type": "object",
        "properties": {
          "template": {
            "type": "string",
            "description": "Approved English alias."
          },
          "receptor": {
            "type": "string",
            "description": "Iranian mobile: 09…, 989…, +989… or 00989…. Persian digits are normalized.",
            "maxLength": 30
          },
          "token": {
            "type": "string",
            "description": "Required exactly when used by the approved template. No control characters. Spaces: token10 at most 4, token20 at most 7, others zero.",
            "minLength": 1,
            "maxLength": 100
          },
          "token2": {
            "type": "string",
            "description": "Required exactly when used by the approved template. No control characters. Spaces: token10 at most 4, token20 at most 7, others zero.",
            "minLength": 1,
            "maxLength": 100
          },
          "token3": {
            "type": "string",
            "description": "Required exactly when used by the approved template. No control characters. Spaces: token10 at most 4, token20 at most 7, others zero.",
            "minLength": 1,
            "maxLength": 100
          },
          "token10": {
            "type": "string",
            "description": "Required exactly when used by the approved template. No control characters. Spaces: token10 at most 4, token20 at most 7, others zero.",
            "minLength": 1,
            "maxLength": 100
          },
          "token20": {
            "type": "string",
            "description": "Required exactly when used by the approved template. No control characters. Spaces: token10 at most 4, token20 at most 7, others zero.",
            "minLength": 1,
            "maxLength": 100
          },
          "type": {
            "type": "string",
            "enum": [
              "sms"
            ]
          },
          "tag": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9_-]{1,200}$"
          }
        },
        "required": [
          "template",
          "receptor"
        ]
      },
      "verify_templatelistResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Template"
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "verify_templatelistRequest": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "description": "Optional same-account or owned child key; sensitive. Prefer localId."
          },
          "localId": {
            "type": "string",
            "description": "Optional owned child account ID."
          },
          "page": {
            "type": "string",
            "description": "1–50000; 200 items per page."
          }
        }
      },
      "verify_gettemplateResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "$ref": "#/components/schemas/Template"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "verify_gettemplateRequest": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "description": "Optional same-account or owned child key; sensitive. Prefer localId."
          },
          "localId": {
            "type": "string",
            "description": "Optional owned child account ID."
          },
          "id": {
            "type": "string",
            "description": "Positive numeric template ID."
          }
        },
        "required": [
          "id"
        ]
      },
      "verify_addtemplateResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "$ref": "#/components/schemas/SavedTemplate"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "verify_addtemplateRequest": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "description": "Optional same-account or owned child key; sensitive. Prefer localId."
          },
          "localId": {
            "type": "string",
            "description": "Optional owned child account ID."
          },
          "name": {
            "type": "string",
            "pattern": "^[a-zA-Z][a-zA-Z0-9-]{1,63}$"
          },
          "textMessage": {
            "type": "string",
            "description": "Must include %token; only token/token2/token3/token10/token20.",
            "maxLength": 600
          },
          "sendMethod": {
            "type": "string",
            "enum": [
              "1"
            ]
          },
          "fallBackMethod": {
            "type": "string",
            "enum": [
              "0",
              "3"
            ]
          },
          "sourceType": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ]
          },
          "sourceUrl": {
            "type": "string"
          },
          "sourceName": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "textMessage",
          "sendMethod",
          "sourceType"
        ]
      },
      "verify_updatetemplateResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "$ref": "#/components/schemas/SavedTemplate"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "verify_updatetemplateRequest": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "description": "Optional same-account or owned child key; sensitive. Prefer localId."
          },
          "localId": {
            "type": "string",
            "description": "Optional owned child account ID."
          },
          "name": {
            "type": "string",
            "pattern": "^[a-zA-Z][a-zA-Z0-9-]{1,63}$"
          },
          "textMessage": {
            "type": "string",
            "description": "Must include %token; only token/token2/token3/token10/token20.",
            "maxLength": 600
          },
          "sendMethod": {
            "type": "string",
            "enum": [
              "1"
            ]
          },
          "fallBackMethod": {
            "type": "string",
            "enum": [
              "0",
              "3"
            ]
          },
          "sourceType": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ]
          },
          "sourceUrl": {
            "type": "string"
          },
          "sourceName": {
            "type": "string"
          },
          "templateId": {
            "type": "string",
            "description": "Positive numeric template ID."
          }
        },
        "required": [
          "name",
          "textMessage",
          "sendMethod",
          "sourceType",
          "templateId"
        ]
      },
      "verify_clonetemplateResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "format": "int64"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "verify_clonetemplateRequest": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "description": "Optional same-account or owned child key; sensitive. Prefer localId."
          },
          "localId": {
            "type": "string",
            "description": "Optional owned child account ID."
          },
          "sourceTemplateId": {
            "type": "string"
          },
          "sourceTemplateName": {
            "type": "string"
          },
          "newTemplateName": {
            "type": "string",
            "pattern": "^[a-zA-Z][a-zA-Z0-9-]{1,63}$"
          }
        },
        "required": [
          "newTemplateName"
        ]
      },
      "verify_deletetemplateResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "verify_deletetemplateRequest": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "description": "Optional same-account or owned child key; sensitive. Prefer localId."
          },
          "localId": {
            "type": "string",
            "description": "Optional owned child account ID."
          },
          "id": {
            "type": "string",
            "description": "Positive numeric template ID."
          }
        },
        "required": [
          "id"
        ]
      },
      "line_blocked_listResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "number": {
                  "type": "string"
                },
                "blockreason": {
                  "type": "integer",
                  "format": "int64"
                },
                "date": {
                  "type": "integer",
                  "format": "int64"
                }
              },
              "required": [
                "number",
                "blockreason",
                "date"
              ]
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "line_blocked_listRequest": {
        "type": "object",
        "properties": {
          "linenumber": {
            "type": "string",
            "description": "Authorized line number."
          },
          "pagenumber": {
            "type": "string",
            "description": "1–50000, default 1; 200 per page."
          },
          "startdate": {
            "type": "string",
            "description": "Unix seconds; defaults to start of today in Tehran."
          },
          "blockreason": {
            "type": "string",
            "description": "Integer 0–10."
          }
        },
        "required": [
          "linenumber"
        ]
      },
      "line_blocked_addResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "linenumber": {
                  "type": "string"
                },
                "receptor": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "Active",
                    "NotExists",
                    "AlreadyExists"
                  ]
                }
              },
              "required": [
                "linenumber",
                "receptor",
                "status"
              ]
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "line_blocked_addRequest": {
        "type": "object",
        "properties": {
          "linenumber": {
            "type": "string",
            "description": "Authorized line number."
          },
          "receptor": {
            "type": "string",
            "description": "Comma-separated mobile numbers; maximum 200."
          }
        },
        "required": [
          "linenumber",
          "receptor"
        ]
      },
      "line_blocked_existsResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "linenumber": {
                  "type": "string"
                },
                "receptor": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "Active",
                    "NotExists",
                    "AlreadyExists"
                  ]
                }
              },
              "required": [
                "linenumber",
                "receptor",
                "status"
              ]
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "line_blocked_existsRequest": {
        "type": "object",
        "properties": {
          "linenumber": {
            "type": "string",
            "description": "Authorized line number."
          },
          "receptor": {
            "type": "string",
            "description": "Comma-separated mobile numbers; maximum 200."
          }
        },
        "required": [
          "linenumber",
          "receptor"
        ]
      },
      "line_blocked_removeResult": {
        "type": "object",
        "properties": {
          "return": {
            "$ref": "#/components/schemas/Return"
          },
          "entries": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Pagination fields are strings; spelling/case depends on the method."
            }
          }
        },
        "required": [
          "return",
          "entries"
        ]
      },
      "line_blocked_removeRequest": {
        "type": "object",
        "properties": {
          "linenumber": {
            "type": "string",
            "description": "Authorized line number."
          },
          "receptor": {
            "type": "string",
            "description": "Comma-separated mobile numbers; maximum 50."
          }
        },
        "required": [
          "linenumber",
          "receptor"
        ]
      }
    }
  },
  "security": [],
  "x-nextsms-lifecycle": {
    "contract": "compatible-rest",
    "version": "v1",
    "catalog": "https://api.nextsms.ir/api/contracts/lifecycle.json",
    "policy": "https://nextsms.ir/docs/versions",
    "changelog": "https://nextsms.ir/docs/versions#changelog"
  }
}
