---
updatedAt: 2026-04-21T09:18:29.000Z
agentTools:
  projectIndex: https://docs.esputnik.com/llms.txt
---

# Add base SMS message

The method is used for creating basic SMS messages.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "esputnik.com",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://esputnik.com"
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "tags": [
    {
      "name": "Messages"
    }
  ],
  "paths": {
    "/api/v1/messages/sms": {
      "post": {
        "tags": [
          "Messages"
        ],
        "summary": "Add base SMS message",
        "description": "The method is used for creating basic SMS messages.",
        "operationId": "addSmsMessage",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BaseSmsMessage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json; charset=UTF-8": {
                "schema": {
                  "$ref": "#/components/schemas/IDResult"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "IDResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "BaseSmsMessage": {
        "required": [
          "from",
          "name",
          "text"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Message ID.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Message name."
          },
          "languageCode": {
            "type": "string",
            "description": "Language code."
          },
          "tags": {
            "type": "array",
            "description": "List of tags.",
            "items": {
              "type": "string",
              "description": "List of tags."
            }
          },
          "subscriptionsKeys": {
            "type": "array",
            "description": "Subscription categories keys, assigned to a message.",
            "items": {
              "type": "string",
              "description": "Subscription categories keys, assigned to a message."
            }
          },
          "languages": {
            "type": "array",
            "description": "An array with the language codes for multilingual messages. Available for the GET method only.",
            "items": {
              "type": "string",
              "description": "An array with the language codes for multilingual messages. Available for the GET method only."
            }
          },
          "from": {
            "type": "string",
            "description": "Sender name."
          },
          "text": {
            "type": "string",
            "description": "Message text."
          },
          "trackUrls": {
            "type": "boolean",
            "description": "The parameter determines whether to track links in a message or not. The default value is ‘false’."
          },
          "translations": {
            "type": "array",
            "description": "An array with translations to other languages. Available for the GET method only.",
            "items": {
              "$ref": "#/components/schemas/SmsMessage"
            }
          }
        }
      },
      "SmsMessage": {
        "required": [
          "from",
          "name",
          "text"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Message ID.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Message name."
          },
          "languageCode": {
            "type": "string",
            "description": "Language code."
          },
          "tags": {
            "type": "array",
            "description": "List of tags.",
            "items": {
              "type": "string",
              "description": "List of tags."
            }
          },
          "subscriptionsKeys": {
            "type": "array",
            "description": "Subscription categories keys, assigned to a message.",
            "items": {
              "type": "string",
              "description": "Subscription categories keys, assigned to a message."
            }
          },
          "languages": {
            "type": "array",
            "description": "An array with the language codes for multilingual messages. Available for the GET method only.",
            "items": {
              "type": "string",
              "description": "An array with the language codes for multilingual messages. Available for the GET method only."
            }
          },
          "from": {
            "type": "string",
            "description": "Sender name."
          },
          "text": {
            "type": "string",
            "description": "Message text."
          },
          "trackUrls": {
            "type": "boolean",
            "description": "The parameter determines whether to track links in a message or not. The default value is ‘false’."
          }
        },
        "description": "An array with translations to other languages. Available for the GET method only."
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}
```